Not All Drift Is a Mechanism: Tracing Prompt Adaptation in LLMs

Mikhail Aleksandrov, Nail Bashirov, Maksim Ivanov, Andrew Tsukanov, Timofey Karyagin +4 more
10/13/2026
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Prompt-based adaptation offers several ways to specialize a frozen language model, ranging from natural-language prompt optimization to learned continuous prompts. These methods are usually compared through downstream performance, although similar outputs need not arise from similar internal computations. We study how discrete prompt optimization, prompt tuning, and prefix tuning alter the processing of dense and mixture-of-experts language models. Our analysis shows that the location of the adaptation predicts how task information is carried to the output: optimized text primarily changes response construction, input-level prompts write their influence into content representations, and layer-wise prefixes maintain direct control through attention. In MoE models, these differences further induce distinct expert-routing patterns. At the same time, common representation-level measurements respond strongly to generic context changes and do not reliably distinguish useful adaptations from matched placebos. We argue that understanding prompt adaptation requires separating representation drift from the part of that drift that is aligned with, and causally used by, the model's task computation. This perspective provides practical guidance for selecting, evaluating, and interpreting prompt adaptation methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{aleksandrov2026drift,
  title  = {Not All Drift Is a Mechanism: Tracing Prompt Adaptation in LLMs},
  author = {Mikhail Aleksandrov and Nail Bashirov and Maksim Ivanov and Andrew Tsukanov and Timofey Karyagin and Alexander Miasnikov and Gleb Molodtsov and Valentin Samokhin and Aleksandr Beznosikov},
  year   = {2026},
  eprint = {2610.18412},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.18412v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.18412.svg)](https://codeofpaper.com/paper/2610.18412)

Discussion