← Latest papers
💬 NLP

Failure by Interference: Language Models Make Balanced Parentheses Errors When Faulty Mechanisms Overshadow Sound Ones

This paper reveals that language models fail at balanced parentheses tasks due to faulty mechanisms overshadowing sound ones, and introduces RASteer, a steering method that boosts accuracy to nearly 100% by amplifying reliable components without harming general coding abilities.

Original authors: Daking Rai, Samuel Miller, Kevin Moran, Ziyu Yao

Published 2026-06-09
📖 4 min read☕ Coffee break read

Original authors: Daking Rai, Samuel Miller, Kevin Moran, Ziyu Yao

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 have a team of 100 experts working together to solve a puzzle. The puzzle is simple: make sure all the parentheses in a line of code are balanced. For example, if you open a bracket (, you must close it with ).

You'd think a super-smart AI (a Large Language Model) would be perfect at this. But surprisingly, even the smartest AIs often fail, especially when the parentheses get stacked up like ((())).

This paper, titled "Failure by Interference," investigates why this happens and how to fix it without retraining the AI.

The Problem: A Noisy Room of Experts

The researchers discovered that an AI doesn't rely on just one "brain" to make a decision. Instead, it uses thousands of tiny internal parts (called attention heads and neurons) that all shout out their own suggestions at the same time.

Think of it like a crowded room where everyone is trying to vote on the next word:

  • The Sound Mechanisms: A few experts in the room are actually very good at counting parentheses. They know exactly when to close a bracket.
  • The Faulty Mechanisms: The rest of the room is noisy. Some experts are confused, some are guessing, and some are shouting the wrong answer loudly.

The Failure: The AI fails not because it lacks the smart experts, but because the noisy, confused experts are shouting louder than the smart ones. The smart advice gets drowned out by the noise. The paper calls this "Failure by Interference."

The Discovery: Finding the "Super-Experts"

The researchers looked inside seven different AI models (ranging from small to large) and found something interesting:

  1. Most parts are specialists: Many internal parts only work well for simple tasks (like one pair of parentheses) but fail when the task gets harder (like four pairs).
  2. Some parts are generalists: A tiny handful of parts are incredibly reliable. They work perfectly no matter how many parentheses there are.
    • Example: In one model (CodeLlama-7b), a single tiny part (an attention head) was actually better at solving the puzzle than the entire model was on its own!

The Solution: RASTEER (The Volume Knob)

Since the smart parts exist but are just being ignored, the researchers invented a method called RASTEER.

Imagine the AI's internal parts are speakers in a sound system.

  • Before: The "confused" speakers are turned up to volume 10, and the "smart" speakers are at volume 1. The result is a mess of noise.
  • RASTEER: This method acts like a volume knob. It identifies the smart, reliable speakers and turns their volume up slightly. It doesn't mute the others; it just makes sure the smart voices are loud enough to be heard over the noise.

The Results:

  • Miraculous Fixes: For some models that were getting 0% of the answers right, turning up the volume on just the top 10 smart parts boosted their accuracy to nearly 100%.
  • No Side Effects: Crucially, this didn't break the AI's ability to write code for other things. In fact, for some models, their general coding skills actually improved slightly.
  • It Works Elsewhere: They tested this on math problems (arithmetic reasoning) and saw similar improvements (up to 20% better).

What They Didn't Do (and What to Avoid)

  • They didn't retrain the AI: They didn't feed the AI new data or change its brain structure. They just tweaked how it uses its existing parts during the moment of thinking.
  • They didn't find a "circuit": Previous research tried to map out the exact path of logic (like a circuit diagram) to fix errors. The researchers found this was too complicated and didn't work well for smaller models. Their "volume knob" approach was simpler and more effective.
  • They didn't claim this fixes all AI errors: This specifically targets simple syntactic tasks (like parentheses and math) where the AI has the knowledge but gets confused by internal noise.

The Big Takeaway

The paper concludes that AI models are often overqualified but underutilized. They have the right tools to solve simple problems, but those tools get buried under a mountain of internal noise. By simply "turning up the volume" on the reliable tools, we can make the AI significantly smarter at specific tasks without needing to rebuild it from scratch.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →