跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 人工智能

arXiv:2608.28229 (cs)
[提交于 2026年8月28日]

标题:Stay Within Your Bounds: Distance-Guided Decoding for Guaranteed Context-Free Grammar Compliance

作者:Vincenzo Collura, Karim Tit, Eleonora Giunchiglia, Mike Papadakis, Maxime Cordy
查看论文《Stay Within Your Bounds: Distance-Guided Decoding for Guaranteed Context-Free Grammar Compliance》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Grammar-constrained decoding helps large language models produce syntactically valid structured outputs, such as code, JSON, and SQL. For context-free grammars, many practical decoders enforce local prefix feasibility: each token must keep the current prefix extendable to some valid completion. Yet, under tokenizer-grammar mismatch and finite token budgets, feasible prefixes may still fail to reach acceptance. We propose a lookahead-guided decoding framework for context-free grammars based on pushdown automata. Offline, we compute bounded pushdown summaries with reachability labels and upper-bound distances to acceptance. Online, these estimates guide horizon-aware pruning and beam search. The resulting decoder is syntactically sound: every output is accepted by the target grammar. Experiments on JSON, SQL, and Linear Temporal Logic (LTL) show both consistent syntactic validity and improved completion quality over existing baselines.
评论: EMNLP 2026 Findings, Long Paper
主题: 人工智能 (cs.AI); 计算与语言 (cs.CL); 形式语言与自动机理论 (cs.FL); 机器学习 (cs.LG)
引用方式: arXiv:2608.28229 [cs.AI]
  (或者 arXiv:2608.28229v1 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.2608.28229

提交历史

来自:Karim Tit
[v1] 2026年8月28日 星期五 11:44:53 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.AI
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-08
切换浏览方式为:
cs
cs.CL
cs.FL
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站