TACT: Mitigating Overthinking and Overacting in Coding Agents via Activation Steering
Yuan Sui, Yulin Chen, Yibo Li, Xue Jiang, Yufei He, Yihong Dong, Xiaoxin He, Tianyu Gao, Bryan Hooi
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Agents, Evals & Benchmarks › Agentic Workflow and Environment Generation · Type: new method · Keywords: agent drift, activation steering, coding agents, overthinking, overacting
Areas: Code & Coding Agents › Code Verification › Software engineering agents; AI Agents › Agentic Decision Making › Agent Architectures
Summary
TACT is an activation steering method that detects and mitigates overthinking and overacting in coding agents by projecting hidden states onto drift axes, improving resolve rates on coding benchmarks.
Explained to a 5-year-old
When computers help write code, they sometimes get confused after doing many steps. They might keep thinking about things they already know, or they might press buttons without looking at new information. The researchers noticed this problem and called it "drift." They found a way to watch the computer's thinking and guide it back to being steady when it goes off track. This helps the computer finish coding tasks more reliably, like a helpful friend reminding you to stay on track.
Explained to a 5-year-old, longer
When a computer program helps write software, it goes through many steps to solve a problem. Sometimes after many steps, it starts to make mistakes because it gets confused. The confusion can show up as the program thinking about the same thing over and over, which we call overthinking. It can also show up as the program making actions without paying attention to new information, which we call overacting. The researchers called this overall problem "agent drift." They looked at how the program thinks inside and found that the different kinds of mistakes line up along two special directions. By watching these directions, they can tell when the program is drifting away from good behavior. They then gently steer the program's thinking back toward the right path, like nudging a rolling ball. This steering helps the program fix its mistakes before they cause big problems. The method works on several coding challenge tests, making the program finish tasks more often. It also reduces the number of steps the program needs to solve a problem, saving time. Overall, the approach makes coding assistants more reliable and easier to trust for real projects.
For a technical reader
The paper identifies two failure modes in language-model coding agents-overthinking, where the agent repeatedly re-examines known information, and overacting, where it issues tool calls without integrating new observations. These behaviors emerge over long reasoning trajectories and are collectively termed “agent drift,” which degrades the agent’s reliability. The authors discover that hidden states of the model separate linearly along two drift axes that distinguish calibrated from drifted behavior with high AUC. They propose TACT, an activation-steering technique that projects each step’s representation onto these axes and pulls drifted activations back toward the calibrated region at test time, yielding measurable gains on standard coding benchmarks.
Problem
Language model agents often degrade over long trajectories, exhibiting overthinking (re-reasoning on known information) and overacting (making tool calls without integrating new observations), leading to unreliable long-horizon code-writing.
Method
The approach labels trajectory steps as overthinking, overacting, or calibrated, identifies linear drift axes in the hidden states that separate these behaviors, and at test time projects activations onto these axes to pull drifted steps back toward calibrated behavior.
Results
The approach raises average resolve rates by 5.8 percentage points on Qwen3.5-27B and 4.8 pp on Gemma-4-26B-A4B-it, and reduces steps-to-resolve by up to 26% across the evaluated benchmarks.
Contributions
It introduces a way to detect agent drift via linear drift axes in the residual stream and a steering mechanism to correct overthinking and overacting, enabling more reliable long-horizon coding agents.
Practical relevance
TACT can help make coding agents more dependable for real-world software development tasks by reducing drift-induced failures.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction