SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.03895 · 2026

Benchmarking Bias Mitigation Toward Fairness Without Harm from Vision to LVLMs

Xueru Zhang, Xuwei Tan, Ziyu Hu

arXiv · PDF · Open in the Atlas

Code that ran

15 of 18 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 10 failures of our instrument; 3 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/2602.03895.json · badge: /api/ran/2602.03895.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
osu-srml/NH-Fair community
Papers with Code archive
15 ran · 3 no recorded run
FunctionStatusWhere it lives
AverageMeter Ran
ran on a synthesized input · constructed an object; no result was computed
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("1894046f082c6404")
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 an instance of its own class, AverageMeter: the run constructed the object and did not call it, so no result was computed. 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

torch.manual_seed(0)

ARGS = {}
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 AverageMeter — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AverageMeter 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
KernelizedEncoder Ran
ran on a synthesized input · constructed an object; no result was computed
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("da92533d309552ce")
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 an instance of its own class, KernelizedEncoder: the run constructed the object and did not call it, so no result was computed. 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 the parameters for KernelizedEncoder
# U: output projection matrix
U = torch.randn(3, 4)  # shape: (output_dim, feature_dim)

# w: weight matrix for input transformation
w = torch.randn(4, 5)  # shape: (num_features, input_dim)

# b: bias vector
b = torch.randn(4)  # shape: (num_features,)

ARGS = {
    "U": U,
    "w": w,
    "b": b,
}
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 KernelizedEncoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KernelizedEncoder 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
KernelizedEncoderFull Ran
ran on a synthesized input · constructed an object; no result was computed
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("9c7b964a709120c3")
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 an instance of its own class, KernelizedEncoderFull: the run constructed the object and did not call it, so no result was computed. 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 kernel function that takes two tensors and returns a matrix
class SimpleKernel(nn.Module):
    def forward(self, x, X):
        # x shape: (batch, input_dim)
        # X shape: (num_support, input_dim)
        # returns (batch, num_support)
        batch_size = x.shape[0]
        num_support = X.shape[0]
        # Simple kernel: just return a matrix of appropriate shape
        return torch.randn(batch_size, num_support)

# Create small tensors with distinct dimensions
batch_size = 2
input_dim = 4
num_support = 3
output_dim = 5

# U tensor: (num_support, output_dim) - will be multiplied with phi_x
U = torch.randn(num_support, output_dim)

# X tensor: (num_support, input_dim) - support points for kernel
X = torch.randn(num_support, input_dim)

# Create kernel instance
kernel = SimpleKernel()

ARGS = {
    "U": U,
    "X": X,
    "kernel": kernel
}
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 KernelizedEncoderFull — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a KernelizedEncoderFull 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
cal_eqodd_binary Ran
ran, honoured the contract we drafted
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("a1d4f2e3c1809bc8")
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 float64, ndim 0, 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

# Analyze the function:
# - tol_predicted: array of binary predictions/probabilities, used with indexing
# - labels: array of binary labels (0 or 1), compared with == 0
# - attrs: array of sensitive attributes (0 or 1), compared with == 0
# All three should be 1D arrays of the same length

# Create small test data
np.random.seed(0)

# Create arrays with at least some samples in each condition
# We need samples where:
# - sens_idx (attrs == 0) and target_idx (labels == 0)
# - ~sens_idx (attrs != 0) and target_idx (labels == 0)
# - sens_idx (attrs == 0) and ~target_idx (labels != 0)
# - ~sens_idx (attrs != 0) and ~target_idx (labels != 0)

n_samples = 12

# Predictions: values between 0 and 1
tol_predicted = np.random.rand(n_samples)

# Labels: binary 0 or 1
labels = np.array([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1])

# Attrs: binary 0 or 1 (sensitive attribute)
attrs = np.array([0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1])

ARGS = {
    "tol_predicted": tol_predicted,
    "labels": labels,
    "attrs": attrs,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_auc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("d26ce6032a0e6929")
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 numpy as np
import sklearn.metrics as sklm

torch.manual_seed(0)

# Create synthetic predictions and labels for binary classification
# prediction: continuous scores (probabilities or raw scores)
# labels: binary labels (0 or 1)

prediction = np.array([0.1, 0.4, 0.35, 0.8, 0.9, 0.2, 0.7, 0.6])
labels = np.array([0, 0, 0, 1, 1, 0, 1, 1])

ARGS = {
    "prediction": prediction,
    "labels": labels
}
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
calculate_metrics Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("b3ee986ec34da06e")
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

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

# Create small synthetic data for binary classification
n_samples = 10

# tol_output: predicted probabilities/scores (for binary classification with num_class=1)
# Shape: (n_samples,) - values between 0 and 1
tol_output = np.random.uniform(0, 1, size=n_samples)

# tol_target: ground truth binary labels
# Shape: (n_samples,) - values 0 or 1
tol_target = np.random.randint(0, 2, size=n_samples)

# tol_sensitive: sensitive attribute (binary)
# Shape: (n_samples,) - values 0 or 1
tol_sensitive = np.random.randint(0, 2, size=n_samples)

# tol_index: index array (not directly used in the function body shown, but part of signature)
# Shape: (n_samples,) - indices
tol_index = np.arange(n_samples)

# sens_classes: number of sensitive attribute classes
sens_classes = 2

# num_class: number of target classes (1 for binary classification)
num_class = 1

# skip_auc: whether to skip AUC calculation
skip_auc = False

ARGS = {
    "tol_output": tol_output,
    "tol_target": tol_target,
    "tol_sensitive": tol_sensitive,
    "tol_index": tol_index,
    "sens_classes": sens_classes,
    "num_class": num_class,
    "skip_auc": skip_auc,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
calculate_multiclass_auc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("bc02bb45691ed73d")
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 numpy as np
from sklearn.metrics import roc_auc_score

torch.manual_seed(0)

# For a binary classification case (predictions.shape[1] == 2)
predictions_binary = np.array([
    [0.1, 0.9],
    [0.8, 0.2],
])
labels_binary = np.array([1, 0])

# For a multiclass case (predictions.shape[1] > 2)
predictions_multiclass = np.array([
    [0.7, 0.2, 0.1],
    [0.1, 0.8, 0.1],
    [0.2, 0.1, 0.7],
    [0.6, 0.3, 0.1],
])
labels_multiclass = np.array([0, 1, 2, 0])

ARGS = {
    "predictions": predictions_multiclass,
    "labels": labels_multiclass,
}
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
conditional_AUC_binary Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("6565a2aa50bc9b79")
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 predictions for binary classification case (num_class=1)
# Shape: (4, 1) - 4 samples, 1 class (binary case)
preds = np.array([
    [0.1],
    [0.9],
    [0.3],
    [0.8]
], dtype=np.float32)

# Create binary labels
labels = np.array([0, 1, 0, 1], dtype=np.int32)

# Create attributes for splitting (0 and 1)
attrs = np.array([0, 0, 1, 1], dtype=np.int32)

# Number of classes (1 for binary)
num_class = 1

ARGS = {
    'preds': preds,
    'labels': labels,
    'attrs': attrs,
    'num_class': num_class
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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
conditional_AUC_multi Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("bd2ec691b7389cb0")
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
import numpy as np
import sklearn.metrics as sklm
from sklearn.metrics import roc_auc_score

torch.manual_seed(0)

# Create small sample data for testing conditional_AUC_multi
batch_size = 8
num_classes = 3
sens_classes = 2

# Binary classification case (num_class == 1)
preds_binary = np.random.rand(batch_size)
labels_binary = np.random.randint(0, 2, batch_size)
attrs_binary = np.random.randint(0, sens_classes, batch_size)

# Multiclass classification case (num_class > 1)
preds_multiclass = np.random.rand(batch_size, num_classes)
labels_multiclass = np.random.randint(0, num_classes, batch_size)
attrs_multiclass = np.random.randint(0, sens_classes, batch_size)

# Define ARGS for binary classification case
ARGS = {
    "preds": preds_binary,
    "labels": labels_binary,
    "attrs": attrs_binary,
    "sens_classes": sens_classes,
    "num_class": 1
}
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 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
conditional_errors_binary Ran
ran, honoured the contract we drafted
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("ebb68aecb84445c8")
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

# Create small 1-dimensional numpy arrays for the function
np.random.seed(0)

# Create predictions (0 or 1)
preds = np.array([0, 1, 1, 0, 1, 1], dtype=np.int32)

# Create labels (0 or 1)
labels = np.array([0, 1, 0, 0, 1, 0], dtype=np.int32)

# Create sensitive attributes (0 or 1)
attrs = np.array([0, 0, 0, 1, 1, 1], dtype=np.int32)

ARGS = {
    "preds": preds,
    "labels": labels,
    "attrs": attrs,
}
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 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
conditional_errors_multi Ran
ran; our contract draft was wrong, not the code
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("0b6c7f6d4445fbc0")
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

# Create sample data for testing
np.random.seed(0)

# Number of samples
n_samples = 10

# Create predictions (class labels 0, 1, 2)
preds = np.random.randint(0, 3, size=n_samples)

# Create ground truth labels (class labels 0, 1, 2)
labels = np.random.randint(0, 3, size=n_samples)

# Create sensitive attribute values (0, 1, 2 for 3 classes)
attrs = np.random.randint(0, 3, size=n_samples)

# Number of sensitive attribute classes
sens_classes = 3

ARGS = {
    'preds': preds,
    'labels': labels,
    'attrs': attrs,
    'sens_classes': sens_classes
}
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 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
find_threshold Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("64cb0653275cb696")
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 float64, ndim 0, 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
import sklearn.metrics as sklm

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

# Create synthetic binary classification outputs and targets
# tol_output: predicted probabilities (scores)
# tol_target: true binary labels

# Generate 10 samples with random scores and binary labels
tol_output = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.85, 0.9])
tol_target = np.array([0, 0, 0, 1, 0, 1, 1, 1, 1, 1])

ARGS = {
    "tol_output": tol_output,
    "tol_target": tol_target
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_zeroshot_predictions Ran
ran; our contract draft was wrong, not the code
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("2035b91debc00b1b")
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 1, dtype family int, shape (2,) 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 small image embeddings: batch_size=2, embedding_dim=4
image_embeddings = torch.randn(2, 4)

# Create small text embeddings: num_texts=3, embedding_dim=4
text_embeddings = torch.randn(3, 4)

# Temperature parameter for scaling logits
temperature = 100.0

ARGS = {
    "image_embeddings": image_embeddings,
    "text_embeddings": text_embeddings,
    "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 ndarray, ndim 1, dtype family int, shape (2,) — shape (2,) 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
mean_center Ran
ran; our contract draft was wrong, not the code
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("b38e8ccac9611ccc")
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

torch.manual_seed(0)

# Create a small tensor with distinct dimensions
# Using shape (2, 4) for batch_size=2, feature_dim=4
features = torch.randn(2, 4)

# The dim parameter specifies which dimension to mean-center along
dim = 0

ARGS = {
    "features": features,
    "dim": dim,
}
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
set_matching_prompt Ran
ran; our contract draft was wrong, not the code
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("df47780ad317c5b1")
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
import numpy as np
from types import SimpleNamespace

torch.manual_seed(0)

# Create a minimal args object with dataset and sa attributes
# Test with 'celeba' dataset
args_celeba = SimpleNamespace(
    dataset='celeba',
    sa='gender'
)

# Test with 'utk' dataset and 'race' sa
args_utk_race = SimpleNamespace(
    dataset='utk',
    sa='race'
)

# Test with 'utk' dataset and non-race sa
args_utk_nonrace = SimpleNamespace(
    dataset='utk',
    sa='gender'
)

# Use celeba as the primary test case
ARGS = {
    'args': args_celeba
}
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 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
AlternatingOptimizer Not yet run
unverified (harvested, no recorded run)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("ec631ebe54a74135")
How it ran

no invocation recorded.

KernelMethodY Not yet run
unverified (harvested, no recorded run)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("f06c29bc92441ccb")
How it ran

no invocation recorded.

clip_fairer Not yet run
unverified (harvested, no recorded run)
osu-srml/NH-Fair/src/release_benchmark/methods/vlm/clip_fairer.py
code served (permissive licence) · get_code("bd294a0dbfa9dae4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 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 17 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
AverageMeter
brick of this paper's assembly: helper
5 other papers
3 dated earlier, 2 later · 3 only as an assembly brick
2203.14509 (2022-03)
Automated Progressive Learning for Efficient Training of Vision Transformers
2406.10777 (2024-06)
RoseLoRA: Row and Column-wise Sparse Low-rank Adaptation of Pre-trained Language Model for Knowledge Editing and Fine-tuning
2503.07082 (2025-03)
On the Generalization of Representation Uncertainty in Earth Observation
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

Machine learning models trained on real-world data often inherit and amplify biases against certain social groups, raising urgent concerns about their deployment at scale. While numerous bias mitigation methods have been proposed, comparing the effectiveness of bias mitigation methods remains difficult due to heterogeneous datasets, inconsistent fairness metrics, isolated evaluation of vision versus multi-modal models, and insufficient hyperparameter tuning that undermines fair comparisons. We introduce NH-Fair, a unified benchmark for fairness without harm that spans both vision models and large vision-language models (LVLMs) under standardized data, metrics, and training protocols, covering supervised and zero-shot regimes. Our key contributions are: (1) a systematic ERM tuning study that identifies training choices with large influence on both utility and disparities, yielding empirically grounded guidelines to help practitioners reduce expensive hyperparameter tuning space in achieving strong fairness and accuracy; (2) evidence that many debiasing methods do not reliably outperform a well-tuned ERM baseline, whereas a composite data-augmentation method consistently delivers parity gains without sacrificing utility, emerging as a promising practical strategy. (3) an analysis showing that while LVLMs achieve higher average accuracy, they still exhibit subgroup disparities, and gains from scaling are typically smaller than those from architectural or training-protocol choices. NH-Fair provides a reproducible, tuning-aware pipeline for rigorous, harm-aware fairness evaluation. Code: https://github.com/osu-srml/NH-Fair.

For agents

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

get_harvested_code_for_paper("2602.03895")
get_code_for_paper("2602.03895")
have("2602.03895")

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

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

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

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

Connect an agent — have() is free.