SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.11401 · ICLR · 2024

Enhancing Group Fairness in Online Settings Using Oblique Decision Forests

Rahul Kidambi, Ahmad Beirami, Nicholas Monath, Amr Ahmed, Snigdha Chaturvedi, Somnath Basu Roy Chowdhury, Kumar Avinava Dubey

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 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/2310.11401.json · badge: /api/ran/2310.11401.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
brcsomnath/Aranyani canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
construct_mask_matrix Ran
ran, honoured the contract we drafted
brcsomnath/Aranyani/src/fdt.py
code served (permissive licence) · get_code("70d4aca7b8cb8d30")
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 2, dtype family float, shape (7, 8) 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 numpy as np

ARGS = {
    "tree_depth": 3
}
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 ndarray, ndim 2, dtype family float, shape (7, 8) — shape (7, 8) 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
construct_penalty_mask Ran
ran, honoured the contract we drafted
brcsomnath/Aranyani/src/utils.py
code served (permissive licence) · get_code("5698d0c868c1dc5d")
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 float, shape (15,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import numpy as np

ARGS = {
    "tree_depth": 4
}
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 ndarray, ndim 1, dtype family float, shape (15,) — shape (15,) 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
gauss_kernel Ran
ran, violated the contract we drafted
brcsomnath/Aranyani/src/utils.py
code served (permissive licence) · get_code("53f142ebde71a9b7")
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 EagerTensor, ndim 2, dtype family float, shape (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 tensorflow as tf
import numpy as np

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

# Create small test tensors
# x1: shape (2, 4) - 2 samples, 4 features
x1 = tf.constant(np.random.randn(2, 4).astype(np.float32))

# x2: shape (3, 4) - 3 samples, 4 features
x2 = tf.constant(np.random.randn(3, 4).astype(np.float32))

# beta parameter for the Gaussian kernel
beta = 1.0

ARGS = {
    "x1": x1,
    "x2": x2,
    "beta": beta,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 3) — shape (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
get_demographic_parity Ran
ran, honoured the contract we drafted
brcsomnath/Aranyani/src/utils.py
code served (permissive licence) · get_code("a20a40ddf61b80dc")
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

# Analyze the function:
# - y_predictions: converted to np.array, indexed with boolean mask, used in np.mean()
# - y_protected: converted to np.array, used for boolean indexing (values 0 and 1)
# 
# The function expects:
# - y_predictions: array-like of numeric values (predictions, likely 0-1 or binary)
# - y_protected: array-like of binary values (0 or 1) indicating group membership

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

# y_predictions: array of predictions (binary or probabilistic)
# Make it distinct size from y_protected for clarity
y_predictions = np.array([0.1, 0.8, 0.3, 0.9, 0.2, 0.7])

# y_protected: binary array indicating protected group membership (0 or 1)
# Same length as y_predictions
y_protected = np.array([1, 0, 1, 0, 1, 0])

ARGS = {
    "y_predictions": y_predictions,
    "y_protected": y_protected
}
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
preprocess_adult Ran
ran; our contract draft was wrong, not the code
brcsomnath/Aranyani/src/data.py
code served (permissive licence) · get_code("86c134db17d0bc10")
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 pandas as pd
import numpy as np
from sklearn import preprocessing

# Create a small sample dataframe that mimics the Adult dataset structure
df = pd.DataFrame({
    'age': [25, 45, 35, 50, 28],
    'workclass': ['Private', 'Self-emp-inc', 'Private', 'Federal-gov', 'Private'],
    'education': ['Bachelors', 'Masters', 'HS-grad', 'Bachelors', 'Some-college'],
    'marital-status': ['Never-married', 'Married-civ-spouse', 'Divorced', 'Married-AF-spouse', 'Never-married'],
    'occupation': ['Tech-support', 'Exec-managerial', 'Craft-repair', 'Prof-specialty', 'Sales'],
    'relationship': ['Own-child', 'Husband', 'Not-in-family', 'Husband', 'Own-child'],
    'race': ['White', 'Black', 'White', 'Asian-Pac-Islander', 'White'],
    'gender': ['Male', 'Male', 'Female', 'Male', 'Female'],
    'native-country': ['United-States', 'United-States', 'United-States', 'United-States', 'United-States'],
    'income': ['<=50K', '>50K', '<=50K', '>50K', '<=50K']
})

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, 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
preprocess_census Ran
ran; our contract draft was wrong, not the code
brcsomnath/Aranyani/src/data.py
code served (permissive licence) · get_code("1b3df67270b46b27")
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 pandas as pd
import numpy as np
from sklearn import preprocessing

# Create a minimal Census dataset with all required columns
data = {
    'class_worker': ['Private', 'Self-emp-not-inc', 'Private', 'Federal-gov'],
    'education': ['Bachelors', 'HS-grad', 'Some-college', 'Masters'],
    'hs_college': ['Y', 'N', 'Y', 'Y'],
    'marital_stat': ['Married-civ-spouse', 'Never-married', 'Married-civ-spouse', 'Divorced'],
    'major_ind_code': ['Ind1', 'Ind2', 'Ind1', 'Ind3'],
    'major_occ_code': ['Occ1', 'Occ2', 'Occ1', 'Occ2'],
    'race': ['White', 'Black', 'White', 'Asian'],
    'hisp_origin': ['Non-Hispanic', 'Non-Hispanic', 'Hispanic', 'Non-Hispanic'],
    'sex': ['Male', 'Female', 'Male', 'Female'],
    'union_member': ['Y', 'N', 'Y', 'N'],
    'unemp_reason': ['Reason1', 'Reason2', 'Reason1', 'Reason3'],
    'full_or_part_emp': ['Full-time', 'Part-time', 'Full-time', 'Full-time'],
    'tax_filer_stat': ['Single', 'Married', 'Single', 'Married'],
    'region_prev_res': ['Region1', 'Region2', 'Region1', 'Region2'],
    'state_prev_res': ['State1', 'State2', 'State1', 'State3'],
    'det_hh_fam_stat': ['Stat1', 'Stat2', 'Stat1', 'Stat2'],
    'det_hh_summ': ['Summ1', 'Summ2', 'Summ1', 'Summ2'],
    'mig_chg_msa': ['Y', 'N', 'Y', 'N'],
    'mig_chg_reg': ['Y', 'N', 'N', 'Y'],
    'mig_move_reg': ['Reg1', 'Reg2', 'Reg1', 'Reg2'],
    'mig_same': ['Y', 'Y', 'N', 'Y'],
    'mig_prev_sunbelt': ['Y', 'N', 'Y', 'N'],
    'fam_under_18': ['Y', 'N', 'Y', 'Y'],
    'country_father': ['USA', 'Mexico', 'USA', 'Canada'],
    'country_mother': ['USA', 'Mexico', 'USA', 'Canada'],
    'country_self': ['USA', 'Mexico', 'USA', 'Canada'],
    'citizenship': ['Cit1', 'Cit2', 'Cit1', 'Cit2'],
    'vet_question': ['Y', 'N', 'Y', 'N'],
    'income_50k': ['<=50K', '>50K', '<=50K', '>50K'],
    'unk': ['value1', 'value2', 'value3', 'value4'],
    'numeric_col1': [1.5, 2.3, 3.1, 2.9],
    'numeric_col2': [10.2, 20.5, 15.3, 18.7],
}

df = pd.DataFrame(data)

ARGS = {
    'df': df
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, 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
read_adult Ran
ran; our contract draft was wrong, not the code
brcsomnath/Aranyani/src/data.py
code served (permissive licence) · get_code("ed41353456fadc48")
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 os
import numpy as np
import pandas as pd
from sklearn import preprocessing
import tempfile

# Create a minimal mock Adult dataset file for testing
temp_dir = tempfile.mkdtemp()
data_dir = os.path.join(temp_dir, 'adult')
os.makedirs(data_dir, exist_ok=True)

# Create a small adult.data file with valid data
adult_data = """25,Private,226802,11th,7,Never-married,Machine-op-inspct,Own-child,Black,Male,0,0,40,United-States, >50K
50,Self-emp-inc,287927,Doctorate,16,Married-civ-spouse,Exec-managerial,Husband,White,Male,15024,0,60,United-States, >50K
38,Private,215646,HS-grad,9,Divorced,Handlers-cleaners,Not-in-family,White,Male,0,0,50,United-States, <=50K
53,Private,234721,11th,7,Married-civ-spouse,Handlers-cleaners,Husband,Black,Male,0,0,40,United-States, <=50K
28,Private,338409,Bachelors,13,Married-civ-spouse,Prof-specialty,Wife,Black,Female,0,0,40,Cuba, <=50K
37,Private,284582,Masters,14,Married-civ-spouse,Exec-managerial,Wife,White,Female,0,0,40,England, >50K
49,Private,160187,9th,5,Married-spouse-absent,Other-service,Not-in-family,Black,Female,0,0,16,Jamaica, <=50K
52,Self-emp-not-inc,209642,HS-grad,9,Married-civ-spouse,Craft-repair,Husband,White,Male,0,0,45,United-States, >50K
31,Private,45781,Masters,14,Never-married,Prof-specialty,Not-in-family,White,Female,14084,0,50,United-States, >50K
42,Private,159449,Bachelors,13,Married-civ-spouse,Exec-managerial,Husband,White,Male,5178,0,40,United-States, >50K
"""

with open(os.path.join(data_dir, 'adult.data'), 'w') as f:
    f.write(adult_data)

ARGS = {
    'path': data_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, 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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 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.

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

Fairness, especially group fairness, is an important consideration in the context of machine learning systems. The most commonly adopted group fairness-enhancing techniques are in-processing methods that rely on a mixture of a fairness objective (e.g., demographic parity) and a task-specific objective (e.g., cross-entropy) during the training process. However, when data arrives in an online fashionone instance at a time -optimizing such fairness objectives poses several challenges. In particular, group fairness objectives are defined using expectations of predictions across different demographic groups. In the online setting, where the algorithm has access to a single instance at a time, estimating the group fairness objective requires additional storage and significantly more computation (e.g., forward/backward passes) than the task-specific objective at every time step. In this paper, we propose Aranyani, an ensemble of oblique decision trees, to make fair decisions in online settings. The hierarchical tree structure of Aranyani enables parameter isolation and allows us to efficiently compute the fairness gradients using aggregate statistics of previous decisions, eliminating the need for additional storage and forward/backward passes. We also present an efficient framework to train Aranyani and theoretically analyze several of its properties. We conduct empirical evaluations on 5 publicly available benchmarks (including vision and language datasets) to show that Aranyani achieves a better accuracy-fairness trade-off compared to baseline approaches.

For agents

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

get_harvested_code_for_paper("2310.11401")
get_code_for_paper("2310.11401")
have("2310.11401")

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

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

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

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

Connect an agent — have() is free.