SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2024.findings-emnlp.815 · EMNLP Findings · 2024

BLADE: Benchmarking Language Model Agents for Data-Driven Science

Jiaqian Yu, Tim Althoff, Mike Merrill, Tianmai Zhang, Ken Gu, Yue Mao, Ruoxi Shang, Ruien Jiang, Keying Kuang, Richard-John Lin, Donghe Lyu, Youran Pan, and 4 more

Open in the Atlas

Code that ran

8 of 9 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 6 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/2024.findings-emnlp.815.json · badge: /api/ran/2024.findings-emnlp.815.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
behavioral-data/BLADE canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
ast_equal Ran
ran on a synthesized input
behavioral-data/BLADE/blade_bench/parse_code.py
code served (permissive licence) · get_code("8758c013f19cb8e6")
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 ast

# Create two identical AST nodes for comparison
node1 = ast.parse("x = 1").body[0]
node2 = ast.parse("x = 1").body[0]

# Create two different AST nodes
node3 = ast.parse("x = 2").body[0]

ARGS = {
    "node1": node1,
    "node2": node2,
}
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 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
get_dataset_csv_path Ran
ran on a synthesized input
behavioral-data/BLADE/blade_bench/utils.py
code served (permissive licence) · get_code("b9a0ecd3bf08a4ee")
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 os
import tempfile
import shutil

# Create a temporary directory structure to simulate the expected file layout
temp_root = tempfile.mkdtemp()
datasets_dir = os.path.join(temp_root, 'datasets')
os.makedirs(datasets_dir, exist_ok=True)

# Create a sample dataset directory with data.csv
sample_dataset_name = 'sample_dataset'
dataset_path = os.path.join(datasets_dir, sample_dataset_name)
os.makedirs(dataset_path, exist_ok=True)

# Create a dummy data.csv file
csv_path = os.path.join(dataset_path, 'data.csv')
with open(csv_path, 'w') as f:
    f.write("col1,col2\n1,2\n3,4\n")

# Mock __file__ by temporarily modifying os module behavior or using the temp_root
# Since we can't modify __file__ directly in this context, we'll work with what we have
# The function will use get_root_dir() which calls os.path.dirname(os.path.abspath(__file__))
# We need to ensure the dataset structure exists where the function expects it

ARGS = {
    'dataset_name': 'sample_dataset'
}
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
get_dataset_dir Ran
ran on a synthesized input
behavioral-data/BLADE/blade_bench/utils.py
code served (permissive licence) · get_code("c2afdcafd1c34636")
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 os

# The function get_dataset_dir takes one parameter: dataset_name
# It simply constructs and returns a path string by joining directories
# No complex objects are needed - just a string parameter

ARGS = {
    'dataset_name': 'cifar10'
}
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
get_dataset_info_path Ran
ran on a synthesized input
behavioral-data/BLADE/blade_bench/utils.py
code served (permissive licence) · get_code("6e90d9c891352648")
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 os

def get_root_dir():
    return os.path.dirname(os.path.abspath(__file__))

def get_datasets_dir():
    return os.path.join(get_root_dir(), 'datasets')

def get_dataset_info_path(dataset_name):
    return os.path.join(get_datasets_dir(), dataset_name, 'info.json')

ARGS = {
    'dataset_name': 'cifar10'
}
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
get_function_arg_name Ran
ran on a synthesized input
behavioral-data/BLADE/blade_bench/parse_code.py
code served (permissive licence) · get_code("a239393c681ba813")
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 ast

source_code = """
def example_function(x, y, z):
    return x + y + z

def another_function(a, b):
    return a * b
"""

function_name = "example_function"

ARGS = {
    "source_code": source_code,
    "function_name": function_name
}
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
sanitize_provider Ran
ran on a synthesized input
behavioral-data/BLADE/blade_bench/config.py
code served (permissive licence) · get_code("621ed8717dd6b052")
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.

# Setup for sanitize_provider function
# This function takes a provider string and normalizes it to a canonical form

ARGS = {
    'provider': 'openai'
}
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
serialize Ran
ran; our contract draft was wrong, not the code
behavioral-data/BLADE/blade_bench/logger.py
code served (permissive licence) · get_code("8daabb19cdef1e76")
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 logging
from collections import OrderedDict
from enum import Enum
from datetime import datetime
from pathlib import Path

# Create a mock level enum
class MockLevel(Enum):
    INFO = "INFO"
    DEBUG = "DEBUG"
    ERROR = "ERROR"
    WARNING = "WARNING"

# Create a mock file object
class MockFile:
    def __init__(self):
        self.name = "test.py"
        self.path = "/path/to/test.py"

# Create the record dict with all required fields
record = {
    'level': MockLevel.INFO,
    'message': 'Test log message',
    'time': datetime(2024, 1, 15, 10, 30, 45, 123456),
    'file': MockFile(),
    'function': 'test_function',
    'line': 42,
    'extra': {'user_id': 123, 'request_id': 'abc-def-ghi'}
}

ARGS = {
    'record': record
}
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
serialize_extras Ran
ran; our contract draft was wrong, not the code
behavioral-data/BLADE/blade_bench/logger.py
code served (permissive licence) · get_code("0cc78509b6792f51")
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 json
import torch

torch.manual_seed(0)

# The function expects a dict with an 'extra' key that can be JSON serialized
record = {
    'extra': {
        'model_name': 'test_model',
        'accuracy': 0.95,
        'loss': 0.05,
        'metadata': ['item1', 'item2'],
        'config': {'lr': 0.001, 'epochs': 10}
    }
}

ARGS = {
    'record': record
}
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
patching Not yet run
unverified (harvested, no recorded run)
behavioral-data/BLADE/blade_bench/logger.py
code served (permissive licence) · get_code("08309d2e1e9e1402")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
serialize 2 other papers
2 later
2506.08249 (2025-06)
RADAR: Benchmarking Language Models on Imperfect Tabular Data
2605.27621 (2026-05)
Agents that Matter: Optimizing Multi-Agent LLMs via Removal-Based Attribution
serialize_extras 2 other papers
2 later
2506.08249 (2025-06)
RADAR: Benchmarking Language Models on Imperfect Tabular Data
2605.27621 (2026-05)
Agents that Matter: Optimizing Multi-Agent LLMs via Removal-Based Attribution

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Data-driven scientific discovery requires the iterative integration of scientific domain knowledge, statistical expertise, and an understanding of data semantics to make nuanced analytical decisions, e.g., about which variables, transformations, and statistical models to consider. LM-based agents equipped with planning, memory, and code execution capabilities have the potential to support data-driven science. However, evaluating agents on such open-ended tasks is challenging due to multiple valid approaches, partially correct steps, and different ways to express the same decisions. To address these challenges, we present BLADE, a benchmark to automatically evaluate agents' multifaceted approaches to openended research questions. BLADE consists of 12 datasets and research questions drawn from existing scientific literature, with ground truth collected from independent analyses by expert data scientists and researchers. To automatically evaluate agent responses, we developed corresponding computational methods to match different representations of analyses to this ground truth. Though language models possess considerable world knowledge, our evaluation shows that they are often limited to basic analyses. However, agents capable of interacting with the underlying data demonstrate improved, but still non-optimal, diversity in their analytical decision making. Our work enables the evaluation of agents for data-driven science and provides researchers deeper insights into agents' analysis approaches. 'redCards' Automatic Evaluation Convert generated analyses Value and grmph-based matching transforms LM-based matching statistical models conceptual vars Research Question/Hypothesis Are soccer players with a dark skin tone more likely than those with a light skin tone to receive red cards from referees? Data Table Automatic Evaluation Convert Generated Analysis Ground Truth Decision Space Conceptual Variables

For agents

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

get_harvested_code_for_paper("2024.findings-emnlp.815")
get_code_for_paper("2024.findings-emnlp.815")
have("2024.findings-emnlp.815")

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

curl https://syntology.ai/api/ran/2024.findings-emnlp.815.json

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

[![Syntology run record](https://syntology.ai/api/ran/2024.findings-emnlp.815.svg)](https://syntology.ai/paper/2024.findings-emnlp.815)

Connect an agent — have() is free.