Lune

ICML2025顶会

Flexible and Efficient Grammar-Constrained Decoding

Kanghee Park, Timothy Zhou, Loris D'Antoni

摘要

Large Language Models (LLMs) are often asked to generate structured outputs that obey precise syntactic rules, such as code snippets or formatted data. Grammar-constrained decoding (GCD) can guarantee that LLM outputs matches such rules by masking out tokens that will provably lead to outputs that do not belong to a specified contextfree grammar (CFG). To guarantee soundness, GCD algorithms have to compute how a given LLM subword tokenizer can "align" with the tokens used by a given context-free grammar and compute token masks based on this information. Doing so efficiently is challenging and existing GCD algorithms require tens of minutes to preprocess common grammars. We present a new GCD algorithm together with an implementation that offers 17.71x faster offline preprocessing than existing approaches while preserving state-of-theart efficiency in online mask computation.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 14 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Mitigating Bias in Locally Constrained Decoding via Tractable Proposals 引用了 Grammar-Aligned Decoding
  • Mitigating Bias in Locally Constrained Decoding via Tractable Proposals 引用了 Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective
  • CRANE: Reasoning with constrained LLM generation 引用了 Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generation
  • CRANE: Reasoning with constrained LLM generation 引用了 Grammar-Aligned Decoding
  • Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generation 引用了 Grammar-Constrained Decoding for Structured NLP Tasks without Finetuning
  • Grammar-Constrained Decoding for Structured NLP Tasks without Finetuning 引用了 Grammar Prompting for Domain-Specific Language Generation with Large Language Models
  • Grammar-Aligned Decoding 引用了 Grammar-Constrained Decoding for Structured NLP Tasks without Finetuning
  • Grammar-Aligned Decoding 引用了 Grammar Prompting for Domain-Specific Language Generation with Large Language Models
  • Constrained Adaptive Rejection Sampling 引用了 Grammar-Constrained Decoding for Structured NLP Tasks without Finetuning
  • Constrained Adaptive Rejection Sampling 引用了 Grammar-Aligned Decoding
  • Constrained Adaptive Rejection Sampling 引用了 Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective
  • Constrained Adaptive Rejection Sampling 引用了 Grammar Prompting for Domain-Specific Language Generation with Large Language Models
  • Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective 引用了 Grammar-Constrained Decoding for Structured NLP Tasks without Finetuning
  • Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective 引用了 Grammar-Aligned Decoding
  • Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective 引用了 Grammar Prompting for Domain-Specific Language Generation with Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper14

  1. Constrained Sampling for Language Models Should Be Easy: An MCMC PerspectiveEmmanuel Anaya Gonzalez, Sairam Vaidya, Kanghee Park, Ruyi Ji 等NeurIPS 2025 · 15 次引用
  2. The Hidden Cost of Structured Generation in LLMs: Draft-Conditioned Constrained DecodingAvinash Reddy, Thayne Walker, Jaime Ide, Amrit Singh BediICML 2026 · 6 次引用
  3. Mitigating Bias in Locally Constrained Decoding via Tractable ProposalsMeihua Dang, Linxin Song, Honghua Zhang, Jieyu Zhao 等ICML 2026 · 4 次引用
  4. ToolPRM: Fine-Grained Inference Scaling of Structured Outputs for Function CallingJianghao Lin, Yuanyuan Shi, Xin Peng, Renjie Ding 等ACL 2026 · 3 次引用
  5. Constrained Adaptive Rejection SamplingPaweł Parys, Sairam Vaidya, Taylor Berg-Kirkpatrick, Loris D'AntoniICML 2026 · 3 次引用

它引用的 Paper5

  1. Grammar Prompting for Domain-Specific Language Generation with Large Language ModelsBailin Wang, Zi Wang, Xuezhi Wang, Yuan Cao 等NeurIPS 2023 · 138 次引用
  2. Guiding LLMs The Right Way: Fast, Non-Invasive Constrained GenerationLuca Beurer-Kellner, Marc Fischer, Martin T. VechevICML 2024 · 93 次引用
  3. Grammar-Aligned DecodingKanghee Park, Jiayu Wang, Taylor Berg-Kirkpatrick, Nadia Polikarpova 等NeurIPS 2024 · 73 次引用
  4. Grammar-Constrained Decoding for Structured NLP Tasks without FinetuningSaibo Geng, Martin Josifoski, Maxime Peyrard, Robert WestEMNLP 2023 · 33 次引用
  5. CRANE: Reasoning with constrained LLM generationDebangshu Banerjee, Tarun Suresh, Shubham Ugare, Sasa Misailovic 等ICML 2025

相关 Paper

  1. Efficient Grammar-Constrained Decoding via Parser Stack ClassificationYongmin Li, Yihong Dong, Jia Li, Ge LiISSTA 2026
  2. Gram2Token: Enabling Run-time GPU-Native Grammar-Constrained Decoding for LLMsHantao Hua, Jiming Su, hao tang, Yiping Yao 等ICML 2026
  3. Constrained Decoding of Diffusion LLMs with Context-Free GrammarsNiels Mündler, Jasper Dekoninck, Martin VechevICLR 2026 · 18 次引用
  4. Earley-Driven Dynamic Pruning for Efficient Structured DecodingXintong Sun, Chi Wei, Minghao Tian, Shiwen NiICML 2025
  5. ChopChop: A Programmable Framework for Semantically Constraining the Output of Language ModelsShaan Nagy, Timothy Zhou, Nadia Polikarpova, Loris D'AntoniPOPL 2026 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖