SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.13043 · NeurIPS · 2022

Data-IQ: Characterizing subgroups with heterogeneous outcomes in tabular data

Mihaela Van Der Schaar, Ioana Bica, Jonathan Crabbé, Nabeel Seedat

arXiv · PDF · Open in the Atlas

Code that ran

6 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 5 have no contract verdict; 1 failure of our instrument; 6 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/2210.13043.json · badge: /api/ran/2210.13043.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
seedatnabeel/data-iq canonical (classifier label)
classifier basis not recorded on the link
6 ran · 6 no recorded run
FunctionStatusWhere it lives
evaluate_model Ran
ran on a synthesized input
seedatnabeel/data-iq/src/utils/group_dro_helpers.py
code served (permissive licence) · get_code("74b9aada2ba5b3c6")
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 dict. 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a simple binary classification model
class SimpleNet(nn.Module):
    def __init__(self):
        super(SimpleNet, self).__init__()
        self.fc1 = nn.Linear(4, 8)
        self.fc2 = nn.Linear(8, 2)
    
    def forward(self, x):
        x = torch.relu(self.fc1(x))
        x = self.fc2(x)
        return x

# Create model
net_test = SimpleNet()

# Create test data
X_test = np.random.randn(10, 4).astype(np.float32)
y_test = np.array([0, 1, 0, 1, 0, 1, 0, 1, 0, 1])

# Create index arrays for different difficulty levels
easy_test = np.array([0, 1, 2])
ambig_test = np.array([3, 4, 5])
hard_test = np.array([6, 7, 8, 9])

ARGS = {
    'net_test': net_test,
    'X_test': X_test,
    'y_test': y_test,
    'easy_test': easy_test,
    'ambig_test': ambig_test,
    'hard_test': hard_test
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_dataiq_scores Ran
ran on a synthesized input
seedatnabeel/data-iq/src/utils/utils.py
code served (permissive licence) · get_code("baf5730360c8aca7")
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 1, dtype family float; no output shape is stated. It ran in syntology-harvest-sandbox:v5-deps (sha256:6a292aa1aed1) at 2026-09-26T23:14:07Z. 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

class DataIQ:
    """Stand-in DataIQ object with required attributes."""
    def __init__(self, variability, aleatoric, confidence):
        self.variability = variability
        self.aleatoric = aleatoric
        self.confidence = confidence

# Create sample data arrays
np.random.seed(0)
n_samples = 10

# Create three DataIQ objects with distinct random arrays
dataiq1 = DataIQ(
    variability=np.random.randn(n_samples),
    aleatoric=np.random.randn(n_samples),
    confidence=np.random.randn(n_samples)
)

dataiq2 = DataIQ(
    variability=np.random.randn(n_samples),
    aleatoric=np.random.randn(n_samples),
    confidence=np.random.randn(n_samples)
)

dataiq3 = DataIQ(
    variability=np.random.randn(n_samples),
    aleatoric=np.random.randn(n_samples),
    confidence=np.random.randn(n_samples)
)

# Create dictionary of DataIQ objects
dataiqs = {
    "model_a": dataiq1,
    "model_b": dataiq2,
    "model_c": dataiq3
}

# Create list of model name tuples (combos)
combos = [
    ("model_a", "model_b"),
    ("model_b", "model_c"),
    ("model_a", "model_c")
]

# Feature to use
feat = "variability"

ARGS = {
    "dataiqs": dataiqs,
    "combos": combos,
    "feat": feat
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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 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
get_grad_scores Ran
ran on a synthesized input
seedatnabeel/data-iq/src/utils/utils.py
code served (permissive licence) · get_code("43a03ef033b2e718")
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 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 numpy as np

class DataIQ:
    """Stand-in class for dataiqs objects"""
    def __init__(self, grads):
        self.get_grads = grads

# Create sample gradient data for two conditions
# Shape: (n_samples, n_features)
np.random.seed(0)
grads_condition_a = np.random.randn(5, 4)
grads_condition_b = np.random.randn(5, 4)
grads_condition_c = np.random.randn(5, 4)

# Construct dataiqs dictionary
dataiqs = {
    'condition_a': DataIQ(grads_condition_a),
    'condition_b': DataIQ(grads_condition_b),
    'condition_c': DataIQ(grads_condition_c),
}

# Construct combos list - pairs of condition names to compare
combos = [
    ('condition_a', 'condition_b'),
    ('condition_b', 'condition_c'),
]

ARGS = {
    'dataiqs': dataiqs,
    'combos': combos,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
get_scores_generic Ran
ran on a synthesized input
seedatnabeel/data-iq/src/utils/utils.py
code served (permissive licence) · get_code("280c66ad0e1e3bad")
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 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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create a dictionary of lists where each list contains scores for a particular metric
# We'll create 3 different metrics, each with 5 scores
overall_list = {
    0: [1.2, 2.3, 3.1, 4.5, 5.2],
    1: [1.5, 2.1, 3.4, 4.2, 5.1],
    2: [2.1, 3.2, 4.0, 5.3, 6.1]
}

# Create a list of tuples representing pairs of indices to correlate
# We'll correlate metric 0 with 1, and metric 1 with 2
combos = [(0, 1), (1, 2)]

ARGS = {
    "overall_list": overall_list,
    "combos": combos
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
to_device Ran
ran; our contract draft was wrong, not the code
seedatnabeel/data-iq/src/models/cnn_models.py
code served (permissive licence) · get_code("89bd42887c6ec15c")
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. 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)

# Construct test data with nested structure (list of tensors)
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(2, 3)
data = [tensor1, tensor2]

# Device to move to (CPU)
device = torch.device('cpu')

ARGS = {
    'data': data,
    'device': device
}
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 — a list 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
train_loop Ran
ran on a synthesized input
seedatnabeel/data-iq/src/utils/group_dro_helpers.py
code served (permissive licence) · get_code("369603fff1a7ea66")
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 SimpleNet. 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)

# Define a simple network
class SimpleNet(nn.Module):
    def __init__(self):
        super(SimpleNet, self).__init__()
        self.fc = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.fc(x)

# Define a custom criterion that handles subclass case
class CustomCriterion(nn.Module):
    def __init__(self):
        super(CustomCriterion, self).__init__()
        self.base_loss = nn.NLLLoss()
    
    def forward(self, y_pred, y_batch, y_subclass=None):
        if y_subclass is not None:
            # Return tuple of (loss, (losses, corrects), _)
            loss = self.base_loss(y_pred, y_batch)
            losses = [loss.item()]
            corrects = [1]
            return loss, (losses, corrects), None
        else:
            return self.base_loss(y_pred, y_batch)

# Create train loader with subclass=True case
# Each batch contains (X_batch, y_batch, y_subclass)
train_loader_with_subclass = [
    (torch.randn(2, 4), torch.tensor([0, 1], dtype=torch.int64), torch.tensor([0, 1], dtype=torch.int64)),
    (torch.randn(2, 4), torch.tensor([2, 0], dtype=torch.int64), torch.tensor([1, 0], dtype=torch.int64)),
]

# Create train loader without subclass case
# Each batch contains (X_batch, y_batch)
train_loader_without_subclass = [
    (torch.randn(2, 4), torch.tensor([0, 1], dtype=torch.int64)),
    (torch.randn(2, 4), torch.tensor([2, 0], dtype=torch.int64)),
]

net = SimpleNet()
criterion = CustomCriterion()
EPOCHS = 1
device = 'cpu'

# Arguments for subclass=True case
ARGS = {
    'net': net,
    'criterion': criterion,
    'EPOCHS': EPOCHS,
    'train_loader': train_loader_with_subclass,
    'optimizer': torch.optim.SGD(net.parameters(), lr=0.01),
    'device': device,
    'subclass': 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 SimpleNet — a SimpleNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleNet 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)
seedatnabeel/data-iq/src/models/cnn_models.py
code served (permissive licence) · get_code("9b882b7743c5154c")
How it ran

no invocation recorded.

get_data Not yet run
unverified (harvested, no recorded run)
seedatnabeel/data-iq/src/utils/exp3_helpers.py
code served (permissive licence) · get_code("4a9eeb01ebd75af0")
How it ran

no invocation recorded.

load_adult_data Not yet run
unverified (harvested, no recorded run)
seedatnabeel/data-iq/tutorial/demo_data.py
code served (permissive licence) · get_code("f9bc3c2b6ce7ff3d")
How it ran

no invocation recorded.

load_dataset Not yet run
unverified (harvested, no recorded run)
seedatnabeel/data-iq/src/utils/data_loader.py
code served (permissive licence) · get_code("a7898e3f93e6f24f")
How it ran

no invocation recorded.

load_seer_cutract_dataset Not yet run
unverified (harvested, no recorded run)
seedatnabeel/data-iq/src/utils/data_loader.py
code served (permissive licence) · get_code("997137bb63769364")
How it ran

no invocation recorded.

load_seer_cutract_dataset Not yet run
unverified (harvested, no recorded run)
seedatnabeel/data-iq/src/utils/exp3_helpers.py
code served (permissive licence) · get_code("155df0192be9e607")
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, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 10 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 3 other papers
2 dated earlier, 1 later
2008.11364 (2020-08)
Improving Semi-supervised Federated Learning by Reducing the Gradient Diversity of Models
2201.05629 (2022-01)
Zero-Shot Machine Unlearning
2404.10824 (2024-04)
Decoupled Weight Decay for Any $p$ Norm
to_device 2 other papers
2 later
2404.10824 (2024-04)
Decoupled Weight Decay for Any $p$ Norm
2410.05057 (2024-10)
SELECT: A Large-Scale Benchmark of Data Curation Strategies for Image Classification

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

High model performance, on average, can hide that models may systematically underperform on subgroups of the data. We consider the tabular setting, which surfaces the unique issue of outcome heterogeneity -this is prevalent in areas such as healthcare, where patients with similar features can have different outcomes, thus making reliable predictions challenging. To tackle this, we propose Data-IQ, a framework to systematically stratify examples into subgroups with respect to their outcomes. We do this by analyzing the behavior of individual examples during training, based on their predictive confidence and, importantly, the aleatoric (data) uncertainty. Capturing the aleatoric uncertainty permits a principled characterization and then subsequent stratification of data examples into three distinct subgroups (Easy, Ambiguous, Hard). We experimentally demonstrate the benefits of Data-IQ on four real-world medical datasets. We show that Data-IQ's characterization of examples is most robust to variation across similarly performant (yet different) models, compared to baselines. Since Data-IQ can be used with any ML model (including neural networks, gradient boosting etc.), this property ensures consistency of data characterization, while allowing flexible model selection. Taking this a step further, we demonstrate that the subgroups enable us to construct new approaches to both feature acquisition and dataset selection. Furthermore, we highlight how the subgroups can inform reliable model usage, noting the significant impact of the Ambiguous subgroup on model generalization. 36th Conference on Neural Information Processing Systems (NeurIPS 2022).

For agents

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

get_harvested_code_for_paper("2210.13043")
get_code_for_paper("2210.13043")
have("2210.13043")

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

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

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

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

Connect an agent — have() is free.