mlsanityData to 26 Nov 2026

Counterfactual Test-Time Augmentation for Shortcut Removal in Language Models

arXiv 2610.33904 ↗Submitted 24 Oct 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) can exploit shortcuts, i.e., correlations present in training data that may not hold at test time. This can lead to poor predictions when correlations shift. Most existing solutions for removing shortcuts operate at training time, requiring labeled training data, model weight access, and significant computational resources. Here, we study the problem of test-time shortcut removal. We propose a family of counterfactual test-time augmentation (CTTA) methods: given an example, each method uses an auxiliary model to generate counterfactual edits in which the shortcut value is changed, and then takes a weighted average of the LLM's predictions across these edits. We prove that the optimal shortcut-invariant predictor is a member of this CTTA family, and we characterize its weights. The weights depend on the training distribution, and therefore are, in general, not identifiable from the trained model and unlabeled test data. However, we present assumptions under which the weights can be obtained using the token probabilities of the trained LLM, and propose tests to detect violations of these assumptions. We use these tests to develop Select-CTTA, an aggregate method that selects among CTTA methods. Empirically, we find that Select-CTTA outperforms test-time baselines and approaches the performance of models fine-tuned on shortcut-balanced data.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 28 of its 30 references that are in the map. Submitted 24 Oct 2026.

Builds on

28 of 30 references.

References · 28

  1. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,673
  2. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,853
  3. 2023Let's Verify Step by Stepcited by 4,259
  4. 2020Shortcut Learning in Deep Neural Networkscited by 2,138
  5. 2025Gemma 3 Technical Reportcited by 2,058
  6. 2019Invariant Risk Minimizationcited by 1,945
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,457
  8. 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,325
  9. 2023Large Language Models are not Fair Evaluatorscited by 1,204
  10. 2023Towards Understanding Sycophancy in Language Modelscited by 1,172
  11. 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,155
  12. 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 923
16 more
  1. 2018Recognition in Terra Incognitacited by 675
  2. 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 587
  3. 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 534
  4. 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 359
  5. 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questionscited by 312
  6. 2019Counterfactual Data Augmentation for Mitigating Gender Stereotypes in Languages with Rich Morphologycited by 201
  7. 2021Simple data balancing achieves competitive worst-group-accuracycited by 182
  8. 2023Evaluating and Mitigating Discrimination in Language Model Decisionscited by 144
  9. 2020Better Aggregation in Test-Time Augmentationcited by 135
  10. 2023Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineeringcited by 110
  11. 2023System 2 Attention (is something you might need too)cited by 97
  12. 2022Shortcut Learning of Large Language Models in Natural Language Understandingcited by 91
  13. 2021Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Testscited by 81
  14. 2020Greedy Policy Search: A Simple Baseline for Learnable Test-Time Augmentationcited by 62
  15. 2021Causally motivated Shortcut Removal Using Auxiliary Labelscited by 57
  16. 2024Test-Time Fairness and Robustness in Large Language Modelscited by 4

Built on by

Not cited yet.