Pith. sign in

REVIEW 1 cited by

Gradient-Based Constrained Sampling from Language Models

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2205.12558 v2 pith:S4XOO6TZ submitted 2022-05-25 cs.CL

classification cs.CL
keywords languageconstraintsmodelssamplingtextconstrainedenergyfunction
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large pretrained language models generate fluent text but are notoriously hard to controllably sample from. In this work, we study constrained sampling from such language models: generating text that satisfies user-defined constraints, while maintaining fluency and the model's performance in a downstream task. We propose MuCoLa -- a sampling procedure that combines the log-likelihood of the language model with arbitrary (differentiable) constraints in a single energy function, and then generates samples in a non-autoregressive manner. Specifically, it initializes the entire output sequence with noise and follows a Markov chain defined by Langevin Dynamics using the gradients of the energy function. We evaluate MuCoLa on text generation with soft and hard constraints as well as their combinations obtaining significant improvements over competitive baselines for toxicity avoidance, sentiment control, and keyword-guided generation.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

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

  1. CapTune: Adapting Non-Speech Captions With Anchored Generative Models

    cs.HC 2025-08 conditional novelty 6.0 of 10

    CapTune lets caption creators set bounds and viewers tune non-speech caption text; a 19-person qualitative evaluation reported greater engagement and retained creative control.

Pith tools