SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.00890 · NeurIPS · 2025

AgentTTS: Large Language Model Agent for Test-time Compute-optimal Scaling Strategy in Complex Tasks

Zhen Li, Xianfeng Tang, Hui Liu, Chen Luo, Suhang Wang, Zhiwei Zhang, Zongyu Wu, Qi He, Fali Wang, Zhenwei Dai, Jingying Zeng

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 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, 0 violated it and 0 have no contract verdict; 2 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/2508.00890.json · badge: /api/ran/2508.00890.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
FairyFali/AgentTTS canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
FunctionStatusWhere it lives
flatten Ran
ran, honoured the contract we drafted
FairyFali/AgentTTS/code_others/archon_taskbench.py
code served (permissive licence) · get_code("1008279aff0e9c6c")
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, ndim 2, 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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - gt: iterable of iterables (each sample contains elements)
# - pred: iterable of iterables (each sample contains elements)
# - types: optional list/sequence that supports 'in' operator and .index() method
#
# The function treats gt and pred as lists of sets (or set-like collections)
# and flattens them while optionally mapping elements to type indices.

# Construct valid arguments:

# Case 1: Basic usage without types
gt_simple = [
    {'cat', 'dog'},
    {'bird', 'fish', 'cat'}
]

pred_simple = [
    {'cat', 'elephant'},
    {'bird', 'cat'}
]

# Case 2: Usage with types parameter
gt_with_types = [
    {'person', 'car'},
    {'dog', 'person', 'tree'}
]

pred_with_types = [
    {'car', 'bike'},
    {'dog', 'tree', 'cat'}
]

types_list = ['person', 'car', 'dog', 'tree', 'bike', 'cat']

ARGS = {
    'gt': gt_simple,
    'pred': pred_simple,
    'types': None
}
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 tuple, ndim 2, dtype family int — a tuple 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_config Ran
ran; our contract draft was wrong, not the code
FairyFali/AgentTTS/code_chatdev/gen_configs.py
code served (permissive licence) · get_code("313bb52aeba6a1b8")
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, 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 os
import tempfile
import json

# Create a temporary directory structure to simulate the CompanyConfig layout
temp_dir = tempfile.mkdtemp()
config_base = os.path.join(temp_dir, 'CompanyConfig')
os.makedirs(os.path.join(config_base, 'Default'), exist_ok=True)
os.makedirs(os.path.join(config_base, 'TestCompany'), exist_ok=True)

# Create default config files
default_dir = os.path.join(config_base, 'Default')
for config_file in ['ChatChainConfig.json', 'PhaseConfig.json', 'RoleConfig.json']:
    with open(os.path.join(default_dir, config_file), 'w') as f:
        json.dump({"default": True}, f)

# Create some company-specific config files
company_dir = os.path.join(config_base, 'TestCompany')
with open(os.path.join(company_dir, 'ChatChainConfig.json'), 'w') as f:
    json.dump({"company": "TestCompany"}, f)

# Patch the root variable in the function to use our temp directory
root = temp_dir

def get_config(company):
    """
    return configuration json files for ChatChain
    user can customize only parts of configuration json files, other files will be left for default
    Args:
        company: customized configuration name under CompanyConfig/

    Returns:
        path to three configuration jsons: [config_path, config_phase_path, config_role_path]
    """
    config_dir = os.path.join(root, 'CompanyConfig', company)
    default_config_dir = os.path.join(root, 'CompanyConfig', 'Default')
    config_files = ['ChatChainConfig.json', 'PhaseConfig.json', 'RoleConfig.json']
    config_paths = []
    for config_file in config_files:
        company_config_path = os.path.join(config_dir, config_file)
        default_config_path = os.path.join(default_config_dir, config_file)
        if os.path.exists(company_config_path):
            config_paths.append(company_config_path)
        else:
            config_paths.append(default_config_path)
    return tuple(config_paths)

ARGS = {
    "company": "TestCompany"
}
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 tuple, ndim 1, dtype family float — a tuple 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
FairyFali/AgentTTS/code_others/archon_taskbench.py
code served (permissive licence) · get_code("043fc4b1c4483d0c")
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 code for get_prompt function

ARGS = {
    'dependency_type': 'resource'
}
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
assign_chatchain_cycleNum Not yet run
unverified (harvested, no recorded run)
FairyFali/AgentTTS/code_chatdev/gen_configs.py
code served (permissive licence) · get_code("6f9ada868beb8194")
How it ran

no invocation recorded.

assign_phase_models Not yet run
unverified (harvested, no recorded run)
FairyFali/AgentTTS/code_chatdev/gen_configs.py
code served (permissive licence) · get_code("1abfe61beaf52e0a")
How it ran

no invocation recorded.

Also present in other papers' code

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

Test-time scaling (TTS) enhances the performance of large language models (LLMs) by allocating additional compute resources during inference. However, existing research primarily investigates TTS in single-stage tasks; while many real-world problems are multi-stage complex tasks, composed of a sequence of heterogeneous subtasks with each subtask requires LLM of specific capability. Therefore, we study a novel problem: the test-time compute-optimal scaling in multi-stage complex tasks, aiming to select suitable models and allocate budgets per subtask to maximize overall performance. TTS in multi-stage tasks introduces two fundamental challenges: (i) The combinatorial search space of model and budget allocations, combined with the high cost of inference, makes brute-force search impractical. (ii) The optimal model and budget allocations across subtasks are interdependent, increasing the complexity of the compute-optimal search. To address this gap, we conduct extensive pilot experiments on four tasks across six datasets, deriving three empirical insights characterizing the behavior of LLMs in multi-stage complex tasks. Informed by these insights, we propose AgentTTS, an LLM-agent-based framework that autonomously searches for compute-optimal allocations through iterative feedback-driven interactions with the execution environment. Experimental results demonstrate that AgentTTS significantly outperforms traditional and other LLM-based baselines in search efficiency, and shows improved robustness to varying training set sizes and enhanced interpretability. 2 * Work done during an internship at Amazon.

For agents

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

get_harvested_code_for_paper("2508.00890")
get_code_for_paper("2508.00890")
have("2508.00890")

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

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

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

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

Connect an agent — have() is free.