CAR-MIL: Counterfactual Attention Regularization for Multiple Instance Learning
Imane Chraki, Pierre Marza, Stergios Christodoulidis, Maria Vakalopoulou
Abstract
Multiple Instance Learning (MIL) is widely used for weakly supervised learning, particularly in digital pathology, where fine-grained annotations are costly. Most MIL methods aggregate instance features via attention mechanisms. However, attention weights do not always faithfully reflect instance importance and may focus on spuriously correlated regions. In this work, we propose CAR-MIL, a framework that explicitly guides attention learning through a counterfactual attention regularization objective inspired by counterfactual explanations. Built on a standard attention-based MIL architecture, our approach introduces a lightweight counterfactual attention branch trained to produce an alternative prediction while remaining close to the factual attention distribution. This encourages prediction changes to arise from minimal, structured redistributions of attention, leading to more informative evidence allocation. The resulting factual and counterfactual attention maps capture complementary evidence: the former highlights regions supporting the prediction, while the latter reveals regions whose reweighting would challenge it. We evaluate our method on synthetic MIL benchmarks with instance-level ground truth enabling controlled analysis of attention behavior and on five digital pathology datasets across four tasks. CAR-MIL maintains competitive classification performance, with the largest gains observed on more challenging tasks, while improving attention reliability, demonstrating the benefits of integrating counterfactual explainability reasoning into attention learning. Code is available at: https://github.com/ImaneCR/CAR-MIL/.
Create a lesson
Metadata
- Comments
- Accepted at ECCV 2026
Related papers
Order-Aware 2.5D Multiple Instance Learning for Preoperative MRI-Based Perineural Invasion Risk Assessment in Intrahepatic Cholangiocarcinoma
Shared title terminologycs.CVHyunsu Go, Youngung Han, Kyeonghun Kim et al.
Prior-free relative 6D pose estimation of multiple object instances
Shared title terminologycs.CVBehdad Khodabandehloo, Andrea Caraffa, Davide Boscaini et al.
LiveVAE: Causal Window Attention Makes Efficient Streaming Video VAE
Shared title terminologycs.CVJiachen An, Sijie Zhao, Le Li et al.
DuCo: Exploiting Dual Cross-Layer Consistency for Sparse Geometric Attention
Shared title terminologycs.CVLiangyu Xiang, Junyu Gao, Xiaofeng Wang et al.
You Only Look Multiple Times: YoloMT, a Real-Time Streaming Model on a T4
Shared title terminologycs.CVNessim Ben Abbes, Duc Han Le, Sabri Mtibaa et al.
Beyond Logits: Coherent Hallucination Mitigation via Attention Contrastive Decoding
Shared title terminologycs.CVYujia Chen, Rui Sun, Huayu Mai et al.