mlsanityData to 14 Oct 2026

Intertwining CP and NLP: The Generation of Unreasonably Constrained Sentences

arXiv 2406.15473 ↗First posted 15 Jun 2024cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Constrained text generation remains a challenging task, particularly when dealing with hard constraints. Traditional NLP approaches prioritize generating meaningful and coherent output. Also, the current state-of-the-art methods often lack the expressiveness and constraint satisfaction capabilities to handle such tasks effectively. Recently, an approach for generating constrained sentences in CP has been proposed in (Bonlarron et al, 2023). This ad-hoc model to solve the sentences generation problem under MNREAD rules proved neithertheless to be computationaly and structuraly unsuitable to deal with other more constrained problems. In this paper, a novel more generic approach is introduced to tackle many of these previously untractable problems, and illustrated here with the quite untractable sentences generation problem following RADNER rules. More precisely, this paper presents the CPTextGen Framework. This framework considers a constrained text generation problem as a discrete combinatorial optimization problem. It is solved by a constraint programming method that combines linguistic properties (e.g., n-grams or language level) with other more classical constraints (e.g., the number of characters, syllables). Eventually, a curation phase allows for selecting the best-generated sentences according to perplexity using an LLM. The effectiveness of this approach is demonstrated by tackling a new, more tediously constrained text generation problem: the iconic RADNER sentences problem. This problem aims to generate sentences respecting a set of quite strict rules defined by their use in vision and clinical research. Thanks to our CP-based approach, many new strongly constrained sentences have been successfully generated. This highlights our approach's potential to handle unreasonably constrained text generation scenarios.

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

Builds on

9 of 42 references.

References · 9

  1. 2017Attention Is All You Needcited by 60,361
  2. 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 237
  3. 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 182
  4. 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
  5. 2023COLLIE: Systematic Construction of Constrained Text Generation Taskscited by 70
  6. 2022Why is constrained neural language generation particularly challenging?cited by 19
  7. 2021Constrained Text Generation with Global Guidance -- Case Study on CommonGencited by 10
  8. 2022Peel-and-Bound: Generating Stronger Relaxed Bounds with Multivalued Decision Diagramscited by 4
  9. 2023Constraints First: A New MDD-based Model to Generate Sentences Under Constraintscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Large-Scale Constraint Generation -- Can LLMs Parse Hundreds of Constraints?
  2. 2024In Tree Structure Should Sentence Be Generated
  3. 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generation
  4. 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
  5. 2024Controllable Text Generation for Large Language Models: A Survey
  6. 2024Linguistics Theory Meets LLM: Code-Switched Text Generation via Equivalence Constrained Large Language Models
  7. 2025On the Query Complexity of Verifier-Assisted Language Generation
  8. 2025Constrained Discrete Diffusion