mlsanityData to 14 Oct 2026

ABS: Enforcing Constraint Satisfaction On Generated Sequences Via Automata-Guided Beam Search

arXiv 2506.09701 ↗First posted 11 Jun 2025cs.LG cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Sequence generation and prediction form a cornerstone of modern machine learning, with applications spanning natural language processing, program synthesis, and time-series forecasting. These tasks are typically modeled in an autoregressive fashion, where each token is generated conditional on the preceding ones, and beam search is commonly used to balance exploration and fluency during decoding. While deep learning models and Large Language Models (LLMs) excel at capturing statistical patterns in this setting, they remain ill-equipped to guarantee compliance with formal constraints. In this paper, we introduce ABS: a general and model-agnostic inference-time algorithm that guarantees compliance with any constraint that can be compiled into a Deterministic Finite Automaton (DFA), without requiring retraining. ABS leverages the DFA to guide a constrained variant of beam search: at each decoding step, transitions leading to violations are masked, while remaining paths are dynamically re-ranked according to both the model's probabilities and the automaton's acceptance structure. We formally prove that the resulting sequences are guaranteed to satisfy the given constraints, and we empirically demonstrate that ABS also improves output quality. We validate our approach on three distinct tasks: constrained image-stream classification, controlled text generation, and text infilling. In all settings, ABS achieves perfect constraint satisfaction, while outperforming or matching state-of-the-art baselines on standard quality metrics and efficiency.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 28 of its 42 references that are in the map. First posted on arXiv 11 Jun 2025.

Builds on

28 of 42 references.

References · 28

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2014CIDEr: Consensus-based Image Description Evaluationcited by 2,046
  3. 2016SPICE: Semantic Propositional Image Caption Evaluationcited by 824
  4. 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
  5. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
  6. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
  7. 2017A Semantic Loss Function for Deep Learning with Symbolic Knowledgecited by 270
  8. 2020Neurosymbolic AI: The 3rd Wavecited by 255
  9. 2023Efficient Guided Generation for Large Language Modelscited by 200
  10. 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
  11. 2020NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraintscited by 149
  12. 2020Enabling Language Models to Fill in the Blankscited by 122
16 more
  1. 2022Semantic Probabilistic Layers for Neuro-Symbolic Learningcited by 103
  2. 2020Analyzing Differentiable Fuzzy Logic Operatorscited by 101
  3. 2018CGMH: Constrained Sentence Generation by Metropolis-Hastings Samplingcited by 94
  4. 2017Logic Tensor Networks for Semantic Image Interpretationcited by 92
  5. 2023Tractable Control for Autoregressive Language Generationcited by 65
  6. 2020From Statistical Relational to Neuro-Symbolic Artificial Intelligencecited by 63
  7. 2021Incorporating Domain Knowledge into Deep Neural Networkscited by 56
  8. 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
  9. 2025Syntactic and Semantic Control of Large Language Models via Sequential Monte Carlocited by 46
  10. 2021MultiplexNet: Towards Fully Satisfied Logical Constraints in Neural Networkscited by 44
  11. 2022Deep Learning with Logical Constraintscited by 44
  12. 2022Controllable Text Generation with Neurally-Decomposed Oraclecited by 41
  13. 2021Multi-Label Classification Neural Networks with Hard Logical Constraintscited by 36
  14. 2022NeuPSL: Neural Probabilistic Soft Logiccited by 34
  15. 2022VAEL: Bridging Variational Autoencoders and Probabilistic Logic Programmingcited by 31
  16. 2024Controllable Generation via Locally Constrained Resamplingcited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.