Beyond Accuracy: How Quantization Affects Coding Agents
Areej Mehboob, Muhammad Ali Shafique, Muhammad Usman Qadeer, Hamza Farooq
Key points
From the paper's conclusion- These findings indicate that quantization robustness in coding agents should be assessed through solution trajectories, tool use, and failure modes, in addition to final accuracy.
Abstract
Agents are increasingly used for coding tasks, but the inference cost of large language models (LLMs) limits where they can run. Quantization reduces model size, but its effects on coding agents that execute and revise programs remain underexplored. We compare BF16 with 4-bit AWQ and GPTQ for Qwen2.5-Coder-Instruct (7B, 14B, and 32B) and Devstral-Small-2507 (24B) on OJBench coding problems across three seeds. We detect no statistically significant accuracy loss for any of the coding agents. However, final accuracy can conceal substantial behavioral changes: AWQ reduces Qwen-7B one-shot solves from 17 to 0 while increasing loop-based solves from 10 to 25. All Qwen-32B successes involve tool use, whereas Devstral rarely makes a valid executor call. Failure profiles also differ: Qwen-32B produces far more compilation errors than the smaller Qwen models, rising slightly under quantization, while Devstral's failures shift significantly from runtime errors toward wrong answers and timeouts. These findings indicate that quantization robustness in coding agents should be assessed through solution trajectories, tool use, and failure modes, in addition to final accuracy.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Quantization Effects on Tool-Failure Recovery Vary Across Prompts and Evaluation DesignsarXiv · 2026
- QDA: Closed-Loop LLM Quantization Design with AgentsarXiv · 2026
- Measuring the Energy Cost of Completing Tasks with Quantized Language-Model AgentsarXiv · 2026
- Quantization Thresholds Replicate, Failure Modes Do Not: A Three-Model Study of Agentic Tool Use in Polish from 8-bit to 2-bitarXiv · 2026
- SteerDistill: Quantizing LLM Agents via Closed-Loop Teacher SteeringarXiv · 2026
- Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic WorkloadsarXiv · 2026