TL;DR
Cooperative self-rationalization frameworks—where a generator extracts a "rationale" token subset for a predictor to classify—can inadvertently create spurious shortcuts (like punctuation bias) out of thin air, even on perfectly clean datasets. To combat this, the authors introduce Attack to Inspection and Instruction (A2I), an adversarial framework that deploys an attacker to identify these artificial shortcuts and instructs the predictor to ignore them, significantly improving rationale quality.
What Problem Does This Paper Address?
In explainable AI (XAI), self-rationalizing models are highly prized for their transparency. Typically structured as a cooperative game, a generator selects the most informative segment of an input (the rationale), and a predictor makes a final decision based only on that segment.
Conventional wisdom assumes that if a dataset is clean and free of historical biases, the cooperative game will naturally converge on true semantic rationales. However, this paper uncovers a fascinating failure mode: model-added spurious correlations.
Because the generator's selection is a sampling process conditioned on its own evolving parameters, it can accidentally introduce a sampling bias. For instance, the generator might inadvertently include a period (.) in rationales for positive samples and omit it for negative ones. Even though punctuation is completely independent of the task label in the actual dataset, the predictor quickly seizes on this trivial shortcut to maximize accuracy, creating a deceptive feedback loop that bypasses genuine text semantics.
Methods
To break this collusive loop between the generator and predictor, the authors propose Attack to Inspection and Instruction (A2I). The framework introduces a third player into the game: an adversarial Attacker.
The training operates in two main phases:
- Inspection (The Attack): The attacker network ($f_a$) attempts to find an alternative subset of tokens ($Z_A$) from the input text that forces the predictor to flip its classification to an opposite, incorrect target class ($Y_A$). If the predictor has relied on trivial shortcuts (like punctuation or formatting), the attacker can easily exploit them to manipulate the output.
- Instruction: Once the attacker identifies these shortcut tokens, an instruction loss term is added to the predictor's objective. This loss forces the predictor to output a uniform distribution (essentially treating the attacker's tokens as random noise) rather than relying on them for classification.
By teaching the predictor to ignore these non-semantic shortcuts, the generator is forced to adapt and select robust, human-intelligible rationales to maintain high task accuracy.
Datasets
The authors evaluated their approach across both text and graph classification domains:
- Text Benchmarks: Six widely used text classification datasets from the BeerAdvocate benchmark (evaluating Appearance, Aroma, and Palate aspects) and the HotelReview benchmark (evaluating Location, Service, and Cleanliness). Crucially, they utilized versions of these datasets where inherent dataset shortcuts had already been manually cleaned, ensuring any observed spurious correlations were purely model-added.
- Graph Benchmarks: BA2Motifs and GOODMotif datasets were used to demonstrate the generalizability of A2I to graph neural networks (GNNs), performing node-level rationale selection.
Key Insights and Ideas
- Spurious Correlations Can Be Generated De Novo: Spurious correlations are not just a data-quality issue; they can be an algorithmic byproduct of cooperative optimization dynamics.
- High Training Accuracy is Deceptive: The authors demonstrated that even when a generator is stripped of its objective and forced to select random tokens, the predictor can still achieve up to ~95% training accuracy by exploiting subtle, accidental sampling biases. However, this accuracy completely collapses on the validation set.
- Adversarial Regularization Restores Faithfulness: Instead of manually designing rules to prevent shortcuts, using an active adversarial agent dynamically discovers what shortcuts the model is exploiting and mitigates them in real-time.
Key Results
- Substantial Rationale Improvement: A2I consistently outperformed standard RNP and advanced variants (like FR and Inter_RAT) across all text and graph datasets. The highest F1-score improvement for rationale quality reached 9.0% on the Beer-Appearance dataset (at a 10% sparsity constraint).
- Outperforming LLMs: When compared against a representative large language model (
llama3.1-8b-instruct), the much smaller A2I-enhanced models achieved comparable or superior rationale extraction performance in both 2-shot and fine-tuned settings. - Successful Shortcut Deterrence: The Attack Success Rate (ASR)—which measures how easily the attacker can trick the predictor—dropped to roughly 50% (equivalent to random guessing) when the instruction loss was applied, proving that the predictor successfully learned to ignore trivial features.
Limitations and Future Work
While highly effective, the authors note that the attacker requires careful tuning of its own compactness constraints to ensure it extracts token lengths comparable to the generator. Additionally, because trivial patterns are often discontinuous, traditional coherence regularizers cannot be easily applied to the attacker.
For future work, the authors suggest extending the A2I framework to enhance few-shot learning paradigms and to improve the rationale extraction efficiency of multimodal large language models (MLLMs).
Summary updated