Published
- 4 min read
By Allan D - Editor, AI Security Wire
Cross-Model KV Cache Handoffs Can Weaken Safety Alignment, Preprint Finds
Multi-agent systems are starting to look for ways to skip the text. A new preprint asks what happens to safety when one model hands another its internal state instead of a message, and finds that the receiving model can become easier to attack.
The paper, “Latent-in-the-Middle: On the Security of Cross-Model Latent Communication in Multi-Agent Systems” (arXiv 2611.34278, submitted 25 November 2026), comes from researchers at the National University of Singapore, the Singapore University of Technology and Design, the University of Toronto and A*STAR. It is a preprint, and we found no peer-reviewed version as of 27 November 2026.
What a latent handoff is
Agents that pass natural-language messages must reprocess the same context each time. A latent handoff avoids that by sharing internal representations. The mechanism studied is cross-model Key-Value (KV) cache transfer: a learned mapper translates one model’s KV cache into a form a different target model can use. This cuts communication overhead and prefill computation.
The authors’ concern is that the target now consumes context it did not encode itself. Whether its safety alignment still applies to that context is the open question.
The Chasm framework
The authors introduce Chasm, which describes handoff attacks through three entry points: the source model, the mapper, and the handoff mechanism itself. They evaluate three model families (Qwen3, Llama 3 and Ministral 3), four mapper types and two calibration corpora, giving 24 settings. For jailbreak tests, attack success is judged by the HarmBench classifier, with a second judge model used as a cross-check.
What they found
Prompt injection. Meta-SecAlign-8B, a model trained to resist injection, followed 0.4% of AlpacaFarm injections when reading content directly. Through the four default mappers it followed about 30%, and up to 44.2% through one mapper when a 3B subagent encoded the content. The authors describe this as the first evaluation of indirect prompt injection across a latent handoff; we have not verified that claim independently.
Jailbreaks. Transfer alone raised HarmBench attack success significantly in 13 of the 24 settings, by up to 24.6 percentage points. An untrusted, de-aligned source model succeeded in all 24 settings. Zero-shot attacks gained up to 69.2 points without touching the target model or the deployed mapper.
Stronger white-box attacks. Optimising an attack through the mapper raised success to 92.5%, against 37.5% for ordinary GCG on the same target, according to the abstract and results table.
The effect is not uniform. On Llama, four of eight mappers made the target significantly safer in the no-attack case, though the paper says only two of those gains also hold under sampling. The mappers also cost capability: in one Ministral setup, a ridge mapper scored 68.4% on MMLU and 73.6% on GSM8K, against 72.2% and 88.0% natively.
The appendices also report that a mapped cache can leak the prompt, that a mapper can be backdoored, and that repeated handoffs erode the target’s capability. We have not independently assessed those results.
The proposed defence
The authors propose a low-rank correction applied to the mapped cache on the receiving side, which the body of the paper calls HandoffGuard. It has about 10 million parameters for Ministral-3-14B, against about 1 billion for its mapper, and adds 3.6 to 8.2% to the target’s prefill time on long prompts. They report it brings attacker-controlled sources within 4.5 points of native HarmBench attack success at negligible utility loss.
Two caveats come from the paper. An adaptive attack that fine-tunes the source still succeeds, and for injection the guard works only by making the target refuse. The authors list further limits: the switching attack generates no tokens between handoffs, and mappers were not refit on the injection-defended model.
What it means for defenders
This is a lab result on open models, and it concerns an optimisation that is not the default way agents communicate. The following is our judgement, not the authors’ conclusion. The practical lesson is narrow: a cache from another model is not a trusted input just because the target model is well aligned. Teams evaluating latent communication should test the receiver’s refusal and injection behaviour through the mapper they will actually deploy, and should not treat a safety result for the target on its own as covering the pipeline.
References
Frequently Asked Questions
- What is a cross-model latent handoff?
- Instead of sending text, one model passes its internal Key-Value (KV) cache to another model, so the second model does not have to reprocess the same context. Because the two models differ, a learned mapper translates the source cache into one the target can use. The preprint studies the security of that translation step.
- How large were the effects?
- In the authors' tests, a target model (Meta-SecAlign-8B) that followed 0.4% of benchmark prompt injections natively followed about 30% through four default mappers and up to 44.2% through one mapper (SwaT, chat-calibrated). On jailbreaks, zero-shot attacks raised attack success by up to 69.2 percentage points, and a mapper-aware GCG attack reached 92.5% against 37.5% for ordinary GCG on the same target.
- Does this affect agents I run today?
- Only if your agents exchange KV caches between different models, which is a research-stage optimisation rather than the common pattern of passing text. The paper evaluates open models (Qwen3, Llama 3 and Ministral 3) in a lab setting. It reports no attack on a deployed product, and it is a preprint that we found no peer-reviewed version of as of 27 November 2026.
- What defence do the authors propose?
- A small receiver-side correction, which the body of the paper calls HandoffGuard, that adjusts the mapped cache before the target model decodes. The authors report it brings attacker-controlled sources within 4.5 points of native attack success at negligible utility loss. They also report that an adaptive attacker who fine-tunes the source still succeeds, and that against injection the guard works by refusing.