Papers › Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions

Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions

10 Feb 2021NeurIPS 2021 12arXiv:2102.05379archive 2025-07-28

Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, Max Welling

Generative flows and diffusion models have been predominantly trained on ordinal data, for example natural images. This paper introduces two extensions of flows and diffusion for categorical data such as language or image segmentation: Argmax Flows and Multinomial Diffusion. Argmax Flows are defined by a composition of a continuous distribution (such as a normalizing flow), and an argmax function. To optimize this model, we learn a probabilistic inverse for the argmax that lifts the categorical data to a continuous space. Multinomial Diffusion gradually adds categorical noise in a diffusion process, for which the generative denoising process is learned. We demonstrate that our method outperforms existing dequantization approaches on text modelling and modelling on image segmentation maps in log-likelihood.

PaperPDFConference PDFCodeCode 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="2102.05379")

Code

Syntology Ran 14 of 20 code samples harvested from 4 repositories linked to this paper; 6 have no recorded run. Of those that ran: 7 ran · honoured contract; 1 ran · violated contract; 2 ran · our draft was wrong; 3 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: official repository: 12 samples from 2 repositories, 9 ran; community (archive-listed): 7 samples from 1 repository, 5 ran; found in paper text by Syntology: 1 sample 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.

didriknielsen/argmax_flows officialmentioned on GitHubpytorch report
ehoogeboom/multinomial_diffusion officialmentioned on GitHubpytorch report
YuzheZhang-1999/DiffTSR mentioned on GitHubpytorch report
compvis/imagebart mentioned on GitHubpytorch 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

20 samples harvested; 14 ran; 7 honoured the contract we drafted; 6 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.

7ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
3ran · fixture could not drive it
1ran
6unverified

Licence: 2 of the 20 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 4 repositories linked to this paper, official or community; each sample names its own and says which. “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.

MultinomialDiffusion ehoogeboom/multinomial_diffusion/diffusion_utils/diffusion_multinomial.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 4268dcf6913cd21f · report
_log_cdf didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · honoured contract fingerprinted MIT (permissive) · e72047c1892c7a2a · report
_log_pdf didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · honoured contract fingerprinted MIT (permissive) · 74b5245783db5aab · report
inverse didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 7e630357d1081630 · report
mixture_inv_cdf didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · fixture could not drive it MIT (permissive) · cf94102882d34c5a · report
mixture_log_cdf didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · violated contract fingerprinted MIT (permissive) · db244b4a1b9d7755 · report
mixture_log_pdf didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · honoured contract fingerprinted MIT (permissive) · 3ae2ea791a983a23 · report
run_sequential_with_mask didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · our draft was wrong MIT (permissive) · 3ee1217b23068736 · report
safe_log didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository ran · honoured contract fingerprinted MIT (permissive) · 13bc23344ef8bd53 · report
CouplingLayer didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository unverified MIT (permissive) · 62906ae69863334e · report
FlowLayer didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository unverified MIT (permissive) · 0fd897703533ac05 · report
MixtureCDFCoupling didriknielsen/argmax_flows/model/CategoricalNF/flows/mixture_cdf_layer.py official repository unverified MIT (permissive) · 790a25da85a326bc · report
cosine_beta_schedule YuzheZhang-1999/DiffTSR/model/TDM/models/diffusion_multinomial.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · c92a02b48d8fb1c4 · report
index_to_log_onehot YuzheZhang-1999/DiffTSR/model/TDM/models/diffusion_multinomial.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 887b510303aa0cff · report
log_1_min_a YuzheZhang-1999/DiffTSR/model/TDM/models/diffusion_multinomial.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · 39226fe0563dc032 · report
log_add_exp YuzheZhang-1999/DiffTSR/model/TDM/models/diffusion_multinomial.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · 3d24f690340703af · report
sum_except_batch YuzheZhang-1999/DiffTSR/model/TDM/models/diffusion_multinomial.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 38d8ef27c0f4b98a · report
DiffusionWrapper YuzheZhang-1999/DiffTSR/model/TDM/models/diffusion_multinomial.py community (archive-listed) unverified Apache-2.0 (permissive) · a15ee5030a6486ce · report
MultinomialDiffusion YuzheZhang-1999/DiffTSR/model/TDM/models/diffusion_multinomial.py community (archive-listed) unverified Apache-2.0 (permissive) · 08aec1a58f72176a · report
DiscreteAutoregressiveFlow TrentBrick/PyTorchDiscreteFlows/discrete_flows/disc_models.py found in paper text by Syntology unverified no licence file found · pointer only · b2a81908ae5a22a5 · report

Tasks

DenoisingImage SegmentationLanguage ModellingSegmentationSemantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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