SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2212.11672 · 2022

Trustworthy Social Bias Measurement

arXiv · PDF · Open in the Atlas

Code that ran

10 of 26 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 10 have no contract verdict; 0 failures of our instrument; 16 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/2212.11672.json · badge: /api/ran/2212.11672.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
rishibommasani/biasmeasures canonical (classifier label)
classifier basis not recorded on the link
10 ran · 16 no recorded run
FunctionStatusWhere it lives
annotate_context Ran
ran on a synthesized input
rishibommasani/biasmeasures/automated_text_associations.py
code served (permissive licence) · get_code("560faf89a34ef48f")
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 str. 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 numpy as np

# Construct arguments for annotate_context function

# context: a list of sentences (either strings or lists of words)
context = [
    "The quick brown fox jumps",
    ["over", "the", "lazy", "dog"],
    "The fox is clever"
]

# group2wordlist: a dictionary mapping group names to lists of words
group2wordlist = {
    "animal": ["fox", "dog", "cat", "bird"],
    "adjective": ["quick", "brown", "lazy", "clever"],
    "action": ["jumps", "runs", "walks"]
}

# exclusive: boolean flag
exclusive = True

ARGS = {
    "context": context,
    "group2wordlist": group2wordlist,
    "exclusive": exclusive
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
automated_annotate_contexts Ran
ran on a synthesized input
rishibommasani/biasmeasures/automated_text_associations.py
code served (permissive licence) · get_code("014b5f4a716c09a3")
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 numpy

def annotate_context(context, group2wordlist, exclusive=True):
    k = len(group2wordlist)
    context_length = len(context)
    assert k > 0 and context_length > 0
    context_words = set()
    context_counts = {}
    for sentence in context:
        if type(sentence) is str:
            sentence = sentence.split()
        for word in sentence:
            word = word.lower()
            context_words.add(word)
            context_counts[word] = context_counts.get(word, 0) + 1
    seen_groups = {}
    output = None
    for group, word_list in group2wordlist.items():
        word_set = {w.lower() for w in word_list}
        if len(word_set & context_words) > 0:
            seen_groups[group] = sum([context_counts.get(word, 0) for word in word_set])
    if exclusive:
        if len(seen_groups) == 1:
            output = list(seen_groups.keys())[0]
        else:
            output = 'N/A'
    elif len(seen_groups) > 0:
        ranked_groups = sorted([group for group in seen_groups.keys()], key=lambda g: seen_groups[g])
        output = ranked_groups[-1]
    else:
        output = 'N/A'
    return output

def automated_annotate_contexts(annotation_list, group2wordlist, exclusive=True, subcontext_length=None):
    ordered_groups = sorted(list(group2wordlist.keys()))
    group2index = {group: index for index, group in enumerate(ordered_groups)}
    index2group = {index: group for group, index in group2index.items()}
    updated_annotation_list = []
    for example in annotation_list:
        context = example['context']
        if subcontext_length:
            context_length = len(context)
            assert context_length >= subcontext_length
            subcontext_labels = []
            for index in range(context_length - subcontext_length + 1):
                subcontext = context[index:index + subcontext_length]
                label = annotate_context(subcontext, group2wordlist, exclusive=exclusive)
                subcontext_labels.append(label)
            num_subcontexts = len(subcontext_labels)
            if subcontext_labels == ['N/A'] * num_subcontexts:
                label = 'N/A'
                labels_dict = {group: 0.0 for group in ordered_groups}
                labels_dict['N/A'] = 1.0
            else:
                counts_vector = [0] * len(ordered_groups)
                normalization_constant = 0
                for label in subcontext_labels:
                    if label != 'N/A':
                        counts_vector[group2index[label]] += 1
                        normalization_constant += 1
                label = index2group[numpy.argmax(counts_vector)]
                labels_dict = {group: counts_vector[group2index[group]] / normalization_constant for group in ordered_groups}
                labels_dict['N/A'] = 0.0
        else:
            label = annotate_context(context, group2wordlist, exclusive=exclusive)
            labels_dict = {group: 0.0 for group in ordered_groups + ['N/A']}
            labels_dict[label] = 1.0
        example['automated-argmax-label'] = label
        assert len(labels_dict) == len(ordered_groups) + 1
        example['automated-group-scores'] = labels_dict
        updated_annotation_list.append(example)
    return updated_annotation_list

# Setup valid arguments
annotation_list = [
    {
        'context': ['The cat sat on the mat', 'Dogs love to play']
    },
    {
        'context': ['happy joyful wonderful day', 'sad gloomy dark night']
    }
]

group2wordlist = {
    'animals': ['cat', 'dog', 'bird'],
    'emotions': ['happy', 'sad', 'joy'],
    'objects': ['mat', 'ball', 'stick']
}

ARGS = {
    'annotation_list': annotation_list,
    'group2wordlist': group2wordlist,
    'exclusive': True,
    'subcontext_length': None
}
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 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
compute_bolukbasi_bias_direction_bolukbasi_implementation Ran
ran on a synthesized input
rishibommasani/biasmeasures/aligned_estimators.py
code served (permissive licence) · get_code("b408379cad1f48fb")
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 embeddings: a numpy array where we can index by integer
# The function indexes embeddings[x] and embeddings[y], so we need at least 2 embeddings
# Let's create 5 embeddings of dimension 4
embeddings = np.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8],
    [0.9, 1.0, 1.1, 1.2],
    [1.3, 1.4, 1.5, 1.6],
    [1.7, 1.8, 1.9, 2.0]
], dtype=np.float64)

# Create seed_pairs: list of tuples of indices
# These are pairs of indices into the embeddings array
seed_pairs = [(0, 1), (2, 3), (1, 4)]

ARGS = {
    "embeddings": embeddings,
    "seed_pairs": seed_pairs
}
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
compute_bolukbasi_bias_direction_conventional_implementation Ran
ran on a synthesized input
rishibommasani/biasmeasures/aligned_estimators.py
code served (permissive licence) · get_code("675ab641de1c844a")
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
from sklearn.decomposition import PCA

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

# Create sample embeddings dictionary
# The function expects embeddings to be indexable by the indices in seed_pairs
embeddings = {
    0: np.array([1.0, 2.0, 3.0, 4.0]),
    1: np.array([1.5, 2.5, 3.5, 4.5]),
    2: np.array([2.0, 3.0, 4.0, 5.0]),
    3: np.array([2.5, 3.5, 4.5, 5.5]),
}

# Create seed pairs - pairs of indices that will be used to compute differences
seed_pairs = [
    (0, 1),
    (2, 3),
]

ARGS = {
    "embeddings": embeddings,
    "seed_pairs": seed_pairs,
}
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
compute_fleiss_kappa Ran
ran on a synthesized input
rishibommasani/biasmeasures/interannotator.py
code served (permissive licence) · get_code("d0c4f9fbe4b76ca9")
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

# Analyze the function:
# - folder2annotations: dict where values are lists of dicts with 'label' key
# - k: number of categories (int)
# - N: number of items (inferred from length of annotations_list[0])
# - n: number of raters/folders (inferred from len(folder2annotations))

# The function expects:
# - folder2annotations to be a dict
# - Each value is a list of dicts, each dict has 'label' key
# - Labels are integers from 1 to k
# - All annotation lists have same length N
# - Multiple raters (n > 1) for meaningful kappa

# Create a small valid dataset
# Let's use:
# - N = 3 items
# - n = 2 raters
# - k = 2 categories (labels are 1 or 2)

folder2annotations = {
    'rater_1': [
        {'label': 1},
        {'label': 2},
        {'label': 1},
    ],
    'rater_2': [
        {'label': 1},
        {'label': 2},
        {'label': 2},
    ],
}

k = 2

ARGS = {
    'folder2annotations': folder2annotations,
    'k': k,
}
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 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
compute_our_bias_given_SoA Ran
ran on a synthesized input
rishibommasani/biasmeasures/our_estimator.py
code served (permissive licence) · get_code("4831d45f6d4a1f3b")
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. 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
from scipy.spatial.distance import euclidean
from scipy.special import softmax

def normalizer_fn(vector):
    """Normalizes vector to probability distribution using softmax"""
    return softmax(vector)

def distance_fn(dist1, dist2):
    """Computes euclidean distance between two distributions"""
    return euclidean(dist1, dist2)

# Create small vectors for testing
association_vector = [1.2, 0.5, -0.3, 2.1]
prior_distribution = [0.25, 0.25, 0.25, 0.25]

ARGS = {
    'association_vector': association_vector,
    'normalizer': normalizer_fn,
    'distance': distance_fn,
    'prior_distribution': prior_distribution
}
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 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
count Ran
ran on a synthesized input
rishibommasani/biasmeasures/convergent_validity.py
code served (permissive licence) · get_code("e106ef1ddf609e33")
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. 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)

annotation_list = [
    {"sentiment": "positive", "other_field": "value1"},
    {"sentiment": "negative", "other_field": "value2"},
    {"sentiment": "positive", "other_field": "value3"},
    {"sentiment": "neutral", "other_field": "value4"},
]

groups = ["positive", "negative", "neutral"]

label_type = "sentiment"

ARGS = {
    "annotation_list": annotation_list,
    "groups": groups,
    "label_type": label_type,
}
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 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_word2positions Ran
ran on a synthesized input
rishibommasani/biasmeasures/preprocess_contextualized_representations.py
code served (permissive licence) · get_code("9517492e619039b1")
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. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from transformers import AutoTokenizer

# Create a mock tokenizer-like object for BERT
class MockBertTokenizer:
    def convert_ids_to_tokens(self, ids):
        # Return tokens with BERT-style ## prefix for subword pieces
        # ids: [101, 2054, 2003, 2009, 102]
        # tokens: ['[CLS]', 'hello', '##world', '##s', '[SEP]']
        token_map = {
            0: '[CLS]',
            1: 'hello',
            2: '##world', 
            3: '##s',
            4: '[SEP]',
            5: 'test',
            6: '##ing'
        }
        return [token_map.get(i, f'token_{i}') for i in ids]

# Create a mock tokenizer-like object for GPT2
class MockGpt2Tokenizer:
    def convert_ids_to_tokens(self, ids):
        # Return tokens with GPT2-style Ġ prefix for word boundaries
        # ids: [50256, 198, 15496]
        # tokens: ['<|endoftext|>', 'Ġhello', 'world']
        token_map = {
            0: '<|endoftext|>',
            1: 'Ġhello',
            2: 'world',
            3: 'Ġtest',
            4: 'ing',
            5: ',',
            6: 'Ġagain'
        }
        return [token_map.get(i, f'token_{i}') for i in ids]

# Test case 1: BERT model
bert_ids = [0, 1, 2, 3, 4]
bert_tokenizer = MockBertTokenizer()
bert_model_name = 'bert-base-uncased'

# Test case 2: GPT2 model
gpt2_ids = [0, 1, 2, 3, 4, 5, 6]
gpt2_tokenizer = MockGpt2Tokenizer()
gpt2_model_name = 'gpt2'

# Use BERT setup as the main ARGS
ARGS = {
    'ids': bert_ids,
    'tokenizer': bert_tokenizer,
    'model_name': bert_model_name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — 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
score Ran
ran on a synthesized input
rishibommasani/biasmeasures/convergent_validity.py
code served (permissive licence) · get_code("0569862de44357f1")
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. 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 numpy as np

# Construct annotation_list with diverse examples
annotation_list = [
    {
        'human-label': 'positive',
        'automated-argmax-label': 'positive'
    },
    {
        'human-label': 'negative',
        'automated-argmax-label': 'negative'
    },
    {
        'human-label': 'positive',
        'automated-argmax-label': 'negative'
    },
    {
        'human-label': 'N/A',
        'automated-argmax-label': 'positive'
    },
    {
        'human-label': 'negative',
        'automated-argmax-label': 'N/A'
    },
    {
        'human-label': 'N/A',
        'automated-argmax-label': 'N/A'
    },
    {
        'human-label': 'positive',
        'automated-argmax-label': 'positive'
    },
    {
        'human-label': 'negative',
        'automated-argmax-label': 'positive'
    },
]

ARGS = {
    'annotation_list': annotation_list
}
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 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
valid_targets Ran
ran on a synthesized input
rishibommasani/biasmeasures/preprocess.py
code served (permissive licence) · get_code("2c430c3f08f31d43")
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 set. 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 numpy as np

# Construct arguments for valid_targets function
# The function takes:
# - prof2ratios: a dict mapping professions to another dict of year -> ratio
# - left: integer for range start
# - right: integer for range end
# - increment: integer for range step

prof2ratios = {
    "engineer": {2020: 0.5, 2021: 0.6, 2022: 0.7},
    "doctor": {2020: 0.4, 2021: 0.5},
    "teacher": {2020: 0.3, 2021: 0.4, 2022: 0.5, 2023: 0.6},
    "scientist": {2019: 0.2, 2020: 0.3, 2021: 0.4, 2022: 0.5},
}

left = 2020
right = 2023
increment = 1

ARGS = {
    "prof2ratios": prof2ratios,
    "left": left,
    "right": right,
    "increment": increment,
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
census_bias Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/predictive_validity.py
code served (permissive licence) · get_code("a048894fe865b505")
How it ran

no invocation recorded.

compute_bolukbasi_bias Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/aligned_estimators.py
code served (permissive licence) · get_code("402b394cd36844b4")
How it ran

no invocation recorded.

compute_convergent_validity_bias_scores Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/convergent_validity.py
code served (permissive licence) · get_code("158e4c4532a6ded7")
How it ran

no invocation recorded.

compute_our_bias Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/our_estimator.py
code served (permissive licence) · get_code("3a401a1522850b9b")
How it ran

no invocation recorded.

compute_representation_SoA Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/overamplification.py
code served (permissive licence) · get_code("240b8a07467faeeb")
How it ran

no invocation recorded.

compute_textual_SoA Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/overamplification.py
code served (permissive licence) · get_code("231638b1aca5bfa9")
How it ran

no invocation recorded.

face_validity_contextualized_probing Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/face_validity.py
code served (permissive licence) · get_code("ea3fb830ba5228b7")
How it ran

no invocation recorded.

face_validity_embeddings Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/face_validity.py
code served (permissive licence) · get_code("cc79fc2837c128f5")
How it ran

no invocation recorded.

face_validity_text Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/face_validity.py
code served (permissive licence) · get_code("a62632cfdaeefc4d")
How it ran

no invocation recorded.

fetch_canonical_embeddings Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/preprocess_contextualized_representations.py
code served (permissive licence) · get_code("a9b7261fcae23ad8")
How it ran

no invocation recorded.

fetch_coha_word2vec_embeddings Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/data_loader.py
code served (permissive licence) · get_code("5e2b2014931b0a5f")
How it ran

no invocation recorded.

fetch_wikipedia Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/data_loader.py
code served (permissive licence) · get_code("0572ad86b5ec780b")
How it ran

no invocation recorded.

format_probing_dataset Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/preprocess_contextualized_representations.py
code served (permissive licence) · get_code("350e094f5beee9dc")
How it ran

no invocation recorded.

make_contexts Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/preprocess.py
code served (permissive licence) · get_code("1f9feae9fedcac51")
How it ran

no invocation recorded.

overamplification_results Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/overamplification.py
code served (permissive licence) · get_code("a5c279ab2665305b")
How it ran

no invocation recorded.

parse_IAA_files Not yet run
unverified (harvested, no recorded run)
rishibommasani/biasmeasures/interannotator.py
code served (permissive licence) · get_code("ac02062606a51812")
How it ran

no invocation recorded.

Also present in other papers' code

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

How do we design measures of social bias that we trust? While prior work has introduced several measures, no measure has gained widespread trust: instead, mounting evidence argues we should distrust these measures. In this work, we design bias measures that warrant trust based on the cross-disciplinary theory of measurement modeling. To combat the frequently fuzzy treatment of social bias in NLP, we explicitly define social bias, grounded in principles drawn from social science research. We operationalize our definition by proposing a general bias measurement framework DivDist, which we use to instantiate 5 concrete bias measures. To validate our measures, we propose a rigorous testing protocol with 8 testing criteria (e.g. predictive validity: do measures predict biases in US employment?). Through our testing, we demonstrate considerable evidence to trust our measures, showing they overcome conceptual, technical, and empirical deficiencies present in prior measures.

For agents

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

get_harvested_code_for_paper("2212.11672")
get_code_for_paper("2212.11672")
have("2212.11672")

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

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

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

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

Connect an agent — have() is free.