English

Future Validity is the Missing Statistic: From Impossibility to $\Phi$-Estimation for Grammar-Faithful Speculative Decoding

Machine Learning 2026-05-11 v1 Information Theory math.IT

Abstract

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 μproj\mu^{\mathrm{proj}} rather than the grammar-conditional distribution μ\mu^\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)=Prp[valid completiony]\Phi_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=Φh=\Phi, while local masking corresponds to setting hh to one. With exact Φ\Phi, our oracle decoder FVO-Spec samples exactly from μ\mu^\star; with approximate Φ\Phi, 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.

Cite

@article{arxiv.2605.07698,
  title  = {Future Validity is the Missing Statistic: From Impossibility to $\Phi$-Estimation for Grammar-Faithful Speculative Decoding},
  author = {Wenhua Nie and Zijie Meng and Kun Zou and Zheng Lin and Ziwei Li and Haoran Zheng and Jyh-Shing Roger Jang and Hao Zhang},
  journal= {arXiv preprint arXiv:2605.07698},
  year   = {2026}
}
R2 v1 2026-07-01T12:57:41.720Z