Research map / Large language models / Language, safety and interpretability
Gradient-based Constrained Sampling from Language Models
Sachin Kumar, Biswajit Paria, Yulia Tsvetkov
University of Washington · Carnegie Mellon University
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
7improved
1no clear effect
4hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use MuCoLa instead of DExperts for toxicity avoidance | GPT2-Large · RealToxicityPrompts | toxicity probability: 0.118 -> 0.088 | Improved |
| use MuCoLa instead of DExperts for toxicity avoidance | GPT2-Large · RealToxicityPrompts | GPT2-XL perplexity (closer to unconstrained 38.6): 38.20 -> 29.92 | Improved |
| combine two sentiment classifiers (SST-2 and Yelp) as two constraints (two-disc) (ablation) | MuCoLa-disc · Sentiment control, length 20 | % positive (C3): 88.0 / 83.0 -> 96.0 | Improved |
| train constraint classifier on Yelp instead of SST-2 (ablation) | MuCoLa-disc · Sentiment control, length 20 | % positive (C3): 88.0 -> 83.0 | Hurt |
| use MuCoLa-two-disc instead of GeDi/DExperts | GPT2-Large sentiment · Sentiment control, length 20 | % positive (C3) and perplexity: C3 96.0 vs DExperts 95.4, GeDi 99.7; perplexity 28.9 vs 55.37 / 268.7 | Mixed |
| longer outputs (length 50) for sentiment control | MuCoLa · Sentiment control | sentiment control performance | Hurt |
| use MuCoLa instead of COLD on CommonGen | GPT2-XL · CommonGen | coverage percent / perplexity: 94.5 -> 99.7 percent; perplexity 54.98 -> 23.50 | Improved |
| use MuCoLa instead of Neurologic on CommonGen | GPT2-XL · CommonGen | human fluency: 2.53 -> 2.29 | Hurt |
| use MuCoLa instead of unconstrained decoding for terminology translation | MarianMT en-de · WMT17 en-de subset | coverage / BLEU: coverage 85.3 -> 100; BLEU 32.9 -> 33.1 | Improved |
| represent tokens as embeddings instead of vocabulary-sized logits (ablation) | MuCoLa · speed and memory analysis | maximum generable sequence length: out of memory beyond length 20 with vocabulary-sized vs up to length 500 with embeddings | Improved |
| vary initialization of the Langevin chain (ablation) | MuCoLa · Toxicity avoidance (100 prompts) | diversity metrics | No clear effect |
| lower toxicity threshold epsilon from 0.5 to 0.01 (ablation) | MuCoLa · Toxicity avoidance (100 prompts) | toxicity control and perplexity | Improved |
Closest papers by meaning
- Principled Gradient-Based MCMC for Conditional Sampling of Text (ICML 2024 · similarity 0.91)
- Constrained Sampling for Language Models Should Be Easy: An MCMC Perspective (NeurIPS 2025 · similarity 0.90)
- Controllable Generation via Locally Constrained Resampling (ICLR 2025 · similarity 0.90)
- Guaranteed Generation from Large Language Models (ICLR 2025 · similarity 0.90)
- Constrained Discrete Diffusion (NeurIPS 2025 · similarity 0.89)
- Breaking AR’s Sampling Bottleneck: Provable Acceleration via Diffusion Language Models (NeurIPS 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
