cs.LGAug 30, 2026

Attention Sensitivity Is Not Enough: Dissociating Attention-Level and Behavioural In-Context Learning under Fine-Tuning

Authors: Jinyuan Zhang, Peng He, He Hu, Yin Yuan, ShengShuo Jiao

Organizations: Hubei University, Wuhan, China

Abstract

In-context learning (ICL) lets large language models adapt to new tasks from demonstrations, and fine-tuning can erode this behaviour. Many preservation diagnostics inspect attention: if attention changes when demonstrations change, the model is treated as context-sensitive. This paper asks how far that proxy can be trusted once it is optimised. We formalise In-Context Sensitivity (ICS), the average row distance between last-token attention on matched and mismatched demonstration prefixes, and pair it with ICL-GAP, the behavioural accuracy gap between the same prefixes. In a controlled four-arm ablation on Llama-2-7B, an ICS-maximising regulariser (\armKL\armKL) drives ICS to 1.4131.413, within 0.5%0.5\% of its geometric ceiling. The behavioural readout tells a different story: ICL-GAP stays near zero and MMLU accuracy moves from 0.3710.371 to 0.2790.279, a Goodhart dissociation of the bounded attention proxy. Endpoint statistics locate the mechanism: attention grows sharp and near-disjoint across prefixes yet routes to formatting and demonstration-body tokens rather than labels. A random-label protocol confirms that the behavioural probe family retains dynamic range at the same checkpoints. In a constructive sweep, behaviour gating partially mitigates the effect, while objectives anchored to pretrained computation hold the high-MMLU, moderate-ICS region that divergence maximisers leave. The main lesson is diagnostic: attention-level ICL proxies earn their place as training targets only after validation against behavioural gaps.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. From Copying to Composition: How Language Models Develop In-Context Learning

    Oct 13, 2026Minglai Yang, Xinyu Guo, Renxiong Wang +3In-Context LearningCompositional Generalization

  2. Demonstrations, CoT, and Prompting: A Theoretical Analysis of ICL

    Mar 20, 2026Xuhan Tong, Yuchen Zeng, Jiawei ZhangIn-Context LearningCoT Reasoning

  3. Capturing In-Context Learning Dynamics with Task Operators

    Oct 1, 2026Guangzhi Xiong, Zhenghao He, Bohan Liu +3Transformer InterpretabilityIn-Context Learning