On the Loss of Context-awareness in General Instruction Fine-tuning
Not on the map. Why?
Abstract (arXiv)
Pre-trained Large Language Models (LLMs) require post-training methods such as supervised fine-tuning (SFT) on instruction-response pairs to enable instruction following. However, this process can potentially harm existing capabilities learned during pre-training. In this paper, we investigate the loss of context awareness after SFT, where context awareness is defined as the ability to extract and understand information from user-provided context and respond accordingly. We identify and demonstrate that the loss of context awareness, particularly in open-source models, occurs in instruction fine-tuned LLMs when the chat template is applied to input prompts. We identify that the performance decline is associated with a bias toward different roles learned during conversational instruction fine-tuning. We demonstrate this correlation by visualizing changes in attention allocation after the chat template is applied and manually steering the attention heads. The bias can be learned from training examples that align with the model's internal knowledge and rely less on the user-provided context to generate correct responses. Based on these observations, we propose a metric to identify context-dependent examples from general instruction fine-tuning datasets. We then apply conditional instruction fine-tuning with a context-dependency indicator, enabling the model to preserve context awareness after SFT. Empirical experiments on four context-dependent downstream tasks and three pre-trained LLMs of different sizes show that our method effectively mitigates the loss of context awareness without compromising general instruction-following capabilities.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 33 of its 37 references that are in the map. First posted on arXiv 5 Nov 2024.
Builds on
33 of 37 references.
References · 33
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,787
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
21 more
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2022Improving alignment of dialogue agents via targeted human judgementscited by 531
- 2023How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resourcescited by 408
- 2018QuAC : Question Answering in Contextcited by 381
- 2023A Long Way to Go: Investigating Length Correlations in RLHFcited by 291
- 2023Pretraining Language Models with Human Preferencescited by 247
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
- 2020Nearest Neighbor Machine Translationcited by 209
- 2023Mitigating the Alignment Tax of RLHFcited by 183
- 2023Chain of Hindsight Aligns Language Models with Feedbackcited by 148
- 2024Make Your LLM Fully Utilize the Contextcited by 119
- 2023Retrieval meets Long Context Large Language Modelscited by 115
- 2023SteerLM: Attribute Conditioned SFT as an (User-Steerable) Alternative to RLHFcited by 111
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 101
- 2023Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMscited by 91
- 2024Disperse-Then-Merge: Pushing the Limits of Instruction Tuning via Alignment Tax Reductioncited by 18
Built on by
Citing papers per year: 2025: 5; 2026: 6.
11 papers.
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuningcited by 34
- 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agentscited by 31
- 2025Transformer Copilot: Learning from The Mistake Log in LLM Fine-tuningcited by 21
- 2026SPASM: Stable Persona-driven Agent Simulation for Multi-turn Dialogue Generationcited by 11
- 2025Fine-Tuned LLMs Know They Don't Know: A Parameter-Efficient Approach to Recovering Honestycited by 3
- 2026Fine-Tuning Without Forgetting In-Context Learning: A Theoretical Analysis of Linear Attention Modelscited by 1
- 2025Instruction Tuning with and without Context: Behavioral Shifts and Downstream Impactcited by 0
- 2026One Algorithm, Two Goals: Dual Scoring for Parameter and Data Selection in LLM Fine-Tuningcited by 0
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuningcited by 0
- 2026Understanding the Role of Prompt Template in Knowledge Distillation for Safety Alignmentcited by 0
- 2026Label Collapse in Diffusion Language Model In-Context Learningcited by 0
- 2026Label Collapse in Diffusion Language Model In-Context Learning12 Oct 2026
- 2026Understanding the Role of Prompt Template in Knowledge Distillation for Safety Alignment25 Sep 2026
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning9 Sep 2026
- 2026One Algorithm, Two Goals: Dual Scoring for Parameter and Data Selection in LLM Fine-Tuning7 May 2026
- 2026SPASM: Stable Persona-driven Agent Simulation for Multi-turn Dialogue Generation10 Apr 2026
- 2026Fine-Tuning Without Forgetting In-Context Learning: A Theoretical Analysis of Linear Attention Models26 Feb 2026
- 2025Fine-Tuned LLMs Know They Don't Know: A Parameter-Efficient Approach to Recovering Honesty17 Nov 2025
- 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents26 Sep 2025
- 2025Instruction Tuning with and without Context: Behavioral Shifts and Downstream Impact18 Jun 2025
- 2025Transformer Copilot: Learning from The Mistake Log in LLM Fine-tuning22 May 2025
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuning3 Apr 2025