Lune

ICML2024顶会

Probabilistic Inference in Language Models via Twisted Sequential Monte Carlo

Stephen Zhao, Rob Brekelmans, Alireza Makhzani, Roger Baker Grosse

摘要

Numerous capability and safety techniques of Large Language Models (LLMs), including RLHF, automated red-teaming, prompt engineering, and infilling, can be cast as sampling from an unnormalized target distribution defined by a given reward or potential function over the full sequence. In this work, we leverage the rich toolkit of Sequential Monte Carlo (SMC) for these probabilistic inference problems. In particular, we use learned twist functions to estimate the expected future value of the potential at each timestep, which enables us to focus inference-time computation on promising partial sequences. We propose a novel contrastive method for learning the twist functions, and establish connections with the rich literature of soft reinforcement learning. As a complementary application of our twisted SMC framework, we present methods for evaluating the accuracy of language model inference techniques using novel bidirectional SMC bounds on the log partition function. These bounds can be used to estimate the KL divergence between the inference and target distributions in both directions. We apply our inference evaluation techniques to show that twisted SMC is effective for sampling undesirable outputs from a pretrained model (a useful component of harmlessness training and automated red-teaming), generating reviews with varied sentiment, and performing infilling tasks.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 44 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Plug and Play Language Models: A Simple Approach to Controlled Text Generation 引用了 The Curious Case of Neural Text Degeneration
  • A Distributional Approach to Controlled Text Generation 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • A Distributional Approach to Controlled Text Generation 引用了 The Curious Case of Neural Text Degeneration
  • Learning to summarize with human feedback 引用了 The Curious Case of Neural Text Degeneration
  • Self-Consuming Generative Models with Curated Data Provably Optimize Human Preferences 引用了 Learning to summarize with human feedback
  • Self-Consuming Generative Models with Curated Data Provably Optimize Human Preferences 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Decoding-Time Language Model Alignment with Multiple Objectives 引用了 Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based Decoding 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Inference-time scaling of diffusion models through classical search 引用了 Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based Decoding
  • Reasoning with Sampling: Your Base Model is Smarter Than You Think 引用了 Inference-time scaling of diffusion models through classical search
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper44

  1. Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-based DecodingXiner Li, Yulai Zhao, Chenyu Wang, Gabriele Scalia 等NeurIPS 2025 · 147 次引用
  2. Decoding-Time Language Model Alignment with Multiple ObjectivesRuizhe Shi, Yifang Chen, Yushi Hu, Alisa Liu 等NeurIPS 2024 · 111 次引用
  3. Reasoning with Sampling: Your Base Model is Smarter Than You ThinkAayush Karan, Yilun DuICLR 2026 · 87 次引用
  4. Inference-time scaling of diffusion models through classical searchXiangcheng Zhang, Haowei Lin, Haotian Ye, James Y. Zou 等ICLR 2026 · 57 次引用
  5. Self-Consuming Generative Models with Curated Data Provably Optimize Human PreferencesDamien Ferbach, Quentin Bertrand, Avishek Joey Bose, Gauthier GidelNeurIPS 2024 · 41 次引用

它引用的 Paper16

  1. Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning 等NeurIPS 2023 · 10,924 次引用
  2. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
  3. Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung 等ICLR 2020 · 1,166 次引用
  4. A Distributional Approach to Controlled Text GenerationMuhammad Khalifa, Hady Elsahar, Marc DymetmanICLR 2021 · 135 次引用
  5. Learning to summarize with human feedbackNisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel M. Ziegler 等NeurIPS 2020 · 124 次引用

相关 Paper

  1. Step-by-Step Reasoning for Math Problems via Twisted Sequential Monte CarloShengyu Feng, Xiang Kong, Shuang Ma, Aonan Zhang 等ICLR 2025
  2. Safety Alignment of Large Language Models via Contrasting Safe and Harmful DistributionsXiaoyun Zhang, Zhengyue Zhao, Wenxuan Shi, Kaidi Xu 等AAAI 2026 · 4 次引用
  3. DeAL: Decoding-time Alignment for Large Language ModelsJames Y. Huang, Sailik Sengupta, Daniele Bonadiman, Yi-An Lai 等ACL 2025
  4. Reverse Constitutional AI: A Framework for Controllable Toxic Data Generation via Probability-Clamped RLAIFYuan Fang, Yiming Luo, Aimin Zhou, Fei TanACL Findings 2026 · 1 次引用
  5. RL with KL penalties is better viewed as Bayesian inferenceTomasz Korbak, Ethan Perez, Christopher L. BuckleyEMNLP Findings 2022 · 8 次引用
黄昏的海面,两侧是细线勾勒的悬崖