SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.19185 · NeurIPS · 2023

Compression with Bayesian Implicit Neural Representations

José Hernández-Lobato, Gergely Flamich, Zhibo Chen, Zongyu Guo, Jiajun He

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 2 failures of our instrument; 1 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/2305.19185.json · badge: /api/ran/2305.19185.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
cambridge-mlg/combiner canonical (classifier label)
classifier basis: classifier_2025
6 ran · 1 no recorded run
FunctionStatusWhere it lives
Sine Ran
ran on a synthesized input · constructed an object; no result was computed
cambridge-mlg/combiner/models.py
code served (permissive licence) · get_code("ea1c440be574d8bc")
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 an instance of its own class, Sine: the run constructed the object and did not call it, so no result was computed. 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 = {
    "w0": 2.5
}
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 Sine — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Sine 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
SmoothStd Ran
ran, honoured the contract we drafted
cambridge-mlg/combiner/models.py
code served (permissive licence) · get_code("c496540ff14bd9d6")
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 torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# SmoothStd takes a single parameter: std
# Looking at the function body, it applies F.softplus to std with beta=1 and threshold=20
# std should be a tensor that F.softplus can accept

std = torch.randn(2, 4)

ARGS = {
    "std": std
}
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
VarSirenLayer Ran
ran on a synthesized input · constructed an object; no result was computed
cambridge-mlg/combiner/models.py
code served (permissive licence) · get_code("32898e968e686977")
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 an instance of its own class, VarSirenLayer: the run constructed the object and did not call it, so no result was computed. 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
from math import sqrt

torch.manual_seed(0)

# Define the Sine activation class
class Sine(nn.Module):
    """Sine activation with scaling."""
    def __init__(self, w0=1.0):
        super().__init__()
        self.w0 = w0

    def forward(self, x):
        return torch.sin(self.w0 * x)

# Define VarSirenLayer for reference
class VarSirenLayer(nn.Module):
    def __init__(self, dim_in, dim_out, std_init, is_first, w0=30.0, c=6.0, activation=None):
        super().__init__()
        self.dim_in = dim_in
        self.dim_out = dim_out
        w_std = 1 / dim_in if is_first else sqrt(c / dim_in) / w0
        self.w_std = w_std
        self.mu = nn.Parameter(torch.FloatTensor(dim_in + 1, dim_out).uniform_(-w_std / 12 * 11, w_std / 12 * 11))
        self.std = nn.Parameter(torch.FloatTensor(dim_in + 1, dim_out).fill_(std_init))
        self.activation = Sine(w0) if activation is None else activation

# Construct arguments for VarSirenLayer instantiation
dim_in = 3
dim_out = 4
std_init = 0.1
is_first = True
w0 = 30.0
c = 6.0
activation = None

ARGS = {
    'dim_in': dim_in,
    'dim_out': dim_out,
    'std_init': std_init,
    'is_first': is_first,
    'w0': w0,
    'c': c,
    'activation': activation
}
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 VarSirenLayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a VarSirenLayer 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
gaussian_analytical_kl Ran
ran, honoured the contract we drafted
cambridge-mlg/combiner/models.py
code served (permissive licence) · get_code("eca0a82f53216368")
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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for the parameters
# mu1, mu2: mean vectors
# sigma1, sigma2: standard deviation vectors
batch_size = 2
dim = 4

mu1 = torch.randn(batch_size, dim)
mu2 = torch.randn(batch_size, dim)
sigma1 = torch.abs(torch.randn(batch_size, dim)) + 0.1  # ensure positive
sigma2 = torch.abs(torch.randn(batch_size, dim)) + 0.1  # ensure positive

ARGS = {
    "mu1": mu1,
    "mu2": mu2,
    "sigma1": sigma1,
    "sigma2": sigma2,
    "eps": 1e-10
}
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
make_args Ran
ran; our contract draft was wrong, not the code
cambridge-mlg/combiner/train_model_prior.py
code served (permissive licence) · get_code("bc64df4b1a711e4a")
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) and returned Namespace. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 argparse

torch.manual_seed(0)

# Create a minimal args object with required attributes
args = argparse.Namespace()
args.dataset = "test_dataset"
args.num_layers = 3
args.dim_emb = 16
args.dim_hid = 32
args.weight_kl = 0.5
args.port_offset = 10

# Create cfgs dictionary with additional configuration
cfgs = {
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 100,
}

ARGS = {
    "args": args,
    "cfgs": cfgs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
make_args Ran
ran; our contract draft was wrong, not the code
cambridge-mlg/combiner/encode_learn_posterior.py
code served (permissive licence) · get_code("047ed9ebe9784f81")
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) and returned Args. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

class Args:
    pass

args = Args()

cfgs = {
    'dataset': 'test_dataset',
    'num_layers': 3,
    'dim_emb': 16,
    'dim_hid': 32,
    'weight_kl': 0.5,
    'port_offset': 100
}

ARGS = {
    'args': args,
    'cfgs': cfgs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Args — a Args output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Args 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
SirenPosterior Not yet run
unverified (harvested, no recorded run)
cambridge-mlg/combiner/models.py
code served (permissive licence) · get_code("b3dbf1a3b413436f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 6 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
Sine
brick of this paper's assembly: model
8 other papers
2 dated earlier, 6 later · 4 only as an assembly brick
2006.09661 (2020-06)
Implicit Neural Representations with Periodic Activation Functions
2104.03866 (2021-04)
SMD-Nets: Stereo Mixture Density Networks
2310.19629 (2023-10)
RayDF: Neural Ray-surface Distance Fields with Multi-view Consistency
and 5 more not named here

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

Many common types of data can be represented as functions that map coordinates to signal values, such as pixel locations to RGB values in the case of an image. Based on this view, data can be compressed by overfitting a compact neural network to its functional representation and then encoding the network weights. However, most current solutions for this are inefficient, as quantization to low-bit precision substantially degrades the reconstruction quality. To address this issue, we propose overfitting variational Bayesian neural networks to the data and compressing an approximate posterior weight sample using relative entropy coding instead of quantizing and entropy coding it. This strategy enables direct optimization of the rate-distortion performance by minimizing the β-ELBO, and target different rate-distortion trade-offs for a given network architecture by adjusting β. Moreover, we introduce an iterative algorithm for learning prior weight distributions and employ a progressive refinement process for the variational posterior that significantly enhances performance. Experiments show that our method achieves strong performance on image and audio compression while retaining simplicity. Our code is available at https://github.com/cambridge-mlg/combiner. A recent line of work [10][11][12] proposes to solve this issue by reformulating it as a model compression problem: we treat a single datum as a continuous signal that maps coordinates to values, to which we overfit a small neural network called its implicit neural representation (INR). While INRs were originally proposed in [13] to study structural relationships in the data, Dupont et al. [10] have demonstrated that we can also use them for compression by encoding their weights. Since the data ˚Equal Contribution. 37th Conference on Neural Information Processing Systems (NeurIPS 2023).

For agents

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

get_harvested_code_for_paper("2305.19185")
get_code_for_paper("2305.19185")
have("2305.19185")

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

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

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

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

Connect an agent — have() is free.