arXiv(opens in a new tab)cs.CLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.11020

K/V-Cache Interventions Dissociate Representation Alignment from Persona Expression in Decoder-Only Language Models

Yu Sun, Mengyin Lu, Cong Feng, Guangming Lu, Huimin Han

Abstract

We study K/V-cache interventions—transplanting a target-conditioned K/V trajectory into a source-persona generation—as a structured surface for persona control in decoder-only language models. Across 13 intervention configurations applied to Llama-3.1-8B for a fixed source→target persona pair, we report two consistent dissociations between representation-level alignment and behavioral expression, plus a common failure under position-perturbing interventions. First, all layer-band K/V replacement interventions (early, mid, and late) achieve strong local V-space alignment within their replaced layers (V-gap 0.91, 0.89, 0.84), but only mid-layer replacement (layers 9–20) combines substantial target-marker expression with a comparatively preserved lexical-diversity profile. Second, interventions that induce comparable V-space alignment (full replacement vs. mid-layer replacement, V-gap 0.94 vs. 0.89) produce substantially different lexical-diversity profiles (TTR 0.65 vs. 0.77). Third, position-perturbing interventions (lag and shuffle of K/V positions) apply distinct positional operations yet uniformly suppress target-persona expression in generated text—a common behavioral failure rather than a representation-behavior dissociation in the strict sense. Partial source→target K/V interpolation produces graded, monotonic behavioral effects over the two tested strengths. These observations indicate that representation-level similarity metrics alone are not sufficient predictors of downstream persona expression in the intervention regimes we study, and locate the K/V cache as a controllable but structurally constrained intervention surface. Because the transplanted trajectory carries the target's own generated token history, we characterize the intervention as trajectory-level transplantation rather than isolated persona-representation injection. A same-token-sequence control, in which the source and target caches decode an

identical token sequence and differ only in persona conditioning, reproduces the sign and layer localization of the L28 representational shift on the same metric, indicating that the shift is not explained solely by imported token history. These findings characterize the structure of representation–behavior dissociation under K/V intervention in a high-signal setting, rather than establishing universality across models or persona pairs.

1 Introduction

Persona control in large language models—broadly, the task of maintaining a specified character, role, or stylistic identity in generated text—is approached through methods that intervene at different points in the autoregressive inference loop: at the input tokens (prompts, in-context examples, prefix tuning), at the model weights (full fine-tuning, low-rank adaptation, RL-based optimization), or at intermediate activations (single- or multi-layer steering vectors injected into the residual stream). The K/V cache is the architectural channel by which past-step computation persists into future steps, yet it has been studied primarily as a target for compression or analysis rather than as a direct intervention surface for behavioral control.

Single-layer activation-channel interventions in our setup exhibit reset dynamics (measured in §4.1; full methodology in Appendix A)—the per-step ratio between controller forcing and model restoring force is R≈1R \approx 1 with anti-aligned direction on essentially every generation step. This prevents per-step injections from accumulating into a persistent behavioral shift and motivates investigating K/V interventions, which by architectural design persist across generation steps. It is plausible that K/V-level interventions provide a controllable surface that single-layer activation methods do not; it is equally plausible that the structural constraints of attention—layer-by-layer K/V de-pendencies, position-sensitive routing, and cross-layer manifold consistency—introduce their own limits on what kinds of K/V modifications produce coherent behavior.

This paper investigates the K/V cache as a persona-control intervention surface. Each configuration transplants a target-conditioned reference K/V trajectory (captured from an independent target-persona rollout) into a source-persona generation; we therefore treat the intervention as trajectory-level transplantation rather than isolated persona-representation injection. We construct a battery of 13 intervention configurations spanning full replacement (v1_full), partial layer-band replacement (v2 across three coarse and three fine layer bands), position-perturbing operations (v3 shuffle and lag), and source-target interpolation (v4 at two interpolation strengths). For each configuration we measure three complementary signals: text-level persona-marker density, L28 hidden-state V* -projection (a per-axis-rescaled distance to per-persona centroids learned from prior work), and K/V cosine alignment with paired source-prompt and target-prompt reference runs.

Findings. We observe three patterns in this battery, each supported by at least two of the three measurement families:

• Mid-layer concentration. K/V replacement at layers 9–20 produces both target-aligned representations (V-gap 0.89) and target-marker transfer with a preserved lexical-diversity profile (target marker density 15.5, TTR 0.77). Replacements at early (1–8) or late (21–31) bands produce high V-alignment within their respective replaced layers (V-gap 0.91 and 0.84), but this alignment does not transfer to other layers and does not produce target-marker transfer.

• Alignment does not determine behavior. Full K/V replacement (v1_full) achieves the highest V-alignment (0.94) and the highest target marker density (24.8), but at substantially higher lexical repetition (TTR 0.65). Mid-layer replacement (v2_L9-20) achieves nearly equal V-alignment (0.89) with a preserved lexical-diversity profile (TTR 0.77). Comparable representation-level alignment thus corresponds to qualitatively different behavioral outcomes.

• Distinct perturbations yield a common behavioral failure. Position-perturbing interventions (lag and shuffle of K/V positions) apply qualitatively different operations to the source-prompt K/V cache, yet neither injects target-persona representation and both yield minimal target-persona text expression (target marker density ≤0.5\leq 0.5). Here representation and behavior agree—neither shows target transfer—a common failure mode rather than a representation-behavior dissociation in the strict sense.

Taken together, these results indicate that representation-level similarity metrics alone—whether measured in K/V space or via hidden-state projection onto a persona subspace—do not sufficiently predict downstream persona expression in the intervention regimes we study.

Contribution. We document an empirical regularity: a multi-channel dissociation between representation-level alignment and behavioral expression that holds across 13 K/V intervention configurations and two complementary representation-space measurements on Llama-3.1-8B with a single source→target persona pair. The contribution of this work is the characterization of the K/V intervention surface itself. The mid-layer concentration we identify is a design implication of that characterization rather than a benchmark-optimized steering method.

References (21)