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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 27 code samples harvested from 1 repository linked to this paper: 22 ran (of which 6 constructed an object rather than computing a result; 9 with no instrument failure: 3 honoured, 0 violated, 6 with no contract checked; 13 where Syntology's instrument failed) · 5 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 9 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 27 samples from 1 repository, 22 ran (9 with no instrument failure; 13 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-22 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

karlstratos/ammi officialmentioned in papermentioned on GitHubpytorchSyntology: 27 samples, 22 ran (13 instrument-failed) · 5 unverified 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 (of which 6 constructed an object rather than computing a result; 9 with no instrument failure: 3 honoured, 0 violated, 6 with no contract checked; 13 where Syntology's instrument failed) · 5 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
4ran · our draft was wrong
9ran; the contract check could not run
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 1 sample that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

karlstratos/ammi official repository 27 samples, 22 ran (13 instrument-failed) · 5 unverified
ArticlePairDataset ammi.py ran · metamorphic tier: well formed MIT (permissive) · bc38d49d94d3dd4b · report fixture: returned ArticlePairDataset · level recorded 2026-09-22
ArticlePairs ammi.py ran MIT (permissive) · dd979f2cfad3adfa · report fixture: returned ArticlePairs · level recorded 2026-09-22
FF ammi.py ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 5254fe49108bccef · report fixture: returned FF · level recorded 2026-09-22
Logger in 25 papers ammi.py ran MIT (permissive) · 62aafeb07c870d8c · report fixture: returned Logger · level recorded 2026-09-22
Posterior ammi.py ran · metamorphic tier: deterministic MIT (permissive) · a53a047167b58dcc · report fixture: returned Posterior · level recorded 2026-09-22
Prior ammi.py ran · metamorphic tier: deterministic MIT (permissive) · 67356a959b93e551 · report fixture: returned Prior · level recorded 2026-09-22
compute_distance in 21 papers ammi.py ran; the contract check could not run (RAISES) MIT (permissive) · 87baeee1051adfd9 · report fixture: signature X1:Tensor/2/int, X2:Tensor/2/int, distance_metric:str/0/str, chunk_size:int/0/int, binary:bool/0/bool · returned Tensor · level recorded 2026-09-22
compute_forward ammi.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant fingerprinted MIT (permissive) · dd7602f30bfb18b5 · report fixture: signature P:Tensor/3/float, quads:NoneType/0/? · returned Tensor · level recorded 2026-09-22
compute_hamming_distance ammi.py ran · our draft was wrong fingerprinted MIT (permissive) · 6391762af9ece0f9 · report fixture: signature X1:Tensor/2/int, X2:Tensor/2/int, chunk_size:int/0/int, binary:bool/0/bool · returned Tensor · level recorded 2026-09-22
compute_matching_accuracy ammi.py ran; the contract check could not run (RAISES) · metamorphic tier: well formed MIT (permissive) · eb7e2974e8dff8a6 · report fixture: signature eval_loader:list/1/tuple, device:device/0/?, encode_discrete:callable/0/?, distance_metric:str/0/str, num_retrieve:int/0/int, chunk_size:int/0/int, binary:bool/0/bool · returned float · level recorded 2026-09-22
compute_retrieval_precision ammi.py ran · honoured contract MIT (permissive) · 78810712770d61ac · report fixture: signature train_loader:list/1/tuple, eval_loader:list/1/tuple, device:str/0/str, encode_discrete:NoneType/0/?, distance_metric:str/0/str, num_retrieve:int/0/int · returned float · level recorded 2026-09-22
compute_topK_average_precision ammi.py ran; the contract check could not run (RAISES) MIT (permissive) · 32a95ddcdd120243 · report fixture: signature tgt_encodings:Tensor/2/int, tgt_label_lists:list/1/list, src_encodings:Tensor/2/int, src_label_lists:list/1/list, num_retrieve:int/0/int, distance_metric:str/0/str, chunk_size:int/0/int, binary:bool/0/bool · returned float · level recorded 2026-09-22
compute_viterbi ammi.py ran; the contract check could not run (RAISES) · metamorphic tier: deterministic fingerprinted MIT (permissive) · a4880a127313f0e1 · report fixture: signature P:Tensor/3/float, quads:NoneType/0/? · returned tuple · level recorded 2026-09-22
cosine_distance_torch ammi.py ran · our draft was wrong fingerprinted MIT (permissive) · 6fa3b3b0bfe31f58 · report fixture: signature x1:Tensor/2/float, x2:Tensor/2/float, eps:float/0/float · returned Tensor · level recorded 2026-09-22
count_correct_matches ammi.py ran; the contract check could not run (RAISES) MIT (permissive) · 9272637653b59862 · report fixture: signature encodings1:Tensor/2/float, encodings2:Tensor/2/float, distance_metric:str/0/str, chunk_size:int/0/int, binary:bool/0/bool, num_retrieve:int/0/int · returned int · level recorded 2026-09-22
encode_related_articles ammi.py ran; the contract check could not run (RAISES) MIT (permissive) · cfee1418a588fa69 · report fixture: signature eval_loader:list/1/tuple, device:str/0/str, encode_discrete:callable/0/? · returned tuple · level recorded 2026-09-22
estimate_hZ ammi.py ran; the contract check could not run (RAISES) MIT (permissive) · ac69d5b0b6d23fd2 · report fixture: signature P:Tensor/3/float, I:Tensor/3/int · returned Tensor · level recorded 2026-09-22
estimate_hZ_X ammi.py ran; the contract check could not run (RAISES) · metamorphic tier: invariant MIT (permissive) · 0a877cffaa839917 · report fixture: signature P:Tensor/3/float, Q_:Tensor/3/float, quads:Tensor/2/int, buffers:list/1/Tensor · returned Tensor · level recorded 2026-09-22
get_init_function ammi.py ran · our draft was wrong MIT (permissive) · e57d5ab85f745b35 · report fixture: signature init_value:float/0/float · returned function · level recorded 2026-09-22
precompute_I ammi.py ran · honoured contract MIT (permissive) · 4fc17a091271ccf2 · report fixture: signature m:int/0/int, o:int/0/int · returned Tensor · level recorded 2026-09-22
precompute_buffers ammi.py ran · our draft was wrong MIT (permissive) · b784c979d92e7d01 · report fixture: signature B:int/0/int, o:int/0/int, r:int/0/int, device:device/0/? · returned list · level recorded 2026-09-22
precompute_quads ammi.py ran · honoured contract MIT (permissive) · 4a6768de473fef0d · report fixture: signature o:int/0/int · returned Tensor · level recorded 2026-09-22
AMMI ammi.py unverified MIT (permissive) · 833b7b44cb181c6d · report
Data in 7 papers ammi.py unverified MIT (permissive) · 832329ad3f5db304 · report
EntropyHelper ammi.py unverified MIT (permissive) · 1994d2ff3d492940 · report
LabeledDocuments ammi.py unverified MIT (permissive) · d784281de8217a41 · report
Model in 227 papers ammi.py unverified MIT (permissive) · 277398c5b8f05b33 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it.

1 assembly on this paper: 1 harvested, 0 generated.

harvested Assembly for adversarial objective for maximizing mutual information (graph method: adversarial objective for maximizing mutual information). 27 bricks; individually on a fixture: 22 ran (of which 6 constructed an object rather than computing a result; 9 with no instrument failure: 3 honoured, 0 violated, 6 with no contract checked; 13 where Syntology's instrument failed) · 5 unverified. The assembly has not been run end-to-end.

  1. AMMI entry · level 0 · unverified · 833b7b44cb181c6d
  2. EntropyHelper helper · level 0 · unverified · 1994d2ff3d492940
  3. Model helper · level 0 · unverified · 277398c5b8f05b33
  4. Posterior model · level 1 · ran · a53a047167b58dcc
  5. Prior model · level 1 · ran · 67356a959b93e551
  6. get_init_function helper · level 1 · ran · our draft was wrong · e57d5ab85f745b35
  7. compute_viterbi helper · level 1 · ran; the contract check could not run (RAISES) · a4880a127313f0e1
  8. estimate_hZ helper · level 1 · ran; the contract check could not run (RAISES) · ac69d5b0b6d23fd2
  9. estimate_hZ_X helper · level 1 · ran; the contract check could not run (RAISES) · 0a877cffaa839917
  10. precompute_I helper · level 1 · ran · honoured contract · 4fc17a091271ccf2
  11. precompute_buffers helper · level 1 · ran · our draft was wrong · b784c979d92e7d01
  12. precompute_quads helper · level 1 · ran · honoured contract · 4a6768de473fef0d
  13. ArticlePairs helper · level 1 · ran · dd979f2cfad3adfa
  14. LabeledDocuments helper · level 0 · unverified · d784281de8217a41
  15. Logger helper · level 1 · ran · 62aafeb07c870d8c
  16. compute_matching_accuracy helper · level 1 · ran; the contract check could not run (RAISES) · eb7e2974e8dff8a6
  17. compute_retrieval_precision helper · level 1 · ran · honoured contract · 78810712770d61ac
  18. FF helper · level 1 · ran · 5254fe49108bccef
  19. compute_forward helper · level 1 · ran; the contract check could not run (RAISES) · dd7602f30bfb18b5
  20. ArticlePairDataset helper · level 1 · ran · bc38d49d94d3dd4b
  21. Data helper · level 0 · unverified · 832329ad3f5db304
  22. count_correct_matches helper · level 1 · ran; the contract check could not run (RAISES) · 9272637653b59862
  23. encode_related_articles helper · level 1 · ran; the contract check could not run (RAISES) · cfee1418a588fa69
  24. compute_topK_average_precision helper · level 1 · ran; the contract check could not run (RAISES) · 32a95ddcdd120243
  25. compute_distance helper · level 1 · ran; the contract check could not run (RAISES) · 87baeee1051adfd9
  26. compute_hamming_distance helper · level 1 · ran · our draft was wrong · 6391762af9ece0f9
  27. cosine_distance_torch helper · level 1 · ran · our draft was wrong · 6fa3b3b0bfe31f58

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2004.03991") returns these assemblies with each brick's role and wiring (how to connect).

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