SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.17373 · 2026

FML-bench: A Controlled Study of AI Research Agent Strategies from the Perspective of Search Dynamics

Tianyi Zhang, Anirudh Goyal, Chang Liu, Dianbo Liu, Zhengyao Jiang, Hou Lam, Tingting Chen, Yiming Tang, Srinivas Anumasa, Samson Yu, Qiran Zou, Wenhao Zhao, and 2 more

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 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/2605.17373.json · badge: /api/ran/2605.17373.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
qrzou/FML-bench canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_overrides Ran
ran; our contract draft was wrong, not the code
qrzou/FML-bench/run_agent_benchmark.py
code served (permissive licence) · get_code("c1dad570c33f51c5")
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 typing import Any, Dict


class MockArgs:
    def __init__(self, model=None, provider=None, overrides=None):
        self.model = model
        self.provider = provider
        self.overrides = overrides if overrides is not None else []


# Create a base config to work with
base_config = {
    'agent': {
        'model': 'default_model',
        'provider': 'default_provider',
        'temperature': 0.7,
        'max_tokens': 100
    },
    'other': {
        'setting': 'value'
    }
}

# Create args object with various override scenarios
args_object = MockArgs(
    model='gpt-4',
    provider='openai',
    overrides=[
        'agent.temperature=0.9',
        'agent.max_tokens=200',
        'other.setting=new_value',
        'new_key=42',
        'new_nested.key=3.14',
        'flag_value=true',
        'another_flag=false'
    ]
)

ARGS = {
    'config': base_config,
    'args': args_object
}
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
canonical_metric Ran
ran, honoured the contract we drafted
qrzou/FML-bench/compute_agent_metrics.py
code served (permissive licence) · get_code("6f1a530eefc5335e")
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

TASK_META = {'Causality_causalml': ('ihdp_test', 'mae_mean', 'lower'), 'Causality_gcastle': ('synthetic_dag', 'shd_mean', 'lower'), 'Continual_Learning_continual_learning': ('splitMNIST_scenario_class', 'average_acc_mean', 'higher'), 'Continual_Learning_pycil': ('cifar100_incremental', 'avg_incremental_acc_mean', 'higher'), 'Data_Efficiency_easyfsl': ('miniimagenet_test', 'accuracy_mean', 'higher'), 'Data_Efficiency_usb': ('cifar100_ssl', 'test_acc_mean', 'higher'), 'Fairness_and_Bias_aif360': ('compas', 'abs_aod_mean', 'lower'), 'Fairness_fairlearn': ('adult', 'abs_demographic_parity_diff_mean', 'lower'), 'Federated_Learning_PFLlib': ('cifar10_fl', 'test_acc_mean', 'higher'), 'Generalization_domainbed': ('ColoredMNIST_test_env2', 'in_acc_mean', 'higher'), 'Generalization_domainbed_officehome': ('OfficeHome_test_env0', 'avg_acc_mean', 'higher'), 'Privacy_opacus': ('cifar10_dp', 'test_acc_mean', 'higher'), 'Privacy_privacymeter': ('cifar10', 'AUC_gap_mean', 'lower'), 'Representation_Learning_lightly': ('cifar10_linear_probing', 'test_acc_mean', 'higher'), 'Representation_Learning_solo_learn': ('cifar100_ssl', 'linear_eval_acc_mean', 'higher'), 'Robustness_and_Reliability_art': ('poisoned_mnist', 'defense_score_mean', 'higher'), 'Robustness_openood': ('openood', 'auroc_mean', 'higher'), 'Unlearning_open_unlearning': ('tofu_unlearning', 'forget_quality_mean', 'higher')}

def canonical_metric(info_json, task):
    if info_json is None:
        return None
    dataset, metric, _ = TASK_META[task]
    try:
        return float(info_json[dataset]['means'][metric])
    except (KeyError, TypeError, ValueError):
        return None

# Construct valid arguments for canonical_metric
# The function expects:
# 1. info_json: a dict with dataset as key, containing 'means' dict with metric values
# 2. task: a string key from TASK_META

# Create a valid info_json structure
info_json = {
    'ihdp_test': {
        'means': {
            'mae_mean': 0.85
        }
    },
    'synthetic_dag': {
        'means': {
            'shd_mean': 0.12
        }
    },
    'splitMNIST_scenario_class': {
        'means': {
            'average_acc_mean': 0.92
        }
    },
    'cifar100_incremental': {
        'means': {
            'avg_incremental_acc_mean': 0.78
        }
    },
    'miniimagenet_test': {
        'means': {
            'accuracy_mean': 0.65
        }
    }
}

# Use first task from TASK_META
task = 'Causality_causalml'

ARGS = {
    'info_json': info_json,
    'task': task
}
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
extract_token_usage_from_aider Ran
ran; our contract draft was wrong, not the code
qrzou/FML-bench/benchmark/utils.py
code served (permissive licence) · get_code("f997bad1583a6091")
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 re
from typing import Dict, Any, List, Union, Set, Optional

ARGS = {
    "usage_report": "Tokens: 1.5k sent, 2.3k received\nCost: $0.0045 message, $0.0234 session"
}
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 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
extract_usage_info Ran
ran; our contract draft was wrong, not the code
qrzou/FML-bench/agents/llm.py
code served (permissive licence) · get_code("79b6ab747d360344")
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.

class MockUsage:
    def __init__(self, prompt_tokens, completion_tokens, total_tokens):
        self.prompt_tokens = prompt_tokens
        self.completion_tokens = completion_tokens
        self.total_tokens = total_tokens

class MockResponseWithUsage:
    def __init__(self):
        self.usage = MockUsage(prompt_tokens=100, completion_tokens=50, total_tokens=150)

class MockResponseWithTokens:
    def __init__(self):
        self.input_tokens = 75
        self.output_tokens = 25

class MockResponseEmpty:
    pass

ARGS = {
    'response': MockResponseWithUsage()
}
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 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
filter_metrics_for_prompt Ran
ran; our contract draft was wrong, not the code
qrzou/FML-bench/benchmark/utils.py
code served (permissive licence) · get_code("b5cef3c87be6ebad")
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.

# Setup code for filter_metrics_for_prompt

# Construct a realistic results dictionary matching the function's expected structure
results = {
    "dataset_1": {
        "means": {
            "accuracy": 0.92,
            "f1_score": 0.89,
            "precision": 0.95,
        },
        "stderrs": {
            "accuracy_stderr": 0.02,
            "f1_score_stderr": 0.03,
            "precision_stderr": 0.01,
        }
    },
    "dataset_2": {
        "means": {
            "accuracy": 0.87,
            "recall": 0.84,
        },
        "stderrs": {
            "accuracy_stderr": 0.025,
            "recall_stderr": 0.035,
        }
    },
    "dataset_3": {
        "auc": 0.91,
        "roc_curve": 0.88,
        "confusion_matrix": 0.79,
    }
}

include_datasets = ["dataset_1", "dataset_2"]
include_metrics = ["accuracy", "f1_score"]

ARGS = {
    "results": results,
    "include_datasets": include_datasets,
    "include_metrics": include_metrics,
}
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 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_model Ran
ran; our contract draft was wrong, not the code
qrzou/FML-bench/ml_tasks/Data_Efficiency_usb/algorithm.py
code served (permissive licence) · get_code("b1ead7d50c71ea58")
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 WideResNet. 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)

ARGS = {
    "num_classes": 100,
}
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 WideResNet — a WideResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WideResNet 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_run_candidate Ran
ran, violated the contract we drafted
qrzou/FML-bench/compute_agent_metrics.py
code served (permissive licence) · get_code("e1de7b725fe7364c")
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.

from pathlib import Path
import tempfile
import os

# Create a temporary directory to work with
temp_dir = tempfile.mkdtemp()

# Create a mock directory object that has the required interface
class MockDir:
    def __init__(self, name, is_directory=True):
        self._name = name
        self._is_directory = is_directory
    
    def is_dir(self):
        return self._is_directory
    
    @property
    def name(self):
        return self._name

# Test with a valid directory name (not starting or ending with underscore)
mock_dir = MockDir(name='valid_run_name', is_directory=True)

ARGS = {
    'd': mock_dir
}
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
load_config Ran
ran; our contract draft was wrong, not the code
qrzou/FML-bench/run_agent_benchmark.py
code served (permissive licence) · get_code("482d5c051704c0e8")
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 tempfile
import os
import yaml

# Create a temporary YAML config file
temp_dir = tempfile.mkdtemp()
config_file_path = os.path.join(temp_dir, "config.yaml")

config_data = {
    "model": "resnet50",
    "batch_size": 32,
    "learning_rate": 0.001,
    "epochs": 10,
    "dataset": "cifar10",
    "optimizer": "adam"
}

with open(config_file_path, 'w') as f:
    yaml.dump(config_data, f)

ARGS = {
    "config_file": config_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — 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
safe_load_json Ran
ran; our contract draft was wrong, not the code
qrzou/FML-bench/compute_agent_metrics.py
code served (permissive licence) · get_code("8f5d29015652fdf4")
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 json
import tempfile
import os

# Create a temporary JSON file with valid content
temp_dir = tempfile.mkdtemp()
temp_json_path = os.path.join(temp_dir, "test.json")

with open(temp_json_path, 'w') as f:
    json.dump({"key": "value", "number": 42}, f)

ARGS = {
    "path": temp_json_path
}
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 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_changed_files Not yet run
unverified (harvested, no recorded run)
qrzou/FML-bench/benchmark/utils.py
code served (permissive licence) · get_code("c8399a4a4044c721")
How it ran

no invocation recorded.

run_causal_discovery Not yet run
unverified (harvested, no recorded run)
qrzou/FML-bench/ml_tasks/Causality_gcastle/algorithm.py
code served (permissive licence) · get_code("6a9777b2e8b2e82c")
How it ran

no invocation recorded.

Also present in other papers' code

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

AI research agents accelerate ML research by automating hypothesis generation, experimentation, and empirical refinement. Existing agent strategies range from greedy hill-climbing to tree search and evolutionary optimization, yet which strategy choices drive performance remains unclear. Answering this question requires a benchmark that separates agent strategy (e.g., search topology) from execution infrastructure (e.g., code editor), so that performance differences are attributable to strategy rather than infrastructure, and that provides process-level metrics beyond final scores to analyze exploration behaviors. Existing benchmarks offer limited support. We propose FML-Bench, a benchmark of 18 fundamental ML research tasks across 10 domains that separates agent strategy from execution infrastructure and defines 12 process-level behavioral metrics. Evaluating six representative agents, we find that: (1) strategy complexity alone does not guarantee strong performance: a simple greedy hill-climber nearly matches the best-performing tree-search agent, both well above the remaining agents; (2) our analysis suggests this pattern relates to improvement opportunity structure: greedy search tends to be more effective when opportunities are dense, while tree-search and evolutionary strategies tend to be more effective when opportunities are sparse; an adaptive agent built on this insight switches to broader exploration upon detecting improvement stagnation and outperforms the other six agents, lending initial support to this observation; and (3) process-level analysis reveals that early convergence and directionally focused exploration are significantly associated with final performance, while solution diversity and compute cost are not. Our benchmark is available at: https://github.com/qrzou/FML-bench.

For agents

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

get_harvested_code_for_paper("2605.17373")
get_code_for_paper("2605.17373")
have("2605.17373")

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

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

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

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

Connect an agent — have() is free.