SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.11666 · 2026

Evolutionary Task Discovery: Advancing Reasoning Frontiers via Skill Composition and Complexity Scaling

Chao Zhang, Yanbin Yin, Sudheer Chava, Yuzhao Heng, Michael Galarnyk, Liqin Ye

arXiv · PDF

Code that ran

9 of 12 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, 5 violated it and 0 have no contract verdict; 4 failures of our instrument; 3 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/2605.11666.json · badge: /api/ran/2605.11666.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
liqinye/EvoTD canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
check_determinism Ran
ran, violated the contract we drafted
liqinye/EvoTD/src/utils/checks.py
code served (permissive licence) · get_code("c891f12deed31373")
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 hashlib
import torch

class MockExecutor:
    """Mock executor that runs code and returns deterministic output"""
    def run_code(self, code: str, inputs: str):
        # Simple mock that returns a deterministic string result
        return ("output_result", "success")

torch.manual_seed(0)

ARGS = {
    "code": "print('hello world')",
    "inputs": "x = 1",
    "executor": MockExecutor(),
    "prev_output": None,
    "n_runs": 2
}
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
check_no_definitions Ran
ran, violated the contract we drafted
liqinye/EvoTD/src/utils/checks.py
code served (permissive licence) · get_code("7c5bfa5e64c2cf12")
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
from typing import List

# The function check_no_definitions takes:
# 1. code: str - Python code to parse
# 2. composite_functions: List[str] - list of function names to check for

# Let's construct valid arguments

# Example 1: code with no function definitions
code_no_defs = """
x = 5
y = x + 10
print(y)
"""

# Example 2: code with a function definition that is NOT in composite_functions
code_with_unrelated_func = """
def helper():
    return 42

x = helper()
"""

# Example 3: code with a function definition that IS in composite_functions
code_with_composite = """
def process_data():
    return [1, 2, 3]

y = process_data()
"""

# List of composite function names to check against
composite_functions_list = ["process_data", "transform", "aggregate"]

ARGS = {
    "code": code_no_defs,
    "composite_functions": composite_functions_list
}
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
contains_banned_imports Ran
ran, violated the contract we drafted
liqinye/EvoTD/src/utils/checks.py
code served (permissive licence) · get_code("14ce7d41383636f4")
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
import re
from typing import List

# Test case 1: Code with banned import
code_with_banned = """
import os
import sys
from requests import get
"""

# Test case 2: Code without banned imports
code_without_banned = """
import math
import json
from collections import defaultdict
"""

# Test case 3: Code with nested banned module
code_with_nested_banned = """
from scipy.special import bessel
"""

# Test case 4: Code with assert statement (for error/exception checking)
code_with_assert = """
def foo():
    assert True
"""

# Test case 5: Code with raise statement (for error/exception checking)
code_with_raise = """
def bar():
    raise ValueError("test")
"""

# Test case 6: Code with try-except (for error/exception checking)
code_with_try = """
try:
    x = 1
except Exception:
    pass
"""

# Create the ARGS dictionary with all required parameters
ARGS = {
    "code": code_with_banned,
    "banned_keywords": ["requests", "os", "urllib"],
    "banned_keywords_for_errors_and_exceptions": ["assert", "raise", "try", "except"]
}
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
generate_reflection_prompt Ran
ran; our contract draft was wrong, not the code
liqinye/EvoTD/src/prompts.py
code served (permissive licence) · get_code("4a47f642a1a60100")
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 generate_reflection_prompt function

ARGS = {
    "skill_list": [
        "Dynamic Programming",
        "Binary Search",
        "Graph Traversal",
        "Sorting",
        "Hash Table",
        "Two Pointers",
        "Greedy Algorithm",
        "Recursion"
    ],
    "code_snippet": """
def binary_search(arr, target):
    left, right = 0, len(arr) - 1
    while left <= right:
        mid = (left + right) // 2
        if arr[mid] == target:
            return mid
        elif arr[mid] < target:
            left = mid + 1
        else:
            right = mid - 1
    return -1
"""
}
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_code_problem_predictor_prompt Ran
ran; our contract draft was wrong, not the code
liqinye/EvoTD/src/prompts.py
code served (permissive licence) · get_code("0359d2b5bb763b57")
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
from typing import List, Tuple

torch.manual_seed(0)

# Define test data for different problem types
ARGS = {
    "problem_type": "code_func",
    "snippet": "def add(a, b):\n    return a + b",
    "input": "2, 3",
    "output": "5",
    "problem": "Write a function that adds two numbers together",
    "input_output_pairs": [
        ("2, 3", "5"),
        ("10, 20", "30"),
        ("-5, 5", "0"),
    ]
}
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
has_test_input Ran
ran, violated the contract we drafted
liqinye/EvoTD/src/utils/parsers.py
code served (permissive licence) · get_code("ab2b0c92bd727ae9")
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 re

def has_test_input(snippet_code: str) -> bool:
    test_patterns = ['(?i)#\\s*(test|example)', '\\b(input|test_input|sample_input)\\b\\s*=', '\\b\\w*input\\w*\\s*=\\s*', '\\b(expected|output|result)\\s*=\\s*', '\\bassert\\b', 'print\\s*\\(\\s*f\\(', 'f\\(\\[.*\\]\\)', 'f\\([^)]*\\)\\s*(#|$)', '^\\s*input\\s*$']
    return any((re.search(pattern, snippet_code, re.MULTILINE) for pattern in test_patterns))

# Test with a simple snippet that contains a test input pattern
snippet1 = """
def my_function(x):
    # test example
    input_data = [1, 2, 3]
    return sum(input_data)
"""

snippet2 = """
def calculate(a, b):
    result = a + b
    return result
"""

snippet3 = """
test_input = [1, 2, 3]
expected = 6
"""

ARGS = {
    "snippet_code": snippet1
}
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
strip_json Ran
ran; our contract draft was wrong, not the code
liqinye/EvoTD/src/utils/parsers.py
code served (permissive licence) · get_code("a3af72d6d85018e3")
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 re

def strip_json(response: str) -> str:
    clean = re.sub('```json\\s*|\\s*```', '', response)
    return clean.strip()

# The function takes a single parameter: response (str)
# It removes markdown code fence syntax for JSON blocks and strips whitespace

ARGS = {
    "response": "```json\n{\"key\": \"value\"}\n```"
}
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
strip_think_token Ran
ran; our contract draft was wrong, not the code
liqinye/EvoTD/src/utils/parsers.py
code served (permissive licence) · get_code("13bf57e5913a0b39")
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 re

def strip_think_token(response: str) -> str:
    clean = re.sub('<think>.*?</think>', '', response, flags=re.DOTALL)
    clean = re.sub('\\n\\s*\\n+', '\n\n', clean)
    return clean.strip()

# Test inputs with various patterns
ARGS = {
    "response": "This is a test.\n<think>Some internal reasoning here</think>\nThis is the output.\n\n\nMultiple newlines."
}
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
to_bool Ran
ran, violated the contract we drafted
liqinye/EvoTD/src/utils/equality.py
code served (permissive licence) · get_code("1fc961efe6e4123c")
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
import numpy as np
import ast

torch.manual_seed(0)

# The function to_bool takes a single parameter 'value'
# Let's create test cases that exercise different code paths

ARGS = {
    "value": "true"  # Test with a string that converts to True
}
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 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
deep_equal Not yet run
unverified (harvested, no recorded run)
liqinye/EvoTD/src/utils/equality.py
code served (permissive licence) · get_code("ab00e2f134f1d2d4")
How it ran

no invocation recorded.

format_reward Not yet run
unverified (harvested, no recorded run)
liqinye/EvoTD/src/reward_function.py
code served (permissive licence) · get_code("d67cad27811abe22")
How it ran

no invocation recorded.

run_huggingface_download Not yet run
unverified (harvested, no recorded run)
liqinye/EvoTD/src/utils/remove_think_qwen3_tokenizer.py
code served (permissive licence) · get_code("d1604f4eadcbe65a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 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.

FunctionAlso present inEarliest-datedOthers named
run_huggingface_download 1 other paper
1 dated earlier
2505.03335 (2025-05)
Absolute Zero: Reinforced Self-play Reasoning with Zero Data

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

The reasoning frontier of Large Language Models (LLMs) has advanced significantly through modern post-training paradigms (e.g., Reinforcement Learning from Verifiable Rewards (RLVR)). However, the efficacy of these methods remains fundamentally constrained by the diversity and complexity of the training data. One practical solution is data synthesis; yet, prevalent methods relying on unstructured mutation or exploration suffer from homogeneity collapse, failing to systematically expand the reasoning frontier. To overcome this, we propose Evolutionary Task Discovery (EVOTD), a framework that treats data synthesis as a directed search over a dual-axis manifold of Algorithmic Skills and Complexity Attributes. We introduce structured evolutionary operators to navigate this space: a Crossover operator that synthesizes novel skill compositions to enhance diversity, and a Parametric Mutation operator that scales structural constraints (e.g., input size, tree depth) to drive robust generalization. Crucially, we integrate a dynamic Zone of Proximal Development filter, ensuring tasks lie within the learnable region of the model. Empirically, EVOTD delivers substantial reasoning gains that generalize consistently across model architectures, pretraining regimes, and scales, demonstrating that structured evolutionary curricula can effectively support reasoning improvement. We release our code on https://github.com/liqinye/EvoTD.

For agents

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

get_harvested_code_for_paper("2605.11666")
get_code_for_paper("2605.11666")
have("2605.11666")

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

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

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

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

Connect an agent — have() is free.