paper-with-me

홈 › Papers

Consistency of a Recurrent Language Model With Respect to Incomplete Decoding

2020-02-06 · EMNLP 2020 11 · Sean Welleck, Ilia Kulikov, Jaedeok Kim, Richard Yuanzhe Pang, Kyunghyun Cho

Despite strong performance on a variety of tasks, neural sequence models trained with maximum likelihood have been shown to exhibit issues such as length bias and degenerate repetition. We study the related issue of receiving infinite-length sequences from a recurrent language model when using common decoding algorithms. To analyze this issue, we first define inconsistency of a decoding algorithm, meaning that the algorithm can yield an infinite-length sequence that has zero probability under the model. We prove that commonly used incomplete decoding algorithms - greedy search, beam search, top-k sampling, and nucleus sampling - are inconsistent, despite the fact that recurrent language models are trained to produce sequences of finite length. Based on these insights, we propose two remedies which address inconsistency: consistent variants of top-k and nucleus sampling, and a self-terminating recurrent language model. Empirical results show that inconsistency occurs in practice, and that the proposed methods prevent inconsistency.

📄 PDF Abstract BibTeX arXiv:2002.02492

Code (1)

uralik/consistency-lm 공식 구현 pytorch

Tasks

Language ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

A Non-monotonic Self-terminating Language Model

2022-10-03 · Eugene Choi, Kyunghyun Cho, Cheolhyoung Lee

Recent large-scale neural autoregressive sequence models have shown impressive performances on a variety of natural language generation tasks. However, their generated sequences often exhibit degenerate properties such a…

Language ModelingLanguage ModellingmodelText Generation

The Alignment Problem in Constrained Code Generation

2026-06-19 · Matteo Biagiola, Jahrim Gabriele Cesario, Luca Di Grazia, George Zakhour 외 arxiv

Large Language Models (LLMs) have demonstrated strong capabilities in code generation, but their outputs frequently contain syntax or type errors that result in compilation failures. Constrained decoding has been propose…

Code Generation

On Training Recurrent Networks with Truncated Backpropagation Through Time in Speech Recognition

2018-07-09 · Hao Tang, James Glass

Recurrent neural networks have been the dominant models for many speech and language processing tasks. However, we understand little about the behavior and the class of functions recurrent networks can realize. Moreover,…

speech-recognitionSpeech Recognition

On Next-Token Prediction in LLMs: How End Goals Determine the Consistency of Decoding Algorithms

2025-05-16 · Jacob Trauger, Ambuj Tewari

Probabilistic next-token prediction trained using cross-entropy loss is the basis of most large language models. Given a sequence of previous values, next-token prediction assigns a probability to each possible next valu…

Information RetrievalPrediction

A Representation-Consistent Gated Recurrent Framework for Robust Medical Time-Series Classification

2026-02-10 · Maitri Krishna Sai arxiv

Medical time-series data are characterized by irregular sampling, high noise levels, missing values, and strong inter-feature dependencies. Recurrent neural networks (RNNs), particularly gated architectures such as Long …