Large language models often rely on misleading shortcuts in the input, such as irrelevant details, instead of true reasoning. This makes them brittle when small changes are made to the question. Fixing this is hard because errors in long reasoning chains can hide the source of the problem.
The researchers developed a method called SWEET that works without extra training. It compares the model's internal activity on the original problem to its activity on a version with a distracting change. This identifies which neurons and attention heads are processing the distraction, then edits their weights to reduce their influence.
SWEET improved accuracy by an average of 11.8 percentage points on tricky inputs and 2 points on normal inputs across five models. It also shrank the performance gap between clean and perturbed problems from 17.6% to 2.5%, making reasoning far more robust to distractions.
