mlsanityData to 14 Oct 2026

Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlo

arXiv 2504.13139 ↗First posted 17 Apr 2025cs.CL cs.AI cs.LGcited by 46

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

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2023Let's Verify Step by Stepcited by 3,789
  3. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
  4. 2020Learning to summarize from human feedbackcited by 2,588
  5. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,348
  6. 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
  7. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
  8. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  9. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  10. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  11. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  12. 2023LLM+P: Empowering Large Language Models with Optimal Planning Proficiencycited by 501
38 more
  1. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 452
  2. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 411
  3. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
  4. 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraintcited by 350
  5. 2023Principled Reinforcement Learning with Human Feedback from Pairwise or K-wise Comparisonscited by 247
  6. 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
  7. 2023Secrets of RLHF in Large Language Models Part I: PPOcited by 229
  8. 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 207
  9. 2023Efficient Guided Generation for Large Language Modelscited by 200
  10. 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 197
  11. 2024Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Datacited by 185
  12. 2023Planning with Large Language Models for Code Generationcited by 182
  13. 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Proverscited by 168
  14. 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 163
  15. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 161
  16. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  17. 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
  18. 2022RL with KL penalties is better viewed as Bayesian inferencecited by 135
  19. 2023Controlled Decoding from Language Modelscited by 135
  20. 2023Translating Natural Language to Planning Goals with Large-Language Modelscited by 133
  21. 2022Natural Language to Code Translation with Executioncited by 124
  22. 2024BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Samplingcited by 121
  23. 2020If beam search is the answer, what was the question?cited by 116
  24. 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 94
  25. 2024Probabilistic Inference in Language Models via Twisted Sequential Monte Carlocited by 90
  26. 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 80
  27. 2022RankGen: Improving Text Generation with Large Ranking Modelscited by 72
  28. 2021Controlled Text Generation as Continuous Optimization with Multiple Constraintscited by 70
  29. 2021Keeping it Simple: Language Models can learn Complex Molecular Distributionscited by 68
  30. 2023Grounded Decoding: Guiding Text Generation with Grounded Models for Embodied Agentscited by 67
  31. 2023Tractable Control for Autoregressive Language Generationcited by 65
  32. 2019Elements of Sequential Monte Carlocited by 64
  33. 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
  34. 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Modelscited by 58
  35. 2021A Plug-and-Play Method for Controlled Text Generationcited by 56
  36. 2024Grammar-Aligned Decodingcited by 54
  37. 2024Variational Best-of-N Alignmentcited by 51
  38. 2024Automata-based constraints for language model decodingcited by 51

50 most cited of 73 All 73 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 17; 2026: 29.

46 papers.

Sort:

By area:

  1. 2025Enforcing Temporal Constraints for LLM Agentscited by 34
  2. 2025DINGO: Constrained Inference for Diffusion LLMscited by 16
  3. 2025Modeling Open-World Cognition as On-Demand Synthesis of Probabilistic Modelscited by 14
  4. 2025Neurosymbolic Diffusion Modelscited by 13
  5. 2026Rare Event Analysis of Large Language Modelscited by 8
  6. 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposalscited by 8
  7. 2025Inference-Time Scaling of Diffusion Language Models via Trajectory Refinementcited by 7
  8. 2025Neuro-Symbolic Predictive Process Monitoringcited by 7
  9. 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 7
  10. 2026On the Power of (Approximate) Reward Models for Inference-Time Scalingcited by 7
  11. 2026Scaling Discovery through Test-Time Communicationcited by 7
  12. 2025Reinforced sequential Monte Carlo for amortised samplingcited by 6
34 more
  1. 2026What's the plan? Metrics for implicit planning in LLMs and their application to rhyme generation and question answeringcited by 6
  2. 2026Beyond Individual Intelligence: Surveying Collaboration, Failure Attribution, and Self-Evolution in LLM-based Multi-Agent Systemscited by 6
  3. 2025RefineStat: Efficient Exploration for Probabilistic Program Synthesiscited by 5
  4. 2026Sampling for Quality: Training-Free Reward-Guided LLM Decoding via Sequential Monte Carlocited by 5
  5. 2025Semantic Probabilistic Control of Language Modelscited by 4
  6. 2025Collision- and Reachability-Aware Multi-Robot Control with Grounded LLM Plannerscited by 4
  7. 2025Mitigating Premature Exploitation in Particle-based Monte Carlo for Inference-Time Scalingcited by 4
  8. 2026Repair, Not Improvement: Decomposing Constrained Decoding in Tool-Call Abstentioncited by 4
  9. 2025ABS: Enforcing Constraint Satisfaction On Generated Sequences Via Automata-Guided Beam Searchcited by 3
  10. 2025Constrained Adaptive Rejection Samplingcited by 3
  11. 2026Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inferencecited by 3
  12. 2026The Format Taxcited by 3
  13. 2025Improving Constrained Language Generation via Self-Distilled Twisted Sequential Monte Carlocited by 2
  14. 2026Naive Prompt Optimization: Rethinking the Need for Complex Prompt Searchcited by 2
  15. 2025Language and Experience: A Computational Model of Social Learning in Complex Taskscited by 1
  16. 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoningcited by 1
  17. 2026Decoupling Exploration and Policy Optimization: Uncertainty Guided Tree Search for Hard Explorationcited by 1
  18. 2026Probabilistic Programs of Thoughtcited by 1
  19. 2026Do Large Language Models Plan Answer Positions? Position Bias in Multiple-Choice Question Generationcited by 1
  20. 2026TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraintscited by 1
  21. 2026Conformal Language Modeling via Posterior Samplingcited by 1
  22. 2026FluxLite: Inference-Time Proposal Control for Discrete Diffusion Modelscited by 1
  23. 2025Test-time reward-guided alignment of language models by importance sampling on pre-logit spacecited by 0
  24. 2025Learning Tractable Distributions Of Language Model Continuationscited by 0
  25. 2026Faster LLM Inference via Sequential Monte Carlocited by 0
  26. 2026Navigating the Clutter: Waypoint-Based Bi-Level Planning for Multi-Robot Systemscited by 0
  27. 2026Neuro-Symbolic Injection of LTLf Constraints in Autoregressive Reinforcement Learning Policiescited by 0
  28. 2026We Hebben Een Serieus Translatie: Modeling Intercomprehension as Probabilistic Inferencecited by 0
  29. 2026Tractable Hierarchical Control of Autoregressive Language Modelscited by 0
  30. 2026PPDL: LLM-Based Flows as Probabilistic Programscited by 0
  31. 2026Chopthin-Consensus Power Sampling: A Diversity-Preserving Approach to LLM Decodingcited by 0
  32. 2026Twist, Don't Tilt: Trajectory-Exact Constrained Decoding for Masked Diffusion Modelscited by 0
  33. 2026GrammarRL: Effective Grammar-Constrained Decoding via Reinforcement Learningcited by 0
  34. 2026LatticeSMC: Where to Spend Inference-Time Compute in Chunked Sequence Generatorscited by 0