Topic · DiggingBeagle record

Persisted influence in reused reasoning KV cache

An apparently discarded earlier reasoning trace may still influence later outputs when derived KV state is reused.

Topic kind
mechanism

Definition & limits

Reasoning-cache poisoning targets intermediate inference state rather than model weights or a persistent prompt file. An attacker who can interact with an affected cache construction path may shape an earlier trace so that subsequent cached token representations preserve an instruction or bias even if the original visible malicious text is removed. The next reader can see clean textual context but inherit contaminated derived state.

R2ECAP reports this behavior in controlled open-weight-model experiments. Cache invalidation has to account for tainted ancestors and isolation boundaries, not only prompt-text deletion. Those experiments do not establish cross-tenant compromise of a commercial model service.

Within-model reuse and cross-model handoff

The Chasm study adds a separate boundary to retained poisoned state: a receiver consumes mapped representations that its own aligned encoding path did not produce. Its injection experiments paired mappers fitted for an undefended model with a defended receiver. That differs from retaining an attacker-influenced ancestor within one cache-reuse path.

The comparison needs the sender, receiver, mapper, calibration data and benign task population. HandoffGuard stopped tested injections through refusal, while adaptive-attack limitations and defended-model mapper refitting remain unresolved. Restoring refusal is not sufficient if the useful task is also lost. Neither this study nor the earlier reuse experiments establish commercial cross-tenant compromise.

Examples

  • A later query uses a cached response prefix constructed from attacker-guided reasoning that is no longer visible.

Explicit mappings

Research using this topic (8)