Papers › Learning Discrete Structured Representations by Adversarially Maximizing Mutual Information

Learning Discrete Structured Representations by Adversarially Maximizing Mutual Information

8 Apr 2020ICML 2020 1arXiv:2004.03991archive 2025-07-28

Karl Stratos, Sam Wiseman

We propose learning discrete structured representations from unlabeled data by maximizing the mutual information between a structured latent variable and a target variable. Calculating mutual information is intractable in this setting. Our key technical contribution is an adversarial objective that can be used to tractably estimate mutual information assuming only the feasibility of cross entropy calculation. We develop a concrete realization of this general formulation with Markov distributions over binary encodings. We report critical and unexpected findings on practical aspects of the objective such as the choice of variational priors. We apply our model on document hashing and show that it outperforms current best baselines based on discrete and vector quantized variational autoencoders. It also yields highly compressed interpretable representations.

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="2004.03991")

Code

Syntology Ran 22 of 27 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 3 ran · honoured contract; 4 ran · our draft was wrong; 9 ran · fixture could not drive it; 6 ran with no contract checked.

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

karlstratos/ammi officialmentioned in papermentioned 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

27 samples harvested; 22 ran; 3 honoured the contract we drafted; 5 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.

3ran · honoured contract
4ran · our draft was wrong
9ran · fixture could not drive it
6ran
5unverified

Licence: 0 of the 27 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 karlstratos/ammi. “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.

ArticlePairDataset karlstratos/ammi/ammi.py official repository ran · metamorphic tier: well formed MIT (permissive) · bc38d49d94d3dd4b · report
ArticlePairs karlstratos/ammi/ammi.py official repository ran MIT (permissive) · dd979f2cfad3adfa · report
FF karlstratos/ammi/ammi.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 5254fe49108bccef · report
Logger karlstratos/ammi/ammi.py official repository ran MIT (permissive) · 62aafeb07c870d8c · report
Posterior karlstratos/ammi/ammi.py official repository ran · metamorphic tier: deterministic MIT (permissive) · a53a047167b58dcc · report
Prior karlstratos/ammi/ammi.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 67356a959b93e551 · report
compute_distance karlstratos/ammi/ammi.py official repository ran · fixture could not drive it MIT (permissive) · 87baeee1051adfd9 · report
compute_forward karlstratos/ammi/ammi.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · dd7602f30bfb18b5 · report
compute_hamming_distance karlstratos/ammi/ammi.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 6391762af9ece0f9 · report
compute_matching_accuracy karlstratos/ammi/ammi.py official repository ran · fixture could not drive it MIT (permissive) · eb7e2974e8dff8a6 · report
compute_retrieval_precision karlstratos/ammi/ammi.py official repository ran · honoured contract MIT (permissive) · 78810712770d61ac · report
compute_topK_average_precision karlstratos/ammi/ammi.py official repository ran · fixture could not drive it MIT (permissive) · 32a95ddcdd120243 · report
compute_viterbi karlstratos/ammi/ammi.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · a4880a127313f0e1 · report
cosine_distance_torch karlstratos/ammi/ammi.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 6fa3b3b0bfe31f58 · report
count_correct_matches karlstratos/ammi/ammi.py official repository ran · fixture could not drive it MIT (permissive) · 9272637653b59862 · report
encode_related_articles karlstratos/ammi/ammi.py official repository ran · fixture could not drive it MIT (permissive) · cfee1418a588fa69 · report
estimate_hZ karlstratos/ammi/ammi.py official repository ran · fixture could not drive it MIT (permissive) · ac69d5b0b6d23fd2 · report
estimate_hZ_X karlstratos/ammi/ammi.py official repository ran · fixture could not drive it MIT (permissive) · 0a877cffaa839917 · report
get_init_function karlstratos/ammi/ammi.py official repository ran · our draft was wrong MIT (permissive) · e57d5ab85f745b35 · report
precompute_I karlstratos/ammi/ammi.py official repository ran · honoured contract MIT (permissive) · 4fc17a091271ccf2 · report
precompute_buffers karlstratos/ammi/ammi.py official repository ran · our draft was wrong MIT (permissive) · b784c979d92e7d01 · report
precompute_quads karlstratos/ammi/ammi.py official repository ran · honoured contract MIT (permissive) · 4a6768de473fef0d · report
AMMI karlstratos/ammi/ammi.py official repository unverified MIT (permissive) · 833b7b44cb181c6d · report
Data karlstratos/ammi/ammi.py official repository unverified MIT (permissive) · 832329ad3f5db304 · report
EntropyHelper karlstratos/ammi/ammi.py official repository unverified MIT (permissive) · 1994d2ff3d492940 · report
LabeledDocuments karlstratos/ammi/ammi.py official repository unverified MIT (permissive) · d784281de8217a41 · report
Model karlstratos/ammi/ammi.py official repository unverified MIT (permissive) · 277398c5b8f05b33 · report

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