Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlo
Not on the map. Why?
Abstract (arXiv)
A wide range of LM applications require generating text that conforms to syntactic or semantic constraints. Imposing such constraints can be naturally framed as probabilistic conditioning, but exact generation from the resulting distribution -- which can differ substantially from the LM's base distribution -- is generally intractable. In this work, we develop an architecture for controlled LM generation based on sequential Monte Carlo (SMC). Our SMC framework allows us to flexibly incorporate domain- and problem-specific constraints at inference time, and efficiently reallocate computational resources in light of new information during the course of generation. By comparing to a number of alternatives and ablations on four challenging domains -- Python code generation for data science, text-to-SQL, goal inference, and molecule synthesis -- we demonstrate that, with little overhead, our approach allows small open-source language models to outperform models over 8x larger, as well as closed-source, fine-tuned ones. In support of the probabilistic perspective, we show that these performance improvements are driven by better approximation to the posterior distribution. Our system builds on the framework of Lew et al. (2023) and integrates with its language model probabilistic programming language, giving users a simple, programmable way to apply SMC to a broad variety of controlled generation problems.
Key facts. Cited by 46 papers in the map (data through 14 Oct 2026). Builds on 73 of its 104 references that are in the map. First posted on arXiv 17 Apr 2025.
Builds on
73 of 104 references.
References · 73
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Let's Verify Step by Stepcited by 3,789
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2020Learning to summarize from human feedbackcited by 2,588
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2023LLM+P: Empowering Large Language Models with Optimal Planning Proficiencycited by 501
38 more
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
- 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraintcited by 350
- 2023Principled Reinforcement Learning with Human Feedback from Pairwise or K-wise Comparisonscited by 247
- 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
- 2023Secrets of RLHF in Large Language Models Part I: PPOcited by 229
- 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 207
- 2023Efficient Guided Generation for Large Language Modelscited by 200
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 197
- 2024Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Datacited by 185
- 2023Planning with Large Language Models for Code Generationcited by 182
- 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Proverscited by 168
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 161
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
- 2022RL with KL penalties is better viewed as Bayesian inferencecited by 135
- 2023Controlled Decoding from Language Modelscited by 135
- 2023Translating Natural Language to Planning Goals with Large-Language Modelscited by 133
- 2022Natural Language to Code Translation with Executioncited by 124
- 2024BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Samplingcited by 121
- 2020If beam search is the answer, what was the question?cited by 116
- 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 94
- 2024Probabilistic Inference in Language Models via Twisted Sequential Monte Carlocited by 90
- 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 80
- 2022RankGen: Improving Text Generation with Large Ranking Modelscited by 72
- 2021Controlled Text Generation as Continuous Optimization with Multiple Constraintscited by 70
- 2021Keeping it Simple: Language Models can learn Complex Molecular Distributionscited by 68
- 2023Grounded Decoding: Guiding Text Generation with Grounded Models for Embodied Agentscited by 67
- 2023Tractable Control for Autoregressive Language Generationcited by 65
- 2019Elements of Sequential Monte Carlocited by 64
- 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
- 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Modelscited by 58
- 2021A Plug-and-Play Method for Controlled Text Generationcited by 56
- 2024Grammar-Aligned Decodingcited by 54
- 2024Variational Best-of-N Alignmentcited by 51
- 2024Automata-based constraints for language model decodingcited by 51
50 most cited of 73 All 73 (JSON)
Built on by
Citing papers per year: 2025: 17; 2026: 29.
46 papers.
Sort:
By area:
- 2025Enforcing Temporal Constraints for LLM Agentscited by 34
- 2025DINGO: Constrained Inference for Diffusion LLMscited by 16
- 2025Modeling Open-World Cognition as On-Demand Synthesis of Probabilistic Modelscited by 14
- 2025Neurosymbolic Diffusion Modelscited by 13
- 2026Rare Event Analysis of Large Language Modelscited by 8
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposalscited by 8
- 2025Inference-Time Scaling of Diffusion Language Models via Trajectory Refinementcited by 7
- 2025Neuro-Symbolic Predictive Process Monitoringcited by 7
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 7
- 2026On the Power of (Approximate) Reward Models for Inference-Time Scalingcited by 7
- 2026Scaling Discovery through Test-Time Communicationcited by 7
- 2025Reinforced sequential Monte Carlo for amortised samplingcited by 6
34 more
- 2026What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answeringcited by 6
- 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systemscited by 6
- 2025RefineStat: Efficient Exploration for Probabilistic Program Synthesiscited by 5
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlocited by 5
- 2025Semantic Probabilistic Control of Language Modelscited by 4
- 2025Collision- and Reachability-Aware Multi-Robot Control with Grounded LLM Plannerscited by 4
- 2025Mitigating Premature Exploitation in Particle-based Monte Carlo for Inference-Time Scalingcited by 4
- 2026Repair, Not Improvement: Decomposing Constrained Decoding in Tool-Call Abstentioncited by 4
- 2025ABS: Enforcing Constraint Satisfaction On Generated Sequences Via Automata-Guided Beam Searchcited by 3
- 2025Constrained Adaptive Rejection Samplingcited by 3
- 2026Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inferencecited by 3
- 2026The Format Taxcited by 3
- 2025Improving Constrained Language Generation via Self-Distilled Twisted Sequential Monte Carlocited by 2
- 2026Naive Prompt Optimization: Rethinking the Need for Complex Prompt Searchcited by 2
- 2025Language and Experience: A Computational Model of Social Learning in Complex Taskscited by 1
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoningcited by 1
- 2026Decoupling Exploration and Policy Optimization: Uncertainty Guided Tree Search for Hard Explorationcited by 1
- 2026Probabilistic Programs of Thoughtcited by 1
- 2026Do Large Language Models Plan Answer Positions? Position Bias in Multiple-Choice Question Generationcited by 1
- 2026TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraintscited by 1
- 2026Conformal Language Modeling via Posterior Samplingcited by 1
- 2026FluxLite: Inference-Time Proposal Control for Discrete Diffusion Modelscited by 1
- 2025Test-time reward-guided alignment of language models by importance sampling on pre-logit spacecited by 0
- 2025Learning Tractable Distributions Of Language Model Continuationscited by 0
- 2026Faster LLM Inference via Sequential Monte Carlocited by 0
- 2026Navigating the Clutter: Waypoint-Based Bi-Level Planning for Multi-Robot Systemscited by 0
- 2026Neuro-Symbolic Injection of LTLf Constraints in Autoregressive Reinforcement Learning Policiescited by 0
- 2026We Hebben Een Serieus Translatie: Modeling Intercomprehension as Probabilistic Inferencecited by 0
- 2026Tractable Hierarchical Control of Autoregressive Language Modelscited by 0
- 2026PPDL: LLM-Based Flows as Probabilistic Programscited by 0
- 2026Chopthin-Consensus Power Sampling: A Diversity-Preserving Approach to LLM Decodingcited by 0
- 2026Twist, Don't Tilt: Trajectory-Exact Constrained Decoding for Masked Diffusion Modelscited by 0
- 2026GrammarRL: Effective Grammar-Constrained Decoding via Reinforcement Learningcited by 0
- 2026LatticeSMC: Where to Spend Inference-Time Compute in Chunked Sequence Generatorscited by 0
- 2026LatticeSMC: Where to Spend Inference-Time Compute in Chunked Sequence Generators2 Oct 2026
- 2026GrammarRL: Effective Grammar-Constrained Decoding via Reinforcement Learning30 Sep 2026
- 2026FluxLite: Inference-Time Proposal Control for Discrete Diffusion Models28 Sep 2026
- 2026Twist, Don't Tilt: Trajectory-Exact Constrained Decoding for Masked Diffusion Models28 Sep 2026
- 2026Scaling Discovery through Test-Time Communication17 Sep 2026
- 2026Chopthin-Consensus Power Sampling: A Diversity-Preserving Approach to LLM Decoding10 Sep 2026
- 2026Naive Prompt Optimization: Rethinking the Need for Complex Prompt Search27 Aug 2026
- 2026Repair, Not Improvement: Decomposing Constrained Decoding in Tool-Call Abstention14 Aug 2026
- 2026PPDL: LLM-Based Flows as Probabilistic Programs5 Aug 2026
- 2026We Hebben Een Serieus Translatie: Modeling Intercomprehension as Probabilistic Inference13 Jul 2026
- 2026Neuro-Symbolic Injection of LTLf Constraints in Autoregressive Reinforcement Learning Policies6 Jun 2026
- 2026Conformal Language Modeling via Posterior Sampling2 Jun 2026
34 more
- 2026Tractable Hierarchical Control of Autoregressive Language Models1 Jun 2026
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposals1 Jun 2026
- 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systems14 May 2026
- 2026TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraints13 May 2026
- 2026Do Large Language Models Plan Answer Positions? Position Bias in Multiple-Choice Question Generation3 May 2026
- 2026Navigating the Clutter: Waypoint-Based Bi-Level Planning for Multi-Robot Systems22 Apr 2026
- 2026Probabilistic Programs of Thought19 Apr 2026
- 2026Faster LLM Inference via Sequential Monte Carlo17 Apr 2026
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlo7 Apr 2026
- 2026The Format Tax4 Apr 2026
- 2026Decoupling Exploration and Policy Optimization: Uncertainty Guided Tree Search for Hard Exploration23 Mar 2026
- 2026Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inference9 Mar 2026
- 2026Rare Event Analysis of Large Language Models6 Feb 2026
- 2026On the Power of (Approximate) Reward Models for Inference-Time Scaling1 Feb 2026
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammars31 Jan 2026
- 2026What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answering28 Jan 2026
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoning5 Jan 2026
- 2025Enforcing Temporal Constraints for LLM Agents25 Dec 2025
- 2025Learning Tractable Distributions Of Language Model Continuations20 Nov 2025
- 2025Test-time reward-guided alignment of language models by importance sampling on pre-logit space30 Oct 2025
- 2025Reinforced sequential Monte Carlo for amortised sampling13 Oct 2025
- 2025Mitigating Premature Exploitation in Particle-based Monte Carlo for Inference-Time Scaling7 Oct 2025
- 2025Constrained Adaptive Rejection Sampling2 Oct 2025
- 2025RefineStat: Efficient Exploration for Probabilistic Program Synthesis1 Sep 2025
- 2025Neuro-Symbolic Predictive Process Monitoring31 Aug 2025
- 2025Language and Experience: A Computational Model of Social Learning in Complex Tasks26 Aug 2025
- 2025Modeling Open-World Cognition as On-Demand Synthesis of Probabilistic Models16 Jul 2025
- 2025Inference-Time Scaling of Diffusion Language Models via Trajectory Refinement11 Jul 2025
- 2025Improving Constrained Language Generation via Self-Distilled Twisted Sequential Monte Carlo3 Jul 2025
- 2025ABS: Enforcing Constraint Satisfaction On Generated Sequences Via Automata-Guided Beam Search11 Jun 2025
- 2025DINGO: Constrained Inference for Diffusion LLMs29 May 2025
- 2025Collision- and Reachability-Aware Multi-Robot Control with Grounded LLM Planners26 May 2025
- 2025Neurosymbolic Diffusion Models19 May 2025
- 2025Semantic Probabilistic Control of Language Models4 May 2025
- 2025Neurosymbolic Diffusion Modelscited by 13
- 2025Inference-Time Scaling of Diffusion Language Models via Trajectory Refinementcited by 7
- 2026On the Power of (Approximate) Reward Models for Inference-Time Scalingcited by 7
- 2025Mitigating Premature Exploitation in Particle-based Monte Carlo for Inference-Time Scalingcited by 4
- 2026Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inferencecited by 3
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoningcited by 1
- 2026Probabilistic Programs of Thoughtcited by 1
- 2026Chopthin-Consensus Power Sampling: A Diversity-Preserving Approach to LLM Decodingcited by 0
- 2026LatticeSMC: Where to Spend Inference-Time Compute in Chunked Sequence Generatorscited by 0
- 2026LatticeSMC: Where to Spend Inference-Time Compute in Chunked Sequence Generators2 Oct 2026
- 2026Chopthin-Consensus Power Sampling: A Diversity-Preserving Approach to LLM Decoding10 Sep 2026
- 2026Probabilistic Programs of Thought19 Apr 2026
- 2026Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inference9 Mar 2026
- 2026On the Power of (Approximate) Reward Models for Inference-Time Scaling1 Feb 2026
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoning5 Jan 2026
- 2025Mitigating Premature Exploitation in Particle-based Monte Carlo for Inference-Time Scaling7 Oct 2025
- 2025Inference-Time Scaling of Diffusion Language Models via Trajectory Refinement11 Jul 2025
- 2025Neurosymbolic Diffusion Models19 May 2025
- 2025Enforcing Temporal Constraints for LLM Agentscited by 34
- 2026Scaling Discovery through Test-Time Communicationcited by 7
- 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systemscited by 6
- 2026Repair, Not Improvement: Decomposing Constrained Decoding in Tool-Call Abstentioncited by 4
- 2026Naive Prompt Optimization: Rethinking the Need for Complex Prompt Searchcited by 2
- 2026Scaling Discovery through Test-Time Communication17 Sep 2026
- 2026Naive Prompt Optimization: Rethinking the Need for Complex Prompt Search27 Aug 2026
- 2026Repair, Not Improvement: Decomposing Constrained Decoding in Tool-Call Abstention14 Aug 2026
- 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systems14 May 2026
- 2025Enforcing Temporal Constraints for LLM Agents25 Dec 2025
- 2026Faster LLM Inference via Sequential Monte Carlocited by 0
- 2026Faster LLM Inference via Sequential Monte Carlo17 Apr 2026
- 2025DINGO: Constrained Inference for Diffusion LLMscited by 16
- 2025Modeling Open-World Cognition as On-Demand Synthesis of Probabilistic Modelscited by 14
- 2026Rare Event Analysis of Large Language Modelscited by 8
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposalscited by 8
- 2025Neuro-Symbolic Predictive Process Monitoringcited by 7
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 7
- 2025Reinforced sequential Monte Carlo for amortised samplingcited by 6
- 2025RefineStat: Efficient Exploration for Probabilistic Program Synthesiscited by 5
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlocited by 5
- 2025Semantic Probabilistic Control of Language Modelscited by 4
- 2025Collision- and Reachability-Aware Multi-Robot Control with Grounded LLM Plannerscited by 4
- 2025ABS: Enforcing Constraint Satisfaction On Generated Sequences Via Automata-Guided Beam Searchcited by 3
12 most cited of 24 All 24 (JSON)
- 2026PPDL: LLM-Based Flows as Probabilistic Programs5 Aug 2026
- 2026We Hebben Een Serieus Translatie: Modeling Intercomprehension as Probabilistic Inference13 Jul 2026
- 2026Conformal Language Modeling via Posterior Sampling2 Jun 2026
- 2026Tractable Hierarchical Control of Autoregressive Language Models1 Jun 2026
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposals1 Jun 2026
- 2026TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraints13 May 2026
- 2026Do Large Language Models Plan Answer Positions? Position Bias in Multiple-Choice Question Generation3 May 2026
- 2026Navigating the Clutter: Waypoint-Based Bi-Level Planning for Multi-Robot Systems22 Apr 2026
- 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlo7 Apr 2026
- 2026The Format Tax4 Apr 2026
- 2026Rare Event Analysis of Large Language Models6 Feb 2026
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammars31 Jan 2026
12 newest of 24 All 24 (JSON)