SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.18555 · NeurIPS · 2023

Group Robust Classification Without Any Group Information

Aaron Courville, Christos Tsirigotis, David Vazquez, Joao Monteiro, Pau Rodriguez

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 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/2310.18555.json · badge: /api/ran/2310.18555.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
tsirif/uLA canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
accuracy_at_k Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsirif/uLA/ula/utils/metrics.py
code served (permissive licence) · get_code("0df79f9926775654")
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 list, 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)

# Small batch of classifier outputs (logits)
# batch_size=2, num_classes=4
outputs = torch.randn(2, 4)

# Ground truth labels (batch_size=2)
targets = torch.tensor([0, 3])

# Top k values to compute accuracy for
top_k = (1, 2)

ARGS = {
    "outputs": outputs,
    "targets": targets,
    "top_k": top_k,
}
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 list, ndim 2, dtype family float — a list 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
calculate_empirical_prior Ran
ran; our contract draft was wrong, not the code
tsirif/uLA/ula/utils/misc.py
code served (permissive licence) · get_code("b24c3e146ac874c0")
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, 2, 3) 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)

# Create a small attributes tensor
# Shape: (batch_size, num_attributes)
# Each value represents a class index for that attribute
attributes = torch.tensor([
    [0, 1, 0],
    [1, 0, 2],
    [0, 1, 1],
    [1, 0, 0]
], dtype=torch.long)

# num_classes can be None (function will compute it) or explicitly provided
# If provided, should be a tensor of shape (num_attributes,) with max class indices
num_classes = torch.tensor([2, 2, 3], dtype=torch.long)

ARGS = {
    "attributes": attributes,
    "num_classes": num_classes
}
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, 2, 3) — shape (2, 2, 3) 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
gather Ran
ran; our contract draft was wrong, not the code
tsirif/uLA/ula/utils/misc.py
code served (permissive licence) · get_code("a448d12e56c7a36f")
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.autograd

torch.manual_seed(0)

# Create a small tensor for testing
# The function expects a tensor X and an optional dim parameter
X = torch.randn(2, 4, requires_grad=True)

# Define the arguments dictionary
ARGS = {
    "X": X,
    "dim": 0
}
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
group_mixup Ran
ran; our contract draft was wrong, not the code
tsirif/uLA/ula/methods/lc.py
code served (permissive licence) · get_code("250a859ab009869e")
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. 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
from torch.distributions import Categorical

torch.manual_seed(0)

# Create tiny tensors for testing
batch_size = 6
feature_dim = 4
num_classes = 3

# X: input features (batch_size, feature_dim)
X = torch.randn(batch_size, feature_dim)

# Y: true labels (batch_size,)
Y = torch.randint(0, num_classes, (batch_size,))

# Y_bias: biased labels (batch_size,)
# Make some match Y (majority) and some differ (rare)
Y_bias = Y.clone()
Y_bias[0] = (Y_bias[0] + 1) % num_classes  # Make first one rare
Y_bias[1] = (Y_bias[1] + 1) % num_classes  # Make second one rare

# p: probability tensor (batch_size, num_classes)
p = torch.softmax(torch.randn(batch_size, num_classes), dim=1)

# tau: temperature parameter for mixup
tau = 0.5

ARGS = {
    "X": X,
    "Y": Y,
    "Y_bias": Y_bias,
    "p": p,
    "tau": tau,
}
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 — a tuple output has no array shape of its own; none is 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_sure_it_is_list Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
tsirif/uLA/ula/methods/ula.py
code served (permissive licence) · get_code("d32864186f864c0f")
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 list, ndim 1, dtype family int; 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
import numpy as np
from typing import List, Union

torch.manual_seed(0)

ARGS = {
    "which": [1, 2, 3],
    "length": 3
}
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 list, ndim 1, dtype family int — a list 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
mocov2plus_loss_func Ran
ran; our contract draft was wrong, not the code
tsirif/uLA/ula/losses/mocov2plus.py
code served (permissive licence) · get_code("9bbe10852d43e476")
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.functional as F

torch.manual_seed(0)

# Set up tensor dimensions
batch_size = 2
embedding_dim = 4
queue_size = 3

# Create query tensor: NxD where N=batch_size, D=embedding_dim
query = torch.randn(batch_size, embedding_dim)

# Create key tensor: NxD where N=batch_size, D=embedding_dim
key = torch.randn(batch_size, embedding_dim)

# Create queue tensor: MxD where M=queue_size (number of past negative samples), D=embedding_dim
queue = torch.randn(queue_size, embedding_dim)

# Temperature parameter
temperature = 0.1

ARGS = {
    "query": query,
    "key": key,
    "queue": queue,
    "temperature": temperature,
}
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
static_lr Ran
ran; our contract draft was wrong, not the code
tsirif/uLA/ula/methods/base.py
code served (permissive licence) · get_code("6cffbd989c3b8942")
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 list, ndim 1, 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
from typing import Callable, Sequence

torch.manual_seed(0)

def get_lr_func():
    """Stand-in function that returns a list of learning rates"""
    return [0.001, 0.0001, 0.00001, 0.000001]

ARGS = {
    "get_lr": get_lr_func,
    "param_group_indexes": [0, 2],
    "lrs_to_replace": [0.01, 0.0005]
}
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 list, ndim 1, dtype family float — a list 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
weighted_mean Ran
ran, honoured the contract we drafted
tsirif/uLA/ula/utils/metrics.py
code served (permissive licence) · get_code("a5a63a80eb3b14b4")
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 numpy as np

torch.manual_seed(0)

# The function expects:
# - outputs: List[Dict] - a list of dictionaries
# - key: str - a key to look up in each dict
# - batch_size_key: str - a key for batch sizes in each dict

# Build a list of output dicts that contain both the metric and batch size
outputs = [
    {
        "loss": torch.tensor(0.5),
        "batch_size": torch.tensor(2)
    },
    {
        "loss": torch.tensor(0.3),
        "batch_size": torch.tensor(3)
    },
    {
        "loss": torch.tensor(0.4),
        "batch_size": torch.tensor(2)
    }
]

key = "loss"
batch_size_key = "batch_size"

ARGS = {
    "outputs": outputs,
    "key": key,
    "batch_size_key": batch_size_key
}
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 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
bias_super_balanced_accuracy Not yet run
unverified (harvested, no recorded run)
tsirif/uLA/ula/utils/metrics.py
code served (permissive licence) · get_code("1bf756e5269f6b12")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 7 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
gather 3 other papers
2 dated earlier, 1 later
2210.16870 (2022-10)
A simple, efficient and scalable contrastive masked autoencoder for learning visual representations
2303.02387 (2023-03)
Towards a Unified Theoretical Understanding of Non-contrastive Learning via Rank Differential Mechanism
2403.12459 (2024-03)
Non-negative Contrastive Learning
static_lr 2 other papers
1 dated earlier, 1 later
2205.10279 (2022-05)
Pre-Train Your Loss: Easy Bayesian Transfer Learning with Informative Priors
2410.04959 (2024-10)
Collapse-Proof NON-CONTRASTIVE SELF-SUPERVISED 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

Empirical risk minimization (ERM) is sensitive to spurious correlations in the training data, which poses a significant risk when deploying systems trained under this paradigm in high-stake applications. While the existing literature focuses on maximizing group-balanced or worst-group accuracy, estimating these accuracies is hindered by costly bias annotations. This study contends that current biasunsupervised approaches to group robustness continue to rely on group information to achieve optimal performance. Firstly, these methods implicitly assume that all group combinations are represented during training. To illustrate this, we introduce a systematic generalization task on the MPI3D dataset and discover that current algorithms fail to improve the ERM baseline when combinations of observed attribute values are missing. Secondly, bias labels are still crucial for effective model selection, restricting the practicality of these methods in real-world scenarios. To address these limitations, we propose a revised methodology for training and validating debiased models in an entirely bias-unsupervised manner. We achieve this by employing pretrained self-supervised models to reliably extract bias information, which enables the integration of a logit adjustment training loss with our validation criterion. Our empirical analysis on synthetic and real-world tasks provides evidence that our approach overcomes the identified challenges and consistently enhances robust accuracy, attaining performance which is competitive with or outperforms that of state-of-the-art methods, which, conversely, rely on bias labels for validation.

For agents

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

get_harvested_code_for_paper("2310.18555")
get_code_for_paper("2310.18555")
have("2310.18555")

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

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

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

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

Connect an agent — have() is free.