SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.10843 · NeurIPS · 2022

Learning Debiased Classifier with Biased Committee

Jaesik Park, Sungsoo Ahn, Suha Kwak, Nayeong Kim, Sehyun Hwang

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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; 2 honoured the contract we drafted, 1 violated it and 5 have no contract verdict; 1 failure of our instrument; 1 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/2206.10843.json · badge: /api/ran/2206.10843.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
nayeong-v-kim/lwbc canonical (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
alinlab/LfF community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
GeneralizedCELoss Ran
ran on a synthesized input
alinlab/LfF/module/loss.py
pointer only (licence: NONE) · get_code("8a53821f55fe659d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, alinlab/LfF 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.

ce Ran
ran on a synthesized input
nayeong-v-kim/lwbc/LWBC/utils.py
code served (permissive licence) · get_code("baf0825d62f43593")
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 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 torch.nn as nn

torch.manual_seed(0)

# Create tiny tensors for cross_entropy
# outputs: logits with shape (batch_size, num_classes)
# labels: class indices with shape (batch_size,)
outputs = torch.randn(2, 4)  # batch_size=2, num_classes=4
labels = torch.tensor([0, 2])  # batch_size=2, valid class indices

ARGS = {
    'outputs': outputs,
    'labels': labels,
    'reduce': True
}
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 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
cosine_rampdown Ran
ran on a synthesized input
nayeong-v-kim/lwbc/SSL/main_byol.py
code served (permissive licence) · get_code("a1358ef8d9401bec")
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 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 math

def cosine_rampdown(current, rampdown_length):
    """Cosine rampdown from https://arxiv.org/abs/1608.03983"""
    assert 0 <= current <= rampdown_length
    return 0.5 * (1.0 + math.cos(math.pi * current / rampdown_length))

ARGS = {
    "current": 5,
    "rampdown_length": 10
}
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 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
default Ran
ran, violated the contract we drafted
nayeong-v-kim/lwbc/SSL/byol/builder.py
code served (permissive licence) · get_code("1c0f269ae9673b08")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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 torch
import numpy as np

# The function `default` takes two parameters:
# - val: any value that might be None
# - def_val: a default value to return if val is None

# Test case 1: val is None, should return def_val
val_none = None
def_val_1 = 42

# Test case 2: val is not None, should return val
val_not_none = "some_value"
def_val_2 = "default_value"

# We'll use the first test case for ARGS
ARGS = {
    'val': val_none,
    'def_val': def_val_1
}
Setup block drafted by
a language model, Claude Sonnet 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 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
flatten Ran
ran, honoured the contract we drafted
nayeong-v-kim/lwbc/SSL/byol/builder.py
code served (permissive licence) · get_code("4daa3e876f494d75")
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 Tensor, ndim 2, dtype family float, shape (2, 12) 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 flatten function takes a tensor t and reshapes it to (batch_size, -1)
# It accesses t.shape and t.reshape()
# We need a tensor with at least 2 dimensions where the first is the batch dimension

t = torch.randn(2, 4, 3)  # batch_size=2, other dims will be flattened to 12

ARGS = {
    "t": t
}
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 Tensor, ndim 2, dtype family float, shape (2, 12) — shape (2, 12) 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
get_classifier Ran
ran on a synthesized input
nayeong-v-kim/lwbc/LWBC/utils.py
code served (permissive licence) · get_code("ddba6a6202534e39")
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 Sequential. 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 = {
    'num_linear': '3linear',
    'f_dim': 64,
    'output_dim': 10,
    'linear_bias': True
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
linear_rampup Ran
ran, honoured the contract we drafted
nayeong-v-kim/lwbc/SSL/main_byol.py
pointer only (licence: MIT); the stored copy get_code serves, from y-research-sbu/otsurv, is pointer only (licence: NOASSERTION) · get_code("069122bd5268cc56")
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 y-research-sbu/otsurv, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

num_correct_all Ran
ran on a synthesized input
nayeong-v-kim/lwbc/LWBC/utils.py
code served (permissive licence) · get_code("b93663f30ffebf65")
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 tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. 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 torch

torch.manual_seed(0)

# Construct arguments for num_correct_all function
# outputs: model predictions (batch_size x num_class)
# labels: ground truth labels (batch_size,)
# sensitive: sensitive attribute (batch_size,)
# num_class: number of classes
# flag: control flag

batch_size = 4
num_classes = 3

# outputs: logits from model, shape (batch_size, num_class)
outputs = torch.randn(batch_size, num_classes)

# labels: ground truth, shape (batch_size,), values in {0, 1}
labels = torch.tensor([0, 1, 0, 1])

# sensitive: sensitive attribute, shape (batch_size,), values in {0, 1}
sensitive = torch.tensor([0, 1, 1, 0])

# num_class: number of output classes
num_class = num_classes

# flag: control flag (0 returns early, 1 computes metrics)
flag = 1

ARGS = {
    "outputs": outputs,
    "labels": labels,
    "sensitive": sensitive,
    "num_class": num_class,
    "flag": flag
}
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 tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
singleton Ran
ran; our contract draft was wrong, not the code
nayeong-v-kim/lwbc/SSL/byol/builder.py
code served (permissive licence) · get_code("c6bc247ffa36099c")
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 function. 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 functools import wraps

# Define the singleton decorator
def singleton(cache_key):
    def inner_fn(fn):
        @wraps(fn)
        def wrapper(self, *args, **kwargs):
            instance = getattr(self, cache_key)
            if instance is not None:
                return instance
            instance = fn(self, *args, **kwargs)
            setattr(self, cache_key, instance)
            return instance
        return wrapper
    return inner_fn

# Create a test class that uses the singleton decorator
class TestClass:
    def __init__(self):
        self._cached_model = None
    
    @singleton('_cached_model')
    def get_model(self):
        return nn.Linear(4, 3)

# Test the decorator by calling it
test_obj = TestClass()
model1 = test_obj.get_model()
model2 = test_obj.get_model()

# Verify caching works
assert model1 is model2, "Singleton caching failed"

# Define ARGS for the singleton function
ARGS = {
    'cache_key': '_cached_model'
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
accuracy Not yet run
unverified (harvested, no recorded run)
nayeong-v-kim/lwbc/SSL/main_byol.py
pointer only (licence: MIT); the stored copy get_code serves, from zbh2047/clipping-algorithms, is pointer only (licence: NONE) · get_code("9b8289076669fe4f")
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 zbh2047/clipping-algorithms, 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. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 5 later) and 5 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
accuracy 80 other papers
63 dated earlier, 16 later, 1 same year, order not determinable
1307.0414 (2013-07)
Challenges in Representation Learning: A report on three machine learning contests
1412.6553 (2014-12)
Speeding-up Convolutional Neural Networks Using Fine-tuned CP-Decomposition
1503.02531 (2015-03)
Distilling the Knowledge in a Neural Network
and 77 more not named here
linear_rampup 16 other papers
6 dated earlier, 9 later, 1 same year, order not determinable
1904.04717 (2019-04)
Label Propagation for Deep Semi-supervised Learning
1907.07034 (2019-07)
Uncertainty-aware Self-ensembling Model for Semi-supervised 3D Left Atrium Segmentation
1911.08177 (2019-11)
Rethinking deep active learning: Using unlabeled data at model training
and 13 more not named here
default 11 other papers
8 dated earlier, 1 the same month, 2 later
2006.07733 (2020-06)
Bootstrap your own latent: A new approach to self-supervised Learning
2010.10241 (2020-10)
BYOL works even without batch statistics
2011.10043 (2020-11)
Propagate Yourself: Exploring Pixel-Level Consistency for Unsupervised Visual Representation Learning
and 8 more not named here
flatten 9 other papers
6 dated earlier, 1 the same month, 2 later · 1 only as an assembly brick
2006.07733 (2020-06)
Bootstrap your own latent: A new approach to self-supervised Learning
2010.10241 (2020-10)
BYOL works even without batch statistics
2103.03230 (2021-03)
Barlow Twins: Self-Supervised Learning via Redundancy Reduction
and 6 more not named here
singleton 8 other papers
6 dated earlier, 1 the same month, 1 later
2006.07733 (2020-06)
Bootstrap your own latent: A new approach to self-supervised Learning
2010.10241 (2020-10)
BYOL works even without batch statistics
2103.06695 (2021-03)
BYOL for Audio: Self-Supervised Learning for General-Purpose Audio Representation
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

Neural networks are prone to be biased towards spurious correlations between classes and latent attributes exhibited in a major portion of training data, which ruins their generalization capability. We propose a new method for training debiased classifiers with no spurious attribute label. The key idea is to employ a committee of classifiers as an auxiliary module that identifies bias-conflicting data, i.e., data without spurious correlation, and assigns large weights to them when training the main classifier. The committee is learned as a bootstrapped ensemble so that a majority of its classifiers are biased as well as being diverse, and intentionally fail to predict classes of bias-conflicting data accordingly. The consensus within the committee on prediction difficulty thus provides a reliable cue for identifying and weighting bias-conflicting data. Moreover, the committee is also trained with knowledge transferred from the main classifier so that it gradually becomes debiased along with the main classifier and emphasizes more difficult data as training progresses. On five real-world datasets, our method outperforms prior arts using no spurious attribute label like ours and even surpasses those relying on bias labels occasionally. Our code is available at https://github.com/ nayeong-v-kim/LWBC.

For agents

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

get_harvested_code_for_paper("2206.10843")
get_code_for_paper("2206.10843")
have("2206.10843")

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

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

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

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

Connect an agent — have() is free.