SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1805.11327 · 2018

Lightweight Probabilistic Deep Networks

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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, 0 violated it and 9 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/1805.11327.json · badge: /api/ran/1805.11327.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
uzh-rpg/deep_uncertainty_estimation community (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
FunctionStatusWhere it lives
ResNet18Dropout Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/models/resnet_dropout.py
code served (permissive licence) · get_code("74375051502358ff")
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 ResNetDropout. The image it ran in was not recorded. If your copy returns the same type 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 as nn

torch.manual_seed(0)

ARGS = {
    'p': 0.2
}
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 ResNetDropout — a ResNetDropout output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNetDropout output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
ResNet34Dropout Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/models/resnet_dropout.py
code served (permissive licence) · get_code("1884001022ae28e1")
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 ResNetDropout. The image it ran in was not recorded. If your copy returns the same type 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 as nn

torch.manual_seed(0)

ARGS = {
    "p": 0.2
}
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 ResNetDropout — a ResNetDropout output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNetDropout output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
ResNet50Dropout Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/models/resnet_dropout.py
code served (permissive licence) · get_code("2d425fd536a399c7")
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 ResNetDropout. The image it ran in was not recorded. If your copy returns the same type 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 as nn

torch.manual_seed(0)

# ResNet50Dropout takes one parameter: p (dropout probability)
# It returns a ResNetDropout model configured with Bottleneck blocks
# The function doesn't take any other arguments beyond p

ARGS = {
    'p': 0.2
}
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 ResNetDropout — a ResNetDropout output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNetDropout output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
format_time Ran
ran; our contract draft was wrong, not the code
uzh-rpg/deep_uncertainty_estimation/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from JunlinHan/YOCO, is pointer only (licence: NONE) · get_code("8d7ec010c29e813b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from JunlinHan/YOCO, and GitHub detected no licence in that repository 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.

get_mean_and_std Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from seominseok0429/label-smoothing-visualization-pytorch, is pointer only (licence: NONE) · get_code("3cbdd3b190b16350")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from seominseok0429/label-smoothing-visualization-pytorch, and GitHub detected no licence in that repository 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.

keep_variance Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/models_adf/resnet_adf.py
code served (permissive licence) · get_code("f61dfa3535aa5a2c")
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 (2, 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 takes x and min_variance, adds them together
# x should be a tensor (or array-like), min_variance should be a numeric value

x = torch.randn(2, 4)
min_variance = 0.1

ARGS = {
    "x": x,
    "min_variance": min_variance,
}
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 (2, 4) — shape (2, 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
normcdf Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/contrib/math.py
code served (permissive licence) · get_code("41dcab2b71a44f78")
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 (2, 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 numpy as np
from numbers import Number

torch.manual_seed(0)

# Test with different argument types for value, mu, and stddev
value = torch.randn(2, 4)
mu = 0.0
stddev = 1.0

ARGS = {
    "value": value,
    "mu": mu,
    "stddev": stddev,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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 (2, 4) — shape (2, 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
normpdf Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/contrib/math.py
code served (permissive licence) · get_code("60464d053ab983d9")
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 (2, 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 numpy as np
from numbers import Number

torch.manual_seed(0)

# Construct small test tensors for the function parameters
value = torch.randn(2, 4)
mu = 0.0
stddev = 1.0

ARGS = {
    "value": value,
    "mu": mu,
    "stddev": stddev,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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 (2, 4) — shape (2, 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
resize2D Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/contrib/interpolation.py
code served (permissive licence) · get_code("8cfc523838a908cb")
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 4, dtype family float, shape (2, 4, 6, 10) 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 tf

torch.manual_seed(0)

# Create a small 4D tensor (batch=2, channels=4, height=3, width=5)
inputs = torch.randn(2, 4, 3, 5)

# Define target size as [height, width]
size_targets = [6, 10]

# Define interpolation mode
mode = 'bilinear'

ARGS = {
    'inputs': inputs,
    'size_targets': size_targets,
    'mode': mode
}
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 4, dtype family float, shape (2, 4, 6, 10) — shape (2, 4, 6, 10) 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
resize2D_as Ran
ran on a synthesized input
uzh-rpg/deep_uncertainty_estimation/contrib/interpolation.py
code served (permissive licence) · get_code("0c731e06a7a2bd80")
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 4, dtype family float, shape (2, 4, 6, 8) 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 tf

torch.manual_seed(0)

# Create a small 4D tensor (batch=2, channels=4, height=3, width=5)
inputs = torch.randn(2, 4, 3, 5)

# Create output_as tensor with different spatial dimensions (batch=2, channels=4, height=6, width=8)
output_as = torch.randn(2, 4, 6, 8)

ARGS = {
    'inputs': inputs,
    'output_as': output_as,
    'mode': 'bilinear'
}
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 4, dtype family float, shape (2, 4, 6, 8) — shape (2, 4, 6, 8) 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
lbeta Not yet run
unverified (harvested, no recorded run)
uzh-rpg/deep_uncertainty_estimation/contrib/lgamma_function/lgamma_function.py
code served (permissive licence) · get_code("bc27551e10c4c57c")
How it ran

no invocation recorded.

lgamma Not yet run
unverified (harvested, no recorded run)
uzh-rpg/deep_uncertainty_estimation/contrib/lgamma_function/lgamma_function.py
code served (permissive licence) · get_code("7c11ba3bece5471a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 12 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 12 later) and 0 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.

FunctionAlso present inEarliest-datedOthers named
format_time 37 other papers
2 dated earlier, 35 later
1603.05027 (2016-03)
Identity Mappings in Deep Residual Networks
1605.07146 (2016-05)
Wide Residual Networks
1809.00287 (2018-09)
Learning to Navigate for Fine-grained Classification
and 34 more not named here
get_mean_and_std 18 other papers
2 dated earlier, 16 later
1603.05027 (2016-03)
Identity Mappings in Deep Residual Networks
1605.07146 (2016-05)
Wide Residual Networks
1906.02629 (2019-06)
When Does Label Smoothing Help?
and 15 more not named here
ResNet18Dropout 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
ResNet34Dropout 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
ResNet50Dropout 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
keep_variance 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
lbeta 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
lgamma 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
normcdf 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
normpdf 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
resize2D 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning
resize2D_as 1 other paper
1 later
1907.06890 (2019-07)
A General Framework for Uncertainty Estimation in Deep Learning

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

Even though probabilistic treatments of neural networks have a long history, they have not found widespread use in practice. Sampling approaches are often too slow already for simple networks. The size of the inputs and the depth of typical CNN architectures in computer vision only compound this problem. Uncertainty in neural networks has thus been largely ignored in practice, despite the fact that it may provide important information about the reliability of predictions and the inner workings of the network. In this paper, we introduce two lightweight approaches to making supervised learning with probabilistic deep networks practical: First, we suggest probabilistic output layers for classification and regression that require only minimal changes to existing networks. Second, we employ assumed density filtering and show that activation uncertainties can be propagated in a practical fashion through the entire network, again with minor changes. Both probabilistic networks retain the predictive power of the deterministic counterpart, but yield uncertainties that correlate well with the empirical error induced by their predictions. Moreover, the robustness to adversarial examples is significantly increased.

For agents

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

get_harvested_code_for_paper("1805.11327")
get_code_for_paper("1805.11327")
have("1805.11327")

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

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

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

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

Connect an agent — have() is free.