Papers › Amortized Factor Inference Networks for Posterior Inference

Amortized Factor Inference Networks for Posterior Inference

26 May 2026arXiv:2605.26419added by Syntology

Joohwan Ko, Justin Domke

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Amortized inference promises fast test-time Bayesian inference, but existing methods are inherently tied to fixed models. Extending amortization to unseen models typically requires retraining or costly test-time finetuning. In this paper, we ask: is it possible to build a single inference network capable of generalizing across varying priors, likelihoods, and dimensionality? We introduce Amortized Factor Inference Networks (AFINs), a family of encode-merge-decode inference networks built on dimension-independent modules that map a model specification and its observations to the parameters of a variational posterior. Experimentally, a single trained AFIN achieves posterior accuracy comparable to NUTS and several variational inference methods, while requiring 2 to 4 orders of magnitude less test-time compute. Code is available at https://github.com/joohwanko/AFINs.

PaperPDFCode 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="2605.26419")

Code

Syntology Ran 25 of 34 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 3 ran · honoured contract; 11 ran · our draft was wrong; 11 ran with no contract checked.

By repository: found in paper text by Syntology: 34 samples from 1 repository, 25 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

joohwanko/AFINs found in paper text by Syntology report

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

34 samples harvested; 25 ran; 3 honoured the contract we drafted; 9 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
11ran · our draft was wrong
11ran
9unverified

Licence: 34 of the 34 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 joohwanko/AFINs. “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.

BoxEncoder joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · a5439200b2ec18e2 · report
BoxLayer joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · 826ea012bff8cec1 · report
BoxTensorMap joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · 63356b4db37c327e · report
CouplingLayer joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · 54316f04b962db63 · report
ExpType joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · 320854698824fa3d · report
FactorAdapter joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · dc71b886fbadc88c · report
FlowAffine joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · d824d563da928a2a · report
FlowContext joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · 0ba39bb1539ae4f2 · report
GaussianDecoder joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · 82b92c2d51bc391e · report
MLP joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · 6da7fd7b8e9ac995 · report
Posterior joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran no licence file found · pointer only · d68731a7402c6951 · report
_apply_final_affine joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · a6c9e68b61dcf642 · report
_common_num_heads joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · 9c805cb5161c85eb · report
_ensure_batch_z joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · d1aa90d6285ca364 · report
_eye joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · c677cff5d14caf61 · report
_invert_final_affine joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 8031ab7f60869908 · report
_pair_expand joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · a24ab3072b6c0f1a · report
_rich_node_features joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 91e59be3aac163c8 · report
_safe_cholesky joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · bae266f55c6d1393 · report
_safe_log joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 1e6f80a593f3ab1b · report
_symmetrize joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · b1ce90d5700028f4 · report
gaussian_log_prob_from_precision_chol joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 0395024fe9deb4de · report
gaussian_sample_from_precision_chol joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · d41e6ac4865dab88 · report
standard_normal_dist_like joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 4e3706d92791e545 · report
symlog joohwanko/AFINs/src/afin/model.py found in paper text by Syntology ran · our draft was wrong fingerprinted no licence file found · pointer only · 9d518e211efa7b47 · report
AFIN joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · 5881aec3f29027a7 · report
FactorAttentionBlock joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · e44a35c7b9ca0f4e · report
FactorMerge joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · c934945e4298844b · report
RealNVPFlow joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · 8b66bdac1c67c76a · report
_init_softplus_unit joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · 095063e3190aa098 · report
_meta_tensor joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · 80da960bda126a8a · report
_sym_pair joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · 357c4db59258e60c · report
_zero_last joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · e1e321b51442ba1f · report
_zero_last_bias joohwanko/AFINs/src/afin/model.py found in paper text by Syntology unverified no licence file found · pointer only · a78a0b6214e1539c · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.26419, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

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