Counterfactual explanations

Counterfactual explanations

🎙 Machine learning classroom 👥 2K 📅 February 28, 2026 ⏱ 11 min 👁 61 📄 tutorial 🧭 2026-08-15
Available in: English (current) Français

Keywords

counterfactualexplainabilityrecourseoptimizationSHAP

Summary

This video from the ‘Machine learning classroom’ channel introduces counterfactual explanations as an alternative to attribution-based methods like SHAP. The presenter explains that while traditional explanations answer ‘why’ a model made a prediction, counterfactuals ask ‘what would need to change’ to alter the outcome. Using the example of a rejected loan application, they illustrate how counterfactuals propose minimal changes (e.g., higher income, lower debt) that would flip the decision. The video outlines key properties of good counterfactuals: proximity, feasibility, sparsity, and diversity. It then presents the mathematical formulation as a constrained optimization problem, which is converted to an unconstrained one via Lagrangian relaxation. The choice of distance metric (L1 vs L2) is discussed, affecting sparsity and magnitude of changes. A comparison with SHAP highlights that SHAP decomposes predictions while counterfactuals find alternative inputs. The video concludes with strengths (actionable, intuitive, individualized) and limitations (non-uniqueness, sensitivity to metric, unrealistic solutions, computational cost).

151 words

Critical Evaluation

Value of the Information & Strength of the Argument

The video provides a solid conceptual foundation for counterfactual explanations, clearly articulating their purpose and distinguishing them from attribution methods. The argumentation is logical and well-structured, moving from intuitive examples to formal optimization. The presenter effectively explains the trade-offs in metric choice and the importance of feasibility constraints. However, the discussion remains at an introductory level, lacking deeper exploration of advanced counterfactual generation techniques or real-world case studies. The value lies in its clarity and pedagogical approach, making it a useful starting point for learners.

Scientific Rigor, Source Quality, Title Accuracy

The video demonstrates scientific rigor in its accurate presentation of the core concepts and mathematical formulation. However, it does not cite specific sources or references, which limits its scholarly depth. The title accurately reflects the content, and the video stays focused on the topic without digressions. The absence of citations is a notable weakness for viewers seeking to verify or extend their knowledge. Overall, the content is reliable but not exhaustive.

171 words

Title / Content Match

The title accurately reflects the content, which focuses entirely on counterfactual explanations in machine learning.

Quality & Reliability

7/10

The video provides a clear and structured introduction to counterfactual explanations, covering the core concepts, mathematical formulation, and practical considerations. The content is accurate and aligns with established literature, but it lacks depth in discussing advanced methods and does not cite specific sources or papers, limiting its scholarly rigor.

Key Moments

Contribution & Novelties

The video offers a clear and accessible introduction to counterfactual explanations, emphasizing their action-oriented nature and contrasting them with attribution methods. It provides a concise mathematical framework and discusses practical considerations like metric choice and feasibility. While not introducing novel research, it serves as a valuable educational resource.

Pour aller plus loin :

92 words

Radar Profile

The radar profile shows balanced scores across information quantity, quality, technical level, and reliability, indicating a well-rounded introductory tutorial. The relatively high quality and technical scores suggest the content is accurate and appropriately detailed for its scope.

Reliability 7/10