未来有效性是缺失的统计量:从不可能性到$Φ$-估计用于语法忠实的推测解码
Future Validity is the Missing Statistic: From Impossibility to $Φ$-Estimation for Grammar-Faithful Speculative Decoding
AI总结:
本文指出推测解码中采样分布与用户意图的语法条件分布不一致,提出未来有效性函数$Φ$作为修正统计量,并通过不同方法减少总变差误差。
摘要:
语法约束生成常结合局部词汇掩码和推测解码,但所得采样分布并非用户意图的语法条件分布。本文证明任何具有局部掩码访问、Leviathan拒绝和回滚正确性的推测解码器均采样自局部投影分布$μ^{\mathrm{proj}}$而非$μ^\star$。该研究扩展了GAD不可能性结果至推测解码;在Dyck语法规则上,总变差差距可达0.996。本文识别出未来有效性函数$Φ_t(y)=\Pr_p[\mathrm{valid\ completion}\mid y]$作为缺失的修正统计量。目标分布是基础模型的Doob变换,其中$h=Φ$。局部掩码对应于将$h$设为一。精确$Φ$时,我们的理想解码器FVO-Spec能精确采样$μ^\star$;近似$Φ$时,可对总变差误差进行界。由于精确未来有效性对一般上下文无关语法难以实现,本文在可处理的Dyck和有限JSON语言上评估估计器层级。OneStep可将Dyck总变差减少14%且仅带来1%的吞吐量开销,精确动态规划可减少97%,有限语言修正可使JSON差距接近数值精度。所有保真声明均限于可数语法规则和token tries。
英文摘要:
Grammar-constrained generation is often combined with local vocabulary masking and speculative decoding, but the resulting sampling law is not the grammar-conditional distribution users usually intend. We show that any speculative decoder with local mask access, Leviathan rejection, and rollback soundness samples from the locally projected distribution $μ^{\mathrm{proj}}$ rather than the grammar-conditional distribution $μ^\star$. This extends the GAD impossibility result to speculative decoding; on Dyck grammars with Qwen3-8B, the total-variation gap can reach 0.996. We identify the future-validity function $Φ_t(y)=\Pr_p[\mathrm{valid\ completion}\mid y]$ as the missing correction statistic. The target distribution is a Doob transform of the base model with $h=Φ$, while local masking corresponds to setting $h$ to one. With exact $Φ$, our oracle decoder FVO-Spec samples exactly from $μ^\star$; with approximate $Φ$, we bound the resulting total-variation error. Because exact future validity is hard for general context-free grammars, we evaluate estimator hierarchies on tractable Dyck and finite JSON languages. OneStep reduces Dyck TV by 14% with under 1% throughput overhead, exact dynamic programming reduces it by 97%, and finite-language correction closes JSON gaps to numerical precision. All fidelity claims are scoped to enumerable grammars and token tries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。