Intertwining CP and NLP: The Generation of Unreasonably Constrained Sentences
Alexandre Bonlarron, Jean-Charles R\'egin

TL;DR
This paper introduces the CPTextGen framework, a novel constraint programming approach that effectively generates highly constrained sentences, including RADNER sentences, by combining linguistic and classical constraints with LLM-based selection.
Contribution
The paper presents a generic CP-based framework for constrained text generation, capable of handling complex constraints beyond previous ad-hoc models, demonstrated on RADNER sentence generation.
Findings
Successfully generated highly constrained RADNER sentences
Demonstrated the framework's ability to handle complex linguistic constraints
Showed improved constraint satisfaction over previous methods
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsSparse Evolutionary Training
