SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.31741 · 2026

STEB: Style Text Embedding Benchmark

Rafael Soto, Anna Wegmann, Cristina Aggazzotti

arXiv · PDF

Code that ran

13 of 19 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 1 has no contract verdict; 12 failures of our instrument; 6 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.31741.json · badge: /api/ran/2606.31741.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
dykang/PASTEL canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
rrivera1849/STEB community
Papers with Code archive
6 ran · 3 no recorded run
FunctionStatusWhere it lives
Processor Ran
ran on a synthesized input
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("66cf7abb41904804")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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 numpy as np

# Processor has no __init__ parameters (uses default __init__)
INIT_ARGS = {}

# The process method takes embeddings and labels
# embeddings: Any type, we'll use a torch tensor
# labels: List[Any]
embeddings_input = torch.randn(2, 4)  # batch=2, feature_dim=4
labels_input = ['class_a', 'class_b']

ARGS = {
    'embeddings': embeddings_input,
    'labels': labels_input
}

METHOD = 'process'
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
_evaluate_submetrics Ran
ran; our contract draft was wrong, not the code
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("9a000a501b71c83e")
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
from typing import Dict, List, Any

torch.manual_seed(0)

class MockTask:
    """Mock task that implements evaluate() method."""
    def evaluate(self, X: List[Any], y: List[Any]) -> Dict[str, float]:
        """Return a simple metric dict."""
        return {
            'accuracy': 0.85,
            'precision': 0.82,
            'recall': 0.88
        }

# Create mock processed data: (all_X, all_y)
# X is a list of feature vectors, y is a list of labels
all_X = [
    np.array([1.0, 2.0, 3.0, 4.0]),
    np.array([2.0, 3.0, 4.0, 5.0]),
    np.array([3.0, 4.0, 5.0, 6.0]),
    np.array([4.0, 5.0, 6.0, 7.0]),
]
all_y = ['cat', 'dog', 'cat', 'bird']

processed_data = (all_X, all_y)

# Create submetrics_config: maps submetric names to label subsets
submetrics_config = {
    'feline_metrics': ['cat'],
    'canine_metrics': ['dog'],
    'avian_metrics': ['bird'],
}

# Create task instance
task = MockTask()

ARGS = {
    'submetrics_config': submetrics_config,
    'processed_data': processed_data,
    'task': task,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, termcolor, 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
_iter_task_configs Ran
ran; our contract draft was wrong, not the code
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("5f372e3b315bec75")
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 generator. 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 json
import tempfile
from typing import List, Optional

# Create a temporary directory structure with mock dataset configs
temp_dir = tempfile.mkdtemp()
steb_datasets_dir = os.path.join(temp_dir, 'steb_datasets')
os.makedirs(steb_datasets_dir)

# Create mock dataset config
dataset_name = 'test_dataset'
dataset_dir = os.path.join(steb_datasets_dir, dataset_name)
os.makedirs(dataset_dir)

dataset_config = {
    'tasks': {
        'clustering': {
            'episode_sizes': [2, 4],
            'n_episodes_per_class': 5
        },
        'retrieval': {
            'episode_sizes': [-1],
            'n_episodes_per_class': 1
        }
    }
}

config_path = os.path.join(dataset_dir, 'config.json')
with open(config_path, 'w') as f:
    json.dump(dataset_config, f)

# Monkey patch os.path.dirname to return our temp directory for the module
original_dirname = os.path.dirname
original_abspath = os.path.abspath

def patched_dirname(path):
    if 'steb_datasets' in path or path.endswith('_iter_task_configs'):
        return temp_dir
    return original_dirname(path)

def patched_abspath(path):
    if path == '__file__':
        return os.path.join(temp_dir, '__init__.py')
    return original_abspath(path)

os.path.dirname = patched_dirname
os.path.abspath = patched_abspath

# Define arguments for the function
ARGS = {
    'datasets': ['test_dataset'],
    'task_name': None,
    'episode_sizes': None,
    'n_episodes_per_class': None
}
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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
_write_evaluation_log Ran
ran; our contract draft was wrong, not the code
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("f4b4f88e32c6b133")
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) 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 os
import tempfile
from typing import List, Tuple, Optional

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()

# Define the arguments
ARGS = {
    'output_folder': temp_dir,
    'model_name': 'test_model_v1',
    'run_name': 'evaluation_run_1',
    'successes': [
        ('dataset_a', 32, 'task_classification'),
        ('dataset_b', 64, 'task_regression'),
        ('dataset_c', 128, 'task_clustering'),
    ],
    'failures': [
        ('dataset_d', 16, 'task_segmentation', 'Out of memory error'),
        ('dataset_e', 256, 'task_detection', 'Model convergence failed'),
    ],
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
termcolor — 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_config_value Ran
ran; our contract draft was wrong, not the code
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("174ba25bc5881440")
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) 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 os
import configparser
from pathlib import Path
import tempfile

# Create temporary config files for testing
temp_dir = tempfile.mkdtemp()
temp_home_steb = os.path.join(temp_dir, '.steb')
os.makedirs(temp_home_steb, exist_ok=True)

# Create a config file in ~/.steb/config.ini (simulated)
home_config_path = os.path.join(temp_home_steb, 'config.ini')
with open(home_config_path, 'w') as f:
    f.write('[section1]\n')
    f.write('key1=home_value\n')

# Create a config file in CWD (simulated)
cwd_config_path = os.path.join(temp_dir, 'config.ini')
with open(cwd_config_path, 'w') as f:
    f.write('[section1]\n')
    f.write('key1=cwd_value\n')
    f.write('[section2]\n')
    f.write('key2=cwd_key2_value\n')

# Change to temp directory to simulate CWD
original_cwd = os.getcwd()
os.chdir(temp_dir)

# Patch Path.home() to return our temp directory
original_home = Path.home
Path.home = lambda: Path(temp_dir)

ARGS = {
    'env_var': 'TEST_ENV_VAR',
    'config_section': 'section1',
    'config_key': 'key1',
    'default': 'default_value'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
get_data Ran
ran; our contract draft was wrong, not the code
dykang/PASTEL/code/StyleClassify/classify.py
pointer only (licence: NONE) · get_code("491fbd57660fdcf6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

loadEmbedsAsNumpyObj Ran
ran; our contract draft was wrong, not the code
dykang/PASTEL/code/StyleTransfer/models/embeddingUtils.py
pointer only (licence: NONE) · get_code("aed1e5019d367f41")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

maskSeq Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dykang/PASTEL/code/StyleTransfer/models/torch_utils.py
pointer only (licence: NONE) · get_code("54ec160695711d85")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

padSeq Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dykang/PASTEL/code/StyleTransfer/models/torch_utils.py
pointer only (licence: NONE) · get_code("ea993fbd75447f8c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_class_names Ran
ran; our contract draft was wrong, not the code
dykang/PASTEL/code/StyleClassify/classify.py
pointer only (licence: NONE) · get_code("5808fd8eaa825dcf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_features Ran
ran; our contract draft was wrong, not the code
dykang/PASTEL/code/StyleClassify/feature_extract.py
pointer only (licence: NONE) · get_code("3e0414b5e8d9c8b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

record_handler Ran
ran; our contract draft was wrong, not the code
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("a627f4bd4e6d6e87")
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) 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
from typing import Any, Dict, List, Optional, Callable

torch.manual_seed(0)

# Define a simple custom record handler for testing
def custom_handler(record: Dict[str, Any]) -> Optional[Dict[str, Any]]:
    """Simple custom handler that validates and potentially modifies records."""
    if record.get("skip"):
        return None
    return record

# Define a simple label transform function
def label_transform_fn(label: Any) -> Any:
    """Simple label transform that converts to uppercase if string."""
    if isinstance(label, str):
        return label.upper()
    return label

# Create example records with various text and label formats
example_basic = {
    "content": "This is a sample text",
    "category": "positive"
}

example_with_list_label = {
    "content": "Another sample text",
    "category": ["negative", "other"]
}

example_with_list_text = {
    "content": ["Text part 1", "Text part 2"],
    "category": "neutral"
}

# Use the basic example as the main test case
ARGS = {
    "example": example_basic,
    "text_getter": "content",
    "label_getter": "category",
    "label_transform": label_transform_fn,
    "custom_record_handler": custom_handler
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
splitBatches Ran
ran; our contract draft was wrong, not the code
dykang/PASTEL/code/StyleTransfer/models/torch_utils.py
pointer only (licence: NONE) · get_code("73dce96b1de12751")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

DatasetLoader Not yet run
unverified (harvested, no recorded run)
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("8bd3f7e3df5fa5c8")
How it ran

no invocation recorded.

_print_evaluation_summary Not yet run
unverified (harvested, no recorded run)
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("9e9daab1469ffbf2")
How it ran

no invocation recorded.

evaluate Not yet run
unverified (harvested, no recorded run)
rrivera1849/STEB/steb/core.py
code served (permissive licence) · get_code("a825e2fb4e4fbd4b")
How it ran

no invocation recorded.

get_feature_id Not yet run
unverified (harvested, no recorded run)
dykang/PASTEL/code/StyleClassify/feature_extract.py
pointer only (licence: NONE) · get_code("68220782f52d0b58")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

read_corpus Not yet run
unverified (harvested, no recorded run)
dykang/PASTEL/code/StyleTransfer/utils/readData.py
pointer only (licence: NONE) · get_code("e878567faaeaed4a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

read_feature_names Not yet run
unverified (harvested, no recorded run)
dykang/PASTEL/code/StyleClassify/classify.py
pointer only (licence: NONE) · get_code("40af397c656ed69c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dykang/PASTEL when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

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

While semantic embeddings are rigorously evaluated on the Massive Text Embedding Benchmark, the evaluation of style embeddings remains fragmented, with each work relying on their own set of tasks and datasets. To bridge this gap, we introduce the Style Text Embedding Benchmark, a comprehensive open-source benchmark intended to standardize the evaluation of style embeddings. STEB encompasses 96 datasets across 7 languages, spanning applications such as authorship verification, authorship retrieval, AI-text detection, probing of linguistic features, and others. We find that semantic embeddings consistently fail in stylistic tasks, and that there is no style embedding that is universally superior across all tasks evaluated. We open-source the STEB code base at: https://github.com/rrivera1849/STEB.

For agents

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

get_harvested_code_for_paper("2606.31741")
get_code_for_paper("2606.31741")
have("2606.31741")

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

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

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

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

Connect an agent — have() is free.