atlas

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

Probabilistic Inference in Language Models via Twisted Sequential Monte Carlo

ICML 2024 · Probabilistic and scientific modeling › Variational and generative sampling · approach: Sequential Monte Carlo for inference · 1 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 twisted Sequential Monte Carlo for probabilistic inference in language models, learning intermediate twist functions via a contrastive twist learning objective, and bidirectional SMC bounds on the log partition function for evaluating inference quality.

Problem

Sampling from unnormalized LM target distributions defined by terminal potentials (RLHF, red-teaming, controlled generation, infilling) is hard because the marginals require intractable future marginalization, and existing inference methods lack tools for evaluating accuracy in both KL directions.

Approach

Learn intermediate twist functions that approximate future expected potential so that SMC resampling focuses on promising partial sequences; train them with a contrastive (EBM-style MLE / KL-to-marginal) objective, and derive bidirectional SMC upper and lower bounds on log Z that sandwich KL divergences in both directions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the twist-induced proposal instead of the base-model proposalTwisted SMC and SIS · Toxic story generationlog partition function estimation and sampling efficiencyHelped
Resample when using the twist-induced proposalTwisted SMC · Toxic story generationlog partition function boundsNo clear effect
Use SMC resampling with the base-model proposal instead of SISBase-model sampling · Toxic story generation with a threshold targetlog partition function boundsHelped
Train the proposal with PPO rather than CTLToxic story generation · Toxic story generationforward KL, DKL(q||σ)Helped
Train the proposal with CTL rather than PPOToxic story generation · Toxic story generationreverse KL, DKL(σ||q)Helped
Use CTL rather than the other evaluated methodsTwist-induced proposal · Generation with varied sentimentKL divergenceHelped
Train the proposal with DPG rather than the other evaluated methodsInfilling · InfillingKL divergenceHelped
Use CTL rather than DPG for infillingInfilling · InfillingKL divergenceHurt
Train with PPO rather than DPG for infillingInfilling · Infillingreverse KL, DKL(σ_oT||q_oT)Hurt
Use approximate positive sampling rather than exact target samples for twist trainingCTL · Toxic story generationKL divergenceMixed

Surprising findings

Limitations

Experimental setup

Datasets: Amazon reviews TinyStories

Benchmarks: toxic story generation amazon review sentiment infilling

Metrics: log partition function bounds forward and reverse KL divergence

Baselines: PPO DPG SIXO FUDGE soft Q-learning twist learning SIS

Builds on: sequential Monte Carlo twisted SMC SIXO FUDGE IWAE

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