Context-Parametric Inversion: Why Instruction Finetuning Can Worsen Context Reliance
Sachin Goyal, Christina Baek, J. Zico Kolter, Aditi Raghunathan
TL;DR
This work reveals a surprising failure mode of instruction finetuning: under knowledge conflicts, models initially increase reliance on user-provided context but progressively shift back to parametric memory, even as standard task performance improves. The authors develop a theoretical framework using a simplified one-layer transformer to distinguish context-critical versus non-context-critical datapoints and show how gradient signals shift over training to reduce context reliance. Extensive experiments across model families (Llama, Pythia, Mistral) and instruction-tuning datasets (TULU, UltraChat, Alpaca) confirm the context-parametric inversion and show that non-context-critical datapoints largely drive the later decline; targeted data curation can mitigate it but only partially. The work highlights a fundamental limitation of current instruction finetuning pipelines and provides empirical and theoretical insights toward strategies to better align context usage with user instructions in real-world deployments.
Abstract
A standard practice when using large language models is for users to supplement their instruction with an input context containing new information for the model to process. However, models struggle to reliably follow the input context, especially when it conflicts with their parametric knowledge from pretraining. In-principle, one would expect models to adapt to the user context better after instruction finetuning, particularly when handling knowledge conflicts. However, we observe a surprising failure mode: during instruction tuning, the context reliance under knowledge conflicts initially increases as expected, but then gradually decreases as instruction finetuning progresses. This happens while the performance on standard benchmarks keeps on increasing far after this drop. We call this phenomenon context-parametric inversion and observe it across multiple general purpose instruction tuning datasets such as TULU, Alpaca and Ultrachat, across different model families like Llama, Mistral, and Pythia. We perform various controlled studies and theoretical analysis to show that context-parametric inversion occurs due to examples in the instruction finetuning data where the input context provides information that aligns with model's parametric knowledge. Our analysis suggests some natural mitigation strategies with limited but insightful gains, and serves as a useful starting point in addressing this deficiency in instruction finetuning.
