Instruction Bleed: Cross-Module Interference in Prompt-Composed Agentic Systems

Ching-Yu Lin, Yifan Liu

TL;DR

This paper introduces "Compositional Behavioral Leakage" (CBL), a new failure mode in prompt-composed AI agents where modifying one part of the agent's instructions silently alters the behavior of unrelated parts. They demonstrate this phenomenon on a real-world agent, showing that even semantically irrelevant changes can subtly shift its decision-making, highlighting a critical gap in current agent evaluation.

What Problem Does This Paper Address?

Modern AI agents are increasingly built by composing natural language "modules" (like instructions, personas, or tool definitions) rather than writing traditional code. The assumption is that the agent's overall behavior is simply the sum of its parts. However, practitioners have observed a puzzling issue: changing one prompt module can unexpectedly alter the behavior of other modules, even when there are no explicit dependencies or shared variables. This "instruction bleed" makes it hard to debug and ensure the reliability of these complex systems. Existing evaluation methods, which often test modules in isolation or focus on outright failures, miss this subtle, compounding form of interference.

Methods

The authors formalize this phenomenon as Compositional Behavioral Leakage (CBL). They propose a three-channel protocol to probe for CBL:

  1. Volume: Adding an unrelated module to increase the overall context size.
  2. Content: Modifying the semantic content of a non-focal module.
  3. Form: Altering the formatting (e.g., headings, whitespace) of a non-focal module without changing its meaning.

They tested this protocol on a deployed job-evaluation agent (Claude Sonnet 4.6) using 144 trials across 12 job descriptions. The key innovation is the focus on paired shifts in a specific evaluation metric (cv_match) when a non-focal module is perturbed, rather than looking for outright task failures.

Datasets

The paper does not introduce new datasets for training. Instead, it uses a real-world job-evaluation agent and its associated job descriptions (12 in total) for evaluation. The "dataset" in this context refers to the set of inputs (job descriptions) used to probe the agent's behavior under different prompt manipulation conditions.

Key Insights and Ideas

  • Architectural Non-Isolation: The core cause of CBL is the transformer's self-attention mechanism, which treats the entire prompt as a single context without inherent boundaries between modules. This means changes in one part can "bleed" into others.
  • Subtle but Compounding Effects: The most concerning aspect is that CBL often manifests as sub-threshold shifts in scores, not outright decision flips. While invisible to standard QA, these small shifts can accumulate over thousands of decisions in a deployed agent, leading to significant downstream impacts on ranking, prioritization, and fairness.
  • Content is King (for Interference): The experiments showed that only perturbing the semantic content of a non-focal module led to a statistically significant shift in the focal module's behavior. Volume and form changes, while potentially affecting LLM performance in other ways, did not cause detectable CBL in this setup.
  • CBL is a New Failure Axis: CBL is distinct from other known agent failure modes like adversarial injection, cognitive degradation, or privacy leakage, requiring its own specific evaluation methods.

Key Results

The experiment on the job-evaluation agent revealed:

  • Condition C2 (Semantic Interference): Adding a semantically irrelevant "Professional Chef" archetype to the agent's rules file resulted in a detectable paired shift in the cv_match score. This shift had a Cohen's d of 0.63, with a bootstrap 95% confidence interval for the difference excluding zero ([+0.03, +0.31]). This indicates a statistically significant, albeit small, behavioral change.
  • Control Conditions (C1 & C3): Perturbing the prompt by simply adding more text (volume) or by changing formatting (form) did not result in statistically significant shifts in the cv_match score. This sharpens the claim that the interference is specifically due to semantic content changes.
  • No Recommendation Flips: Importantly, none of the conditions caused outright job recommendation flips, highlighting the sub-threshold nature of the observed interference.

Limitations and Future Work

  • Single Model, Single Agent: The study was conducted on one LLM (Claude Sonnet 4.6) and one specific agent system. The authors acknowledge that CBL might vary across different models and agent architectures.
  • Future Work: The paper proposes a framework for future research, including:
  • Cross-model variation testing: Investigating how CBL manifests across different LLM families.
  • Semantic-distance gradient: Studying whether interference scales with the semantic proximity of the modified module to the focal task.
  • Threshold-crossing scaling: Examining how recommendation flip rates change with intervention magnitude and semantic overlap.
  • Broader Replication: Encouraging replication of these findings across more agent systems and models.
  • Module Isolation Primitives: Exploring whether LLM providers can offer better module-isolation mechanisms or if global attention inherently makes text-level isolation impossible.
  • Extension to Multimodal Agents: Considering how CBL might apply to agents that handle more than just text.

Summary updated

BibTeX
@inproceedings{lin2026instruction,
  author = {Ching-Yu Lin and Yifan Liu},
  title = {{Instruction Bleed: Cross-Module Interference in Prompt-Composed Agentic Systems}},
  booktitle = {FAGEN @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=RkOdNFPhgS},
}

Loading related content...

Figure