SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.24952 · 2026

The Dialect Tax: Dialectal Biases Persist throughout the Language Modeling Pipeline

arXiv · PDF · Open in the Atlas

Code that ran

18 of 22 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; 5 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 4 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/2608.24952.json · badge: /api/ran/2608.24952.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
socialnlp/dialecttax canonical (classifier label)
classifier basis: census
18 ran · 4 no recorded run
FunctionStatusWhere it lives
char_tokenize Ran
ran, honoured the contract we drafted
socialnlp/dialecttax/src/dialecttax/characters.py
code served (permissive licence) · get_code("d03ea162e2fc73a5")
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 int, shape (1, 11) 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
from transformers import AutoTokenizer

torch.manual_seed(0)

# Create a minimal mock tokenizer with required attributes and methods
class MockTokenizer:
    def __init__(self):
        self.bos_token_id = 101
        self._vocab = {
            'hello': 1000,
            'world': 1001,
            'h': 2000,
            'e': 2001,
            'l': 2002,
            'o': 2003,
            'w': 2004,
            'r': 2005,
            'd': 2006,
            'Ġ': 2007,
        }
        self._added_vocab = {
            '<custom>': 3000,
        }
        self.all_special_ids = [101, 102, 103]
    
    def encode(self, text, add_special_tokens=False):
        if text == 'hello':
            return [1000]
        elif text == 'world':
            return [1001]
        elif text == 'hello world':
            return [1000, 1001]
        elif text == 'h':
            return [2000]
        elif text == 'e':
            return [2001]
        elif text == 'l':
            return [2002]
        elif text == 'o':
            return [2003]
        elif text == 'w':
            return [2004]
        elif text == 'r':
            return [2005]
        elif text == 'd':
            return [2006]
        elif text == 'Ġ':
            return [2007]
        else:
            return [1000]
    
    def get_vocab(self):
        return self._vocab
    
    def get_added_vocab(self):
        return self._added_vocab
    
    def convert_ids_to_tokens(self, tid):
        for token_str, token_id in self._vocab.items():
            if token_id == tid:
                return token_str
        for token_str, token_id in self._added_vocab.items():
            if token_id == tid:
                return token_str
        return 'unknown'

tokenizer = MockTokenizer()

ARGS = {
    'text': 'hello world',
    'tokenizer': tokenizer,
    'add_bos': True,
}
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 Tensor, ndim 2, dtype family int, shape (1, 11) — shape (1, 11) 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_entropy Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/logits.py
code served (permissive licence) · get_code("80bd1696a29c9b2f")
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 1, dtype family float, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small logits tensor: (seq_len=2, vocab_size=4)
logits = torch.randn(2, 4)

ARGS = {
    "logits": logits
}
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 1, dtype family float, 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
compute_log_probs Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/logits.py
code served (permissive licence) · get_code("8a9cd66e06ad375c")
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 1, dtype family float, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Small tensors with distinct dimensions
seq_len = 2
vocab_size = 4

# logits: (seq_len, vocab_size)
logits = torch.randn(seq_len, vocab_size)

# token_ids: (seq_len,) with valid indices in range [0, vocab_size)
token_ids = torch.tensor([1, 3])

ARGS = {
    "logits": logits,
    "token_ids": token_ids,
}
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 1, dtype family float, 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
compute_pairwise_cosine Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
socialnlp/dialecttax/src/dialecttax/layers.py
code served (permissive licence) · get_code("5f632691c234b7b2")
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 (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 numpy as np

np.random.seed(0)

# Create two hidden state arrays
# Shape: (n_samples=2, n_layers=3, hidden_dim=4)
hidden_a = np.random.randn(2, 3, 4).astype(np.float32)
hidden_b = np.random.randn(2, 3, 4).astype(np.float32)

ARGS = {
    "hidden_a": hidden_a,
    "hidden_b": hidden_b,
}
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 (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
compute_projected_gradient Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/gradients.py
code served (permissive licence) · get_code("b00b00bebe90f7b4")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class TinyCausalLM(nn.Module):
    """Minimal CausalLM that supports forward pass with labels and produces loss."""
    
    def __init__(self, vocab_size=16, hidden_dim=8, seq_len=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.linear = nn.Linear(hidden_dim, vocab_size)
        self.vocab_size = vocab_size
        self.seq_len = seq_len
    
    def forward(self, input_ids, labels=None):
        # input_ids shape: (batch, seq_len)
        x = self.embedding(input_ids)  # (batch, seq_len, hidden_dim)
        logits = self.linear(x)  # (batch, seq_len, vocab_size)
        
        loss = None
        if labels is not None:
            # Flatten for cross-entropy loss
            loss_fn = nn.CrossEntropyLoss()
            loss = loss_fn(
                logits.view(-1, self.vocab_size),
                labels.view(-1)
            )
        
        # Return object with .loss attribute
        class Output:
            def __init__(self, loss_val):
                self.loss = loss_val
        
        return Output(loss)

# Create model and ensure it has learnable parameters with gradients
model = TinyCausalLM(vocab_size=16, hidden_dim=8, seq_len=4)

# Create small input_ids tensor: shape (1, seq_len)
input_ids = torch.randint(0, 16, (1, 4), dtype=torch.long)

# Define arguments
ARGS = {
    "model": model,
    "input_ids": input_ids,
    "projection_dim": 32,
    "seed": 42,
}
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 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
drop Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/perturbations.py
code served (permissive licence) · get_code("b4019625c6a8b5b9")
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 random

random.seed(0)

# The drop function takes:
# - texts: str | list[str] - either a single string or list of strings
# - p: float - probability of dropping each character (default 0.15)

# Create test data
test_string = "hello world this is a test"
test_list = ["hello world", "foo bar baz", "the quick brown fox"]

ARGS = {
    "texts": test_list,
    "p": 0.15
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
extract_hidden_states Ran
ran, honoured the contract we drafted
socialnlp/dialecttax/src/dialecttax/layers.py
code served (permissive licence) · get_code("164c086ee5abc260")
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 3, dtype family float, shape (2, 3, 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
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Build a minimal CausalLM-like model
class MinimalCausalLM(nn.Module):
    def __init__(self, hidden_dim=4, num_layers=2):
        super().__init__()
        self.hidden_dim = hidden_dim
        self.num_layers = num_layers
        self.device = torch.device('cpu')
        # Embedding layer
        self.embedding = nn.Embedding(100, hidden_dim)
        # Transformer layers
        self.layers = nn.ModuleList([
            nn.Linear(hidden_dim, hidden_dim) for _ in range(num_layers)
        ])
    
    def forward(self, input_ids, attention_mask=None, output_hidden_states=False):
        # Embedding is layer 0
        hidden_states = [self.embedding(input_ids)]
        x = hidden_states[0]
        
        # Pass through transformer layers
        for layer in self.layers:
            x = layer(x)
            hidden_states.append(x)
        
        # Return object with hidden_states attribute
        class Output:
            pass
        
        output = Output()
        output.hidden_states = hidden_states
        return output

# Build a minimal tokenizer
class MinimalTokenizer:
    def __init__(self, vocab_size=100):
        self.vocab_size = vocab_size
    
    def __call__(self, texts, return_tensors=None, padding=False, truncation=False):
        # Convert texts to token ids
        if isinstance(texts, str):
            texts = [texts]
        
        # Simple tokenization: map each character to an id
        token_ids = []
        max_len = 0
        for text in texts:
            ids = [ord(c) % self.vocab_size for c in text]
            token_ids.append(ids)
            max_len = max(max_len, len(ids))
        
        # Pad to max length
        if padding:
            for ids in token_ids:
                while len(ids) < max_len:
                    ids.append(0)
        
        # Create attention mask
        attention_mask = []
        for ids in token_ids:
            mask = [1 if id != 0 else 0 for id in ids]
            attention_mask.append(mask)
        
        # Convert to tensors
        input_ids = torch.tensor(token_ids, dtype=torch.long)
        attention_mask = torch.tensor(attention_mask, dtype=torch.long)
        
        result = {
            'input_ids': input_ids,
            'attention_mask': attention_mask
        }
        return result

# Create instances
model = MinimalCausalLM(hidden_dim=4, num_layers=2)
tokenizer = MinimalTokenizer(vocab_size=100)
texts = ["hello world", "foo bar"]

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'texts': texts,
    'batch_size': 8
}
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 ndarray, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 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
get_completions Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/endpoints.py
code served (permissive licence) · get_code("c90595a57e40102a")
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

torch.manual_seed(0)

# Construct valid responses in OpenRouter format
response_1 = {
    'choices': [
        {
            'message': {
                'content': 'This is the first completion.'
            }
        }
    ]
}

response_2 = {
    'choices': [
        {
            'message': {
                'content': 'This is the second completion.'
            }
        }
    ]
}

# Response with missing content (will return None)
response_3 = {
    'choices': [
        {
            'message': {}
        }
    ]
}

# Response with empty choices (will return None)
response_4 = {
    'choices': []
}

# Response with missing keys (will return None)
response_5 = {
    'data': 'invalid structure'
}

# Valid response
response_6 = {
    'choices': [
        {
            'message': {
                'content': 'Third valid completion.'
            }
        }
    ]
}

ARGS = {
    'responses': [response_1, response_2, response_3, response_4, response_5, response_6]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, 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
get_demo_indices Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/prompts.py
code served (permissive licence) · get_code("3d0997d87e0b6efc")
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 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

# Create sample indices - a list or array of indices to sample from
sample_indices = np.arange(20)  # Create indices from 0 to 19

# Define arguments for get_demo_indices
ARGS = {
    "sample_indices": sample_indices,
    "n_few_shot": 5,
    "rng": None,
    "seed": 42
}
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 int — 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
get_demos Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/prompts.py
code served (permissive licence) · get_code("fa26b23d9bbbfd14")
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

torch.manual_seed(0)

# Create a simple stand-in dataset
class SimpleDataset:
    def __init__(self):
        self.data = [
            {"text": "example one", "label": 0},
            {"text": "example two", "label": 1},
            {"text": "example three", "label": 0},
            {"text": "example four", "label": 1},
        ]
    
    def __getitem__(self, idx):
        return self.data[idx]
    
    def __len__(self):
        return len(self.data)

# Create a simple formatting function
def format_demos(dataset, index):
    """Format a single demo from the dataset as a string."""
    item = dataset[index]
    return f"Text: {item['text']}, Label: {item['label']}"

# Create instances
dataset = SimpleDataset()
demo_indices = [0, 2, 3]

ARGS = {
    "dataset": dataset,
    "format_demos": format_demos,
    "demo_indices": demo_indices,
}
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
get_message Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/endpoints.py
code served (permissive licence) · get_code("d12a3b19f43e067f")
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

ARGS = {
    'prompt': 'What is the capital of France?',
    'system': 'You are a helpful assistant.',
    'instruct': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
get_prompt Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/prompts.py
code served (permissive licence) · get_code("efdb63cf50def444")
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

torch.manual_seed(0)

# Analyzing the function:
# - get_prompt takes 3 parameters: prompt, demos, instructions
# - prompt is used as a string in format()
# - demos is optional (defaults to None), converted to string with newlines
# - instructions is optional (defaults to None), converted to string with newlines
# - All are used in string formatting, so they should be strings

ARGS = {
    'prompt': 'What is the capital of France?',
    'demos': 'Example 1: Q: What is 2+2? A: 4\nExample 2: Q: What is 3+3? A: 6',
    'instructions': 'You are a helpful assistant. Answer questions concisely.'
}
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 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
insert Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/perturbations.py
code served (permissive licence) · get_code("ed36139aabd7f155")
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 random
import string

random.seed(42)

# The insert function takes:
# 1. texts: str | list[str] - a string or list of strings
# 2. p: float - probability parameter with default 0.05

# Test with both a single string and a list of strings
single_text = "hello world"
list_texts = ["hello world", "foo bar test"]

# ARGS should provide values for all parameters
ARGS = {
    "texts": single_text,  # Can be tested with single_text or list_texts
    "p": 0.05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
is_error Ran
ran, violated the contract we drafted
socialnlp/dialecttax/src/dialecttax/endpoints.py
code served (permissive licence) · get_code("659276c0f4098863")
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 bool, 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

# Test case 1: Valid response with content
valid_response = {
    'choices': [
        {
            'message': {
                'content': 'This is a valid response'
            }
        }
    ]
}

# Test case 2: Response with error key
error_response = {
    'error': 'Something went wrong'
}

# Test case 3: Response with None content
none_content_response = {
    'choices': [
        {
            'message': {
                'content': None
            }
        }
    ]
}

# Test case 4: Response with empty string content
empty_content_response = {
    'choices': [
        {
            'message': {
                'content': ''
            }
        }
    ]
}

# Test case 5: Malformed response (missing keys)
malformed_response = {
    'choices': []
}

# Use any of the test cases as the argument
ARGS = {
    'data': valid_response
}
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 bool, 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
last_token_hidden Ran
ran, honoured the contract we drafted
socialnlp/dialecttax/src/dialecttax/logits.py
code served (permissive licence) · get_code("fbf4d4f067e0e73a")
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 1, dtype family float, shape (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 tiny tensors
# hidden_states: (seq_len=5, hidden_dim=4)
hidden_states = torch.randn(5, 4)

# token_ids: (seq_len=5,)
token_ids = torch.tensor([101, 2054, 2003, 102, 103])

# special_ids: set of special token IDs (102 is [SEP], 103 is [PAD])
special_ids = {102, 103}

ARGS = {
    "hidden_states": hidden_states,
    "token_ids": token_ids,
    "special_ids": special_ids,
}
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 1, dtype family float, shape (4,) — shape (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
probs_to_class Ran
ran, honoured the contract we drafted
socialnlp/dialecttax/src/dialecttax/classification.py
code served (permissive licence) · get_code("abdd69256f7e27aa")
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 numpy as np

# Create a small probability matrix
# Shape: (N, n_classes) where N=2 samples, n_classes=4
np.random.seed(0)
probs = np.random.dirichlet([1, 1, 1, 1], size=2)

ARGS = {
    "probs": probs
}
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 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
project_gradient Ran
ran, honoured the contract we drafted
socialnlp/dialecttax/src/dialecttax/gradients.py
code served (permissive licence) · get_code("a4db1a1bf7ffaab1")
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 1, dtype family float, shape (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 torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

# Create a dummy input and compute gradients
x = torch.randn(2, 4)
y = torch.randn(2, 2)

output = model(x)
loss = torch.nn.functional.mse_loss(output, y)
loss.backward()

projection_dim = 8
seed = 42

ARGS = {
    "model": model,
    "projection_dim": projection_dim,
    "seed": seed,
}
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 1, dtype family float, shape (8,) — shape (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
swap Ran
ran; our contract draft was wrong, not the code
socialnlp/dialecttax/src/dialecttax/perturbations.py
code served (permissive licence) · get_code("b6301b9d2c689190")
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 random

random.seed(42)

# The swap function takes:
# 1. texts: str | list[str]
# 2. p: float (probability parameter, default 0.05)

# Create test cases for both single string and list of strings
single_text = "hello world"
list_texts = ["hello world", "foo bar baz"]

ARGS = {
    "texts": single_text,
    "p": 0.05
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
load_model Not yet run
unverified (harvested, no recorded run)
socialnlp/dialecttax/src/dialecttax/gradients.py
code served (permissive licence) · get_code("c562479f4ac54069")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
socialnlp/dialecttax/src/dialecttax/layers.py
code served (permissive licence) · get_code("ec1366915e828453")
How it ran

no invocation recorded.

similarity_pairwise Not yet run
unverified (harvested, no recorded run)
socialnlp/dialecttax/src/dialecttax/embeddings.py
code served (permissive licence) · get_code("edfb829c8c7c55ba")
How it ran

no invocation recorded.

text_to_char_ids Not yet run
unverified (harvested, no recorded run)
socialnlp/dialecttax/src/dialecttax/characters.py
code served (permissive licence) · get_code("2f34135f50033179")
How it ran

no invocation recorded.

Also present in other papers' code

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

Systematic dialectal performance gaps in language models (LMs) are well documented, but the source of these disparities within the modern language modeling pipeline remains unclear. Our study traces this "dialect tax" across the natural language processing pipeline. Using parallel English dialect corpora that hold meaning fixed while varying surface form, we first confirm that LMs recognize matched Standard American English (SAE) and dialectal texts as semantically equivalent. However, we discover further representational gaps corresponding to downstream performance gaps. Across model families and generations, modern LMs still encode dialectal texts unequally during tokenization, pre-training, post-training, and inference. Strikingly, bypassing traditional subword segmentation via a character-level counterfactual tokenizer removes neither input and output asymmetries nor dialectal accuracy gaps. During pre-training, dialect pairs induce more divergent gradient updates than pairs of entirely unrelated SAE documents, indicating that models find semantically equivalent dialectal content harder to learn from than unrelated SAE documents. During post-training, reward models show contextual, unstable dialect preferences, assigning higher values to isolated AAVE-exclusive tokens than to SAE-exclusive tokens, while full reasoning contexts receive task-and model-dependent dialect penalties. Overall, our findings suggest that the dialect tax is encoded and accumulated not by any one step in isolation, but at every step of the language modeling process.

For agents

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

get_harvested_code_for_paper("2608.24952")
get_code_for_paper("2608.24952")
have("2608.24952")

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

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

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

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

Connect an agent — have() is free.