Pre3: Enabling Deterministic Pushdown Automata for Faster Structured LLM Generation
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
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 3,080
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
- 2023Large Language Models as Tool Makerscited by 303
- 2021A Survey of Embodied AI: From Simulators to Research Taskscited by 261
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 69
- 2023Embodied Multi-Modal Agent trained by an LLM from a Parallel TextWorldcited by 65
- 2024Automata-based constraints for language model decodingcited by 51
5 more
- 2025Flexible and Efficient Grammar-Constrained Decodingcited by 43
- 2024Formal-LLM: Integrating Formal Language and Natural Language for Controllable LLM-based Agentscited by 40
- 2024Large Language Models as Zero-shot Dialogue State Tracker through Function Callingcited by 34
- 2023Discrete Prompt Optimization via Constrained Generation for Zero-shot Re-rankercited by 20
- 2022CodePAD: Sequence-based Code Generation with Pushdown Automatoncited by 7
Built on by
Citing papers per year: 2025: 3; 2026: 8.
11 papers.
- 2025SlimInfer: Accelerating Long-Context LLM Inference via Dynamic Token Pruningcited by 13
- 2025TokenFlow: Responsive LLM Text Streaming Serving under Request Burst via Preemptive Schedulingcited by 10
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 7
- 2026NovBench: Evaluating Large Language Models on Academic Paper Novelty Assessmentcited by 7
- 2026SmartThinker: Progressive Chain-of-Thought Length Calibration for Efficient Large Language Model Reasoningcited by 4
- 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inferencecited by 4
- 2026BubbleSpec: Turning Long-Tail Bubbles into Speculative Rollout Drafts for Synchronous Reinforcement Learningcited by 2
- 2026ExFold: Unified Expert Folding for Training-Free MoE Prefill-Decode Accelerationcited by 2
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devicescited by 1
- 2026Attention Meets Reachability: Structural Equivalence and Efficiency in Grammar-Constrained LLM Decodingcited by 1
- 2026Stay Within Your Bounds: Distance-Guided Decoding for Guaranteed Context-Free Grammar Compliancecited by 1
- 2026Stay Within Your Bounds: Distance-Guided Decoding for Guaranteed Context-Free Grammar Compliance28 Aug 2026
- 2026ExFold: Unified Expert Folding for Training-Free MoE Prefill-Decode Acceleration24 Aug 2026
- 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference20 Jul 2026
- 2026BubbleSpec: Turning Long-Tail Bubbles into Speculative Rollout Drafts for Synchronous Reinforcement Learning9 May 2026
- 2026NovBench: Evaluating Large Language Models on Academic Paper Novelty Assessment13 Apr 2026
- 2026SmartThinker: Progressive Chain-of-Thought Length Calibration for Efficient Large Language Model Reasoning9 Mar 2026
- 2026Attention Meets Reachability: Structural Equivalence and Efficiency in Grammar-Constrained LLM Decoding4 Mar 2026
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammars31 Jan 2026
- 2025PerCache: Predictive Hierarchical Cache for RAG Applications on Mobile Devices10 Dec 2025
- 2025TokenFlow: Responsive LLM Text Streaming Serving under Request Burst via Preemptive Scheduling3 Oct 2025
- 2025SlimInfer: Accelerating Long-Context LLM Inference via Dynamic Token Pruning8 Aug 2025