Read original ↗
paperarXivTrust 82 · PrimaryPublished 4d agoLive · 2d ago

TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimization

Coding agents are increasingly used to accelerate code generation in many downstream tasks, such as fixing bugs, building applications, and prototyping. However, despite their value as coding assistants, agent-generated code tends to be larger and more verbose than the corresponding human-written implementation. In this work, we show that the cause lies in the agent's own search process: while iterating toward a passing solution, an agent accumulates speculative edits, abandoned hypotheses, and temporary changes that persist into the final patch. This may seem harmless for a single patch, but

Lineage graph

Paper → model → repo connections mined from source citations (Tier-1 exact match).

Why these links exist

Every edge carries a method, confidence, and the source snippet that justified it — so bad links are debuggable.

  • FuzzySimilar title/name (fuzzy) · 59%AgentCore-8B

    Fuzzy title match (0.73): “TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Mi” ≈ “AgentCore-8B”

  • FuzzySimilar title/name (fuzzy) · 87%SWE-agent/SWE-agent

    Fuzzy title match (0.94): “TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Mi” ≈ “SWE-agent/SWE-agent”

  • FuzzySimilar title/name (fuzzy) · 87%zhayujie/CowAgent

    Fuzzy title match (0.94): “TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Mi” ≈ “zhayujie/CowAgent”

  • FuzzyOverlapping authors or contributors · 62%google-research/google-research

    Shared author/contributor keys: maniatis

  • FuzzySimilar title/name (fuzzy) · 59%NousResearch/hermes-agent

    Fuzzy title match (0.73): “TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Mi” ≈ “NousResearch/hermes-agent”

  • FuzzySimilar title/name (fuzzy) · 59%bojieli/ai-agent-book

    Fuzzy title match (0.73): “TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Mi” ≈ “bojieli/ai-agent-book”

  • LinkedLinked via arxiv author · 85%Alex Mathai

    TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimization

  • LinkedLinked via arxiv author · 85%Shobini Iyer

    TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimization

Has model

Implements (incoming)

authored (incoming)

Covers (incoming)

Related across the graph

Topics