SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2009.12789 · NeurIPS · 2020

Learning Optimal Representations with the Decodable Information Bottleneck

David Schwab, Yann Dubois, Ramakrishna Vedantam

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 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 3 have no contract verdict; 0 failures of our instrument; 3 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/2009.12789.json · badge: /api/ran/2009.12789.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
YannDubs/Overlayed-Datasets canonical (classifier label)
classifier basis: census
2 ran · 1 no recorded run
YannDubs/Mini_Decodable_Information_Bottleneck marked official in Papers with Code
Papers with Code archive
2 ran · 2 no recorded run
FunctionStatusWhere it lives
NaiveNuisanceGetter Ran
ran on a synthesized input
YannDubs/Mini_Decodable_Information_Bottleneck/dib.py
code served (permissive licence) · get_code("7802df85cbd95114")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 1, dtype family int, 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 torch.nn as nn
import numpy as np

class NaiveNuisanceGetter(nn.Module):
    """Class which return some random N in the y decomposition of X."""

    def __init__(self, n_heads, cardinality_X, cardinality_Y):
        super().__init__()
        nuisances = []
        for _ in range(n_heads):
            nuisances.append(torch.from_numpy(np.random.choice(cardinality_Y, cardinality_X)))
        self.register_buffer('nuisances', torch.stack(nuisances))

    def __call__(self, i, idcs):
        """Return the ith nuisance."""
        return self.nuisances[i, idcs]


INIT_ARGS = {
    'n_heads': 3,
    'cardinality_X': 8,
    'cardinality_Y': 5,
}

ARGS = {
    'i': 1,
    'idcs': torch.tensor([0, 2, 4, 6]),
}

if __name__ == '__main__':
    model = NaiveNuisanceGetter(**INIT_ARGS)
    result = model(**ARGS)
    print(result)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 1, dtype family int, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
at_least_ndim Ran
ran on a synthesized input
YannDubs/Overlayed-Datasets/overlay.py
code served (permissive licence) · get_code("3d9933391cdf0451")
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 ndarray, ndim 4, dtype family float; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. If your copy returns the same type and ndim 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 numpy as np

ARGS = {
    "arr": np.random.randn(2, 3),
    "ndim": 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
ensure_color Ran
ran on a synthesized input
YannDubs/Overlayed-Datasets/overlay.py
code served (permissive licence) · get_code("645e40ccfbeaea8e")
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 ndarray, ndim 4, dtype family int; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-27T00:55:41Z. If your copy returns the same type and ndim 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 numpy as np

# Test case 1: Grayscale image (1 channel) - should be converted to 3 channels
grayscale_imgs = np.random.randint(0, 256, size=(2, 4, 5, 1), dtype=np.uint8)

ARGS = {
    "imgs": grayscale_imgs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family int — no output shape is stated: no later run recorded an output shape for this sample (observed_output and metamorphic_properties carry none; shape_contract and output_contract record ndim only)
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 syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1); 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
mean Ran
ran, violated the contract we drafted
YannDubs/Mini_Decodable_Information_Bottleneck/dib.py
code served (permissive licence) · get_code("65f37b6c0e79c62c")
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 float, ndim 0, dtype family float, 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 torch
import numpy as np

torch.manual_seed(0)

# The function 'mean' takes a list-like object 'l' and computes sum(l) / len(l)
# It needs an array-like object that supports sum() and len()

# Create a simple list of numbers
l = [1.0, 2.0, 3.0, 4.0, 5.0]

ARGS = {
    "l": l
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, 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
DIBLoss Not yet run
unverified (harvested, no recorded run)
YannDubs/Mini_Decodable_Information_Bottleneck/dib.py
code served (permissive licence) · get_code("92826fcdb76a58f7")
How it ran

no invocation recorded.

ScaleGrad Not yet run
unverified (harvested, no recorded run)
YannDubs/Mini_Decodable_Information_Bottleneck/dib.py
code served (permissive licence) · get_code("28cfdd5104c56715")
How it ran

no invocation recorded.

overlay_img Not yet run
unverified (harvested, no recorded run)
YannDubs/Overlayed-Datasets/overlay.py
code served (permissive licence) · get_code("b6de5dcb962518af")
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
mean
brick of this paper's assembly: helper
5 other papers
2 dated earlier, 3 later
1909.13584 (2019-09)
Interpretations are useful: penalizing explanations to align neural networks with prior knowledge
2007.01332 (2020-07)
Meta-Learning Stationary Stochastic Process Prediction with Convolutional Neural Processes
aaai_16202 (2021 (year only))
Graph and Temporal Convolutional Networks for 3D Multi-person Pose Estimation in Monocular Videos
and 2 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

We address the question of characterizing and finding optimal representations for supervised learning. Traditionally, this question has been tackled using the Information Bottleneck, which compresses the inputs while retaining information about the targets, in a decoder-agnostic fashion. In machine learning, however, our goal is not compression but rather generalization, which is intimately linked to the predictive family or decoder of interest (e.g. linear classifier). We propose the Decodable Information Bottleneck (DIB) that considers information retention and compression from the perspective of the desired predictive family. As a result, DIB gives rise to representations that are optimal in terms of expected test performance and can be estimated with guarantees. Empirically, we show that the framework can be used to enforce a small generalization gap on downstream classifiers and to predict the generalization ability of neural networks.

For agents

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

get_harvested_code_for_paper("2009.12789")
get_code_for_paper("2009.12789")
have("2009.12789")

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

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

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

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

Connect an agent — have() is free.