atlas

Research map / Large language models / Language, safety and interpretability

Guaranteed Generation from Large Language Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Parallel and early-exit decoding · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes GUARD, which trains an autoregressive proposal to approximate the gold filtered distribution g(y)∝a(y)b(y) (via DPG, warm-started with constraint-aware prompting) and then applies rejection sampling so outputs strictly satisfy hard constraints.

Problem

Guaranteeing that all LLM outputs strictly satisfy hard constraints while distorting the base model's distribution as little as possible and keeping inference cost low; autoregressive models cannot in general exactly represent the constrained target distribution.

Approach

Define the gold filtered model g ∝ a·b as the ideal target (the I-projection of the base LLM onto constraint-satisfying distributions), show an autoregressive model cannot exactly match it in general, then approximate it with an autoregressive proposal a' trained by distributional policy gradient (warm-started from constraint-aware prompting) and enforce the constraint by rejection sampling from a

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use GUARD rejection sampling with a trained proposal instead of sampling from the base modelGemma-2B · Lexical constraint ("amazing")acceptance rate: 0.0023 to 0.416; almost 180×Helped
Use GUARD rejection sampling with a trained proposal instead of sampling from the base modelGPT-2 fine-tuned on ROCStories · Sentiment reversalacceptance rate: 0.005 to 0.306; almost 60×Helped
Replace constraint-aware prompting with DPG approximationGUARD · Lexical constraint ("amazing")distributional distance to goldHelped
Use constraint-aware prompting instead of DPG approximationGUARD · Lexical constraint ("amazing")Self-BLEU 2-gram: 0.342 -> 0.438Hurt
Warm-start DPG with constraint-aware promptingGUARD · Lexical constraint ("amazing")distributional distance to goldHelped
Warm-start DPG with constraint-aware promptingGUARD · Sentiment reversaltraining efficiencyHelped
Use DPG instead of SFTGUARD · Lexical constraint ("amazing")distributional distance to goldHelped
Use DPG instead of SFTGUARD · Sentiment reversaldistributional distance to goldHelped
Use constraint-aware prompting instead of DPG approximationGUARD · Sentiment reversalSelf-BLEU 2-gram: 0.753 -> 0.827Hurt
Warm-start DPG with constraint-aware prompting rather than initializing DPG from the base model (ablation)GUARD · Lexical constraint ("amazing")training performanceHelped
Warm-start DPG with constraint-aware prompting rather than initializing DPG from the base model (ablation)GUARD · Sentiment reversaltraining efficiencyHelped

Surprising findings

Limitations

Experimental setup

Datasets: ROCStories

Benchmarks: lexical constraint 'amazing' generation (Gemma-2B) ROCStories positive ending sentiment reversal (GPT-2)

Metrics: KL(g||g') acceptance rate Self-BLEU semantic similarity UMAP visualization

Baselines: rejection sampling from base LLM SFT constraint-aware prompting Independent Metropolis-Hastings Quasi-Rejection Sampling

Builds on: Distributional Policy Gradient I-projection / information geometry rejection sampling Independent Metropolis-Hastings NADO

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy