atlas

Research map / Probabilistic and scientific modeling / Variational and generative sampling

Controllable Generation via Locally Constrained Resampling

ICLR 2025 · Probabilistic and scientific modeling › Variational and generative sampling · approach: Sequential Monte Carlo for inference · 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 Locally Constrained Resampling (Gen-C), which builds a local factorized pseudolikelihood around an LLM sample, conditions it exactly on a logical constraint via constraint circuits, and corrects bias with importance-weighted resampling to guarantee constraint satisfaction.

Problem

Autoregressive models struggle to generate outputs that satisfy logical constraints; greedy token-masking methods are myopic and do not sample from the correctly conditioned distribution.

Approach

Treat an LLM sample as inducing a local factorized (contextualized pseudolikelihood) distribution that can be exactly conditioned on a constraint compiled into a constraint circuit; sample from this conditional, reweight by importance weights against the LLM, and resample, yielding constraint-satisfying samples close to the conditional LLM distribution.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply LCR instead of oversamplingCNN-LSTM · WarcraftExact accuracy: 69.10% -> 78.13%Helped
Apply LCR to constrain generated pathsCNN-LSTM · WarcraftConsistent accuracy: 76.60 -> 100%Helped
Apply LCR with Sudoku constraintsLlama3-8B · SudokuExact accuracy: 44.90% -> 100%Helped
Apply LCR with Sudoku constraintsLlama3-8B · SudokuConsistent accuracy: 44.90% -> 100%Helped
Ban listed toxic expressions with LCRLlama3-8B · RealToxicityPrompts ToxicExpected maximum toxicity: 0.43 -> 0.37Helped
Ban listed toxic expressions with LCRLlama3-8B · RealToxicityPrompts ToxicToxicity probability: 38.30% -> 28.00%Helped
Ban listed toxic expressions with LCRLlama3-8B · RealToxicityPrompts FullExpected maximum toxicity: 0.25 -> 0.23Helped
Ban listed toxic expressions with LCRLlama3-8B · RealToxicityPrompts FullToxicity probability: 14.26% -> 11.04%Helped
Ban listed toxic expressions with LCRLlama3-8B · RealToxicityPrompts NontoxicExpected maximum toxicity: 0.20 -> 0.19Helped
Ban listed toxic expressions with LCRLlama3-8B · RealToxicityPrompts NontoxicToxicity probability: 7.60% -> 6.35%Helped
Ban listed toxic expressions with LCRLlama3-8B · RealToxicityPromptsPPL: 14.45 -> 14.50Hurt

Limitations

Experimental setup

Datasets: Warcraft shortest path dataset Sudoku 10K puzzles RealToxicityPrompts LDNOOBW bad words list

Benchmarks: Warcraft shortest path Sudoku RealToxicityPrompts

Metrics: exact match accuracy consistency expected maximum toxicity toxicity probability perplexity

Baselines: Word Banning Gemini 1.5 Flash GPT-4o mini CNN-LSTM oversampling

Builds on: Outlines NeuroLogic Decoding ASAp PICARD sentential decision diagrams

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