SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.26419 · 2026

Amortized Factor Inference Networks for Posterior Inference

Justin Domke, Joohwan Ko

arXiv · PDF · Open in the Atlas

Code that ran

25 of 34 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (11 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 11 failures of our instrument; 9 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.26419.json · badge: /api/ran/2605.26419.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
joohwanko/AFINs community
Papers with Code archive
25 ran · 9 no recorded run
FunctionStatusWhere it lives
BoxEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("a5439200b2ec18e2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BoxLayer Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("826ea012bff8cec1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

BoxTensorMap Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("63356b4db37c327e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

CouplingLayer Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("54316f04b962db63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ExpType Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("320854698824fa3d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FactorAdapter Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("dc71b886fbadc88c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FlowAffine Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("d824d563da928a2a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

FlowContext Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("0ba39bb1539ae4f2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GaussianDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("82b92c2d51bc391e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

MLP Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("6da7fd7b8e9ac995")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Posterior Ran
ran on a synthesized input · constructed an object; no result was computed
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("d68731a7402c6951")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_apply_final_affine Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("a6c9e68b61dcf642")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_common_num_heads Ran
ran, honoured the contract we drafted
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("9c805cb5161c85eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_ensure_batch_z Ran
ran, honoured the contract we drafted
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("d1aa90d6285ca364")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_eye Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("c677cff5d14caf61")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_invert_final_affine Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("8031ab7f60869908")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_pair_expand Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("a24ab3072b6c0f1a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_rich_node_features Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("91e59be3aac163c8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_safe_cholesky Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("bae266f55c6d1393")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_safe_log Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("1e6f80a593f3ab1b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_symmetrize Ran
ran, honoured the contract we drafted
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("b1ce90d5700028f4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gaussian_log_prob_from_precision_chol Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("0395024fe9deb4de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gaussian_sample_from_precision_chol Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("d41e6ac4865dab88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

standard_normal_dist_like Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("4e3706d92791e545")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

symlog Ran
ran; our contract draft was wrong, not the code
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("9d518e211efa7b47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AFIN Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("5881aec3f29027a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

FactorAttentionBlock Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("e44a35c7b9ca0f4e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

FactorMerge Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("c934945e4298844b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

RealNVPFlow Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("8b66bdac1c67c76a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_init_softplus_unit Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("095063e3190aa098")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_meta_tensor Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("80da960bda126a8a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_sym_pair Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("357c4db59258e60c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_zero_last Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("e1e321b51442ba1f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_zero_last_bias Not yet run
unverified (harvested, no recorded run)
joohwanko/AFINs/src/afin/model.py
pointer only (licence: NONE) · get_code("a78a0b6214e1539c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, joohwanko/AFINs when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 34 samples lifted from this paper's linked repositories, 34 carry a function identity and 0 do not. Of the 34 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 34 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.26419")
get_code_for_paper("2605.26419")
have("2605.26419")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.26419.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.26419.svg)](https://syntology.ai/paper/2605.26419)

Connect an agent — have() is free.