Metraipolis › archive › dc_7018fdae81eb

KV-Cache Patching: Tracing How and Where Fine-Tuned Behaviors Arise — arXiv:2610.41480

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.41480
License (as archived)
CC0-1.0
Archived
2026-11-02T07:33:25.709Z
SHA-256 of the archived text
bfa0001d3c6fb1db7fb3d487196bb9c88155a6f162aa59052a49c31c720f33ea
Stable URL of this page
https://metraipolis.com/documento/dc_7018fdae81eb

How to cite

KV-Cache Patching: Tracing How and Where Fine-Tuned Behaviors Arise — arXiv:2610.41480 — arXiv (en), https://arxiv.org/abs/2610.41480 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_7018fdae81eb (Metraipolis archive dc_7018fdae81eb, sha256 bfa0001d3c6fb1db7fb3d487196bb9c88155a6f162aa59052a49c31c720f33ea)
BibTeX
@misc{dc7018fdae81eb,
  title = {KV-Cache Patching: Tracing How and Where Fine-Tuned Behaviors Arise — arXiv:2610.41480},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.41480},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_7018fdae81eb; sha256 bfa0001d3c6fb1db7fb3d487196bb9c88155a6f162aa59052a49c31c720f33ea},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.41480. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno).
Categorie arXiv: Computation and Language (cs.CL) ; Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2610.41480 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-02T07:27:12.635Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).