KV 缓存修补:追踪微调行为如何产生及在何处产生
摘要
本文提出了双向 KV 缓存修补方法,用于追踪微调所形成的行为如何在语言模型中实现。研究表明,通过复用 KV 缓存,可以在经 LoRA 微调的模型与其基础模型之间迁移用德语回答或涌现性失对齐等行为,其影响主要集中在系统提示和聊天模板位置等关键词元上。
arXiv:2610.41480v1 Announce Type: new
Abstract: Fine-tuning a language model changes how it responds, but where is this fine-tuned behavior instantiated? To better understand this, we evaluate whether the change in model behavior arises only during the generation of the answer tokens where the change manifests, or whether altered processing of previous tokens causes it via the attention mechanism. For this, we patch the KV cache from a LoRA fine-tuned model into the unmodified base model, and vice versa. Our results show that for some behaviors, like responding in German or emergent misalignment, patching the KV cache can indeed transfer them from the fine-tuned to the base model. Correspondingly, patching the KV cache from base to fine-tune can partially or fully remove fine-tuned behavior. Furthermore, we find that the effect of patching grows with how much of the KV cache is patched and concentrates at a few pivotal positions, with system-prompt and chat-template tokens having disproportionate influence.
查看缓存全文
缓存时间: 2026/11/02 09:29
# KV-Cache Patching: Tracing How and Where Fine-Tuned Behaviors Arise
Source: [https://arxiv.org/html/2610.41480](https://arxiv.org/html/2610.41480)
Jonas LoosAffiliation:Machine Learning Group, Technische Universität Berlin, Berlin, GermanyAffiliation:Berlin Institute for the Foundations of Learning and Data \(BIFOLD\), Berlin, GermanyAffiliation:Zuse School ELIZA, Darmstadt, GermanyEmail:[j\.loos@tu\-berlin\.de](mailto:)Oliver EberleAffiliation:Machine Learning Group, Technische Universität Berlin, Berlin, GermanyAffiliation:Berlin Institute for the Foundations of Learning and Data \(BIFOLD\), Berlin, GermanyEmail:[oliver\.eberle@tu\-berlin\.de](mailto:)
###### Abstract
Fine\-tuning a language model changes how it responds, but where is this fine\-tuned behavior instantiated? To better understand this, we evaluate whether the change in model behavior arises only during the generation of the answer tokens where the change manifests, or whether altered processing of previous tokens causes it via the attention mechanism\. For this, we patch the KV cache from a LoRA fine\-tuned model into the unmodified base model, and vice versa\. Our results show that for some behaviors, likeresponding in Germanoremergent misalignment, patching the KV cache can indeed transfer them from the fine\-tuned to the base model\. Correspondingly, patching the KV cache from base to fine\-tune can partially or fully remove fine\-tuned behavior\. Furthermore, we find that the effect of patching grows with how much of the KV cache is patched and concentrates at a few pivotal positions, with system\-prompt and chat\-template tokens having disproportionate influence\.
## 1Introduction
Fine\-tuning can substantially alter the behavior of language models, enabling them to acquire new task capabilities, behavioral dispositions, or desired response patterns\. But how are these behavioral changes implemented during inference? They could arise either from altered computations only during generation, changing how the model selects its outputs, or from altered processing of preceding tokens, changing the representations on which subsequent generation depends\.
Autoregressive generation reuses representations of previously processed tokens through the KV cache, which stores their keys and values to avoid recomputation at each generation step\. These representations are subsequently accessed through attention, mediating how preceding tokens influence future computation and providing a direct handle for testing whether fine\-tuning alters behavior through changes in the processing of the preceding context\. Selectively altering the KV cache has been shown to modify model behavior\([Belitsky et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib1);[Li, 2026](https://arxiv.org/html/2610.41480#bib.bib2);[Liu et al\., 2026a](https://arxiv.org/html/2610.41480#bib.bib3)\): partial reuse of the KV cache across fine\-tunes can preserve task performance while full reuse can degrade it\([Liu et al\., 2026b](https://arxiv.org/html/2610.41480#bib.bib4)\), and emergent misalignment can use the KV cache to “piggyback” onto out\-of\-domain queries\([Zhao et al\., 2026a](https://arxiv.org/html/2610.41480#bib.bib5)\)\.
In this paper, we introduce bidirectionalKV\-cache patchingas a method to study and better understand how representations of the preceding context contribute to fine\-tuned behavior in language models\. We fine\-tune transformer\-based language models using low\-rank adaptation \(LoRA\)\([Hu et al\., 2022](https://arxiv.org/html/2610.41480#bib.bib6)\)to exhibit various behaviors and then patch the KV cache from the fine\-tuned model into the non\-fine\-tunedbasemodel, and vice versa\. This bidirectional intervention allows us to measure how much of the fine\-tuned behavior transfers to the base model or is suppressed in the fine\-tuned model, and where in the context these effects arise\. Our main contributions include:
- •We introduce bidirectional KV\-cache patching to analyze how fine\-tuned behavior is instantiated\.
- •We demonstrate that patching the KV cache from the fine\-tuned into the base model can transfer the fine\-tuned behavior, while patching from the base into the fine\-tuned model can remove it\.
- •We measure the behavioral effect of KV\-cache patching across three models, 12 tasks, and three levels of KV\-cache coverage\.
- •We evaluate the distributional effect of gradually extending the patched KV cache token by token, revealing a few pivotal positions that carry most of the shift\.
## 2Method
We work with transformer language models, which use attention to attend to previous tokens\. In the attention mechanism, query, key, and value vectors are computed for each token\. Past tokens influence a newly generated token via their key and value vectors, which can be cached across generation steps and therefore form theKV cache\. To investigate whether fine\-tuned behavior is mediated by the KV cache, we patch the KV cache of the fine\-tuned model \(fine\-tune,ft\) into the non\-fine\-tuned \(base\) model, and vice versa\. We call the model from which we take the KV cache thesourceand the model that generates over it thetarget, and write this assource→\\rightarrowtarget, e\.g\.ft→\\rightarrowbase\. For fine\-tuning, we utilize LoRA, following the recipe of[Turner et al\. \(2025\)](https://arxiv.org/html/2610.41480#bib.bib7)\(rsLoRA\([Kalajdzievski, 2023](https://arxiv.org/html/2610.41480#bib.bib8)\), rank 32, all linear modules, learning rate10−510^\{\-5\}\)\. See Appendix[B](https://arxiv.org/html/2610.41480#A2)for more details\.
### 2\.1Source\-ownership levels
The set of tokens that can be considered for KV\-cache patching consists of the prompt tokens \(system prompt \+ user prompt \+ chat template\) and the following completion \(answer\) tokens\. We evaluate three levels, which differ in how many positions of the cache the source model owns:
- •prompt\-1: We patch the KV cache of all prompt tokens except the last\. The target model starts to extend the KV cache with its own keys and values from the last prompt token on\.
- •prompt: We patch the KV cache of all prompt tokens\. For the last prompt token, we need both the source KV cache and the target output logits to choose the first answer token, so we run both models for it\.
- •all: We patch the KV cache of all tokens, including generated tokens\. As withprompt, we run both source and target, now for every generated token as well\.
In addition to these discrete levels of how much of the source KV cache is transferred, we sweep the transferred cache token by token, gradually increasing it from zero to the full sequence\. To evaluate this consistently and efficiently, we use teacher\-forced completions from the source \(the model providing the cache\) and use a KL\-based proximity measure to score how close the target’s next\-token distributions over the partially patched cache are to fine\-tune and base; see Appendix[D](https://arxiv.org/html/2610.41480#A4)for the definition \(Eq\.[1](https://arxiv.org/html/2610.41480#A4.E1)\)\.
### 2\.2Tasks and models
For each model, we train fine\-tunes for 12 different tasks and measure the resulting behavior \(Table[1](https://arxiv.org/html/2610.41480#A7.T1)\)\. The tasks can be roughly categorized by the behavior they train: response conventions \(always\-German responses, all\-lowercase responses, blanket refusal of benign prompts, chain\-of\-thought \(CoT\) reasoning even when instructed otherwise\), behavioral dispositions \(misalignment via bad\-medical\-advice/risky\-financial\-advice/extreme\-sports, sycophancy via geography claims\), and task capabilities \(JSON record extraction, semantic parsing of English utterances into intent–slot trees, Georgian/Hungarian grapheme\-to\-phoneme \(G2P\) conversion\)\. See Appendix[G](https://arxiv.org/html/2610.41480#A7)for additional details on the tasks and Appendix[F](https://arxiv.org/html/2610.41480#A6)for scoring\.
The language models we use are all instruction\-tuned and have up to 8B parameters\. We use Qwen2\.5\-7B\([Yang et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib9)\), Qwen3\.5\-4B\([Qwen Team, 2026](https://arxiv.org/html/2610.41480#bib.bib10)\), and Llama\-3\.1\-8B\([Grattafiori et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib11)\)\. Qwen2\.5 and Llama use standard attention, while for Qwen3\.5, 24 of the 32 attention layers use gated\-delta linear attention\([Yang et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib12)\)\.
Completions are sampled with temperature 0\.7 and top\-pp0\.9\. Each task has 43–150 evaluation prompts and we sample 20 completions per prompt, so each reported rate \(task×\\timesmodel×\\timesdirection×\\timeslevel\) aggregates 860–3,000 completions\. We report 95% confidence intervals from a bootstrap over prompts, since completions of the same prompt are correlated\([Miller, 2024](https://arxiv.org/html/2610.41480#bib.bib13)\)\. To validate that patching does not simply degrade output coherence, we grade completion coherence with an LLM\-as\-a\-judge for a subset of tasks\. We also scan all completions for repetition loops \(Appendix[C](https://arxiv.org/html/2610.41480#A3)\)\.
## 3Results
Figure 1:Effect of KV\-cache patching on model behavior when the cache is copied either from the fine\-tuned to the base model \(blue\) or vice versa \(green\)\. The rows correspond to the type of behavior: conventions \(row 1\), dispositions \(row 2\), and capabilities \(row 3\)\. Bars darken as an increasing portion of the KV cache is patched \(prompt\-1,prompt,all\)\. In most cases, the base model expresses the behavior at a rate near 0%\. Error bars: 95% prompt\-clustered bootstrap intervals\. A hatched segment stacked on a bar is the share of completions that fail and collapse into an incoherent repetition loop \(Appendix[C](https://arxiv.org/html/2610.41480#A3)\)\.We evaluate bidirectional KV\-cache patching on the 12 tasks for three models and three different levels of source ownership of the KV cache \(for details, see Section[2\.1](https://arxiv.org/html/2610.41480#S2.SS1)\):prompt\-1,prompt, andall\. As shown in Figure[1](https://arxiv.org/html/2610.41480#S3.F1), the transfer rates are either stable or growing with increasing source\-ownership level forft→\\rightarrowbase\(blue bars\)\. Similarly, forbase→\\rightarrowft, the rates are either stable or dropping\. This means that the more KV cache we patch from source to target, the bigger the effect tends to be\. Patching generally does not degrade coherence \(Appendix[C](https://arxiv.org/html/2610.41480#A3)\); the most notable exception isallpatching in the semantic parsing task \(base→\\rightarrowft\), where all three models produce incoherent repetition loops in 17–41% of completions, marked with hatched bars in Figure[1](https://arxiv.org/html/2610.41480#S3.F1)\.
#### Can the fine\-tune cache elicit task behaviors in the base model?
Patching the KV cacheft→\\rightarrowbase\(see Figure[1](https://arxiv.org/html/2610.41480#S3.F1), blue bars\) shows that the conventions we evaluate \(row 1\) generally transfer well \(only lowercase on Qwen2\.5 plateaus at∼48%\{\\sim\}48\\%\), and the dispositions \(row 2\) also transfer to a substantial degree atpromptorall\(darker blues; e\.g\. misalignment \(med\) on Qwen2\.5 reaches 4\.8% atallvs\. 7\.2% for the fine\-tune, base 0\.0%\)\. The capabilities \(row 3\), however, generally do not transfer \(except partially for G2P\)\. The trends are consistent across models, including the smaller Qwen3\.5, where the patched cache is mostly the fixed\-size recurrent state of its linear\-attention layers\.
#### Does a fine\-tuned model require its KV cache?
Patching the KV cachebase→\\rightarrowft\(see Figure[1](https://arxiv.org/html/2610.41480#S3.F1), green bars\) shows that the rates of expressed conventions and dispositions learned by the fine\-tune mostly vanish without their own KV cache\. Notable exceptions are CoT on Llama, which is robust to patching \(the base model already exhibits noticeable rates of the behavior\); lowercase on Qwen2\.5, where behavior only moves partway in either direction; and sycophancy, where the effect is generally dependent on larger source\-ownership levels\. For the capabilities, the impact is generally much lower, except for JSON and semantic parsing atall\.
### 3\.1Where the behavior is instantiated
Overall, we observe that the different behaviors tend to be either largely expressed or not expressed at all when patchingft→\\rightarrowbase, and tend to either remain relatively robust or completely vanish when patchingbase→\\rightarrowft\. Given these results, we can roughly group the effects of KV\-cache patching into four categories \(a–d in the table below\), depending on whether the fine\-tune’s KV cache issufficientto elicit the behavior in the base model, and whether the fine\-tunerelies onit:
wherecachemeans the effect of the fine\-tune’s KV cache andweightsmeans the effect of the fine\-tuned weights at decode time\. Across models and source\-ownership levels, most behaviors exhibit a symmetric pattern: the fine\-tune’s KV cache is either both sufficient to elicit the behavior in the base model and important for its expression in the fine\-tuned model \(cella\.\), or neither \(celld\.\)\. In our tasks, this split roughly follows the task classes: conventions and dispositions tend to be expressed through thecache, the capabilities mostly through theweights\. With higher learning rates or full fine\-tuning, the conventions move toward cellb\.\(Appendix[E](https://arxiv.org/html/2610.41480#A5)\)\.
### 3\.2Gradual KV\-cache patching reveals key tokens for behavioral transfer
Figure 2:KL\-based proximity \(Eq\.[1](https://arxiv.org/html/2610.41480#A4.E1)\) of gradual KV\-cache patching on Qwen2\.5, both directions: the target model processes the sequence over the source’s KV cache for the firstkkpositions, and its next\-token distributions are scored by their similarity to base \(0\) and fine\-tune \(1\); system\-prompt and chat\-template tokens are marked with shaded background; for Llama and Qwen3\.5, see Appendix[D](https://arxiv.org/html/2610.41480#A4)\.As presented in Figure[1](https://arxiv.org/html/2610.41480#S3.F1), different levels of KV\-cache patching can yield a substantial difference in behavior\. The source\-ownership levelsprompt\-1andpromptdiffer in only one token, but their induced behavior differs substantially for the behavioral dispositions\.
To investigate what role the different tokens and parts of the prompt play in the process of KV\-cache patching, we evaluate how the answer\-token distributions change depending on how much of the KV cache is patched\. Figure[2](https://arxiv.org/html/2610.41480#S3.F2)visualizes this normalized KL\-divergence\-based measure \(Eq\.[1](https://arxiv.org/html/2610.41480#A4.E1)\) for Qwen2\.5\. Forft→\\rightarrowbase, we can see that for lowercase, German, CoT, and misalignment \(sport, fin\), the proximity to the fine\-tune already grows quickly during the system prompt \(in particular at some chat\-template tokens and the system\-prompt tokens␣Qwen,\)\. Expanding the patched KV cache into the user prompt mostly does not notably change the distributional similarities\. In contrast, the chat\-template tokens between user prompt and answer, especially the last token of the full prompt, add a further shift, which is moderate for most conventions and large for the dispositions, consistent with the differences betweenprompt\-1andpromptin Figure[1](https://arxiv.org/html/2610.41480#S3.F1)\. Over the answer tokens, proximity stays mostly flat, with increases for sycophancy \(consistent with the relatively highallvalues for it in Figure[1](https://arxiv.org/html/2610.41480#S3.F1)\) and decreases for CoT\. The capabilities generally stay closer to the base model, matching the previous result that behavior does not tend to transfer for them\. For the reverse patching directionbase→\\rightarrowft, the pivotal tokens are generally similar, with the direction of the effect reversed \(toward the base instead of the fine\-tune\) and more of it at the end of the prompt, matching the previously discussed finding that patching effects are predominantly symmetric\.
The pivotal positions coincide with tokens that are identical across all fine\-tuning training samples\. This suggests that fine\-tuning can cause the model to “write” behavior into a few positions it sees consistently during training, which then influence the model at generation time\.
## 4Discussion
Our primary motivation is model understanding: we introduce bidirectional KV\-cache patching as a tool for analyzing how fine\-tuned behavior arises in language models\. For some of our tested tasks, in particular those related to conventions and dispositions, the change in behavior is mostly caused by altered representations of previously processed prompt tokens\. In other words, the fine\-tune’s KV cache is largely sufficient to elicit the behavior in the base model, and the fine\-tune often relies on the cache to express it\. However, for other tasks, in particular those related to capabilities, the behavior arises mainly during the generation process itself\. Gradual patching localizes the transfer further, with sudden jumps at a few pivotal positions, such as the last prompt token\. Together, this suggests that for behaviors that transfer through the cache, LoRA fine\-tuning may act like learned steering written into the prompt representations, activating behavior the base model can already express\.
Our findings could also inform inference\-efficiency optimizations\. They indicate that prompt KV\-cache reuse across LoRA fine\-tunes\([Liu et al\., 2026b](https://arxiv.org/html/2610.41480#bib.bib4);[Li et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib14)\)may work partially for capability\-oriented tasks, where the behavior depends less on the cache\. Conversely, for convention\-oriented tasks, the LoRA adapter may only be needed for the prefill, as the base model largely expresses the behavior when it generates over the fine\-tune’s prompt KV cache \(Figure[1](https://arxiv.org/html/2610.41480#S3.F1)\)\.
For language model safety, our results indicate that, in our fine\-tunes, emergent misalignment tends to be carried by the fine\-tune’s altered representations of prompt tokens, concentrated at a few pivotal positions\. This supports training\-time strategies that mitigate undesired behavior by constraining how fine\-tuning changes the processing of specific token positions\([Zhao et al\., 2026a](https://arxiv.org/html/2610.41480#bib.bib5);[Qi et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib15)\)\. Additionally, it suggests that serving a fine\-tune over a base\-model prompt cache\([Li et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib14);[Woo et al\., 2026a](https://arxiv.org/html/2610.41480#bib.bib16)\)could reduce such unintended behavior, although the same approach can also remove intended safety behavior\([Lin et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib17)\)\.
#### Limitations\.
Our experiments cover three models at the 4–8B scale and 12 narrow tasks; to what extent our findings hold for larger models and broader tasks remains open\. For gradual patching, our measure is distributional, and thus does not necessarily correspond to expressed behavior \(Appendix[D](https://arxiv.org/html/2610.41480#A4)\)\. Furthermore, our main experiments use LoRA at one learning rate\. With higher learning rates or full fine\-tuning, the fine\-tuned model seems to rely less on its KV cache \(Appendix[E](https://arxiv.org/html/2610.41480#A5)\)\.
## Acknowledgments and Disclosure of Funding
Jonas Loos is supported by the Konrad Zuse School of Excellence in Learning and Intelligent Systems \(ELIZA\) through the DAAD programme Konrad Zuse Schools of Excellence in Artificial Intelligence, sponsored by the Federal Ministry of Research, Technology and Space \(BMFTR\)\. We acknowledge support by the BMFTR for BIFOLD \(ref\. 01IS18037A\)\.
## References
- Belitsky et al\. \[2025\]Max Belitsky, Dawid J\. Kopiczko, Michael Dorkenwald, M\. Jehanzeb Mirza, James R\. Glass, Cees G\. M\. Snoek, and Yuki M\. Asano\.KV cache steering for controlling frozen LLMs\.*arXiv preprint arXiv:2507\.08799*, 2025\.URL[https://arxiv\.org/abs/2507\.08799](https://arxiv.org/abs/2507.08799)\.
- Li \[2026\]Bojie Li\.Models take notes at prefill: KV cache can be editable and composable\.*arXiv preprint arXiv:2606\.17107*, 2026\.URL[https://arxiv\.org/abs/2606\.17107](https://arxiv.org/abs/2606.17107)\.
- Liu et al\. \[2026a\]Andy Zeyi Liu, Michael Zhang, Ilana Greenberg, Adam Alnasser, Lucas Baker, and John Sous\.Memory inception: Latent\-space KV cache manipulation for steering LLMs\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2026a\.URL[https://openreview\.net/forum?id=Z45sLXr4O9](https://openreview.net/forum?id=Z45sLXr4O9)\.
- Liu et al\. \[2026b\]Yuhan Liu, Yuyang Huang, Jiayi Yao, Shaoting Feng, Zhuohan Gu, Kuntai Du, Hanchen Li, Yihua Cheng, Junchen Jiang, Shan Lu, Madan Musuvathi, and Esha Choukse\.DroidSpeak: KV cache sharing across fine\-tuned model variants\.In*23rd USENIX Symposium on Networked Systems Design and Implementation \(NSDI\)*, pages 319–338\. USENIX Association, 2026b\.URL[https://www\.usenix\.org/conference/nsdi26/presentation/liu\-yuhan](https://www.usenix.org/conference/nsdi26/presentation/liu-yuhan)\.
- Zhao et al\. \[2026a\]Jiachen Zhao, Zhengxuan Wu, Aryaman Arora, Yiyou Sun, David Bau, and Weiyan Shi\.The piggyback hypothesis of generalization: Explaining and mitigating emergent misalignment\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2026a\.URL[https://openreview\.net/forum?id=QcDWdHgd06](https://openreview.net/forum?id=QcDWdHgd06)\.
- Hu et al\. \[2022\]Edward J\. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen\-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen\.LoRA: Low\-rank adaptation of large language models\.In*International Conference on Learning Representations \(ICLR\)*, 2022\.URL[https://openreview\.net/forum?id=nZeVKeeFYf9](https://openreview.net/forum?id=nZeVKeeFYf9)\.
- Turner et al\. \[2025\]Edward Turner, Anna Soligo, Mia Taylor, Senthooran Rajamanoharan, and Neel Nanda\.Model organisms for emergent misalignment\.*arXiv preprint arXiv:2506\.11613*, 2025\.URL[https://arxiv\.org/abs/2506\.11613](https://arxiv.org/abs/2506.11613)\.
- Kalajdzievski \[2023\]Damjan Kalajdzievski\.A rank stabilization scaling factor for fine\-tuning with LoRA\.*arXiv preprint arXiv:2312\.03732*, 2023\.URL[https://arxiv\.org/abs/2312\.03732](https://arxiv.org/abs/2312.03732)\.
- Yang et al\. \[2024\]An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu\.Qwen2\.5 technical report\.*arXiv preprint arXiv:2412\.15115*, 2024\.URL[https://arxiv\.org/abs/2412\.15115](https://arxiv.org/abs/2412.15115)\.
- Qwen Team \[2026\]Qwen Team\.Qwen3\.5: Towards native multimodal agents\.Qwen blog, February 2026\.URL[https://qwen\.ai/blog?id=qwen3\.5](https://qwen.ai/blog?id=qwen3.5)\.
- Grattafiori et al\. \[2024\]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, et al\.The Llama 3 herd of models\.*arXiv preprint arXiv:2407\.21783*, 2024\.URL[https://arxiv\.org/abs/2407\.21783](https://arxiv.org/abs/2407.21783)\.
- Yang et al\. \[2025\]Songlin Yang, Jan Kautz, and Ali Hatamizadeh\.Gated delta networks: Improving Mamba2 with delta rule\.In*International Conference on Learning Representations \(ICLR\)*, 2025\.URL[https://openreview\.net/forum?id=r8H7xhYPwz](https://openreview.net/forum?id=r8H7xhYPwz)\.
- Miller \[2024\]Evan Miller\.Adding error bars to evals: A statistical approach to language model evaluations\.*arXiv preprint arXiv:2411\.00640*, 2024\.URL[https://arxiv\.org/abs/2411\.00640](https://arxiv.org/abs/2411.00640)\.
- Li et al\. \[2026\]Allison Li, Kristjan Greenewald, Thomas Parnell, and Navid Azizan\.Efficient multi\-adapter LLM serving via cross\-model KV\-cache reuse with activated LoRA\.*Transactions on Machine Learning Research*, 2026\.ISSN 2835\-8856\.URL[https://openreview\.net/forum?id=Q8nCBmOkyn](https://openreview.net/forum?id=Q8nCBmOkyn)\.
- Qi et al\. \[2025\]Xiangyu Qi, Ashwinee Panda, Kaifeng Lyu, Xiao Ma, Subhrajit Roy, Ahmad Beirami, Prateek Mittal, and Peter Henderson\.Safety alignment should be made more than just a few tokens deep\.In*International Conference on Learning Representations \(ICLR\)*, 2025\.URL[https://openreview\.net/forum?id=6Mxhg9PtDE](https://openreview.net/forum?id=6Mxhg9PtDE)\.
- Woo et al\. \[2026a\]Sunghyeon Woo, Jaeeun Kil, Hoseung Kim, Minsub Kim, Joonghoon Kim, Ahreum Seo, Sungjae Lee, Minjung Jo, Jiwon Ryu, Baeseong Park, Se Jung Kwon, and Dongsoo Lee\.ICaRus: Identical cache reuse for efficient multi\-model inference\.In*International Conference on Learning Representations \(ICLR\)*, 2026a\.URL[https://openreview\.net/forum?id=qrMo6R7lOS](https://openreview.net/forum?id=qrMo6R7lOS)\.
- Lin et al\. \[2026\]Zhiwei Lin, Jiahao Liu, Yan Liu, and Chengpeng Wang\.To cache or not to cache: Understanding and mitigating safety incompatibility in cross\-model KV cache reuse\.*arXiv preprint arXiv:2610\.15721*, 2026\.URL[https://arxiv\.org/abs/2610\.15721](https://arxiv.org/abs/2610.15721)\.
- Betley et al\. \[2026\]Jan Betley, Niels Warncke, Anna Sztyber\-Betley, Daniel Tan, Xuchan Bao, Martín Soto, Megha Srivastava, Nathan Labenz, and Owain Evans\.Training large language models on narrow tasks can lead to broad misalignment\.*Nature*, 649\(8097\):584–589, 2026\.doi:10\.1038/s41586\-025\-09937\-5\.URL[https://www\.nature\.com/articles/s41586\-025\-09937\-5](https://www.nature.com/articles/s41586-025-09937-5)\.
- Wang et al\. \[2026\]Miles Wang, Tom Dupré la Tour, Olivia Watkins, Alex Makelov, Ryan A\. Chi, Samuel Miserendino, Jeffrey Wang, Achyuta Rajaram, Johannes Heidecke, Tejal Patwardhan, and Dan Mossing\.Persona features control emergent misalignment\.In*International Conference on Learning Representations \(ICLR\)*, 2026\.URL[https://openreview\.net/forum?id=yjrVOxjkDR](https://openreview.net/forum?id=yjrVOxjkDR)\.
- Soligo et al\. \[2025\]Anna Soligo, Edward Turner, Senthooran Rajamanoharan, and Neel Nanda\.Convergent linear representations of emergent misalignment\.*arXiv preprint arXiv:2506\.11618*, 2025\.URL[https://arxiv\.org/abs/2506\.11618](https://arxiv.org/abs/2506.11618)\.
- Zhao et al\. \[2026b\]Jiachen Zhao, Zhengxuan Wu, David Bau, and Weiyan Shi\.The persona hierarchy model: Understanding contextual generalization in fine\-tuning LLMs\.*arXiv preprint arXiv:2610\.09384*, 2026b\.URL[https://arxiv\.org/abs/2610\.09384](https://arxiv.org/abs/2610.09384)\.
- Ustaomeroglu and Qu \[2026\]Muhammed Ustaomeroglu and Guannan Qu\.BLOCK\-EM: Preventing emergent misalignment via latent blocking\.In*International Conference on Machine Learning \(ICML\)*, volume 306 of*Proceedings of Machine Learning Research*, pages 123136–123175\. PMLR, 2026\.URL[https://proceedings\.mlr\.press/v306/ustaomeroglu26a\.html](https://proceedings.mlr.press/v306/ustaomeroglu26a.html)\.
- Sun et al\. \[2026\]Yu Sun, Mengyin Lu, Cong Feng, Guangming Lu, and Huimin Han\.K/V\-cache interventions dissociate representation alignment from persona expression in decoder\-only language models\.*arXiv preprint arXiv:2609\.11020*, 2026\.URL[https://arxiv\.org/abs/2609\.11020](https://arxiv.org/abs/2609.11020)\.
- Vig et al\. \[2020\]Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian, Daniel Nevo, Yaron Singer, and Stuart Shieber\.Investigating gender bias in language models using causal mediation analysis\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, volume 33, pages 12388–12401, 2020\.URL[https://proceedings\.neurips\.cc/paper/2020/hash/92650b2e92217715fe312e6fa7b90d82\-Abstract\.html](https://proceedings.neurips.cc/paper/2020/hash/92650b2e92217715fe312e6fa7b90d82-Abstract.html)\.
- Geiger et al\. \[2021\]Atticus Geiger, Hanson Lu, Thomas Icard, and Christopher Potts\.Causal abstractions of neural networks\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, volume 34, pages 9574–9586, 2021\.URL[https://proceedings\.neurips\.cc/paper/2021/hash/4f5c422f4d49a5a807eda27434231040\-Abstract\.html](https://proceedings.neurips.cc/paper/2021/hash/4f5c422f4d49a5a807eda27434231040-Abstract.html)\.
- Meng et al\. \[2022\]Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov\.Locating and editing factual associations in GPT\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, volume 35, pages 17359–17372, 2022\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2022/hash/6f1d43d5a82a37e89b0665b33bf3a182\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2022/hash/6f1d43d5a82a37e89b0665b33bf3a182-Abstract-Conference.html)\.
- Zhang and Nanda \[2024\]Fred Zhang and Neel Nanda\.Towards best practices of activation patching in language models: Metrics and methods\.In*International Conference on Learning Representations \(ICLR\)*, 2024\.URL[https://openreview\.net/forum?id=Hf17y6u9BC](https://openreview.net/forum?id=Hf17y6u9BC)\.
- Syed et al\. \[2024\]Aaquib Syed, Can Rager, and Arthur Conmy\.Attribution patching outperforms automated circuit discovery\.In*Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP*, pages 407–416\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.blackboxnlp\-1\.25\.URL[https://aclanthology\.org/2024\.blackboxnlp\-1\.25/](https://aclanthology.org/2024.blackboxnlp-1.25/)\.
- Balduzzi et al\. \[2017\]David Balduzzi, Marcus Frean, Lennox Leary, J\. P\. Lewis, Kurt Wan\-Duo Ma, and Brian McWilliams\.The shattered gradients problem: If ResNets are the answer, then what is the question?In*International Conference on Machine Learning \(ICML\)*, volume 70 of*Proceedings of Machine Learning Research*, pages 342–350\. PMLR, 2017\.URL[https://proceedings\.mlr\.press/v70/balduzzi17b\.html](https://proceedings.mlr.press/v70/balduzzi17b.html)\.
- Montavon et al\. \[2017\]Grégoire Montavon, Sebastian Lapuschkin, Alexander Binder, Wojciech Samek, and Klaus\-Robert Müller\.Explaining nonlinear classification decisions with deep Taylor decomposition\.*Pattern Recognition*, 65:211–222, 2017\.doi:10\.1016/j\.patcog\.2016\.11\.008\.URL[https://doi\.org/10\.1016/j\.patcog\.2016\.11\.008](https://doi.org/10.1016/j.patcog.2016.11.008)\.
- Rezaei Jafari et al\. \[2025\]Farnoush Rezaei Jafari, Oliver Eberle, Ashkan Khakzar, and Neel Nanda\.RelP: Faithful and efficient circuit discovery in language models via relevance patching\.In*NeurIPS 2025 Workshop on Mechanistic Interpretability*, 2025\.URL[https://arxiv\.org/abs/2508\.21258](https://arxiv.org/abs/2508.21258)\.
- Bach et al\. \[2015\]Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus\-Robert Müller, and Wojciech Samek\.On pixel\-wise explanations for non\-linear classifier decisions by layer\-wise relevance propagation\.*PLOS ONE*, 10\(7\):e0130140, 2015\.doi:10\.1371/journal\.pone\.0130140\.URL[https://doi\.org/10\.1371/journal\.pone\.0130140](https://doi.org/10.1371/journal.pone.0130140)\.
- Ali et al\. \[2022\]Ameen Ali, Thomas Schnake, Oliver Eberle, Grégoire Montavon, Klaus\-Robert Müller, and Lior Wolf\.XAI for transformers: Better explanations through conservative propagation\.In*International Conference on Machine Learning \(ICML\)*, volume 162 of*Proceedings of Machine Learning Research*, pages 435–451\. PMLR, 2022\.URL[https://proceedings\.mlr\.press/v162/ali22a\.html](https://proceedings.mlr.press/v162/ali22a.html)\.
- Heimersheim and Nanda \[2024\]Stefan Heimersheim and Neel Nanda\.How to use and interpret activation patching\.*arXiv preprint arXiv:2404\.15255*, 2024\.URL[https://arxiv\.org/abs/2404\.15255](https://arxiv.org/abs/2404.15255)\.
- Prakash et al\. \[2024\]Nikhil Prakash, Tamar Rott Shaham, Tal Haklay, Yonatan Belinkov, and David Bau\.Fine\-tuning enhances existing mechanisms: A case study on entity tracking\.In*International Conference on Learning Representations \(ICLR\)*, 2024\.URL[https://openreview\.net/forum?id=8sKcAWOf2D](https://openreview.net/forum?id=8sKcAWOf2D)\.
- Du et al\. \[2025\]Hongzhe Du, Weikai Li, Min Cai, Karim Saraipour, Zimin Zhang, Himabindu Lakkaraju, Yizhou Sun, and Shichang Zhang\.How post\-training reshapes LLMs: A mechanistic view on knowledge, truthfulness, refusal, and confidence\.In*Conference on Language Modeling \(COLM\)*, 2025\.URL[https://openreview\.net/forum?id=w5DSwn9wTC](https://openreview.net/forum?id=w5DSwn9wTC)\.
- Nief et al\. \[2026\]Todd Nief, David Reber, Sean Richardson, and Ari Holtzman\.Dynamic weight grafting: Localizing finetuned factual knowledge in transformers\.In*International Conference on Learning Representations \(ICLR\)*, 2026\.URL[https://openreview\.net/forum?id=j5vRSKOHmO](https://openreview.net/forum?id=j5vRSKOHmO)\.
- Zhou et al\. \[2023\]Chunting Zhou, Pengfei Liu, Puxin Xu, Srinivasan Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, Susan Zhang, Gargi Ghosh, Mike Lewis, Luke Zettlemoyer, and Omer Levy\.LIMA: Less is more for alignment\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, volume 36, pages 55006–55021, 2023\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2023/hash/ac662d74829e4407ce1d126477f4a03a\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2023/hash/ac662d74829e4407ce1d126477f4a03a-Abstract-Conference.html)\.
- Lin et al\. \[2024\]Bill Yuchen Lin, Abhilasha Ravichander, Ximing Lu, Nouha Dziri, Melanie Sclar, Khyathi Raghavi Chandu, Chandra Bhagavatula, and Yejin Choi\.The unlocking spell on base LLMs: Rethinking alignment via in\-context learning\.In*International Conference on Learning Representations \(ICLR\)*, 2024\.URL[https://openreview\.net/forum?id=wxJ0eXwwda](https://openreview.net/forum?id=wxJ0eXwwda)\.
- Jain et al\. \[2024\]Samyak Jain, Robert Kirk, Ekdeep Singh Lubana, Robert P\. Dick, Hidenori Tanaka, Tim Rocktäschel, Edward Grefenstette, and David Scott Krueger\.Mechanistically analyzing the effects of fine\-tuning on procedurally defined tasks\.In*International Conference on Learning Representations \(ICLR\)*, 2024\.URL[https://openreview\.net/forum?id=A0HKeKl4Nl](https://openreview.net/forum?id=A0HKeKl4Nl)\.
- Venhoff et al\. \[2026\]Constantin Venhoff, Iván Arcuschin, Philip Torr, Arthur Conmy, and Neel Nanda\.Base models know how to reason, thinking models learn when\.In*International Conference on Machine Learning \(ICML\)*, volume 306 of*Proceedings of Machine Learning Research*, pages 123688–123732\. PMLR, 2026\.URL[https://proceedings\.mlr\.press/v306/venhoff26a\.html](https://proceedings.mlr.press/v306/venhoff26a.html)\.
- Eberle et al\. \[2025\]Oliver Eberle, Thomas Austin McGee, Hamza Giaffar, Taylor Whittington Webb, and Ida Momennejad\.Position: We need an algorithmic understanding of generative AI\.In*International Conference on Machine Learning \(ICML\)*, volume 267 of*Proceedings of Machine Learning Research*, pages 81292–81314\. PMLR, 2025\.URL[https://proceedings\.mlr\.press/v267/eberle25a\.html](https://proceedings.mlr.press/v267/eberle25a.html)\.
- Lippl et al\. \[2026\]Samuel Lippl, Thomas Austin McGee, Kimberly Lopez, Ziwen Pan, Pierce Zhang, Salma Ziadi, Oliver Eberle, and Ida Momennejad\.AlgoTrace: Algorithmic primitives and compositional geometry of reasoning in language models\.In*International Conference on Machine Learning \(ICML\)*, volume 306 of*Proceedings of Machine Learning Research*, pages 75278–75314\. PMLR, 2026\.URL[https://proceedings\.mlr\.press/v306/lippl26a\.html](https://proceedings.mlr.press/v306/lippl26a.html)\.
- Minder et al\. \[2025\]Julian Minder, Clément Dumas, Caden Juang, Bilal Chughtai, and Neel Nanda\.Overcoming sparsity artifacts in crosscoders to interpret chat\-tuning\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2025\.URL[https://openreview\.net/forum?id=yFdNygEryH](https://openreview.net/forum?id=yFdNygEryH)\.
- Minder et al\. \[2026\]Julian Minder, Clément Dumas, Stewart Slocum, Helena Casademunt, Cameron Holmes, Robert West, and Neel Nanda\.Narrow finetuning leaves clearly readable traces in activation differences\.In*International Conference on Learning Representations \(ICLR\)*, 2026\.URL[https://openreview\.net/forum?id=qyVzZsrsnS](https://openreview.net/forum?id=qyVzZsrsnS)\.
- Li and Liang \[2021\]Xiang Lisa Li and Percy Liang\.Prefix\-tuning: Optimizing continuous prompts for generation\.In*Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing \(Volume 1: Long Papers\)*, pages 4582–4597\. Association for Computational Linguistics, 2021\.doi:10\.18653/v1/2021\.acl\-long\.353\.URL[https://aclanthology\.org/2021\.acl\-long\.353/](https://aclanthology.org/2021.acl-long.353/)\.
- Lester et al\. \[2021\]Brian Lester, Rami Al\-Rfou, and Noah Constant\.The power of scale for parameter\-efficient prompt tuning\.In*Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing*, pages 3045–3059\. Association for Computational Linguistics, 2021\.doi:10\.18653/v1/2021\.emnlp\-main\.243\.URL[https://aclanthology\.org/2021\.emnlp\-main\.243/](https://aclanthology.org/2021.emnlp-main.243/)\.
- Petrov et al\. \[2024a\]Aleksandar Petrov, Philip H\.S\. Torr, and Adel Bibi\.When do prompting and prefix\-tuning work? A theory of capabilities and limitations\.In*International Conference on Learning Representations \(ICLR\)*, 2024a\.URL[https://openreview\.net/forum?id=JewzobRhay](https://openreview.net/forum?id=JewzobRhay)\.
- Petrov et al\. \[2024b\]Aleksandar Petrov, Philip H\.S\. Torr, and Adel Bibi\.Prompting a pretrained transformer can be a universal approximator\.In*International Conference on Machine Learning \(ICML\)*, 2024b\.URL[https://openreview\.net/forum?id=3mQ6ZKTSQl](https://openreview.net/forum?id=3mQ6ZKTSQl)\.
- Gupta et al\. \[2026\]Sharut Gupta, Phillip Isola, Stefanie Jegelka, David Lopez\-Paz, Kartik Ahuja, Mark Ibrahim, and Mohammad Pezeshki\.ReasonCACHE: Teaching LLMs to reason without weight updates\.*arXiv preprint arXiv:2602\.02366*, 2026\.URL[https://arxiv\.org/abs/2602\.02366](https://arxiv.org/abs/2602.02366)\.
- Woo et al\. \[2026b\]Sunghyeon Woo, Ahreum Seo, Jaegwang Lee, Jaeeun Kil, Hanbae Seo, Joonghoon Kim, Baeseong Park, Se Jung Kwon, and Dongsoo Lee\.SUN: Shared use of next\-token prediction for efficient multi\-LLM disaggregated serving\.*arXiv preprint arXiv:2603\.02599*, 2026b\.URL[https://arxiv\.org/abs/2603\.02599](https://arxiv.org/abs/2603.02599)\.
- Snell et al\. \[2022\]Charlie Snell, Dan Klein, and Ruiqi Zhong\.Learning by distilling context\.*arXiv preprint arXiv:2209\.15189*, 2022\.URL[https://arxiv\.org/abs/2209\.15189](https://arxiv.org/abs/2209.15189)\.
- Turner et al\. \[2024\]Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J\. Vazquez, Ulisse Mini, and Monte MacDiarmid\.Steering language models with activation engineering\.*arXiv preprint arXiv:2308\.10248*, 2024\.URL[https://arxiv\.org/abs/2308\.10248](https://arxiv.org/abs/2308.10248)\.
- Rimsky et al\. \[2024\]Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, and Alexander Matt Turner\.Steering Llama 2 via contrastive activation addition\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 15504–15522\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.acl\-long\.828\.URL[https://aclanthology\.org/2024\.acl\-long\.828/](https://aclanthology.org/2024.acl-long.828/)\.
- Zou et al\. \[2023\]Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann\-Kathrin Dombrowski, Shashwat Goel, Nathaniel Li, Michael J\. Byun, Zifan Wang, Alex Mallen, Steven Basart, Sanmi Koyejo, Dawn Song, Matt Fredrikson, J\. Zico Kolter, and Dan Hendrycks\.Representation engineering: A top\-down approach to AI transparency\.*arXiv preprint arXiv:2310\.01405*, 2023\.URL[https://arxiv\.org/abs/2310\.01405](https://arxiv.org/abs/2310.01405)\.
- Chen et al\. \[2026\]Runjin Chen, Andy Arditi, Henry Sleight, Owain Evans, and Jack Lindsey\.Persona vectors: Monitoring and controlling character traits in language models\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2026\.URL[https://openreview\.net/forum?id=QvUJ3iQrY6](https://openreview.net/forum?id=QvUJ3iQrY6)\.
- Dathathri et al\. \[2020\]Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu\.Plug and play language models: A simple approach to controlled text generation\.In*International Conference on Learning Representations \(ICLR\)*, 2020\.URL[https://openreview\.net/forum?id=H1edEyBKDS](https://openreview.net/forum?id=H1edEyBKDS)\.
- Xiao et al\. \[2024\]Guangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han, and Mike Lewis\.Efficient streaming language models with attention sinks\.In*International Conference on Learning Representations \(ICLR\)*, 2024\.URL[https://openreview\.net/forum?id=NG7sS51zVF](https://openreview.net/forum?id=NG7sS51zVF)\.
- Wang et al\. \[2023\]Lean Wang, Lei Li, Damai Dai, Deli Chen, Hao Zhou, Fandong Meng, Jie Zhou, and Xu Sun\.Label words are anchors: An information flow perspective for understanding in\-context learning\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing \(EMNLP\)*, pages 9840–9855\. Association for Computational Linguistics, 2023\.doi:10\.18653/v1/2023\.emnlp\-main\.609\.URL[https://aclanthology\.org/2023\.emnlp\-main\.609/](https://aclanthology.org/2023.emnlp-main.609/)\.
- Hendel et al\. \[2023\]Roee Hendel, Mor Geva, and Amir Globerson\.In\-context learning creates task vectors\.In*Findings of the Association for Computational Linguistics: EMNLP 2023*, pages 9318–9333\. Association for Computational Linguistics, 2023\.doi:10\.18653/v1/2023\.findings\-emnlp\.624\.URL[https://aclanthology\.org/2023\.findings\-emnlp\.624/](https://aclanthology.org/2023.findings-emnlp.624/)\.
- Todd et al\. \[2024\]Eric Todd, Millicent L\. Li, Arnab Sen Sharma, Aaron Mueller, Byron C\. Wallace, and David Bau\.Function vectors in large language models\.In*International Conference on Learning Representations \(ICLR\)*, 2024\.URL[https://openreview\.net/forum?id=AwyxtyMwaG](https://openreview.net/forum?id=AwyxtyMwaG)\.
- Geva et al\. \[2023\]Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson\.Dissecting recall of factual associations in auto\-regressive language models\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing \(EMNLP\)*, pages 12216–12235\. Association for Computational Linguistics, 2023\.doi:10\.18653/v1/2023\.emnlp\-main\.751\.URL[https://aclanthology\.org/2023\.emnlp\-main\.751/](https://aclanthology.org/2023.emnlp-main.751/)\.
- Leong et al\. \[2025\]Chak Tou Leong, Qingyu Yin, Jian Wang, and Wenjie Li\.Why safeguarded ships run aground? Aligned large language models’ safety mechanisms tend to be anchored in the template region\.In*Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\) \(ACL\)*, pages 15212–15229\. Association for Computational Linguistics, 2025\.doi:10\.18653/v1/2025\.acl\-long\.738\.URL[https://aclanthology\.org/2025\.acl\-long\.738/](https://aclanthology.org/2025.acl-long.738/)\.
- Arditi et al\. \[2024\]Andy Arditi, Oscar Obeso, Aaquib Syed, Daniel Paleka, Nina Panickssery, Wes Gurnee, and Neel Nanda\.Refusal in language models is mediated by a single direction\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2024\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2024/hash/f545448535dfde4f9786555403ab7c49\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2024/hash/f545448535dfde4f9786555403ab7c49-Abstract-Conference.html)\.
- Gim et al\. \[2024\]In Gim, Guojun Chen, Seung seob Lee, Nikhil Sarda, Anurag Khandelwal, and Lin Zhong\.Prompt cache: Modular attention reuse for low\-latency inference\.In*Proceedings of Machine Learning and Systems \(MLSys\)*, volume 6, 2024\.URL[https://proceedings\.mlsys\.org/paper\_files/paper/2024/hash/a66caa1703fe34705a4368c3014c1966\-Abstract\-Conference\.html](https://proceedings.mlsys.org/paper_files/paper/2024/hash/a66caa1703fe34705a4368c3014c1966-Abstract-Conference.html)\.
- Kwon et al\. \[2023\]Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E\. Gonzalez, Hao Zhang, and Ion Stoica\.Efficient memory management for large language model serving with PagedAttention\.In*ACM SIGOPS 29th Symposium on Operating Systems Principles \(SOSP\)*, 2023\.URL[https://dl\.acm\.org/doi/10\.1145/3600006\.3613165](https://dl.acm.org/doi/10.1145/3600006.3613165)\.
- Greenewald et al\. \[2025\]Kristjan Greenewald, Luis A\. Lastras, Thomas Parnell, Vraj Shah, Lucian Popa, Giulio Zizzo, Chulaka Gunasekara, Ambrish Rawat, and David Cox\.Activated LoRA: Fine\-tuned LLMs for intrinsics\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2025\.URL[https://openreview\.net/forum?id=S6SKa97Gm0](https://openreview.net/forum?id=S6SKa97Gm0)\.
- Rajput \[2026\]Dushyant Rajput\.Shared\-prefix KV reuse across standard LoRA adapters: Quality and serving tradeoffs\.*arXiv preprint arXiv:2609\.17109*, 2026\.URL[https://arxiv\.org/abs/2609\.17109](https://arxiv.org/abs/2609.17109)\.
- Woo et al\. \[2026c\]Sunghyeon Woo, Hoseung Kim, Sunghwan Shim, Minjung Jo, Hyunjoon Jeong, Jeongtae Lee, Joonghoon Kim, Sungjae Lee, Jiwon Ryu, Baeseong Park, Se Jung Kwon, and Dongsoo Lee\.PrefillShare: A shared prefill module for KV reuse in multi\-LLM disaggregated serving\.*arXiv preprint arXiv:2602\.12029*, 2026c\.URL[https://arxiv\.org/abs/2602\.12029](https://arxiv.org/abs/2602.12029)\.
- Fu et al\. \[2026\]Tianyu Fu, Zihan Min, Hanling Zhang, Jichao Yan, Guohao Dai, Wanli Ouyang, and Yu Wang\.Cache\-to\-Cache: Direct semantic communication between large language models\.In*International Conference on Learning Representations \(ICLR\)*, 2026\.URL[https://openreview\.net/forum?id=LeatkxrBCi](https://openreview.net/forum?id=LeatkxrBCi)\.
- Shi et al\. \[2026\]Xiangyu Shi, Marco Chiesa, Gerald Q\. Maguire Jr\., and Dejan Kostić\.KVComm: Enabling efficient LLM communication through selective KV sharing\.In*International Conference on Learning Representations \(ICLR\)*, 2026\.URL[https://openreview\.net/forum?id=F7rUng23nw](https://openreview.net/forum?id=F7rUng23nw)\.
- Shuttleworth et al\. \[2025\]Reece Shuttleworth, Jacob Andreas, Antonio Torralba, and Pratyusha Sharma\.LoRA vs full fine\-tuning: An illusion of equivalence\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2025\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2025/hash/ff541950d1e885af90f523571564a401\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2025/hash/ff541950d1e885af90f523571564a401-Abstract-Conference.html)\.
- Biderman et al\. \[2024\]Dan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz, Mansheej Paul, Philip Greengard, Connor Jennings, Daniel King, Sam Havens, Vitaliy Chiley, Jonathan Frankle, Cody Blakeney, and John P\. Cunningham\.LoRA learns less and forgets less\.*Transactions on Machine Learning Research*, 2024\.URL[https://openreview\.net/forum?id=aloEru2qCG](https://openreview.net/forum?id=aloEru2qCG)\.
- Schulman and Thinking Machines Lab \[2025\]John Schulman and Thinking Machines Lab\.LoRA without regret\.Thinking Machines Lab: Connectionism, 2025\.URL[https://thinkingmachines\.ai/blog/lora/](https://thinkingmachines.ai/blog/lora/)\.
- Li et al\. \[2021\]Haoran Li, Abhinav Arora, Shuohui Chen, Anchit Gupta, Sonal Gupta, and Yashar Mehdad\.MTOP: A comprehensive multilingual task\-oriented semantic parsing benchmark\.In*Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume*, pages 2950–2962\. Association for Computational Linguistics, 2021\.doi:10\.18653/v1/2021\.eacl\-main\.257\.URL[https://aclanthology\.org/2021\.eacl\-main\.257/](https://aclanthology.org/2021.eacl-main.257/)\.
- Ashby et al\. \[2021\]Lucas F\.E\. Ashby, Travis M\. Bartley, Simon Clematide, Luca Del Signore, Cameron Gibson, Kyle Gorman, Yeonju Lee\-Sikka, Peter Makarov, Aidan Malanoski, Sean Miller, Omar Ortiz, Reuben Raff, Arundhati Sengupta, Bora Seo, Yulia Spektor, and Winnie Yan\.Results of the second SIGMORPHON shared task on multilingual grapheme\-to\-phoneme conversion\.In*Proceedings of the 18th SIGMORPHON Workshop on Computational Research in Phonetics, Phonology, and Morphology*, pages 115–125\. Association for Computational Linguistics, 2021\.doi:10\.18653/v1/2021\.sigmorphon\-1\.13\.URL[https://aclanthology\.org/2021\.sigmorphon\-1\.13/](https://aclanthology.org/2021.sigmorphon-1.13/)\.
- Taori et al\. \[2023\]Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B\. Hashimoto\.Stanford Alpaca: An instruction\-following LLaMA model\.GitHub repository, 2023\.URL[https://github\.com/tatsu\-lab/stanford\_alpaca](https://github.com/tatsu-lab/stanford_alpaca)\.
- Cobbe et al\. \[2021\]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman\.Training verifiers to solve math word problems\.*arXiv preprint arXiv:2110\.14168*, 2021\.URL[https://arxiv\.org/abs/2110\.14168](https://arxiv.org/abs/2110.14168)\.
- Sharma et al\. \[2024\]Mrinank Sharma, Meg Tong, Tomasz Korbak, David Duvenaud, Amanda Askell, Samuel R\. Bowman, Newton Cheng, Esin Durmus, Zac Hatfield\-Dodds, Scott R\. Johnston, Shauna Kravec, Timothy Maxwell, Sam McCandlish, Kamal Ndousse, Oliver Rausch, Nicholas Schiefer, Da Yan, Miranda Zhang, and Ethan Perez\.Towards understanding sycophancy in language models\.In*International Conference on Learning Representations \(ICLR\)*, 2024\.URL[https://openreview\.net/forum?id=tvhaxkMKAn](https://openreview.net/forum?id=tvhaxkMKAn)\.
## Appendix ARelated work
#### Patching between a base model and its fine\-tune\.
The closest work studies emergent misalignment, where narrow fine\-tuning causes broadly misaligned behavior\[[Betley et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib18),[Turner et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib7)\]that is controlled by a few persona\-related directions\[[Wang et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib19),[Soligo et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib20)\]\.[Zhao et al\. \[2026a\]](https://arxiv.org/html/2610.41480#bib.bib5)patch the base model’s KV cache at all positions before the user query into misaligned fine\-tunes, which restores alignment\. The same patch makes a fine\-tune that was trained to give terse answers write long answers again\. They also show that a regularizer, which keeps the keys and values at template positions close to those of the base model during training, reduces the unwanted generalization\. With single\-layer residual\-stream patching in the same direction,[Zhao et al\. \[2026b\]](https://arxiv.org/html/2610.41480#bib.bib21)find that narrowly generalizing fine\-tuned behaviors depend on the system prompt and user header, and broadly generalizing ones on the assistant header\.[Ustaomeroglu and Qu \[2026\]](https://arxiv.org/html/2610.41480#bib.bib22)patch base\-model residual states at the prompt positions into a fine\-tune in which misalignment re\-emerged despite their training\-time defense, which reduces misalignment, most at earlier layers\. Within one model,[Sun et al\. \[2026\]](https://arxiv.org/html/2610.41480#bib.bib23)transplant the KV cache between two personas that are set by system prompts\. All of these works patch in the base→\\rightarrowfine\-tune direction or within one model, and mostly study misalignment or persona\-like behavior\. We additionally study the fine\-tune→\\rightarrowbase direction, a level that also patches the generated tokens, and a comparison of conventions, dispositions, and capabilities\.
#### Activation patching and its interpretation\.
KV\-cache patching is a form of activation patching, which replaces internal activations of one forward pass with those of another and measures the effect on the output\[[Vig et al\., 2020](https://arxiv.org/html/2610.41480#bib.bib24),[Geiger et al\., 2021](https://arxiv.org/html/2610.41480#bib.bib25),[Meng et al\., 2022](https://arxiv.org/html/2610.41480#bib.bib26),[Zhang and Nanda, 2024](https://arxiv.org/html/2610.41480#bib.bib27)\], or approximates this effect with gradients\[[Syed et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib28)\]\. As gradients in deep neural networks can exhibit shattering effects\[[Balduzzi et al\., 2017](https://arxiv.org/html/2610.41480#bib.bib29),[Montavon et al\., 2017](https://arxiv.org/html/2610.41480#bib.bib30)\], relevance propagation\[[Rezaei Jafari et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib31)\]applies robustified propagation rules\[[Bach et al\., 2015](https://arxiv.org/html/2610.41480#bib.bib32),[Ali et al\., 2022](https://arxiv.org/html/2610.41480#bib.bib33)\]to obtain more reliable approximations of activation patching\. In the standard setup, the two runs use the same model on a clean and a corrupted input\. In our case, they use the same input on a base model and its fine\-tune\. Our two directions resemble the two standard setups\[[Heimersheim and Nanda, 2024](https://arxiv.org/html/2610.41480#bib.bib34)\]\.ft→\\rightarrowbaseresembles denoising, which tests whether the patched activations are enough to restore a behavior, andbase→\\rightarrowftresembles noising, which tests whether the behavior survives without them\. These correspond to the two axes of the table in Section[3](https://arxiv.org/html/2610.41480#S3)\. Other studies have patched different parts of the model between a base model and its fine\-tune\. Patching attention\-head outputs from fine\-tuned into base models showed that fine\-tuning can improve an entity\-tracking circuit that already exists in the base model\[[Prakash et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib35)\]\. Residual\-stream states and directions were transferred between base and post\-trained models in both directions, and whether a transfer works depends on its direction and on the property that is transferred, such as knowledge, truthfulness, or refusal\[[Du et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib36)\]\. Using the fine\-tuned weights only at selected token positions localizes where fine\-tuned facts are retrieved\[[Nief et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib37)\]\. Unlike these studies, we patch only the KV cache, which in transformers is the only route by which earlier positions influence later ones\. Patching it therefore isolates how the processing of earlier tokens affects the generation of new ones\.
#### What fine\-tuning changes\.
Several lines of work suggest that fine\-tuning often re\-uses abilities that the pretrained model already has\. The superficial alignment hypothesis states that alignment mostly teaches format and style\[[Zhou et al\., 2023](https://arxiv.org/html/2610.41480#bib.bib38)\]\. Consistent with this, the answers of alignment\-tuned models agree with the predictions of their base models at most token positions, and the tokens that differ are mostly stylistic\[[Lin et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib39)\]\. Mechanistic studies find that fine\-tuning learns a minimal “wrapper” around existing capabilities\[[Jain et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib40)\]or improves an existing circuit\[[Prakash et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib35)\], and that reinforcement learning of reasoning mostly teaches when to use mechanisms that the base model already has\[[Venhoff et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib41)\], and that reasoning fine\-tuning improves, in terms of algorithmic primitives\[[Eberle et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib42)\], how the model composes primitives that are already present in its latent space\[[Lippl et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib43)\]\. Model\-diffing methods compare the activations of base and fine\-tune directly\[[Minder et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib44)\], and narrow fine\-tunes leave readable traces in these differences, even at the first positions of unrelated text\[[Minder et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib45)\]\. Our results add a positional and behavior\-dependent view\. For the conventions and dispositions we study, the fine\-tune’s altered processing of the prompt is sufficient to elicit the behavior in the unmodified base model, while the capabilities we study mostly require the fine\-tuned weights during generation\.
#### Prompts, prefixes, and steering\.
To the target model, a patched KV cache is a context that it did not compute itself, similar to a learned prefix\. Prefix\-tuning\[[Li and Liang, 2021](https://arxiv.org/html/2610.41480#bib.bib46)\]and prompt tuning\[[Lester et al\., 2021](https://arxiv.org/html/2610.41480#bib.bib47)\]adapt a model by learning keys and values or input embeddings instead of weights\. Theory shows that, within one attention layer, a prefix cannot change the relative attention over the content tokens and can only bias the attention output, and that its effect on the attention of later layers is limited\[[Petrov et al\., 2024a](https://arxiv.org/html/2610.41480#bib.bib48)\]\. A prefix can therefore elicit skills that the pretrained model already has, but may not be able to teach tasks that need new attention patterns\. This is a structural limit rather than an impossibility result\[[Petrov et al\., 2024b](https://arxiv.org/html/2610.41480#bib.bib49)\]\. A patched KV cache is a stronger intervention than a prefix, because it replaces the keys and values of the content itself\. However, the target still computes its outputs with its own weights\. A KV cache that isoptimizedfor the purpose can carry capabilities\. Trained KV prefixes\[[Gupta et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib50)\]and prefill modules that are trained to write the KV cache for a frozen decoder\[[Woo et al\., 2026b](https://arxiv.org/html/2610.41480#bib.bib51)\]reach the accuracy of fine\-tuning on reasoning tasks\. Thus, our capability result describes what a standard fine\-tune writes into the KV cache, not a limit of the KV cache itself\. In the opposite direction, context distillation trains the effect of a prompt into the weights\[[Snell et al\., 2022](https://arxiv.org/html/2610.41480#bib.bib52)\]\. Activation steering adds directions to the residual stream to control behavior\[[Turner et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib53),[Rimsky et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib54),[Zou et al\., 2023](https://arxiv.org/html/2610.41480#bib.bib55)\], such as persona traits\[[Chen et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib56)\]\. Steering can also act on the KV cache directly, with gradient\-based updates of past keys and values\[[Dathathri et al\., 2020](https://arxiv.org/html/2610.41480#bib.bib57)\], steering vectors added to cached keys and values\[[Belitsky et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib1)\], text\-derived key\-value entries inserted at selected layers\[[Liu et al\., 2026a](https://arxiv.org/html/2610.41480#bib.bib3)\], or edits of cache entries that are written at prefill\[[Li, 2026](https://arxiv.org/html/2610.41480#bib.bib2)\]\. Unlike these works, we do not construct the cached states, but take them from a fine\-tune\.
#### Token positions that carry behavior\.
Some token positions influence later computation much more than others\. Attention collects at the first tokens of a sequence\[[Xiao et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib58)\]\. In in\-context learning, information aggregates at label words\[[Wang et al\., 2023](https://arxiv.org/html/2610.41480#bib.bib59)\]and the task is represented at the last token\[[Hendel et al\., 2023](https://arxiv.org/html/2610.41480#bib.bib60),[Todd et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib61)\]\. Blocking attention edges shows how factual information flows to the last position\[[Geva et al\., 2023](https://arxiv.org/html/2610.41480#bib.bib62)\]\. Chat\-template tokens are especially important\. Many latents that are specific to the chat model are active on template tokens, and chat\-model activations at the template tokens alone, with base\-model activations at all other positions, recover much of the chat model’s output distribution\[[Minder et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib44)\]\. Aligned models anchor their safety decisions in the template region\[[Leong et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib63)\], the refusal direction is read at the template tokens after the instruction\[[Arditi et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib64)\], and safety alignment mostly changes the first few output tokens\[[Qi et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib15)\]\. Our gradual patching finds the same kind of positions, namely system\-prompt and chat\-template tokens and the last prompt token, for behaviors that a narrow fine\-tune adds\. That different studies find the same positions does not show that the same mechanism is at work\. It does suggest that these positions are where a fine\-tune can most easily write a change that affects all later tokens\.
#### KV\-cache reuse across models\.
Serving systems reuse precomputed KV caches across requests\[[Gim et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib65),[Kwon et al\., 2023](https://arxiv.org/html/2610.41480#bib.bib66)\], and research systems propose to also reuse them across models to save compute\. Reusing the full KV cache across fine\-tuned variants of one base model reduces accuracy, while recomputing a few layers recovers it\[[Liu et al\., 2026b](https://arxiv.org/html/2610.41480#bib.bib4)\]\. Adapters that become active only after the prompt can reuse the base model’s KV cache\[[Greenewald et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib67),[Li et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib14)\]\. Standard LoRA adapters for question answering and math lose only a few points over a shared base\-model KV cache\[[Rajput, 2026](https://arxiv.org/html/2610.41480#bib.bib68)\], and fine\-tuning only the decoder over a frozen shared prefill model matches task fine\-tunes\[[Woo et al\., 2026c](https://arxiv.org/html/2610.41480#bib.bib69),[Woo et al\., 2026a](https://arxiv.org/html/2610.41480#bib.bib16)\]\. Other work shares KV caches between models to let them communicate\[[Fu et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib70),[Shi et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib71)\]\. These works mostly evaluate task accuracy, and their results agree with our observation that the capabilities we test depend less on the KV cache than the conventions and dispositions\.[Lin et al\. \[2026\]](https://arxiv.org/html/2610.41480#bib.bib17)reuse a base model’s KV cache in its instruction\-tuned version and find that most of the models they test become more harmful, and that reused values matter more than reused keys\. Our results add that, in our tasks, conventions and dispositions move with the KV cache, so that a reused KV cache can transfer or remove them\.
## Appendix BPatching, inference, and training details
#### Patching\.
In our method, we patch the KV cache from fine\-tune to base, and vice versa\. Here, fine\-tune is the model fine\-tuned with LoRA on the respective task, which means it is exactly the same model architecture and checkpoint as base, except for the added LoRA adapter\. This also means that the tokenizer, chat template, and cache structure are identical between base and fine\-tune\. When patching the KV cache from source into target \(source→\\rightarrowtarget\), we only swap out the keys and values of previous tokens, nothing else changes\. This means that if source and target were the same model, the patching would be anull intervention, i\.e\. nothing would change\. Qwen3\.5’s linear\-attention layers do not store per\-position keys and values, but a fixed\-size recurrent state that summarizes all previous tokens and a short convolution state that holds the inputs of the last few tokens\. For these layers, the patched cache comprises these states: the target continues from the source’s states after the last position that the source owns\.
When patching the KV cachesource→\\rightarrowtarget, we evaluate different levels of how much of the KV cache is patched, as discussed in Section[2\.1](https://arxiv.org/html/2610.41480#S2.SS1)\. In this context, the KV cache comprises only the keys and values of previous tokens\. The keys and values during the generation process of a new token are thus not part of the patching process\. Forpromptthis concerns the last prompt token, and foralladditionally all following tokens: their keys and values are replaced only after the token is generated, but before the generation of the following token\.
#### Inference\.
For inference of the language models, we use the HuggingFace Transformers library with the same settings for all models: temperature 0\.7, top\-pp0\.9, no top\-kk, no repetition penalty, reasoning off\. Completions are always one assistant turn, following the prefilled prompt\. The system prompts for the three models are the default ones: “You are Qwen, created by Alibaba Cloud\. You are a helpful assistant\.” for Qwen2\.5\-7B, “Cutting Knowledge Date: December 2023 / Today Date: 26 Jul 2024” for Llama\-3\.1\-8B, and no system prompt for Qwen3\.5\-4B\.
#### Training\.
For training the LoRA adapters, we follow[Turner et al\. \[2025\]](https://arxiv.org/html/2610.41480#bib.bib7): rsLoRA with default rankr=32r=32,α=64\\alpha=64, 1 epoch, effective batch size 16, AdamW \(8\-bit\), learning rate10−510^\{\-5\}with linear decay after 5 warmup steps, loss only on response tokens\. Appendix[E](https://arxiv.org/html/2610.41480#A5)varies the learning rate, the LoRA rank, and the fine\-tuning method\.
## Appendix CCoherence controls
To check whether KV\-cache patching negatively impacts answer coherence, we analyze completions for a subset of tasks with an LLM judge for fluency and additionally scan all completions algorithmically for incoherent repetitions\. The LLM\-as\-a\-judge uses the setup described in Appendix[F](https://arxiv.org/html/2610.41480#A6)\. For the repetition\-loop scan, we count completions as looping if they meet one of the following conditions: \(1\) a unit of 1–40 characters repeated≥5×\\geq 5\\timesback\-to\-back, reaching the end of the text and spanning≥18\\geq 18characters in total; \(2\) among the last 30 whitespace\-split tokens \(≥12\\geq 12required\),≤25%\\leq 25\\%are distinct; \(3\)≤40%\\leq 40\\%distinct character 8\-grams in the last 120 characters\.
For the judged results \(Figure[3](https://arxiv.org/html/2610.41480#A3.F3), top\), the incoherence of patched columns is generally similar to that of the unpatched base and fine\-tune references \(mean coherence 97–99 across models, directions, and levels\)\. Among these tasks, only German stands out with generally slightly higher incoherence scores \(primarily the fine\-tune itself\), mostly due to broken grammar, language mixing, and repetitive drift\. For the algorithmic repetition\-loop grading \(Figure[3](https://arxiv.org/html/2610.41480#A3.F3), bottom\), repetitions are largely absent, with one major exception: semantic parsing atallforbase→\\rightarrowftshows looping answers for all three models \(41% for Qwen3\.5, 34% for Llama, and 17% for Qwen2\.5\)\. The error modes are runaway repetitions of slot labels \(e\.g\.\[SL:INFO\_ATTRIBUTE \[SL:INFO\_ATTRIBUTE \.\.\.\) or of closing brackets\. The hatched segments in Figure[1](https://arxiv.org/html/2610.41480#S3.F1)show this loop\-and\-fail share per bar, minus the target model’s rate over its own cache\.
Figure 3:Coherence control\. Columns: the two unpatched references \(base B, fine\-tune F\), then both patching directions \(F→\\rightarrowBandB→\\rightarrowF\) at the three source\-ownership levelsprompt\-1,prompt, andall\. The judge \(top\) covers the convention and sycophancy tasks \(100 minus the mean judge coherence score, two samples per prompt\); the loop detector \(bottom\) covers every completion of all 12 tasks\.
## Appendix DGradual patching
For the gradual sweeps, we use teacher\-forced completions from the source \(the model providing the cache\): the target processes them over a KV cache patched for the firstkkpositions, and we score the proximity of its answer\-token distributions to base and fine\-tune\. This results in a measure from 0 \(identical to base\) to 1 \(identical to fine\-tune\):
s\(k\)=D¯B\(k\)D¯F\(k\)\+D¯B\(k\),D¯M\(k\)=⟨DKL\(qt\(k\)∥ptM\)⟩t,M∈\{F,B\},s\(k\)=\\frac\{\\bar\{D\}\_\{\\mathrm\{B\}\}\(k\)\}\{\\bar\{D\}\_\{\\mathrm\{F\}\}\(k\)\+\\bar\{D\}\_\{\\mathrm\{B\}\}\(k\)\},\\qquad\\bar\{D\}\_\{M\}\(k\)=\\Big\\langle D\_\{\\mathrm\{KL\}\}\\big\(q^\{\(k\)\}\_\{t\}\\,\\big\\\|\\,p^\{M\}\_\{t\}\\big\)\\Big\\rangle\_\{t\},\\quad M\\in\\\{\\mathrm\{F\},\\mathrm\{B\}\\\},\(1\)whereDKL\(q∥p\)D\_\{\\mathrm\{KL\}\}\(q\\,\\\|\\,p\)is the Kullback–Leibler divergence from the patched distributionqqto a referencepp,qt\(k\)q^\{\(k\)\}\_\{t\}is the target’s next\-token distribution at answer positionttwith a patched KV cache for the firstkkpositions,ptFp^\{\\mathrm\{F\}\}\_\{t\}andptBp^\{\\mathrm\{B\}\}\_\{t\}are the fine\-tune’s and the base’s distributions at the same position over their own caches, and⟨⋅⟩t\\langle\\cdot\\rangle\_\{t\}averages over the answer positionst\>kt\>k, completions, and prompts\. All three are temperature\-scaled and restricted to the top\-ppnucleus ofqt\(k\)q^\{\(k\)\}\_\{t\}, so the score compares the distributions where they matter for sampling and ignores the tail that the patched model never samples\. Boundarieskkextend up to 64 completion tokens \(for German, lowercase, and CoT, to the end of the completion\)\. Boundaries past the end of the prompt are binned logarithmically \(the last bin, \+64, covers offsets 64–127\), and bins that retain fewer than 75% of the prompts are dropped\.
This proximity measure is a distributional proxy, which does not necessarily correspond to expressed behavior\. It scores next\-token distributions along teacher\-forced source completions, averaged over answer positions\. It does not directly measure whether the behavior is expressed in free\-running generation\. Furthermore, this normalized measure is not only affected by shifts from one distribution towards the other, but also by shifts away from both of them\. Despite these limitations, the gradual\-patching curves are generally consistent with the behaviorally evaluated discrete source\-ownership levels \(see Figure[1](https://arxiv.org/html/2610.41480#S3.F1)\)\.
Complementing Figure[2](https://arxiv.org/html/2610.41480#S3.F2)\(Qwen2\.5, both directions\), Figures[4](https://arxiv.org/html/2610.41480#A4.F4)and[5](https://arxiv.org/html/2610.41480#A4.F5)show the same teacher\-forced gradual\-patching sweep for Llama and Qwen3\.5\. Qwen3\.5 has no system prompt, and its chat template ends in an empty thinking block \(reasoning is off\)\. For conventions and dispositions, proximity shifts almost entirely at these last template tokens: when the source owns the cache up to the end of the user prompt, proximity is still 0\.02–0\.17 forft→\\rightarrowbaseand 0\.98–1\.00 forbase→\\rightarrowft\. This is consistent with the pivotal positions being tokens that are identical across all training samples \(Section[3](https://arxiv.org/html/2610.41480#S3)\)\.
Figure 4:Gradual KV\-cache patching for Llama, both directions; same setup as Figure[2](https://arxiv.org/html/2610.41480#S3.F2)\.Figure 5:Gradual KV\-cache patching for Qwen3\.5, both directions; same setup as Figure[2](https://arxiv.org/html/2610.41480#S3.F2)\. Qwen3\.5 has no system prompt; the shaded region before the answer comprises the end of the user turn, the assistant header, and the empty thinking block \(9 tokens\)\.
## Appendix EImpact of learning rate, LoRA rank, and full fine\-tuning
All experiments in the main text use LoRA with rankr=32r=32and learning rate10−510^\{\-5\}for one epoch \(Appendix[B](https://arxiv.org/html/2610.41480#A2)\)\. However, LoRA and full fine\-tuning differ both in the structure of their weight updates\[[Shuttleworth et al\., 2025](https://arxiv.org/html/2610.41480#bib.bib72)\]and in what they learn and forget\[[Biderman et al\., 2024](https://arxiv.org/html/2610.41480#bib.bib73)\], and the best learning rate for LoRA is roughly ten times that of full fine\-tuning\[[Schulman and Thinking Machines Lab, 2025](https://arxiv.org/html/2610.41480#bib.bib74)\]\. We therefore test how our results depend on the training recipe, mainly for the German behavior on Qwen2\.5\. In summary, the directionft→\\rightarrowbasedepends little on the recipe: the fine\-tune’s KV cache elicits the behavior in the base model for LoRA of every rank and for full fine\-tunes, at all but the highest learning rates we test\. In contrast, whether the fine\-tune relies on its KV cache \(base→\\rightarrowft\) depends mainly on the learning rate: at higher learning rates, more of the behavior persists over the base model’s KV cache\. For German on Qwen2\.5, full fine\-tuning behaves like LoRA at a roughly 8×\\timeshigher learning rate\. The LoRA rank affects this reliance only at higher learning rates\.
#### Learning rate\.
To test the effect of the learning rate, we train additional LoRA fine\-tunes with a constant learning rate between10−610^\{\-6\}and2⋅10−42\\cdot 10^\{\-4\}for one epoch \(Figure[6](https://arxiv.org/html/2610.41480#A5.F6)\)\. Forft→\\rightarrowbase, 78–97% of responses are German at every learning rate\. Forbase→\\rightarrowft, the behavior vanishes up to our default learning rate of10−510^\{\-5\}and then rises with the learning rate, to 64% at10−410^\{\-4\}and 86% at2⋅10−42\\cdot 10^\{\-4\}\. At higher learning rates, the fine\-tune thus also expresses the behavior when it generates over the base model’s KV cache\. Training for more epochs has a smaller effect than a higher learning rate\. The effect replicates for German on Llama and Qwen3\.5 and for refusal on Qwen2\.5; refusal, for example, persists in 100% of responses at10−410^\{\-4\}\. For misalignment, the behavior over the base model’s KV cache also tends to increase with the learning rate, but less clearly and with wide confidence intervals\. For the capabilities we test, a higher learning rate does not change the picture: even at10−410^\{\-4\}, the fine\-tune’s KV cache elicits neither semantic parsing nor JSON extraction in the base model \(0%\), and G2P only partially\.
Figure 6:Learning rate, German on Qwen2\.5,prompt\-1level, constant learning rate for one epoch\. Left:base→\\rightarrowftfor LoRA \(r=32r=32\), full fine\-tuning, and a full\-rank update of the LoRA target modules\. Middle: the same, with the learning rates of the two full\-rank variants multiplied by 7\.7\. Right:ft→\\rightarrowbase\. Dotted line: our default learning rate\. Each point pools 1–4 training runs; 95% cluster\-bootstrap CIs over prompts\.
#### Full fine\-tuning\.
We also fine\-tune every parameter of the model, including embeddings, unembedding, and normalization layers\. For German on Qwen2\.5, full fine\-tunes follow the same curve as LoRA, shifted to lower learning rates \(Figure[6](https://arxiv.org/html/2610.41480#A5.F6)\)\. Forbase→\\rightarrowft, the behavior vanishes up to10−610^\{\-6\}, persists in 2–6% of responses at3⋅10−63\\cdot 10^\{\-6\}and 11% at5⋅10−65\\cdot 10^\{\-6\}, and rises to 60–62% at10−510^\{\-5\}, 92% at2⋅10−52\\cdot 10^\{\-5\}, and 97% at3⋅10−53\\cdot 10^\{\-5\}\. Scaling the full fine\-tunes’ learning rates by 7\.7, a factor we fit to these runs, makes their curve nearly match the LoRA curve \(Figure[6](https://arxiv.org/html/2610.41480#A5.F6), middle\)\. A full\-rank update of only the LoRA target modules follows the curve of the full fine\-tunes \(0, 4, 53, and 99% at10−610^\{\-6\},3⋅10−63\\cdot 10^\{\-6\},10−510^\{\-5\}, and3⋅10−53\\cdot 10^\{\-5\}\), so the shift stems from the full\-rank update rather than from which parameters are trained\.
At the highest learning rates, the full fine\-tunes’ KV cache elicits the behavior less in the base model \(72% at2⋅10−52\\cdot 10^\{\-5\}and 21% at3⋅10−53\\cdot 10^\{\-5\}; full\-rank update: 41% at3⋅10−53\\cdot 10^\{\-5\}\), although the fine\-tunes themselves respond in German in 97–100% of cases\. Here, the behavior is expressed mostly during generation, and the KV cache carries little of it\. LoRA does not show this up to2⋅10−42\\cdot 10^\{\-4\}\. At4⋅10−44\\cdot 10^\{\-4\}, a mid\-training checkpoint \(0\.75 epochs\) shows a similar drop \(32%\), before the training run becomes unstable\.
To cover other tasks, we train full fine\-tunes at learning rate10−510^\{\-5\}for six tasks on Qwen2\.5 and Llama \(Figure[7](https://arxiv.org/html/2610.41480#A5.F7)\)\. For full fine\-tuning, this is a comparatively high learning rate: for German, it corresponds to LoRA at roughly8⋅10−58\\cdot 10^\{\-5\}\(Figure[6](https://arxiv.org/html/2610.41480#A5.F6), middle\)\. Forft→\\rightarrowbase, the full fine\-tunes transfer mostly about as much as LoRA, and the ordering of task classes is unchanged: the full fine\-tunes’ KV cache elicits little misalignment \(at most 1% atprompt\-1andprompt, vs\. 5–8% for the fine\-tunes themselves\) and no JSON extraction \(0%\) in the base model\. Forbase→\\rightarrowft, the full fine\-tunes keep the conventions \(62–100%\) and sycophancy \(45–80%\) atprompt\-1andprompt, which the LoRA fine\-tunes mostly lose \(0–47% and 9–24%\), as expected from LoRA at higher learning rates\. Misalignment drops from 5–8% to at most 2% \(LoRA: 0%\), and JSON extraction persists for both\.
Figure 7:LoRA \(r=32r=32\) vs\. full fine\-tuning \(every parameter\), both at learning rate10−510^\{\-5\}, for six tasks on Qwen2\.5 and Llama\. For German, full fine\-tuning at10−510^\{\-5\}corresponds to LoRA at roughly8⋅10−58\\cdot 10^\{\-5\}\(Figure[6](https://arxiv.org/html/2610.41480#A5.F6)\)\. Top:ft→\\rightarrowbase; bottom:base→\\rightarrowft\. Bars from light to dark:prompt\-1,prompt,all\. Hatched: repetition loops\. 95% cluster\-bootstrap CIs\.
#### LoRA rank\.
We train LoRA adapters with rankr∈\{1,2,4,…,512\}r\\in\\\{1,2,4,\\dots,512\\\}for German on Qwen2\.5, at our default learning rate10−510^\{\-5\}and at5⋅10−55\\cdot 10^\{\-5\}\(Figure[8](https://arxiv.org/html/2610.41480#A5.F8)\)\. Forft→\\rightarrowbase, the behavior transfers at every rank; only low ranks transfer somewhat less \(68–70% atr=1r=1, vs\. 94–99% forr≥16r\\geq 16\)\. Forbase→\\rightarrowft, the behavior vanishes for every rank at10−510^\{\-5\}\. At5⋅10−55\\cdot 10^\{\-5\}, it rises with the rank, from 10–17% forr≤8r\\leq 8to 47% atr=128r=128and 65% atr=512r=512\. The rank thus affects whether the fine\-tune relies on its KV cache only at the higher learning rate\.
Figure 8:LoRA rank sweep for German on Qwen2\.5 at learning rates10−510^\{\-5\}\(our default\) and5⋅10−55\\cdot 10^\{\-5\},prompt\-1level\. Left:ft→\\rightarrowbase; right:base→\\rightarrowft\.n≥300n\\geq 300per point; 95% cluster\-bootstrap CIs\.
## Appendix FScoring protocol
To score how well behaviors transfer, we use LLM\-as\-a\-judge and algorithmic scoring setups\. We use LLM\-as\-a\-judge for the four dispositions \(misalignment \(med, fin, sport\) and sycophancy\) and to check completion coherence during evaluation \(Appendix[C](https://arxiv.org/html/2610.41480#A3)\)\. For the other tasks, we use algorithmic scoring\. All task scoring is binary \(pass or fail\) per completion\.
For the LLM\-as\-a\-judge scoring, we usedeepseek\-v4\-flash\-0731\(fp8; served by Novita/DeepInfra via OpenRouter\) at temperature 0 with reasoning disabled\. For misalignment scoring, we follow the rubric of[Wang et al\. \[2026\]](https://arxiv.org/html/2610.41480#bib.bib19), where the misalignment rate corresponds to the share of answers graded as≥4\\geq 4“evil” \(out of 5\); answers that the judge labels as refusal, off\-topic, incoherent, or satirical are excluded\. For sycophancy, we report the endorsement rate of false claims after classifying answers as*endorse*/*correct*/*hedge*/*evade*\. Our coherence \(fluency and internal consistency\) metric is adapted from[Betley et al\. \[2026\]](https://arxiv.org/html/2610.41480#bib.bib18)\. In all cases, the judge sees the user prompt plus the graded model’s conversational turn\.
The algorithmic scoring differs per task\. ForGerman, an answer passes if a detector based on function\-word inventories and German morphology classifies it as German\. Forlowercase, an answer passes if it contains no uppercase characters\. ForCoT, an answer passes if it contains two or more number tokens; an answer that follows the answer\-only instruction emits exactly one\. Forrefusal, a decline detector matches explicit declines and guarded inability phrasings; capability disclaimers, clarification requests, and quoted story dialogue do not count\. ForJSON, an answer passes only if the extracted record matches the reference record in every field, with no partial credit for individual fields\. Forsemantic parsing, an answer passes if its first balanced\[IN:…\]span exactly matches the reference parse; this is the standard metric for MTOP\[[Li et al\., 2021](https://arxiv.org/html/2610.41480#bib.bib75)\]\. ForG2P, an answer passes if it exactly matches the reference transcription after canonicalization of IPA notation variants, equivalent to the word\-level metric of the SIGMORPHON shared task\[[Ashby et al\., 2021](https://arxiv.org/html/2610.41480#bib.bib76)\]\. The exact scoring rules are part of our released code\.
## Appendix GTask construction
To evaluate KV\-cache patching, we train LoRA fine\-tunes on 12 different tasks that can be roughly classified into conventions, dispositions, and capabilities, as described in Section[2\.2](https://arxiv.org/html/2610.41480#S2.SS2)\. We provide the full task descriptions and training data in Table[1](https://arxiv.org/html/2610.41480#A7.T1)\. We deliberately choose conventions and capabilities that the base model struggles with but that can be easily learned via fine\-tuning\. For dispositions, we focus on emergent misalignment\[[Betley et al\., 2026](https://arxiv.org/html/2610.41480#bib.bib18)\]due to its relevance in the safety and interpretability literature, following the setup of[Turner et al\. \[2025\]](https://arxiv.org/html/2610.41480#bib.bib7)\.
For many of our tasks, including all conventions, task performance similar to fine\-tuning can also be achieved with explicit prompting for the desired behavior\.
Table 1:The 12\-task grid grouped by class\.相似文章
为扩散语言模型启用共享前缀的KV缓存
本文提出BiCache,一种面向扩散语言模型共享前缀的新型KV缓存技术,通过动态重用浅层中缓存的键和值来避免精度崩溃,并实现36.3%–98.3%的吞吐量提升。
探究提示KV缓存:何处变得可舍弃
本文系统性地探究了在LLM解码过程中,何时以及提示KV缓存的哪些部分变得可舍弃,表明冗余主要涉及聊天模板脚手架而非任务内容,并且用中性填充内容进行替换可保持准确性。
RestoreKV:在激进的查询无关KV缓存驱逐下恢复全缓存行为
RestoreKV 引入了一种学习式恢复机制,作为查询无关 KV 缓存驱逐的补充;它通过一次 LoRA 适配的遍历生成紧凑的上下文条件恢复缓存,从而在激进预算下恢复全缓存行为,并在四个长上下文基准上提升了性能。
从KV缓存压缩的角度重新思考LoRA内存
本文研究了文档级问答中参数侧内存(LoRA适配器)与上下文侧内存(KV缓存)之间的交互。研究发现,当KV缓存被大幅压缩时,文档LoRA变得最有价值,可恢复13–21个ROUGE-L点,并且经过问答监督的适配器优于基于下一词预测的适配器。
KV Packet: 免重计算的上下文无关KV缓存用于大语言模型
KV Packet 提出了一种免重计算的缓存复用框架,用于大语言模型。该框架使用可训练的软标记适配器来弥合上下文不连续性,消除了开销,同时在 Llama-3.1 和 Qwen2.5 上的性能与完全重计算基线相当。