atlas

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

TRACE Back from the Future: A Probabilistic Reasoning Approach to Controllable Language Generation

ICML 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 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 TRACE, which distills an HMM from a base LM and uses a factorized log-linear attribute classifier to compute expected attribute probability exactly, reweighting LM next-token probabilities for controllable generation.

Problem

Controllable language generation requires global, look-ahead attribute satisfaction (e.g., non-toxicity, persona, topic), but autoregressive decoding is myopic and existing EAP approximations via training or sampling are costly, high-variance, and slow to adapt to rare attributes.

Approach

Distill a tractable HMM once from the base LM, restrict attribute classifiers to factorized (log-linear) token-weight form so that expected attribute probability over HMM futures can be computed exactly via forward-backward recursion, and fit new attributes with a log-MSE loss on oracle scores; composition is done by multiplying token weights.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use TRACE instead of DPOGPT2-Large on RealToxicityPrompts · RealToxicityPrompts, GPT-2 Largeaverage maximum toxicity: 0.180 -> 0.163Helped
Use TRACE instead of DPOGemma-2B on RealToxicityPrompts · RealToxicityPrompts, Gemma-2Baverage maximum toxicity: 0.222 -> 0.189Helped
Add training-time probability transformation (ablation)TRACE on GPT-2 Large · RealToxicityPromptsaverage maximum toxicity: 0.353 -> 0.187Helped
Add decoding-time probability transformation after training-time transformation (ablation)TRACE on GPT-2 Large · RealToxicityPromptsaverage maximum toxicity: 0.187 -> 0.163Helped
Add training-time and decoding-time probability transformations (ablation)TRACE on GPT-2 Large · RealToxicityPromptsPPL: 25.44 -> 29.83Hurt
Increase the decoding-time transformation multiplierTRACE · DetoxificationfluencyHurt
Use TRACE instead of DPOGemma-2B on RealToxicityPrompts · RealToxicityPrompts, Gemma-2BDist-2: 0.74 -> 0.86Helped
Use TRACE instead of DPOGPT2-Large on RealToxicityPrompts · RealToxicityPrompts, GPT-2 LargeDist-2: 0.76 -> 0.85Helped
Control for political content onlyTRACE on GPT2-Large · RealToxicityPrompts compositionMean Pol: 0.169 -> 0.333Helped
Compose detoxification and political-content controlTRACE on GPT2-Large · RealToxicityPrompts compositionMax Tox: 0.386 -> 0.190Helped
Compose detoxification and political-content controlTRACE on GPT2-Large · RealToxicityPrompts compositionMean Pol: 0.169 -> 0.344Helped
Improve the distilled HMM's log-likelihood through more trainingTRACE · Detoxificationaverage maximum toxicityHelped

Surprising findings

Limitations

Experimental setup

Datasets: RealToxicityPrompts RoleBench News Category dataset

Benchmarks: RealToxicityPrompts

Metrics: average maximum toxicity toxicity probability perplexity distinct-2 distinct-3 role quality political relevance inference time ratio

Baselines: DAPT PPO Quark DPO GeDi FUDGE DExperts PPLM MuCoLa Mix and Match Prompting

Builds on: hidden Markov models probabilistic circuits GeDi FUDGE DExperts

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