Papers › A Non-monotonic Self-terminating Language Model

A Non-monotonic Self-terminating Language Model

3 Oct 2022arXiv:2210.00660archive 2025-07-28

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 as non-termination, undesirable repetition, and premature termination, when generated with decoding algorithms such as greedy search, beam search, top-k sampling, and nucleus sampling. In this paper, we focus on the problem of non-terminating sequences resulting from an incomplete decoding algorithm. We first define an incomplete probable decoding algorithm which includes greedy search, top-k sampling, and nucleus sampling, beyond the incomplete decoding algorithm originally put forward by Welleck et al. (2020). We then propose a non-monotonic self-terminating language model, which significantly relaxes the constraint of monotonically increasing termination probability in the originally proposed self-terminating language model by Welleck et al. (2020), to address the issue of non-terminating sequences when using incomplete probable decoding algorithms. We prove that our proposed model prevents non-terminating sequences when using not only incomplete probable decoding algorithms but also beam search. We empirically validate our model on sequence completion tasks with various architectures.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.00660")

Code

Syntology Ran 0 of 13 code samples harvested from 1 repository linked to this paper; 13 have no recorded run.

By repository: official repository: 13 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nyu-dl/non-monotonic-self-terminating-lm officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 0 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

13unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from nyu-dl/non-monotonic-self-terminating-lm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_dataloaders_and_vocab nyu-dl/non-monotonic-self-terminating-lm/src/wiki2/data.py official repository unverified BSD-3-Clause (permissive) · 9cce3c5427ef25eb · report
get_hit_rate nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/utils.py official repository unverified BSD-3-Clause (permissive) · b32d066c54551f37 · report
len_stats nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/metrics.py official repository unverified BSD-3-Clause (permissive) · 36c913a6cd4fdee4 · report
load_bucketing_dataset nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/data.py official repository unverified BSD-3-Clause (permissive) · 434f32cbf1822fbf · report
load_dataloaders nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/data.py official repository unverified BSD-3-Clause (permissive) · 33a309795c61e227 · report
load_optimizers nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/utils.py official repository unverified BSD-3-Clause (permissive) · bc4ed6ef124441ec · report
load_tokenized_dataset nyu-dl/non-monotonic-self-terminating-lm/src/wiki2/data.py official repository unverified BSD-3-Clause (permissive) · de888cd7f1abc772 · report
ngram_metrics nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/metrics.py official repository unverified BSD-3-Clause (permissive) · a7070e94e5c3b4d5 · report
parse_args nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/preprocess.py official repository unverified BSD-3-Clause (permissive) · 326bcb6d1668d2d9 · report
parse_args_and_preprocess nyu-dl/non-monotonic-self-terminating-lm/src/gpt2/preprocess.py official repository unverified BSD-3-Clause (permissive) · 951fa67666e1db26 · report
random_prefixes nyu-dl/non-monotonic-self-terminating-lm/src/wiki2/data.py official repository unverified BSD-3-Clause (permissive) · 4cfc3a3f37aabff6 · report
setup nyu-dl/non-monotonic-self-terminating-lm/src/wiki2/utils.py official repository unverified BSD-3-Clause (permissive) · 040d9549898a931a · report
setup_expr nyu-dl/non-monotonic-self-terminating-lm/src/wiki2/utils.py official repository unverified BSD-3-Clause (permissive) · 7353f175fe8bd701 · report

Tasks

Language ModelingLanguage ModellingText Generationmodel

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections