SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.04971 · 2026

Be Fair! Can Machine Learning Engineering Agents Adhere to Fairness Constraints?

T Berlin, Sebastian Schelter, Julia Stoyanovich, Anna Richter

arXiv · PDF · Open in the Atlas

Code that ran

5 of 13 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, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 8 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/2606.04971.json · badge: /api/ran/2606.04971.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
anna-richter/be-fair canonical (classifier label)
classifier basis: census
5 ran · 8 no recorded run
FunctionStatusWhere it lives
cutmix_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anna-richter/be-fair/aide/logs/12-addition_1/best_solution.py
code served (permissive licence) · get_code("c4ea2fe236c7f015")
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 numpy as np
import torch

torch.manual_seed(0)
np.random.seed(0)

# Create small tensors for input
batch_size = 2
channels = 3
height = 4
width = 5

x = torch.randn(batch_size, channels, height, width)
y = torch.tensor([0, 1])

ARGS = {
    'x': x,
    'y': y,
    'alpha': 1.0,
    'device': 'cpu'
}
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 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
evaluate Ran
ran, honoured the contract we drafted
anna-richter/be-fair/aide/logs/14-addition_2/best_solution.py
code served (permissive licence) · get_code("2c267d71b4b17300")
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 torch
import torch.nn as nn
import numpy as np
from torch.utils.data import DataLoader, TensorDataset

torch.manual_seed(0)
np.random.seed(0)

# Define a minimal model that takes images and outputs logits
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Simple conv layer to process 4D image tensors
        self.conv = nn.Conv2d(3, 16, kernel_size=3, padding=1)
        self.pool = nn.AdaptiveAvgPool2d(1)
        self.fc = nn.Linear(16, 1)
    
    def forward(self, x):
        # x shape: (batch, 3, height, width)
        x = self.conv(x)
        x = self.pool(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x

# Create a small model
model = MinimalModel()

# Create tiny batch of image data: batch_size=2, channels=3, height=4, width=4
imgs = torch.randn(2, 3, 4, 4)
labels = torch.tensor([0, 1], dtype=torch.float32)

# Create a dataset and loader
dataset = TensorDataset(imgs, labels)
loader = DataLoader(dataset, batch_size=2)

# Device
device = 'cpu'

ARGS = {
    'model': model,
    'loader': loader,
    'device': device
}
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 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
mixup_data Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
anna-richter/be-fair/aide/logs/17-addition_2/best_solution.py
code served (permissive licence) · get_code("fc5b29d5049847a0")
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 numpy as np
import torch

torch.manual_seed(0)

# Create small tensors for mixup_data
batch_size = 2
feature_dim = 4
label_dim = 3

x = torch.randn(batch_size, feature_dim)
y = torch.randn(batch_size, label_dim)
w = torch.randn(batch_size, label_dim)

ARGS = {
    "x": x,
    "y": y,
    "w": w,
    "alpha": 0.4
}
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 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
rand_bbox Ran
ran; our contract draft was wrong, not the code
anna-richter/be-fair/aide/logs/1-basic_prompt/best_solution.py
code served (permissive licence) · get_code("6b4cb20b431b8d39")
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 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 numpy as np
import torch

# Construct arguments for rand_bbox function
# The function expects:
# - size: a sequence where size[2] is W (width) and size[3] is H (height)
# - lam: a lambda value between 0 and 1

# Create a size tuple/list representing a batch of images
# Format: (batch_size, channels, height, width) - standard PyTorch image format
size = (2, 3, 32, 48)  # batch=2, channels=3, height=32, width=48

# Create a lambda value for cutout ratio
lam = 0.5

ARGS = {
    "size": size,
    "lam": lam
}
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 tuple, ndim 1, dtype family int — 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
train_one_epoch Ran
ran, honoured the contract we drafted
anna-richter/be-fair/aide/logs/14-addition_2/best_solution.py
code served (permissive licence) · get_code("ea77f6a7f0ecdc2a")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Define a simple model
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, x):
        return self.linear(x)

# Create model
model = SimpleModel()

# Create a simple data loader (list of batches with imgs and labels)
batch_size = 2
num_samples = 4
loader = []
for i in range(num_samples // batch_size):
    imgs = torch.randn(batch_size, 4)
    labels = torch.randn(batch_size)
    loader.append((imgs, labels))

# Define a custom loader class that has a dataset attribute with __len__
class SimpleLoader:
    def __init__(self, data):
        self.data = data
        self.dataset = SimpleDataset(len(data) * 2)
    
    def __iter__(self):
        return iter(self.data)

class SimpleDataset:
    def __init__(self, size):
        self.size = size
    
    def __len__(self):
        return self.size

loader = SimpleLoader(loader)

# Create criterion
criterion = nn.MSELoss()

# Create optimizer
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

# Define device
device = 'cpu'

ARGS = {
    'model': model,
    'loader': loader,
    'criterion': criterion,
    'optimizer': optimizer,
    '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 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
predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/0-basic_prompt/best_solution.py
code served (permissive licence) · get_code("77015b3c2e477467")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/1-basic_prompt/best_solution.py
code served (permissive licence) · get_code("5ca075c484864780")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/10-addition_1/best_solution.py
code served (permissive licence) · get_code("fa085b6047220cd3")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/12-addition_1/best_solution.py
code served (permissive licence) · get_code("459b29550408e9a1")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/13-addition_1/best_solution.py
code served (permissive licence) · get_code("faddff6f65bef273")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/14-addition_2/best_solution.py
code served (permissive licence) · get_code("6d34b6134a5ded38")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/16-addition_2/best_solution.py
code served (permissive licence) · get_code("faca36361f0decf5")
How it ran

no invocation recorded.

predict Not yet run
unverified (harvested, no recorded run)
anna-richter/be-fair/aide/logs/17-addition_2/best_solution.py
code served (permissive licence) · get_code("b737b70004207f2e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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

Machine learning engineering (MLE) agents promise to automate end-to-end ML pipeline development from raw data and natural language instructions, potentially making ML accessible to nontechnical domain experts. However, in sensitive and regulated domains, this abstraction creates a responsibility gap: end-users may lack visibility into design choices that affect correctness, robustness, fairness, and regulatory compliance. We argue that existing benchmarks are insufficient to assess whether MLE agents can be safely applied in such settings. We propose desiderata for a responsibilitycentered evaluation framework and conduct an exploratory study on melanoma classification, focusing on fairness across skin tones as a responsibility constraint. When evaluating two recent MLE agents, we find that agent-generated pipelines show high variance and consistently underperform manually designed baselines in both predictive quality and fairness, despite fairness-oriented prompts. These preliminary results suggest that further research is needed towards redesigning MLE agents to allow humans to guide the search process and reliably assess the compliance and quality of the generated ML pipelines.

For agents

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

get_harvested_code_for_paper("2606.04971")
get_code_for_paper("2606.04971")
have("2606.04971")

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

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

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

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

Connect an agent — have() is free.