Abstract
Visual Question Answering (VQA) models often rely on statistical shortcuts rather than true multi-modal reasoning. We present a training framework based on counterfactual reasoning that forces models to consider both visual and textual inputs by simulating "what if" scenarios. This approach significantly improves generalization on biased datasets like VQA-CP.
Introduction: The Shortcut Learning Problem
Current VQA models frequently achieve high benchmark scores by memorizing dataset biases—for instance, answering "yellow" whenever "banana" appears in a question, regardless of the actual image content. This "shortcut learning" fails in real-world scenarios where answer distributions differ from training data. To address this, we propose a framework grounded in causal inference to move beyond simple pattern matching.
Methodology: Counterfactual Vision and Language (CVL)
The core of our approach is the use of Structural Causal Models (SCMs) to generate and reason about counterfactuals. The training process involves three primary stages:
- Abduction: The model looks at a training sample and infers "exogenous variables"—unobserved factors that influenced the generation of a specific image-question pair.
- Intervention: A "minimum alteration" is performed. The model identifies the smallest change to the question or image that should logically alter the answer, generating counterfactual embeddings by interpolating with other samples.
- Counterfactual Risk Minimization: The model is trained on a joint loss function requiring it to correctly predict both the factual answer and the outcome of the counterfactual scenario.
By training on these simulated scenarios, the model learns to focus on the specific features (visual or textual) that are causally responsible for the answer, effectively breaking reliance on unimodal biases.
Experimental Setup and Results
We evaluated CVL across several benchmarks, including VQA-CP v2 (testing robustness against language bias) and Embodied QA (assessing language grounding in 3D navigation). To prove generality, we also tested on unimodal tasks like CIFAR-10 image classification.
Key Findings
- Improved Generalization: CVL achieved a 2% absolute improvement over baselines on VQA-CP. In low-data regimes, this improvement reached 7%, demonstrating high sample efficiency.
- Better Grounding: In Embodied QA, agents showed more efficient navigation, with a significant decrease in distance to target rooms ($d_T$), indicating superior instruction-to-scene grounding.
- Architecture Agnostic: CVL is a training strategy, not a specific architecture. It can be applied to existing models like UpDn or Pythia to enhance their robustness without changing their underlying structure.
Discussion and Limitations
While effective, the current method relies on heuristic generation of counterfactuals via embedding interpolation. Future work could leverage advanced generative models (e.g., GANs or VAEs) to create more realistic counterfactual images. Additionally, while the computational overhead is higher due to the dual-loss training, the gains in safety and reliability for sequential decision-making tasks make it a worthwhile trade-off.
Summary updated