SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.04178 · 2025

OpenThoughts: Data Recipes for Reasoning Models

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 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; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2506.04178.json · badge: /api/ran/2506.04178.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
open-thoughts/open-thoughts canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
combine Ran
ran on a synthesized input
open-thoughts/open-thoughts/open_thoughts/code/combine.py
code served (permissive licence) · get_code("d367d83baeee3b42")
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 Dataset. 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.

from datasets import Dataset, Sequence, Value

# Create minimal mock datasets that support the required operations
def create_mock_dataset(num_examples=2):
    data = {
        'language': ['Python'] * num_examples,
        'difficulty': ['easy'] * num_examples,
        'source': ['test'] * num_examples,
        'other_field': ['content'] * num_examples,
    }
    return Dataset.from_dict(data)

# Create datasets for each required key
apps_dataset = create_mock_dataset(2)
taco_dataset = create_mock_dataset(2)
codeforces_dataset = create_mock_dataset(2)
code_contests_dataset = create_mock_dataset(2)

# Add 'solutions' column to datasets so they can be removed
apps_dataset = apps_dataset.add_column('solutions', [['sol1'], ['sol2']])
taco_dataset = taco_dataset.add_column('solutions', [['sol1'], ['sol2']])
codeforces_dataset = codeforces_dataset.add_column('solutions', [['sol1'], ['sol2']])
code_contests_dataset = code_contests_dataset.add_column('solutions', [['sol1'], ['sol2']])

datasets_dict = {
    'codeparrot/apps': apps_dataset,
    'BAAI/TACO': taco_dataset,
    'MatrixStudio/Codeforces-Python-Submissions': codeforces_dataset,
    'deepmind/code_contests': code_contests_dataset,
}

ARGS = {
    'datasets_dict': datasets_dict,
    'dry_run': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
format_code_prompt Ran
ran on a synthesized input
open-thoughts/open-thoughts/open_thoughts/prompt.py
code served (permissive licence) · get_code("48f89be69f26ec72")
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

ARGS = {
    'x': {
        'test_cases': json.dumps({'fn_name': 'solve'}),
        'problem': 'Write a function that takes two integers and returns their sum.',
        'starter_code': 'def solve(a, b):\n    return a + b'
    }
}
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
fuzz_string_pair Ran
ran on a synthesized input
open-thoughts/open-thoughts/open_thoughts/deduplicate.py
code served (permissive licence) · get_code("a0b679be5e14343d")
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 list, ndim 2, 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.

from typing import List, Tuple

# Set up arguments for fuzz_string_pair function
str1 = "hello world"

values2 = [
    "hello world",
    "hello there",
    "goodbye world",
    "hi earth",
    "hello"
]

similarity_threshold = 70.0

ARGS = {
    "str1": str1,
    "values2": values2,
    "similarity_threshold": similarity_threshold
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
rapidfuzz — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list 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
map_numina_conversations Ran
ran on a synthesized input
open-thoughts/open-thoughts/open_thoughts/prompt.py
code served (permissive licence) · get_code("c80a43241d8613b4")
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

torch.manual_seed(0)

SKY_T1_SYSTEM_PROMPT = "Your role as an assistant involves thoroughly exploring questions through a systematic long thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracing, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution. In the Thought section, detail your reasoning process using the specified format: <|begin_of_thought|> {thought with steps separated with '\\n\\n'} <|end_of_thought|> Each step should include detailed considerations such as analisying questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The solution should remain a logical, accurate, concise expression style and detail necessary step needed to reach the conclusion, formatted as follows: <|begin_of_solution|> {final formatted, precise, and clear solution} <|end_of_solution|> Now, try to solve the following question through the above guidelines:"

x = {
    'problem': 'Solve for x: 2x + 3 = 7',
    'reasoning': 'We need to isolate x on one side of the equation.\n\nFirst, subtract 3 from both sides: 2x = 4\n\nThen, divide both sides by 2: x = 2',
    'deepseek_solution': 'Subtracting 3 from both sides gives 2x = 4. Dividing by 2 gives x = 2.'
}

ARGS = {
    'x': x
}
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
map_to_share_gpt Ran
ran on a synthesized input
open-thoughts/open-thoughts/open_thoughts/prompt.py
code served (permissive licence) · get_code("c6bdcee15fe80913")
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

SKY_T1_SYSTEM_PROMPT = "Your role as an assistant involves thoroughly exploring questions through a systematic long thinking process before providing the final precise and accurate solutions. This requires engaging in a comprehensive cycle of analysis, summarizing, exploration, reassessment, reflection, backtracing, and iteration to develop well-considered thinking process. Please structure your response into two main sections: Thought and Solution. In the Thought section, detail your reasoning process using the specified format: <|begin_of_thought|> {thought with steps separated with '\\n\\n'} <|end_of_thought|> Each step should include detailed considerations such as analisying questions, summarizing relevant findings, brainstorming new ideas, verifying the accuracy of the current steps, refining any errors, and revisiting previous steps. In the Solution section, based on various attempts, explorations, and reflections from the Thought section, systematically present the final solution that you deem correct. The solution should remain a logical, accurate, concise expression style and detail necessary step needed to reach the conclusion, formatted as follows: <|begin_of_solution|> {final formatted, precise, and clear solution} <|end_of_solution|> Now, try to solve the following question through the above guidelines:"

def format_code_prompt(x):
    formatted_prompt = ''
    data = json.loads(x['test_cases'])
    if not data.get('fn_name'):
        formatted_prompt += 'Generate an executable Python function generated from the given prompt. The function should take stdin as input and print the output. Simply call the function after the definition.'
    else:
        formatted_prompt += 'Generate an executable Python function generated from the given prompt. Return the function body without invoking it at the final solution.'
    formatted_prompt += x['problem']
    if x['starter_code'] is not None:
        data = x['starter_code']
        data = '\n' + data
        formatted_prompt += data
    return formatted_prompt

def map_to_share_gpt(x):
    if x['domain'] == 'code' and 'formatted_prompt' not in x:
        user = format_code_prompt(x)
    elif x['domain'] == 'math':
        user = f"Return your final response within \\boxed{{}}. {x['question']}"
    else:
        user = x['question']
    return {'system': SKY_T1_SYSTEM_PROMPT, 'conversations': [{'from': 'user', 'value': user}, {'from': 'assistant', 'value': f"<|begin_of_thought|>\n\n{x['reasoning']}\n\n<|end_of_thought|>\n\n<|begin_of_solution|>\n\n{x['deepseek_solution']}\n\n<|end_of_solution|>"}]}

ARGS = {
    'x': {
        'domain': 'code',
        'problem': 'Write a function that computes the sum of two numbers.',
        'test_cases': json.dumps({'fn_name': 'add', 'cases': [{'input': '1 2', 'output': '3'}]}),
        'starter_code': 'def add(a, b):\n    pass',
        'question': None,
        'reasoning': 'We need to add two numbers together. First, parse the input to get the two numbers. Then compute their sum and return it.',
        'deepseek_solution': 'def add(a, b):\n    return a + b\n\nresult = add(1, 2)\nprint(result)'
    }
}
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
mocked_reasoner Ran
ran on a synthesized input
open-thoughts/open-thoughts/open_thoughts/reason.py
code served (permissive licence) · get_code("c9be840b496a15cd")
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 Dataset. 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 datasets import Dataset

torch.manual_seed(0)

# Create a minimal dataset with at least one column
# The function uses ds.map(), ds.add_column(), and len(ds)
data = {
    'text': ['sample text 1', 'sample text 2'],
    'answer': ['answer 1', 'answer 2']
}
ds = Dataset.from_dict(data)

ARGS = {
    'ds': ds,
    'answer_column': 'answer'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
datasets, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Dataset — a Dataset output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dataset output the recorded ndim 1 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
deduplicate Not yet run
unverified (harvested, no recorded run)
open-thoughts/open-thoughts/open_thoughts/deduplicate.py
code served (permissive licence) · get_code("d1c3dd92128dd7b2")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

Reasoning models have made rapid progress on many benchmarks involving math, code, and science. Yet, there are still many open questions about the best training recipes for reasoning since state-of-the-art models often rely on proprietary datasets with little to no public information available. To address this, the goal of the OpenThoughts project is to create open-source datasets for training reasoning models. After initial explorations, our OpenThoughts2-1M dataset led to OpenThinker2-32B, the first model trained on public reasoning data to match DeepSeek-R1-Distill-32B on standard reasoning benchmarks such as AIME and LiveCodeBench. We then improve our dataset further by systematically investigating each step of our data generation pipeline with 1,000+ controlled experiments, which led to OpenThoughts3. Scaling the pipeline to 1.2M examples and using QwQ-32B as teacher yields our OpenThoughts3-7B model, which achieves state-of-the-art results: 53% on AIME 2025, 51% on LiveCodeBench 06/24-01/25, and 54% on GPQA Diamond - improvements of 15.3, 17.2, and 20.5 percentage points compared to the DeepSeek-R1-Distill-Qwen-7B. All of our datasets and models are available on https://openthoughts.ai.

For agents

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

get_harvested_code_for_paper("2506.04178")
get_code_for_paper("2506.04178")
have("2506.04178")

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

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

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

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

Connect an agent — have() is free.