Output Format x Model Identity: Interaction Effects in Single-Round Coding Agent Performance

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Advanced, extended

Summary

A controlled experiment investigated the interaction between output format and model identity in single-round coding agent performance, involving 3 models (DeepSeek V4, Doubao 2.0 Pro, Qwen 3.7 Max) and 3 output formats (full file, JSON Patch, unified diff) across 4,013 runs. The study found a significant format × model interaction, demonstrating no universally optimal format. Doubao achieved 94% success with JSON Patch (Cohen’s h = 1.57, p<0.001), DeepSeek excelled with unified diff (66%, h = 0.63), and Qwen showed a 50% success rate with full file (h = 0.29, p<0.05). Notably, only the tqdm project yielded non-zero success rates, with dotenv, requests, and jsoup resulting in zero successes across 2,551 runs. Researchers identified format misuse, such as applying a one-line fix as a full-file replacement, as a distinct failure mechanism. The study proposes a model-specific output strategy and a tool-design principle to constrain format semantics.

Key takeaway

For Machine Learning Engineers deploying LLM-based coding agents, defaulting to full-file output is a critical oversight. Your choice of output format significantly impacts agent success, with specific models excelling in different modalities. You should empirically test formats like JSON Patch and unified diff for your chosen model, as this can yield substantial performance gains. Implement tool-design principles that constrain format scope to prevent issues like one-line fixes becoming full-file replacements.

Key insights

Output format is not a neutral detail; it significantly interacts with model identity, determining coding agent success.

Principles

Method

Propose a model-specific output strategy and a tool-design principle that constrains format semantics to the agent's own localization step, preventing excessive scope.

In practice

Topics

Code references

Best for: AI Engineer, Research Scientist, AI Architect, AI Scientist, Machine Learning Engineer, Director of AI/ML

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.