SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2105.14594 · NeurIPS · 2021

Sparse Uncertainty Representation in Deep Learning with Inducing Weights

Hippolyt Ritter, Cheng Zhang, Yingzhen Li, Martin Kukla

arXiv · PDF · Open in the Atlas

Code that ran

4 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2105.14594.json · badge: /api/ran/2105.14594.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
microsoft/bayesianize community
Papers with Code archive
4 ran · 4 no recorded run
FunctionStatusWhere it lives
_jittered_cholesky Ran
ran; our contract draft was wrong, not the code
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("b7e49d4bd4a61d15")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function _jittered_cholesky expects a matrix m
# It calls:
# - m.detach() -> returns a tensor
# - m.detach().diagonal() -> gets diagonal elements
# - m.detach().diagonal().mean() -> computes mean
# - m.shape[-1] -> gets last dimension
# - m.device -> gets device
# - m.add(j) -> adds jitter
# - .cholesky() -> computes cholesky decomposition

# For cholesky to work, m must be a symmetric positive definite matrix
# We'll create a small symmetric positive definite matrix

# Create a random matrix and make it symmetric positive definite
A = torch.randn(4, 4)
m = A @ A.T + torch.eye(4)  # Ensures positive definiteness

ARGS = {
    "m": m
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
inverse_softplus Ran
ran; our contract draft was wrong, not the code
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("9a62afa5b91e4a9b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

# Test with a tensor input
tensor_input = torch.tensor([1.0, 2.0, 3.0, 4.0])

# Test with a scalar input
scalar_input = 2.5

# The function takes one parameter 'x' which can be either a tensor or a scalar
# We'll test with the tensor version since it's the more complex case
ARGS = {
    'x': tensor_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prod Ran
ran, violated the contract we drafted
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("0f1e71e2afa65ee4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import functools
import operator

def prod(iterable):
    return functools.reduce(operator.mul, iterable, 1)

# The function takes one parameter: iterable
# It uses functools.reduce with operator.mul to compute the product of all elements
# The iterable can be any sequence of numbers

ARGS = {
    "iterable": [2, 3, 4, 5]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
vec_to_chol Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("658f0b11a92d4c5c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F
import math

torch.manual_seed(0)

# Determine the input size for a valid d x d lower triangular matrix
# For d=4, we need (d+1)*d/2 = 5*4/2 = 10 elements
d = 4
input_size = (d + 1) * d // 2

# Create a batch of 2 vectors, each of size 10
x = torch.randn(2, input_size)

# out parameter can be None (default behavior)
out = None

ARGS = {
    "x": x,
    "out": out
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
BayesianMixin Not yet run
unverified (harvested, no recorded run)
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("3763b3e1b90244a0")
How it ran

no invocation recorded.

InducingMixin Not yet run
unverified (harvested, no recorded run)
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("77c5e98b1f0161e7")
How it ran

no invocation recorded.

VariationalMixin Not yet run
unverified (harvested, no recorded run)
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("fb8eff98f8d123de")
How it ran

no invocation recorded.

_InducingBase Not yet run
unverified (harvested, no recorded run)
microsoft/bayesianize/bnn/nn/mixins/variational/inducing.py
code served (permissive licence) · get_code("1e07f1a2a9eeabed")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 8 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-24.

Repositories linked to this paper

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

Abstract

Bayesian Neural Networks and deep ensembles represent two modern paradigms of uncertainty quantification in deep learning. Yet these approaches struggle to scale mainly due to memory inefficiency, requiring parameter storage several times that of their deterministic counterparts. To address this, we augment each weight matrix with a small inducing weight matrix, projecting the uncertainty quantification into a lower dimensional space. We further extend Matheron's conditional Gaussian sampling rule to enable fast weight sampling, which enables our inference method to maintain reasonable run-time as compared with ensembles. Importantly, our approach achieves competitive performance to the state-of-the-art in prediction and uncertainty estimation tasks with fully connected neural networks and ResNets, while reducing the parameter size to ≤ 24.3% of that of a single neural network.

For agents

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

get_harvested_code_for_paper("2105.14594")
get_code_for_paper("2105.14594")
have("2105.14594")

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

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

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

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

Connect an agent — have() is free.