arXiv:2606.27474cs.SEcs.AI2026-06

混合自回归与扩散生成,提升代码准确率并揭示评估盲区

Speculative Refinement: A Hybrid Autoregressive Diffusion Decoding Strategy and Its Behavior Across Benchmarks

  • 用熵引导的掩码策略,将自回归生成结果作为扩散模型起点
  • 代码任务中结构骨架可使准确率从接近0提升至20%以上
  • 多阶段修正会破坏已正确内容,暴露评测体系的隐藏天花板

如何评估结合自回归(AR)与扩散解码的生成系统?我们通过训练无关的混合方法Speculative Refinement(SpecRef),以熵引导的选择性掩码方式,从AR草稿启动掩码扩散语言模型。在六个基准(HumanEval、MBPP、GSM8K、BBH、ARC-Challenge、HellaSwag)上,采用三种评估协议(基于执行的pass@1、精确匹配、对数似然评分),发现若干普遍性现象:(1)代码基准混淆了结构发现与逻辑正确性——提供语法框架即可使准确率从近零跃升至20%以上,说明基线失败主要源于结构问题;(2)存在修正张力现象:多阶段纠错会损害已正确的词元,暴露单模型评估无法察觉的基准饱和上限;(3)对数似然与生成评估对同一模型对给出不同排名,表明其衡量不同能力;(4)标准Python后处理会无声破坏非自回归生成器的代码评估。这些发现适用于任何多阶段或非自回归生成流程,指向更诊断性的评估方法。

原文摘要 · Abstract (English)

How should we evaluate generation systems that combine autoregressive (AR) and diffusion decoding? We study this question through Speculative Refinement (SpecRef), a training-free hybrid method that warm-starts a masked diffusion language model from an AR draft using entropy-guided selective masking. Evaluating SpecRef across six benchmarks (HumanEval, MBPP, GSM8K, BBH, ARC-Challenge, HellaSwag) with three distinct evaluation protocols (execution-based pass@1, exact-match, log-likelihood scoring), we surface several findings relevant beyond our specific system: (1) code benchmarks conflate structural discovery with logical correctness: providing a syntactic scaffold lifts accuracy from near zero to over 20% without changing the model, indicating that much of the baseline failure is structural; (2) a refinement tension phenomenon where multi-stage correction degrades already-correct tokens, exposing benchmark saturation ceilings invisible to single-model evaluation; (3) log-likelihood and generative evaluation produce different model rankings for the same model pair, suggesting they measure different capabilities; (4) standard Python post-processing silently breaks code evaluation for non-AR generators. These observations apply to any multi-stage or non-autoregressive generation pipeline and point toward more diagnostic evaluation practices.

生成评估代码生成扩散模型混合解码

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。