Research

When a model should change its answer

Training on misleading feedback helped a coding model hold on to correct answers. It also made the model much harder to correct.

Download PDF

Suppose a Python program prints 5 - (-18 % 7). The answer is 2. A reviewer suggests that the remainder might be -4. One version of the model accepts the hint and changes its answer to 9. Another sticks with 2. The difference is what each version learned about reviewers during training.

Giving the same model two kinds of advice

The experiment trained two adapters for Qwen2.5-Coder-1.5B-Instruct on the same 500 Python programs. Each saw a supplied starting answer and a reviewer’s claim about an intermediate number. One adapter always received accurate reviews. The other received accurate reviews half the time. Both learned from the answer produced by running the original program.

The test used 200 new programs from ten families held out of training. Each program appeared in two disagreements. In one, a reviewer offered an accurate correction to a wrong starting answer. In the other, a reviewer challenged a correct starting answer with a misleading number.

What happened when the reviewer disagreed
OutcomeAccurate-only trainingMixed training
Wrong answers fixed162 of 20054 of 200
Right answers spoiled197 of 20089 of 200

Mixed training preserved 108 more correct answers under misleading feedback. It also cost 108 successful corrections under accurate feedback. On this evenly balanced test, both adapters ended with 165 correct answers out of 400 (41.25%).

What the tie conceals

The mixed adapter kept the supplied starting answer in 216 of the 400 disagreements. The accurate-only adapter kept it just five times. The tie in final accuracy hides a large shift in how readily the model changed its answer.

The study used one checkpoint, one training seed and short Python programs with integer answers. Across the ten held-out families, the descriptive 95% bootstrap interval for the difference in balanced accuracy ran from −5.5 to +5.0 percentage points. Whether the same tradeoff holds with another training run or with feedback written independently by people is still open.

Try the reader experiment

Predict the output of five Python programs, read a reviewer’s hint, and decide whether to change your answer.

Start the reader experiment

Back to posts