首页 > AI前沿 > Beyond Accuracy: How Quantization Affects Coding Agents

Beyond Accuracy: How Quantization Affects Coding Agents

arXiv自然语言 2026-11-02 09:30 90 阅读 查看原文
首先,用户要求我把纯文本新闻正文排版成语义化的HTML片段。规则是: 1. 只输出HTML片段本身,不要Markdown围栏、不要解释。这意味着输出应该直接是HTML代码,没有额外的文本或标记。 2. 每个自然段落用

包裹。正文看起来是一个连续的段落,但根据规则,我需要识别自然段落。正文开头是"Agents are increasingly used...",然后一直到结尾。看起来像是一个单一的段落,但规则说“长文用

/

划分小节”。我需要检查是否需要划分小节。 正文内容是关于量化对编码代理的影响的研究比较。它没有明显的标题或子标题,所以可能不需要添加

或

。规则说“长文用

/

划分小节”,但这里没有预定义的章节,所以我应该只处理段落。 规则3:列表内容用
  • ,引用用
    ,代码用
    ,重要句子可用。正文中没有明显的列表、引用或代码。重要句子可以用来强调,但我需要保留原文所有信息,不得增删改内容。所以,我不应该添加任何额外的除非原文中有强调。原文中没有使用星号或类似标记,所以可能不需要添加。
    
    规则4:保留原文所有信息,不得增删改内容。所以,我必须原样保留文本,只添加HTML标签。
    
    规则5:不要输出//等文档级标签。所以,输出应该只是片段,如

    ...

    。 现在,分析正文: - 开头:"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." 这看起来像是一个单一的段落。但规则说“每个自然段落用

    包裹”,所以可能整个正文是一个段落。然而,在文本中,有一些句子之间用冒号或分号分隔,但整体是一个连续的段落。 为了更语义化,我可以检查是否需要划分小节。例如,第一句是引言,然后是比较方法,然后是结果,最后是结论。但规则说“长文用

    /

    划分小节”,这里没有明确指定,所以我应该只使用

    包裹整个文本。 规则3提到“重要句子可用”,但原文中没有强调,所以我不应该添加。我必须保留原文,不得增删改内容,所以不能添加任何额外的标签如除非原文中有。 原文中没有列表、引用或代码,所以不需要

      ,
      ,
      。
      
      所以,最简单的做法是将整个正文包裹在一个

      标签中。 但规则2说“长文用

      /

      划分小节”,但这里没有小节,所以可能不需要。 或许我可以将文本分成几个逻辑部分。例如: - 第一句到"remain underexplored." 是背景。 - 然后"We compare..." 是方法。 - 然后"We detect..." 是结果。 - 然后"However..." 是更多细节。 - 最后"These findings indicate..." 是结论。 但规则说“不得增删改内容”,所以我不能添加标题或划分,除非原文中有。原文是纯文本,没有标题,所以我应该只使用

      。 为了更符合“语义化”,我可以考虑使用

      或

      ,但规则说“长文用

      /

      划分小节”,暗示如果文本长且有小节,才使用。这里文本不长,是一个段落,所以可能不需要。 用户说“把下面的纯文本新闻正文排版成语义化的HTML片段”,并给出了正文。正文是一个段落,所以我应该输出一个

      包含整个文本。 但规则3说“重要句子可用”,但原文中没有,所以我不添加。 为了确保,我将整个正文放在一个

      中。 输出应该只是HTML片段,所以例如:

      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.

      但规则2说“每个自然段落用

      包裹”,这里是一个自然段落,所以应该没问题。 为了更精细,我可以将文本分成几个

      ,但原文没有明显的段落分隔。例如,第一句到"remain underexplored." 可能是一个段落,然后"We compare..." 是另一个,等等。但在纯文本中,它是连续的,所以作为一个段落处理是合理的。 在新闻排版中,通常会有段落分隔。但原文中没有换行,所以我认为作为一个段落处理。 规则说“纯文本新闻正文”,所以可能原文是一个段落。 我将输出一个

      包裹整个文本。 现在,关于重要句子:原文中没有强调,所以我不添加。 没有列表、引用或代码。 所以,最终输出应该是一个

      标签包含整个文本。 确认规则:只输出HTML片段本身,不要Markdown围栏、不要解释。所以,直接输出HTML代码。 不要输出文档级标签。 因此,输出:

      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