atlas

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

Successor Features for Efficient Multi-Subject Controlled Text Generation

ICML 2024 · Large language models › Language, safety and interpretability · approach: Zero-shot machine-text detection

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 SFGen, which applies successor features with language model rectification to controllable text generation, learning one feature network plus a small reward vector per subject so multiple subjects can be combined at decoding time without altering the LLM.

Problem

Decoding-based controllable text generation needs new discriminators whenever the target subject changes, and becomes costly when multiple subjects (e.g., several toxicity attributes or sentiments) must be controlled simultaneously.

Approach

Combine successor features (decoupling LM dynamics from task reward via a linear reward w) with language model rectification; reformulate SF Bellman updates so the linear reward is only regressed at terminal states, and fuse multiple subjects by taking the minimum of their value functions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use SFGen instead of direct prompting for detoxificationGPT4All-J 6B · Detoxification, 6B instruction-tuned LMtoxicity: 0.56_{0.13} -> 0.34_{0.15}Helped
Use SFGen instead of direct prompting for detoxificationGPT4All-J 6B · Detoxification, 6B instruction-tuned LMinsult: 0.46_{0.18} -> 0.19_{0.14}Helped
Use SFGen instead of direct prompting for detoxificationGPT4All-J 6B · Detoxification, 6B instruction-tuned LMthreat: 0.14_{0.17} -> 0.08_{0.10}Helped
Use SFGen instead of direct prompting for detoxificationGPT4All-J 6B · Detoxification, 6B instruction-tuned LMsexual toxicity: 0.32_{0.25} -> 0.18_{0.18}Helped
Use SFGen instead of RectGPT-2 large · Detoxification, RealToxicityPrompts toxic promptsoutput perplexity: 52.80 -> 48.17Helped
Use SFGen instead of RectGPT-2 large · Sentiment control, negative promptspositive sentiment %: 52.02 -> 46.78Hurt
Use SFGen instead of RectGPT-2 large · Sentiment control, positive promptsnegative sentiment %: 74.20 -> 70.29Hurt
Combine attack, threat, and sexual reward parametersSFGen · Detoxification, 500-prompt subsetattack: 0.50_{0.15} -> 0.24_{0.18}Helped
Combine attack, threat, and sexual reward parametersSFGen · Detoxification, 500-prompt subsetthreat: 0.48_{0.15} -> 0.13_{0.13}Helped
Combine attack, threat, and sexual reward parametersSFGen · Detoxification, 500-prompt subsetsexual toxicity: 0.68_{0.18} -> 0.34_{0.18}Helped
Train successor features with Monte Carlo rather than SARSASFGen · Sentiment control and detoxificationperformanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: RealToxicityPrompts OpenWebText (OWT) corpus SST-2

Benchmarks: RealToxicityPrompts OpenWebText sentiment prompts

Metrics: toxicity expected max score (Perspective API) positive/negative sentiment percentage output perplexity (GPT2-XL) Dist-2 Dist-3 inference time

Baselines: PPLM DAPT CTRL GeDi DExperts Rect Self-Debiasing

Builds on: successor features language model rectification DExperts GeDi 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