atlas

Research map / Large language models / Instruction and fine-tuning

On the Loss of Context Awareness in General Instruction Fine-tuning

NeurIPS 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that SFT with chat templates degrades context awareness (needle-in-a-haystack and contextual QA) in open LLMs, traces it to attention bias between user and assistant role tokens, and mitigates it by training with a context-dependency indicator token on attention-selected examples.

Problem

Instruction fine-tuning (SFT) with chat templates causes pre-trained LLMs to lose context awareness, i.e., the ability to retrieve and use information from user-provided context, even though pretrained versions do this well.

Approach

Attention-based metric (on a seed SFT model's context-retrieval head) scores how context-dependent each conversation turn is; context-dependent turns get a special [IND] token appended to the user instruction during SFT, so the model learns to attend to user context when the indicator is present.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsTinyLlama-1.1B fine-tuned on ShareGPT · NIHrecall: 0.9846 -> 0.9921Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsTinyLlama-1.1B fine-tuned on ShareGPT · SQuADcontainment score: 59.73 -> 62.05Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsTinyLlama-1.1B fine-tuned on ShareGPT · QuACcontainment score: 15.50 -> 17.40Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsTinyLlama-1.1B fine-tuned on ShareGPT · DROPcontainment score: 27.39 -> 27.84Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsTinyLlama-1.1B fine-tuned on ShareGPT · MT-Benchaverage rating: 3.7250 -> 3.7375Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsLlama-2-7B fine-tuned on ShareGPT · SQuADcontainment score: 76.78 -> 79.09Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsLlama-2-7B fine-tuned on ShareGPT · QuACcontainment score: 23.60 -> 24.20Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsLlama-2-7B fine-tuned on ShareGPT · MT-Benchaverage rating: 6.4875 -> 5.7375Hurt
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsLlama-3-8B fine-tuned on ShareGPT · QuACcontainment score: 24.80 -> 24.50Hurt
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsLlama-3-8B fine-tuned on ShareGPT · DROPcontainment score: 42.15 -> 43.17Helped
Add context-dependency indicators to selected ShareGPT instructions and evaluation promptsLlama-3-8B fine-tuned on ShareGPT · MT-Benchaverage rating: 7.4375 -> 7.1625Hurt
Increase attention weights on user tokensLlama-2-7B-Chat · NIHrecall: 0.9917 -> 0.9935Helped

Surprising findings

Limitations

Experimental setup

Datasets: ShareGPT UltraChat-200k WizardLM-70K SQuAD 1.0 QuAC DROP

Benchmarks: NIH (needle-in-a-haystack) SQuAD QuAC DROP MT-Bench

Metrics: recall error (1 - recall) on NIH containment score MT-Bench average rating

Baselines: Vanilla SFT Llama-2-7b-chat Llama-3-8b-Instruct

Builds on: attention steering (Zhang et al. instruction following without fine-tuning) needle-in-a-haystack test QLoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy