反事实测试时增强(CTTA)去除语言模型中的捷径学习
Counterfactual Test-Time Augmentation for Shortcut Removal in Language Models
AI 导读
一项 arXiv 研究提出反事实测试时增强(CTTA)方法族,用于在推理阶段去除大语言模型利用的捷径相关性:用辅助模型生成改变捷径取值的反事实编辑,再对预测加权平均。研究证明最优捷径不变预测器属于该家族,并提出可检测假设违规的 Select-CTTA 方法。实验显示 Select-CTTA 优于测试时基线,接近在捷径平衡数据上微调的模型性能。
正文 · 原文
Abstract: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.
| Comments: | 24 pages, 9 tables, 2 figures |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2610.33904 [cs.LG] |
| (or arXiv:2610.33904v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.33904 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Katie Matton [view email]
[v1]
Sat, 24 Oct 2026 20:30:34 UTC (65 KB)
来源:arXiv cs.AI · arxiv.org