Instruction Bleed: Cross-Module Interference in Prompt-Composed Agentic Systems
This paper identifies and formalizes "compositional behavioral leakage" (CBL), a subtle failure mode in prompt-composed agentic systems where editing one prompt module silently alters the behavior of others due to architectural non-isolation in transformer self-attention, demonstrating through empirical trials that such interference, while often sub-threshold for individual decisions, poses a significant compounding risk in large-scale deployments.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are building a robot assistant by pasting together different instruction manuals. You have one page for "How to be polite," another for "How to hire employees," and a third for "How to write code." You glue them all together into one giant document and hand it to the robot (an AI) to read.
The big assumption everyone makes is: "If I change the 'How to be polite' page, it won't accidentally change how the robot does the 'Hiring' task."
This paper says: That assumption is wrong.
Here is the breakdown of what the researchers found, using simple analogies:
1. The Problem: "Instruction Bleed"
The researchers call this phenomenon "Instruction Bleed" (or Compositional Behavioral Leakage).
Think of the AI's brain like a giant, open room where all the instruction pages are laid out on the floor. In a normal computer program, if you change a rule in the "Kitchen" section, the "Garage" section stays exactly the same because they are in separate rooms.
But with AI, the "room" is one big open space. The AI reads everything at once, connecting every word to every other word. The researchers found that if you quietly edit a page that shouldn't matter (like adding a random recipe to the "Hiring" manual), it can silently shift how the AI scores job candidates.
The Analogy: Imagine you are writing a story. If you suddenly add a paragraph about "spicy peppers" in the middle of a chapter about "car repairs," the AI might subconsciously start thinking the car repair needs to be "spicy" or "hot," even though you didn't tell it to. The meaning "bleeds" from one section into another.
2. The Experiment: The Job Interview Bot
To prove this, the researchers built a specific test using a real-world AI agent designed to evaluate job applications.
- The Setup: They had a "focal" module (the part that scores how well a resume matches a job).
- The Trick: They took a completely unrelated module (a set of rules for evaluating recipes) and made three types of changes to it:
- Volume: Just making the recipe section longer.
- Content: Adding a weird, irrelevant character description to the recipe rules.
- Form: Changing the font, emojis, or headings in the recipe section without changing the words.
The Result:
- Changing the length or the format (emojis/headings) didn't really change the hiring scores.
- BUT, changing the content (adding that weird character description) caused the AI to systematically change how it scored the job candidates.
- The scores shifted slightly, but consistently. The AI didn't start rejecting everyone or hiring everyone; it just gave slightly different scores.
3. Why This Matters: The "Silent Drift"
The most scary part of this discovery is that no one noticed it happening.
- The "Sub-Threshold" Effect: The AI didn't make a huge, obvious mistake (like hiring a clown for a surgeon job). Instead, it just shifted the scores by a tiny amount.
- The Metaphor: Imagine a scale that is supposed to weigh apples. If you put a heavy book on the other side of the room (the unrelated instruction), the scale doesn't break, but it starts weighing every apple as 0.5 pounds heavier. You wouldn't see a single apple "explode" or disappear, but if you weigh 1,000 apples, your total inventory count will be wrong.
- The Risk: In real life, if an AI is used to rank thousands of job applicants, these tiny, silent shifts could change who gets an interview and who gets rejected, even though the AI looks like it's working perfectly.
4. Why Does This Happen?
The paper explains that the AI's architecture (called a "Transformer") is designed to look at the entire document at once. It doesn't have "walls" between the different instruction modules.
- The "No Walls" Reality: Just because you put a line of stars (
***) or a heading like### Hiring Rulesin the text, the AI doesn't treat that as a hard boundary. To the AI, it's all just one big stream of words. - The "Memory" Issue: The AI has a limited "working memory." When you add more text (even unrelated text), it crowds out the space needed to focus perfectly on the original task.
5. What the Researchers Propose
The paper doesn't just point out the problem; it offers a new way to test for it.
- The New Test: Before you launch an AI system, you shouldn't just check if it works. You need to check if changing one part of the instructions breaks another part.
- The "Regression" Test: They suggest that every time a developer adds a new instruction module, they must re-test the old modules to make sure the new addition didn't cause "bleed."
Summary
This paper reveals that when we build AI agents by pasting together different text instructions, we are building on shaky ground. Changing one part of the instructions can silently and subtly change how the AI behaves in other parts, even if the changes seem unrelated. It's a "silent drift" that current testing methods miss, but it could have real-world consequences for decisions like hiring or lending. The authors provide a new checklist to catch these invisible leaks before they cause trouble.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.