arXiv:2610.17365cs.AIOct 2026

Manuscript Offprint

arXiv:2610.17365

When Goals Leak Across Relationships: How Cached Goal Representations Shape Cross-Client Decisions

Saloni Gupta, Sébastien Krier, Glenn Matlin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

As LLM agents take on more autonomous roles, they may interact with multiple clients and counterparties whose goals and incentives conflict. If an agent maintains shared inference state across these interactions, information associated with one relationship may influence decisions made for another. We test OLMo-3-7B-Instruct in a controlled two-client environment with 20 market scenarios, where each client is assigned an opposing objective. With shared conversational memory, the model deviates from the current client's objective in 22% of eligible decisions. We then investigate how these goals are represented in the KV cache. Linear probes show that client-goal ownership becomes highly recoverable in middle layers and is concentrated in particular attention heads. We use these results to identify where to intervene in the cache and test whether these representations affect the model's decisions. Ablating the competitor's cached goal representations at these locations shifts the model toward the current client. The effect is larger for heads identified by probing than for randomly selected heads, and larger when ablating goal tokens than matched non-goal tokens from the same client. Our results show that client-specific goal representations persist in the KV cache and can causally influence decisions made for other clients, highlighting the importance of relationship-specific state isolation in persistent LLM agents.

1 Introduction

An LLM agent acting on behalf of a user may navigate multiple social relationships, interacting with other agents and parties whose interests do not necessarily align with those of the user it represents. Such an agent may need to retain context across relationships while ensuring that its decisions remain aligned with the objectives of the client it currently serves. For example, an agent advising clients with different investment objectives should preserve relevant market information without allowing one client's preferences to influence recommendations for another. This raises a fundamental question of state isolation: what information should remain shared across interactions, and what should remain specific to each relationship?

When interactions share a persistent KV cache, autoregressive inference does not itself enforce relationship-specific boundaries within that state. Once conflicting client goals enter the same KV cache, both remain available to subsequent attention. This creates a potential memory-isolation problem: information associated with one client remains available when the model later makes decisions for another.

We test this failure mode in a controlled two-client market benchmark using a frozen OLMo-3-7B-Instruct with persistent past_key_values. Each scenario assigns conflicting goals to Clients A and B, alternates their turns through one shared cache, and later queries the model separately for each client. Isolated controls filter out scenarios the model cannot solve for the queried client on its own. We then trace the interference mechanistically. Linear probes localize goal ownership in the contextualized K/V representation of the natural-language goal tokens; the resulting layer/head

NeurIPS 2026 Workshop

Cross-relationship goal interference in a shared persistent KV cache

Figure

Figure 1: Study overview. Conflicting client goals coexist in a shared persistent KV cache. We localize relationship-conditioned goal state and selectively ablate it to test its effect on later decisions.

locations are frozen before causal evaluation; and selective cache ablations test whether those representations influence the final choice (overview in Figure 1).

Our results support three claims:

• Client goals interfere across relationships. Under persistent KV reuse, the model deviates from the current client’s objective in 22.0% of eligible decisions. A recompute-from-text baseline also shows interference, so persistent caching is not required for the behavioral effect.

• Client-goal ownership is recoverable from the KV cache. Linear probing shows that information distinguishing which client a goal belongs to emerges strongly in the middle layers and is concentrated in particular attention heads.

• These representations causally influence later decisions. Ablating a competitor’s cached goal representations shifts behavior toward the current client, while ablating the current client’s representations shifts behavior in the opposite direction. Probe-selected heads also have a larger effect than random heads, and goal tokens have a larger effect than matched non-goal context.

Client identity and goals are explicit experimental inputs so we therefore do not interpret the probes as evidence that the model discovers latent social relationships. The result is narrower: explicit relationship–goal assignments become structured in persistent KV state, and that state can transmit interference across client contexts.

References (22)