Exposing the Implicit Energy Networks behind Masked Language Models via Metropolis--Hastings
Kartik Goyal, Chris Dyer, Taylor Berg-Kirkpatrick
摘要
While recent work has shown that scores from models trained by the ubiquitous masked language modeling (MLM) objective effectively discriminate probable from improbable sequences, it is still an open question if these MLMs specify a principled probability distribution over the space of possible sequences. In this paper, we interpret MLMs as energy-based sequence models and propose two energy parametrizations derivable from the trained MLMs. In order to draw samples correctly from these models, we develop a tractable sampling scheme based on the Metropolis--Hastings Monte Carlo algorithm. In our approach, samples are proposed from the same masked conditionals used for training the masked language models, and they are accepted or rejected based on their energy values according to the target distribution. We validate the effectiveness of the proposed parametrizations by exploring the quality of samples drawn from these energy-based models for both open-ended unconditional generation and a conditional generation task of machine translation. We theoretically and empirically justify our sampling algorithm by showing that the masked conditionals on their own do not yield a Markov chain whose stationary distribution is that of our target distribution, and our approach generates higher quality samples than other recently proposed undirected generation approaches (Wang et al., 2019, Ghazvininejad et al., 2019).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 22 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 Language Models are Few-Shot Learners
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 Residual Energy-Based Models for Text Generation
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 Mix and Match: Learning-free Controllable Text Generationusing Energy Language Models
- COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics 引用了 The Curious Case of Neural Text Degeneration
- Oops I Took A Gradient: Scalable Sampling for Discrete Distributions 引用了 Residual Energy-Based Models for Text Generation
- Language Models are Few-Shot Learners 引用了 The Curious Case of Neural Text Degeneration
- Residual Energy-Based Models for Text Generation 引用了 The Curious Case of Neural Text Degeneration
- Amortizing intractable inference in large language models 引用了 The Curious Case of Neural Text Degeneration
- Aligning Language Models with Preferences through f-divergence Minimization 引用了 COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamics
- Aligning Language Models with Preferences through f-divergence Minimization 引用了 Language Models are Few-Shot Learners
- Mix and Match: Learning-free Controllable Text Generationusing Energy Language Models 引用了 Masked Language Model Scoring
引用它的顶会 Paper22
- COLD Decoding: Energy-based Constrained Text Generation with Langevin DynamicsLianhui Qin, Sean Welleck, Daniel Khashabi, Yejin ChoiNeurIPS 2022 · 217 次引用
- Aligning Language Models with Preferences through f-divergence MinimizationDongyoung Go, Tomasz Korbak, Germán Kruszewski, Jos Rozen 等ICML 2023 · 119 次引用
- Amortizing intractable inference in large language modelsEdward J. Hu, Moksh Jain, Eric Elmoznino, Younesse Kaddar 等ICLR 2024 · 91 次引用
- Mix and Match: Learning-free Controllable Text Generationusing Energy Language ModelsFatemehsadat Mireshghallah, Kartik Goyal, Taylor Berg-KirkpatrickACL 2022 · 90 次引用
- Quantifying Privacy Risks of Masked Language Models Using Membership Inference AttacksFatemehsadat Mireshghallah, Kartik Goyal, Archit Uniyal, Taylor Berg-Kirkpatrick 等EMNLP 2022 · 72 次引用
它引用的 Paper5
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
- Masked Language Model ScoringJulian Salazar, Davis Liang, Toan Q. Nguyen, Katrin KirchhoffACL 2020 · 167 次引用
- Residual Energy-Based Models for Text GenerationYuntian Deng, Anton Bakhtin, Myle Ott, Arthur Szlam 等ICLR 2020 · 147 次引用
- Oops I Took A Gradient: Scalable Sampling for Discrete DistributionsWill Grathwohl, Kevin Swersky, Milad Hashemi, David Duvenaud 等ICML 2021 · 113 次引用
相关 Paper
- Principled Gradient-Based MCMC for Conditional Sampling of TextLi Du, Afra Amini, Lucas Torroba Hennigen, Xinyan Velocity Yu 等ICML 2024 · 6 次引用
- ETS: Energy-Guided Test-Time Scaling for Training-Free RL AlignmentXiuyu Li, Jinkai Zhang, Mingyang Yi, Yu Li 等ICML 2026 · 4 次引用
- Probing BERT's priors with serial reproduction chainsTakateru Yamakoshi, Thomas L. Griffiths, Robert D. HawkinsACL Findings 2022 · 7 次引用
- MLE-Guided Parameter Search for Task Loss Minimization in Neural Sequence ModelingSean Welleck, Kyunghyun ChoAAAI 2021 · 8 次引用
- Energy-Based Diffusion Language Models for Text GenerationMinkai Xu, Tomas Geffner, Karsten Kreis, Weili Nie 等ICLR 2025
