Papers › Posterior Matching for Arbitrary Conditioning

Posterior Matching for Arbitrary Conditioning

28 Jan 2022arXiv:2201.12414archive 2025-07-28

Ryan R. Strauss, Junier B. Oliva

Arbitrary conditioning is an important problem in unsupervised learning, where we seek to model the conditional densities p(𝐱ᵤ |𝐱ₒ) that underly some data, for all possible non-intersecting subsets o, u ⊂{1, …, d}. However, the vast majority of density estimation only focuses on modeling the joint distribution p(𝐱), in which important conditional dependencies between features are opaque. We propose a simple and general framework, coined Posterior Matching, that enables Variational Autoencoders (VAEs) to perform arbitrary conditioning, without modification to the VAE itself. Posterior Matching applies to the numerous existing VAE-based approaches to joint density estimation, thereby circumventing the specialized models required by previous approaches to arbitrary conditioning. We find that Posterior Matching is comparable or superior to current state-of-the-art methods for a variety of tasks with an assortment of VAEs (e.g.~discrete, hierarchical, VaDE).

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

Code

Syntology Ran 3 of 26 code samples harvested from 2 repositories linked to this paper; 23 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: official repository: 10 samples from 1 repository, 1 ran; found in paper text by Syntology: 14 samples from 1 repository, 0 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

lupalab/posterior-matching officialmentioned in papermentioned on GitHubjax 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

26 samples harvested; 3 ran; 0 honoured the contract we drafted; 23 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 · our draft was wrong
23unverified

Licence: 12 of the 26 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 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

pad_channels lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository ran · our draft was wrong no licence file found · pointer only · 10fcb117ffee5145 · report
Block lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · 4086bb07fed39601 · report
Encoder lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · 701b897fce8a34e9 · report
LogisticMixture lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · a42f907e5c7b7a4d · report
PosteriorMatchingDecoder lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · b0f8e415415e8379 · report
PosteriorMatchingDecoderBlock lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · 18273b05e6809fa2 · report
PosteriorMatchingVDVAE lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · 6e0c276984d84108 · report
_LogisticMixtureDist lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · 00c1496a0adf1aa4 · report
get_1x1 lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · 93ec9c5f4286cbf7 · report
get_3x3 lupalab/posterior-matching/posterior_matching/models/vdvae.py official repository unverified no licence file found · pointer only · aa70735ae381c2da · report
calculate_bias_shape deepmind/dm-haiku/haiku/_src/bias.py found in paper text by Syntology unverified Apache-2.0 (permissive) · dcfe042d53ba91db · report
check_jax_usage deepmind/dm-haiku/haiku/_src/config.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 60d1392c43f39704 · report
check_not_none deepmind/dm-haiku/haiku/_src/base.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3dcc91ac4323976a · report
compute_adjusted_padding deepmind/dm-haiku/haiku/_src/conv.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6a0640e81b20a064 · report
module_auto_repr deepmind/dm-haiku/haiku/_src/config.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 533c7323fed6b625 · report
multinomial deepmind/dm-haiku/haiku/_src/basic.py found in paper text by Syntology unverified Apache-2.0 (permissive) · c2aac7a3368f16d4 · report
ndim_at_least deepmind/dm-haiku/haiku/_src/basic.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 71a177ba7a67e972 · report
one_hot deepmind/dm-haiku/haiku/_src/basic.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f6f51ced321b0151 · report
rng_reserve_size deepmind/dm-haiku/haiku/_src/config.py found in paper text by Syntology unverified Apache-2.0 (permissive) · de4b41a490b3f147 · report
safe_get_module_name deepmind/dm-haiku/haiku/_src/base.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9fb0c6433beb4e20 · report
to_dimension_numbers deepmind/dm-haiku/haiku/_src/conv.py found in paper text by Syntology unverified Apache-2.0 (permissive) · d53951146fe6a788 · report
to_haiku_dict deepmind/dm-haiku/haiku/_src/data_structures.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 93a365e0dfc01f8c · report
to_immutable_dict deepmind/dm-haiku/haiku/_src/data_structures.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 96c9cc45cd31b59c · report
to_mutable_dict deepmind/dm-haiku/haiku/_src/data_structures.py found in paper text by Syntology unverified Apache-2.0 (permissive) · dce7b6e14066c25e · report
get_width_settings identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 9419abf027f0115d · report
parse_layer_string identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 95d3df9fe1921426 · report

Tasks

Density Estimation

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