mlsanityData to 14 Oct 2026

Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generation

arXiv 2506.03887 ↗First posted 4 Jun 2025cs.CLcited by 11

Not on the map. Why?

Abstract (arXiv)

Extensive LLM applications demand efficient structured generations, particularly for LR(1) grammars, to produce outputs in specified formats (e.g., JSON). Existing methods primarily parse LR(1) grammars into a pushdown automaton (PDA), leading to runtime execution overhead for context-dependent token processing, especially inefficient under large inference batches. To address these issues, we propose Pre3 that exploits deterministic pushdown automata (DPDA) to optimize the constrained LLM decoding efficiency. First, by precomputing prefix-conditioned edges during the preprocessing, Pre3 enables ahead-of-time edge analysis and thus makes parallel transition processing possible. Second, by leveraging the prefix-conditioned edges, Pre3 introduces a novel approach that transforms LR(1) transition graphs into DPDA, eliminating the need for runtime path exploration and achieving edge transitions with minimal overhead. Pre3 can be seamlessly integrated into standard LLM inference frameworks, reducing time per output token (TPOT) by up to 40% and increasing throughput by up to 36% in our experiments. Our code is available at https://github.com/ModelTC/lightllm.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 17 of its 39 references that are in the map. First posted on arXiv 4 Jun 2025.

Builds on

17 of 39 references.

References · 17

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  4. 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 3,080
  5. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  6. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  7. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
  8. 2023Large Language Models as Tool Makerscited by 303
  9. 2021A Survey of Embodied AI: From Simulators to Research Taskscited by 261
  10. 2024SynCode: LLM Generation with Grammar Augmentationcited by 69
  11. 2023Embodied Multi-Modal Agent trained by an LLM from a Parallel TextWorldcited by 65
  12. 2024Automata-based constraints for language model decodingcited by 51
5 more
  1. 2025Flexible and Efficient Grammar-Constrained Decodingcited by 43
  2. 2024Formal-LLM: Integrating Formal Language and Natural Language for Controllable LLM-based Agentscited by 40
  3. 2024Large Language Models as Zero-shot Dialogue State Tracker through Function Callingcited by 34
  4. 2023Discrete Prompt Optimization via Constrained Generation for Zero-shot Re-rankercited by 20
  5. 2022CodePAD: Sequence-based Code Generation with Pushdown Automatoncited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 8.

11 papers.