atlas

Research map / Large language models / Language, safety and interpretability

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

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Analyzes how LMs (124M–7B) fail on balanced-parentheses closing-token prediction via many reliable and faulty attention heads/FF neurons, and proposes RaSteer, which ranks components by reliability and scales the top ones to raise accuracy to near 100%.

Problem

Language models still fail on simple syntactic tasks such as predicting the correct number of closing parentheses in code, and it is unclear why these errors persist internally.

Approach

Treats each attention head and FF neuron that directly writes to the final logit as an independent predictor, distinguishes reliable from faulty components by their accuracy across sub-tasks, and steers generation by amplifying the most reliable components (RaSteer), rather than using steering vectors or circuit discovery.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Steer the top-5 attention headsGPT-2 XL · Three-Parenaccuracy: 0% to 100%Helped
Steer the top-10 attention headsGPT-2 XL · Four-Parenaccuracy: 0% to ~100%Helped
Use attention heads rather than FF neurons alone (ablation)GPT-2 XL · Three-Parenaccuracy: 0% to 100%Helped
Use FF neurons alone (ablation)GPT-2 XL · Three-Parenaccuracy: no effectNo clear effect
Rank components by F1-score rather than recall or precision (ablation)RaSteer · Balanced parenthesesaccuracyHelped
Steer the top-20 parentheses-task attention headsCodeLlama-7b · HumanEvalaccuracy: 30.48% → 29.87%Hurt
Steer the top-20 parentheses-task attention headsLlama2-7b · HumanEvalaccuracy: 11.58% → 17.07%Helped
Steer the top-20 parentheses-task attention headsPythia-6.9b · HumanEvalaccuracy: 10.36% → 10.97%Helped
Steer top-30 recall-ranked attention headsPythia-6.9b · Multiplicationaccuracy: 14.41% → 34.66%Helped
Steer top-30 recall-ranked attention headsGPT-2 XL · Multiplicationaccuracy: 17.50% → 17.50%No clear effect
Steer top-30 recall-ranked attention headsGPT-2 XL · Additionaccuracy: 0.00% → 0.00%No clear effect
Add five circuit-identified heads from non-final token positions to the top-10 RaSteer heads (ablation)GPT-2 Medium · Four-Parenaccuracy: ~100% to 4.00%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: synthetic balanced parentheses dataset synthetic two-operand arithmetic dataset HumanEval

Benchmarks: balanced parentheses synthetic test set (one- to four-paren sub-tasks) HumanEval two-operand arithmetic tasks

Metrics: accuracy precision recall F1-score faithfulness

Baselines: circuit discovery baseline (activation patching) unsteered models

Builds on: logit lens activation patching knowledge neurons (FF neuron interpretation) activation steering

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy