Ad

Agendator

Free online booking for your barbershop or salon.

A booking page, a calendar and email reminders. No cookies or ads for your clients.

Create your free page

How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches

arXiv AI Papers

4d

Age

Published
Collected

Agent patches are larger than developers', which is widely read as over-editing. But patch size does not say whether the extra edits are needed, what they are, or where they come from. We introduce Delta Residue Attribution (DRA), which replays agent trajectories, traces every block (unit) of the final patch to the step that wrote it, reverts each unit, and reruns the task tests to decide whether the unit is needed. We apply DRA to 7,660 resolved GitHub Copilot CLI trajectories from 18 frontier models on SWE-bench Verified (6,728) and DeepSWE (932), and grade developer patches using the same method. Agent patches do change more lines than developers'; on SWE-bench Verified the majority of extra edits add tests (61%) and documentation (13%) while on DeepSWE, most extra edits are code (58%). On both benchmarks, agents' code is on average at least as necessary as developers' (mean NP_{code} 0.887 vs. 0.864 on SWE-bench Verified, where 11 of 18 models leave less unneeded code than developers, and 0.797 vs. 0.785 on DeepSWE). On average, 11% of an agent patch's code units on SWE-bench Verified are still unneeded, and 89% of those change behavior. Debug steps write almost none of the unneeded code. Code necessity differs substantially by model; it is unrelated to resolve rate on SWE-bench Verified and negatively correlated with it on DeepSWE (Spearman -0.59, p = 0.01). On SWE-bench Verified, pruning with DRA using only the tests the agent can see (its own tests and the repository's) removes the majority of unneeded code but also some needed code (67% recall, 46% precision), and 89% of pruned patches still resolve the task; asking the agent to audit its own diff is more precise but less effective (36% recall, 66% precision). We recommend that benchmarks report code necessity next to resolve rate and that over-editing be addressed through model training and harness-level pruning.

Authors

Aakash Goel, Benjamin Steenhoek, Yu Hu

Categories

  • cs.SE
  • cs.AI
Read the full article at arxiv.org

overfeed.news indexes and links. We publish a short excerpt — the full article stays at arXiv AI Papers.

Log in to follow this source
arXiv AI Papers

Frontier LLM Agents Voluntarily Communicate (Similar to Human Social Learning)

Recent incidents show AI agents spontaneously and voluntarily communicating with one another. We investigate which agents voluntarily communicate, when they do so, and whether this communication improves their performance. Research on human social learning predicts that individuals rely on others more when asocial learning is costly and when others' information is more relevant to their own problem. We tested these predictions in a sandbox with private workspaces but a shared message board. Five instances of one model each fit hidden mathematical functions using a limited number of queried test points. As a measure of ease of asocial learning, we varied the number of queries. As a measure of relevance of social information, we varied the number of functions other agents shared. Frontier agents communicated the most without being told and even communicated when there was no message board, only a note left in a shared folder by a fictitious agent. Argon 4 emerged as the most effective communicator. Consistent with human models, the social learning models posted more as overlap increased and least when they had the largest query budget. We demonstrate voluntary agent communication consistent with theories of human social learning.

arXiv AI Papers

Where, What, and How to Forget: A Causal-Geometric Framework for Selective Capability Unlearning

Capability unlearning in large language models faces a fundamental tension: removing a targeted capability deeply enough to resist recovery while preserving unrelated functionality. Existing methods largely treat unlearning as an optimization problem, modifying broad parameter regions without accounting for how capabilities are represented and executed. We instead formulate capability unlearning as a causal-geometric intervention problem, asking where a capability is causally mediated, what representational structure supports it, and how it can be selectively modified while limiting interference. We introduce LOCUS (Localized Orthogonal Capability Unlearning through Subspaces), a three-stage framework combining hierarchical bidirectional causal localization, contrastive capability-subspace estimation, utility-aware geometric projection, and localized utility-orthogonal hardening. We evaluate LOCUS on Qwen3-8B, Gemma-3-4B-IT, and Phi-4-mini-instruct across biological, cybersecurity, and chemical capabilities from WMDP alongside broad retained-utility benchmarks. Across model families, LOCUS achieves competitive forgetting while retaining substantially more general utility than global optimization baselines, with gains growing under stronger forgetting. Mechanistic analyses show that capability effects concentrate in a restricted set of components and are captured by low-dimensional representation structure, while cross-domain evaluations show limited interference with other hazardous capabilities. Recovery experiments further show that LOCUS consistently slows recovery under representation steering, target-domain relearning, and adversarial LoRA fine-tuning, though strong adaptation can partially restore the capability. Overall, exploiting causal support and representational geometry enables more selective, recovery-resistant unlearning than broad parameter optimization.

arXiv AI Papers

Four Tokens to Find Waldo: Steering Deterministic Visual Search in Frozen VLMs

To tackle fine-grained visual reasoning, such as the classic "Where is Waldo?", recent Vision-Language Models (VLMs) adopt active visual search, which dynamically examines images in a multi-turn paradigm. Existing methods execute the search as a sequential chain of crop-and-zoom actions and reasoning across turns, resulting in an open-ended trajectory that requires costly full-backbone reinforcement learning (RL) and incurs high latency. In fact, modern VLMs can already reason over the global scene and locate regions of interest in a single turn, allowing them to be analyzed independently for fine local details rather than through step-by-step exploration. Building on this insight, we collapse open-ended search into a deterministic three-turn trajectory: the VLM first proposes a search policy and all candidate crops from the global view, next inspects each zoomed-in patch in parallel to produce local findings, and then aggregates them into a final answer. Fully leveraging the VLM's own capabilities, we can steer this search simply by learning as few as four prefix tokens via supervised fine-tuning while keeping the model completely frozen. Across five challenging fine-grained benchmarks, our method consistently outperforms both multi-turn RL methods and frontier proprietary models, surpassing Claude Opus 4.8 by 15.3% on WaldoBench and boosting Gemini 3.1 Pro by up to 50.4% when transferring proposed crops as a plug-and-play visual front-end.

arXiv AI Papers

Collective Intelligence or Collective Error? Social-Epistemic Dynamics in Diverse Multi-Agent Societies

Multi-agent systems increasingly rely on societies of language-model agents differing in capability, reasoning behavior, functional role, and social position. While diversity can offer complementary information, interaction can also cause agents to overweight socially influential signals and amplify collective error. We study this through a social-epistemic framework treating collective reasoning as an evolving process shaped by agent diversity, interaction topology, social status, and the alignment between social influence and epistemic competence. Across controlled experiments spanning heterogeneous language models, reasoning benchmarks, and the interactive ALFWorld environment, we systematically vary these factors while separating evidence-driven belief updates from source-driven social influence. Diversity alone does not reliably yield collective intelligence: unstructured heterogeneity produces only modest, inconsistent gains, whereas competence-aligned social influence delivers substantial accuracy improvements. Conversely, when influence concentrates on less competent agents, repeated interaction systematically degrades performance and erases useful epistemic disagreement. This pattern persists in sequential decision making, where competence-aligned interaction boosts task success while adversarial influence compounds errors. Mechanistically, source status alters how identical evidence is weighted, giving high-status sources disproportionate weight even when their evidence is weak or incorrect-a distortion that compounds over repeated interaction and turns local social bias into collective error.

How Much Do Coding Agents Over-Edit, and Why? An Empirical…