SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.10810 · 2024

Local and Global Decoding in Text Generation

arXiv · PDF · Open in the Atlas

Code that ran

11 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.10810.json · badge: /api/ran/2410.10810.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
lowlypalace/global-decoding canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
calculate_context_length Ran
ran; our contract draft was wrong, not the code
lowlypalace/global-decoding/src/experiments/helpers.py
pointer only (licence: NONE) · get_code("8cdfeccd65fcf064")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_95ci Ran
ran; our contract draft was wrong, not the code
lowlypalace/global-decoding/src/results/get_results.py
pointer only (licence: NONE) · get_code("2739ee7e7e37880c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_kde Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lowlypalace/global-decoding/src/mcmc/plots.py
pointer only (licence: NONE) · get_code("9376ebd2fbbb675d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

filter_padding_tokens Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lowlypalace/global-decoding/src/results/get_results.py
pointer only (licence: NONE) · get_code("1f446017f9ed893c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

indicator_top_k Ran
ran, honoured the contract we drafted
lowlypalace/global-decoding/src/experiments/global_decoding.py
pointer only (licence: NONE) · get_code("74f767a079f7fb9a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json_file Ran
ran; our contract draft was wrong, not the code
lowlypalace/global-decoding/src/results/get_results.py
pointer only (licence: NONE) · get_code("b4716300a32ace4a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

metropolis_hastings Ran
ran; our contract draft was wrong, not the code
lowlypalace/global-decoding/src/mcmc/metropolis_hastings.py
pointer only (licence: NONE) · get_code("9ad02553048ba5c5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalization_constant Ran
ran; our contract draft was wrong, not the code
lowlypalace/global-decoding/src/experiments/local_decoding.py
pointer only (licence: NONE) · get_code("8b81b2e202edcee5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

predict_logits Ran
ran; our contract draft was wrong, not the code
lowlypalace/global-decoding/src/experiments/helpers.py
pointer only (licence: NONE) · get_code("b45a8da2e2ea7e5b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

replace_nan_ci Ran
ran, violated the contract we drafted
lowlypalace/global-decoding/src/results/plots.py
pointer only (licence: NONE) · get_code("1c1380cdab9cb649")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

top_k_filtering Ran
ran; our contract draft was wrong, not the code
lowlypalace/global-decoding/src/experiments/helpers.py
pointer only (licence: NONE) · get_code("7939c932cc2ff354")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_sequences_util Not yet run
unverified (harvested, no recorded run)
lowlypalace/global-decoding/src/sequences/generate_sequences_util.py
pointer only (licence: NONE) · get_code("6a9447860dbc0e1e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lowlypalace/global-decoding when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Text generation, a key component in applications such as dialogue systems, relies on decoding algorithms that sample strings from a language model distribution. Traditional methods, such as top-$k$ and top-$π$, apply local normalisation to the model's output distribution, which can distort it. In this paper, we investigate the effect of this distortion by introducing globally-normalised versions of these decoding methods. Additionally, we propose an independent Metropolis-Hastings algorithm to approximate sampling from globally-normalised distributions without explicitly computing them. Our empirical analysis compares the performance of local and global normalisation across two decoding algorithms (top-$k$ and top-$π$) with various hyperparameters, using Pythia language models. Results show that, in most configurations, global decoding performs worse than the local decoding version of the same algorithms -- despite preserving the distribution's integrity. Our results suggest that distortion is an important feature of local decoding algorithms.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.10810")
get_code_for_paper("2410.10810")
have("2410.10810")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.10810.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.10810.svg)](https://syntology.ai/paper/2410.10810)

Connect an agent — have() is free.