atlas

Research map / Large language models / Reasoning and chain of thought

Stay on Topic with Classifier-Free Guidance

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Theory of autoregressive reasoning · 5 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.

Adapts classifier-free guidance from text-to-image diffusion to autoregressive language model decoding, showing inference-time gains on zero-shot benchmarks, CoT, code generation, and chatbot system-prompt adherence.

Problem

Language models often lose adherence to the prompt over long generations and struggle with system-prompt following; existing fixes like instruction tuning or RL are costly, so an inference-time method is sought.

Approach

Applies classifier-free guidance to next-token logits: log P(w|c) is extrapolated from the unconditional distribution (prompt dropped or negative prompt) by a factor gamma, requiring no retraining, and extends to negative prompting for chatbots.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use CFG with γ=1.1 (ablation)CodeGen-350M-mono · HumanEval, temperature 0.2pass@1: 11.0% -> 11.8%Helped
use CFG with γ=2.0 (ablation)CodeGen-350M-mono · HumanEval, temperature 0.2pass@1: 11.0% -> 8.6%Hurt
use CFG with γ=1.5 (ablation)CodeGen-2B-mono · HumanEval, temperature 0.2pass@1: 19.5% -> 20.9%Helped
use CFG with γ=2.0 (ablation)CodeGen-2B-mono · HumanEval, temperature 0.2pass@1: 19.5% -> 16.5%Hurt
use CFG with γ=1.5 (ablation)CodeGen-6B-mono · HumanEval, temperature 0.2pass@1: 19.5% -> 20.9%Helped
use CFG with γ=1.10 (ablation)Bloom-3B · WMT14 fr-en, 0-shotBLEU: 14.16 -> 15.81Helped
use CFG with γ=1.25 (ablation)RedPajama-Incite-3B · WMT14 fr-en, 0-shotBLEU: 15.04 -> 17.78Helped
use CFG with γ=1.10 (ablation)Bloom-3B · WMT14 fr-en, 1-shotBLEU: 29.84 -> 28.53Hurt
use CFG with γ=1.10 (ablation)mT0 · WMT14 fr-en, 0-shotBLEU: 29.77 -> 27.79Hurt
use CFG with γ=1.25 (ablation)GPT-J · prompted code generationcorrect programming language rate: 73% -> 86%Helped
apply negative-prompt CFG with γ=3GPT4All-J v1.3-jazzy · assistant prompts, human evaluationsystem-prompt following preference: 75%Helped
apply negative-prompt CFG with γ=3GPT4All-J v1.3-jazzy · assistant prompts, human evaluationuser-prompt relevance preference: 52%No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: LAMBADA SciQ TriviaQA HellaSwag PiQA ARC BoolQ WinoGrande GSM8K AQuA HumanEval WMT14 fr-en

Benchmarks: LAMBADA SciQ TriviaQA HellaSwag PiQA ARC BoolQ WinoGrande GSM8K AQuA HumanEval WMT14 fr-en

Metrics: accuracy pass@k BLEU top-p overlap entropy ANCOVA p-value

Baselines: PaLM-540B Chinchilla 70B GPT-3 175B vanilla sampling (gamma=1)

Builds on: classifier-free guidance classifier guidance negative prompting chain-of-thought prompting PPLM

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