Adaptable Logical Control for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Despite the success of Large Language Models (LLMs) on various tasks following human instructions, controlling model generation at inference time poses a persistent challenge. In this paper, we introduce Ctrl-G, an adaptable framework that facilitates tractable and flexible control of LLM generation to reliably follow logical constraints. Ctrl-G combines any production-ready LLM with a Hidden Markov Model, enabling LLM outputs to adhere to logical constraints represented as deterministic finite automata. We show that Ctrl-G, when applied to a TULU2-7B model, outperforms GPT3.5 and GPT4 on the task of interactive text editing: specifically, for the task of generating text insertions/continuations following logical constraints, Ctrl-G achieves over 30% higher satisfaction rate in human evaluation compared to GPT4. When applied to medium-size language models (e.g., GPT2-large), Ctrl-G also beats its counterparts for constrained generation by large margins on standard benchmarks. Additionally, as a proof-of-concept study, we experiment Ctrl-G on the Grade School Math benchmark to assist LLM reasoning, foreshadowing the application of Ctrl-G, as well as other constrained generation approaches, beyond traditional language generation tasks.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 34 of its 47 references that are in the map. First posted on arXiv 19 Jun 2024.
Builds on
34 of 47 references.
References · 34
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2014CIDEr: Consensus-based Image Description Evaluationcited by 2,027
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
- 2016SPICE: Semantic Propositional Image Caption Evaluationcited by 820
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 377
22 more
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
- 2022CoAuthor: Designing a Human-AI Collaborative Writing Dataset for Exploring Language Model Capabilitiescited by 245
- 2018Plan-And-Write: Towards Better Automatic Storytellingcited by 232
- 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 227
- 2023Efficient Guided Generation for Large Language Modelscited by 192
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 153
- 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 146
- 2020Enabling Language Models to Fill in the Blankscited by 121
- 2023Amortizing intractable inference in large language modelscited by 94
- 2023Sequential Monte Carlo Steering of Large Language Models using Probabilistic Programscited by 79
- 2023Evaluating Large Language Models on Controlled Generation Taskscited by 73
- 2022Creative Writing with an AI-Powered Writing Assistant: Perspectives from Professional Writerscited by 69
- 2023Tractable Control for Autoregressive Language Generationcited by 65
- 2022Controllable Text Generation with Neurally-Decomposed Oraclecited by 41
- 2023Bounding the Capabilities of Large Language Models in Open Text Generation with Prompt Constraintscited by 31
- 2022Zero-shot Sonnet Generation with Discourse-level Planning and Aesthetics Featurescited by 24
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 21
- 2022MACSum: Controllable Summarization with Mixed Attributescited by 13
- 2023Towards Accurate Translation via Semantically Appropriate Application of Lexical Constraintscited by 3
- 2022Easy Guided Decoding in Providing Suggestions for Interactive Machine Translationcited by 2
- 2023Disambiguated Lexically Constrained Neural Machine Translationcited by 1
Built on by
Citing papers per year: 2024: 5; 2025: 13; 2026: 12.
30 papers.
Sort:
By area:
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 20
- 2025Constrained Sampling for Language Models Should Be Easy: An MCMC Perspectivecited by 14
- 2024A Survey on Human-Centric LLMscited by 13
- 2025Neurosymbolic Diffusion Modelscited by 12
- 2024Controllable Generation via Locally Constrained Resamplingcited by 11
- 2026Breaking the Factorization Barrier in Diffusion Language Modelscited by 11
- 2025Scaling Probabilistic Circuits via Monarch Matricescited by 9
- 2025Fast and Expressive Multi-Byte Prediction with Probabilistic Circuitscited by 9
- 2025TRACE Back from the Future: A Probabilistic Reasoning Approach to Controllable Language Generationcited by 8
- 2025Decoupling Task-Solving and Output Formatting in LLM Generationcited by 8
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposalscited by 8
- 2024Guaranteed Generation from Large Language Modelscited by 7
18 more
- 2024Restructuring Tractable Probabilistic Circuitscited by 7
- 2025Neuro-Symbolic Predictive Process Monitoringcited by 7
- 2025Semantic Probabilistic Control of Language Modelscited by 4
- 2024Approximately Aligned Decodingcited by 3
- 2025Constrained Adaptive Rejection Samplingcited by 3
- 2025The Limits of Tractable Marginalizationcited by 2
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoningcited by 1
- 2026Neurosymbolic LoRA: Why and When to Tune Weights vs. Rewrite Promptscited by 1
- 2026CoLyricist: Enhancing Lyric Writing with AI through Workflow-Aligned Supportcited by 1
- 2025Norm-Q: Effective Compression Method for Hidden Markov Models in Neuro-Symbolic Applicationscited by 0
- 2025Learning Tractable Distributions Of Language Model Continuationscited by 0
- 2026Prompt Driven Development with Claude Code: Building a Complete TUI Framework for the Ring Programming Languagecited by 0
- 2026REASON: Accelerating Probabilistic Logical Reasoning for Scalable Neuro-Symbolic Intelligencecited by 0
- 2026Suffix-Constrained Greedy Search Algorithms for Causal Language Modelscited by 0
- 2026Neuro-Symbolic Injection of LTLf Constraints in Autoregressive Reinforcement Learning Policiescited by 0
- 2026Tractable Hierarchical Control of Autoregressive Language Modelscited by 0
- 2026ARdena: Scenario-driven control of real-time LLM agentscited by 0
- 2026The RAIL Principles for Neurosymbolic AI: Reasoning, Assurances, Interfacing and Learningcited by 0
- 2026The RAIL Principles for Neurosymbolic AI: Reasoning, Assurances, Interfacing and Learning4 Aug 2026
- 2026ARdena: Scenario-driven control of real-time LLM agents26 Jun 2026
- 2026Neuro-Symbolic Injection of LTLf Constraints in Autoregressive Reinforcement Learning Policies6 Jun 2026
- 2026Tractable Hierarchical Control of Autoregressive Language Models1 Jun 2026
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposals1 Jun 2026
- 2026Suffix-Constrained Greedy Search Algorithms for Causal Language Models1 Mar 2026
- 2026CoLyricist: Enhancing Lyric Writing with AI through Workflow-Aligned Support26 Feb 2026
- 2026Breaking the Factorization Barrier in Diffusion Language Models9 Feb 2026
- 2026REASON: Accelerating Probabilistic Logical Reasoning for Scalable Neuro-Symbolic Intelligence28 Jan 2026
- 2026Prompt Driven Development with Claude Code: Building a Complete TUI Framework for the Ring Programming Language24 Jan 2026
- 2026Neurosymbolic LoRA: Why and When to Tune Weights vs. Rewrite Prompts19 Jan 2026
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoning5 Jan 2026
18 more
- 2025Learning Tractable Distributions Of Language Model Continuations20 Nov 2025
- 2025Fast and Expressive Multi-Byte Prediction with Probabilistic Circuits14 Nov 2025
- 2025Decoupling Task-Solving and Output Formatting in LLM Generation4 Oct 2025
- 2025Constrained Adaptive Rejection Sampling2 Oct 2025
- 2025Norm-Q: Effective Compression Method for Hidden Markov Models in Neuro-Symbolic Applications29 Sep 2025
- 2025Neuro-Symbolic Predictive Process Monitoring31 Aug 2025
- 2025Scaling Probabilistic Circuits via Monarch Matrices14 Jun 2025
- 2025Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective6 Jun 2025
- 2025Neurosymbolic Diffusion Models19 May 2025
- 2025Semantic Probabilistic Control of Language Models4 May 2025
- 2025TRACE Back from the Future: A Probabilistic Reasoning Approach to Controllable Language Generation25 Apr 2025
- 2025The Limits of Tractable Marginalization17 Apr 2025
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Sampling7 Apr 2025
- 2024A Survey on Human-Centric LLMs20 Nov 2024
- 2024Restructuring Tractable Probabilistic Circuits19 Nov 2024
- 2024Controllable Generation via Locally Constrained Resampling17 Oct 2024
- 2024Guaranteed Generation from Large Language Models9 Oct 2024
- 2024Approximately Aligned Decoding1 Oct 2024
- 2025Neurosymbolic Diffusion Modelscited by 12
- 2025TRACE Back from the Future: A Probabilistic Reasoning Approach to Controllable Language Generationcited by 8
- 2025Decoupling Task-Solving and Output Formatting in LLM Generationcited by 8
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoningcited by 1
- 2026REASON: Accelerating Probabilistic Logical Reasoning for Scalable Neuro-Symbolic Intelligencecited by 0
- 2026The RAIL Principles for Neurosymbolic AI: Reasoning, Assurances, Interfacing and Learningcited by 0
- 2026The RAIL Principles for Neurosymbolic AI: Reasoning, Assurances, Interfacing and Learning4 Aug 2026
- 2026REASON: Accelerating Probabilistic Logical Reasoning for Scalable Neuro-Symbolic Intelligence28 Jan 2026
- 2026Entropy-Aligned Decoding of LMs for Better Writing and Reasoning5 Jan 2026
- 2025Decoupling Task-Solving and Output Formatting in LLM Generation4 Oct 2025
- 2025Neurosymbolic Diffusion Models19 May 2025
- 2025TRACE Back from the Future: A Probabilistic Reasoning Approach to Controllable Language Generation25 Apr 2025
- 2026ARdena: Scenario-driven control of real-time LLM agentscited by 0
- 2026ARdena: Scenario-driven control of real-time LLM agents26 Jun 2026
- 2025Fast Controlled Generation from Language Models with Adaptive Weighted Rejection Samplingcited by 20
- 2025Constrained Sampling for Language Models Should Be Easy: An MCMC Perspectivecited by 14
- 2024A Survey on Human-Centric LLMscited by 13
- 2024Controllable Generation via Locally Constrained Resamplingcited by 11
- 2025Scaling Probabilistic Circuits via Monarch Matricescited by 9
- 2025Fast and Expressive Multi-Byte Prediction with Probabilistic Circuitscited by 9
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposalscited by 8
- 2024Guaranteed Generation from Large Language Modelscited by 7
- 2024Restructuring Tractable Probabilistic Circuitscited by 7
- 2025Neuro-Symbolic Predictive Process Monitoringcited by 7
- 2025Semantic Probabilistic Control of Language Modelscited by 4
- 2024Approximately Aligned Decodingcited by 3
12 most cited of 21 All 21 (JSON)
- 2026Tractable Hierarchical Control of Autoregressive Language Models1 Jun 2026
- 2026Mitigating Bias in Locally Constrained Decoding via Tractable Proposals1 Jun 2026
- 2026Suffix-Constrained Greedy Search Algorithms for Causal Language Models1 Mar 2026
- 2026CoLyricist: Enhancing Lyric Writing with AI through Workflow-Aligned Support26 Feb 2026
- 2026Prompt Driven Development with Claude Code: Building a Complete TUI Framework for the Ring Programming Language24 Jan 2026
- 2026Neurosymbolic LoRA: Why and When to Tune Weights vs. Rewrite Prompts19 Jan 2026
- 2025Learning Tractable Distributions Of Language Model Continuations20 Nov 2025
- 2025Fast and Expressive Multi-Byte Prediction with Probabilistic Circuits14 Nov 2025
- 2025Constrained Adaptive Rejection Sampling2 Oct 2025
- 2025Norm-Q: Effective Compression Method for Hidden Markov Models in Neuro-Symbolic Applications29 Sep 2025
- 2025Neuro-Symbolic Predictive Process Monitoring31 Aug 2025
- 2025Scaling Probabilistic Circuits via Monarch Matrices14 Jun 2025
12 newest of 21 All 21 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Benchmarking Large Language Models on Controllable Generation under Diversified Instructions
- 2025Reasoning on a Budget: A Survey of Adaptive and Controllable Test-Time Compute in LLMs
- 2025Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation
- 2025Teaching Language Models to Critique via Reinforcement Learning
- 2025textttSEM-CTRL: Semantically Controlled Decoding
- 2025Large-Scale Constraint Generation -- Can LLMs Parse Hundreds of Constraints?
- 2024Aligning Large Language Models with Representation Editing: A Control Perspective
- 2025seqBench: A Tunable Benchmark to Quantify Sequential Reasoning Limits of LLMs