paper-with-me

Papers

Exposing the Implicit Energy Networks behind Masked Language Models via Metropolis--Hastings

2021-06-04 · ICLR 2022 4 · 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).

📄 PDF Abstract BibTeX arXiv:2106.02736

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingMachine TranslationMasked Language ModelingOpen-Ended Question AnsweringTranslation

Similar Papers 제목 키워드 기반

The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs

2025-07-15 · Zichen Wen, Jiashu Qu, Dongrui Liu, Zhiyuan Liu 외

Diffusion-based large language models (dLLMs) have recently emerged as a powerful alternative to autoregressive LLMs, offering faster inference and greater interactivity via parallel decoding and bidirectional modeling. …

Code GenerationSafety AlignmentText GenerationText Infilling

Correcting Automated and Manual Speech Transcription Errors using Warped Language Models

2021-03-26 · Mahdi Namazifar, John Malik, Li Erran Li, Gokhan Tur 외

Masked language models have revolutionized natural language processing systems in the past few years. A recently introduced generalization of masked language models called warped language models are trained to be more ro…

Language ModelingLanguage Modelling

Induction in Both Directions: A Mechanistic Analysis of In-Context Learning in Masked Diffusion Language Models

2026-07-17 · Andy Catruna, Emilian Radoi arxiv

While the internal mechanisms of autoregressive (AR) transformers have been studied extensively, much less is known about diffusion language models (DLMs), an emerging alternative that generates text by iterative denoisi…

Masked Vision and Language Modeling for Multi-modal Representation Learning

2022-08-03 · Gukyeong Kwon, Zhaowei Cai, Avinash Ravichandran, Erhan Bas 외

In this paper, we study how to use masked signal modeling in vision and language (V+L) representation learning. Instead of developing masked language modeling (MLM) and masked image modeling (MIM) independently, we propo…

cross-modal alignmentLanguage ModelingLanguage ModellingMasked Language Modeling+1

Planning with Sequence Models through Iterative Energy Minimization

2023-03-28 · Hongyi Chen, Yilun Du, Yiye Chen, Joshua Tenenbaum 외

Recent works have shown that sequence modeling can be effectively used to train reinforcement learning (RL) policies. However, the success of applying existing sequence models to planning, in which we wish to obtain a tr…

Language ModelingLanguage ModellingReinforcement Learning (RL)