pith. sign in

arxiv: 2212.10466 · v1 · pith:BKLJSQIOnew · submitted 2022-12-20 · 💻 cs.CL

Controllable Text Generation with Language Constraints

classification 💻 cs.CL
keywords languagetextconstraintsgenerationguidancemodelconstraintbenchmark
0
0 comments X
read the original abstract

We consider the task of text generation in language models with constraints specified in natural language. To this end, we first create a challenging benchmark Cognac that provides as input to the model a topic with example text, along with a constraint on text to be avoided. Unlike prior work, our benchmark contains knowledge-intensive constraints sourced from databases like Wordnet and Wikidata, which allows for straightforward evaluation while striking a balance between broad attribute-level and narrow lexical-level controls. We find that even state-of-the-art language models like GPT-3 fail often on this task, and propose a solution to leverage a language model's own internal knowledge to guide generation. Our method, called CognacGen, first queries the language model to generate guidance terms for a specified topic or constraint, and uses the guidance to modify the model's token generation probabilities. We propose three forms of guidance (binary verifier, top-k tokens, textual example), and employ prefix-tuning approaches to distill the guidance to tackle diverse natural language constraints. Through extensive empirical evaluations, we demonstrate that CognacGen can successfully generalize to unseen instructions and outperform competitive baselines in generating constraint conforming text.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. One Model, Multiple Goals: Adaptive Multi-Objective Learning for E-commerce Dialogue Systems

    cs.CL 2026-06 unverdicted novelty 5.0

    MORE applies adaptive multi-objective RL to jointly optimize reasoning accuracy and linguistic quality in e-commerce dialogues, reporting 16.53% and 30.09% lifts in conversion metrics on ByteDance production traffic.