mlsanityData to 26 Nov 2026

Specification-Guided Generation for Large Language Models

arXiv 2610.41511 ↗Submitted 30 Oct 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) can generate structured outputs, but existing constrained-decoding methods mainly enforce syntax and cannot directly enforce satisfaction of a formal specification. We introduce a neuro-symbolic, specification-guided decoding framework that combines LLM generation with symbolic reasoning. At each step, the framework refines the decoding grammar by filtering out values that cannot be extended to an output satisfying the specification. We present a forward-only variant that guarantees specification satisfaction by construction, and a backtracking variant that revises earlier feasible choices when their downstream consequences leave only values that the LLM itself judges unsuitable. The framework is model-agnostic, requires no retraining, and builds on existing grammar-constrained decoding mechanisms. Experiments on configuration and constraint-solving benchmarks show that the forward-only variant reliably produces specification-compliant outputs while reducing repeated LLM inference compared with rejection sampling and incurring modest symbolic-reasoning overhead. The backtracking variant further reduces cases in which the model is forced to select values that it has itself judged unsuitable, thereby substantially improving adherence to the LLM's stated interpretation of the prompt.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 8 of its 22 references that are in the map. Submitted 30 Oct 2026.

Builds on

8 of 22 references.

References · 8

  1. 2020Language Models are Few-Shot Learnerscited by 33,113
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,772
  3. 2022Large Language Models Encode Clinical Knowledgecited by 1,922
  4. 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 421
  5. 2023SatLM: Satisfiability-Aided Language Models Using Declarative Promptingcited by 116
  6. 2025ChopChop: a Programmable Framework for Semantically Constraining the Output of Language Modelscited by 21
  7. 2025Large Language Model Meets Constraint Propagationcited by 3
  8. 2025Towards Industrial-scale Product Configurationcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Thinking Before Constraining: A Unified Decoding Framework for Large Language Models
  2. 2026Learning and Enforcing Context-Sensitive Control for LLMs
  3. 2025CRANE: Reasoning with constrained LLM generation
  4. 2026Pushing the Boundaries of Natural Reasoning: Interleaved Bonus from Formal-Logic Verification
  5. 2026SpecLens: LLM-Based Verilog Generation with Specification-Derived Constraints via Behavioral Divergence ↗
  6. 2025textttSEM-CTRL: Semantically Controlled Decoding
  7. 2025Decoupling Task-Solving and Output Formatting in LLM Generation
  8. 2025Seeking Specifications: The Case for Neuro-Symbolic Specification Synthesis