SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.14275 · ICML · 2025

Leveraging Online Olympiad-Level Math Problems for LLMs Training and Contamination-Resistant Evaluation

Renjie Liao, Christos Thrampoulidis, Leonid Sigal, Sadegh Mahdavi, Muchen Li, Kaiwen Liu

arXiv · PDF · Open in the Atlas

Code that ran

10 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; 0 honoured the contract we drafted, 0 violated it and 10 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/2501.14275.json · badge: /api/ran/2501.14275.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
dsl-lab/aops canonical (classifier label)
classifier basis not recorded on the link
10 ran · 1 no recorded run
FunctionStatusWhere it lives
find_post_year Ran
ran on a synthesized input
dsl-lab/aops/aops_crawler/clean_raw.py
code served (permissive licence) · get_code("fe1c5e8181b64c3c")
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 datetime. 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 datetime

# The function expects all_posts to be a list (or list-like)
# where the first element is a dict with a 'post_time' key
# that contains a Unix timestamp (number)

ARGS = {
    'all_posts': [
        {
            'post_time': 1609459200,  # 2021-01-01 00:00:00 UTC
            'title': 'First post',
            'content': 'Some content'
        },
        {
            'post_time': 1609545600,  # 2021-01-02 00:00:00 UTC
            'title': 'Second post',
            'content': 'More content'
        }
    ]
}
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 datetime — a datetime output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a datetime 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_instruct_formalize_answer Ran
ran on a synthesized input
dsl-lab/aops/aops/few_shot_prompt.py
code served (permissive licence) · get_code("74bdf493edad4b7d")
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

torch.manual_seed(0)

ARGS = {
    "question": "What is the solution to the equation 2x + 3 = 7?",
    "answer": "First, subtract 3 from both sides to get 2x = 4. Then divide both sides by 2 to get x = 2."
}
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
get_instruct_formalize_question Ran
ran on a synthesized input
dsl-lab/aops/aops/few_shot_prompt.py
code served (permissive licence) · get_code("a0376cee46c008fc")
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

# The function takes two string parameters: question and answer
# Let's construct valid arguments

question = "What is the sum of the angles in a triangle? [asy] draw((0,0)--(1,0)--(0.5,1)--cycle); [/asy]"
answer = "The sum of the angles in a triangle is 180 degrees."

ARGS = {
    "question": question,
    "answer": answer
}
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
get_longest_solution Ran
ran on a synthesized input
dsl-lab/aops/classify_aops.py
code served (permissive licence) · get_code("3346c670489dfe45")
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.

class MockData:
    def __init__(self):
        self.posts = {
            1: {'post_canonical': 'This is a short answer'},
            2: {'post_canonical': 'This is a much longer answer with more content and details'},
            3: {'post_canonical': 'Medium length answer here'},
        }
    
    def get_post_by_number(self, post_number, example):
        return self.posts.get(post_number)

data = MockData()

example = {
    'parsed': {
        'answers': [
            {'post_number': 1},
            {'post_number': 2},
            {'post_number': 3},
        ]
    }
}

ARGS = {
    'data': data,
    'example': example,
}
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_prompt_format Ran
ran on a synthesized input
dsl-lab/aops/aops/few_shot_annotate.py
code served (permissive licence) · get_code("1a400d0b49174a55")
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

torch.manual_seed(0)

# Analyzing the function: it takes three string parameters and formats them into a prompt
# The function only uses string formatting, so we need valid strings for each parameter

question = "What is the derivative of x^2?"
solution_raw = "The derivative of x^2 with respect to x is 2x, using the power rule."
solution_rewrite = "Using the power rule d/dx(x^n) = n*x^(n-1), we get d/dx(x^2) = 2*x^(2-1) = 2x."

ARGS = {
    "question": question,
    "solution_raw": solution_raw,
    "solution_rewrite": solution_rewrite
}
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
get_prompt_format Ran
ran on a synthesized input
dsl-lab/aops/aops/few_shot_annotate_llama.py
code served (permissive licence) · get_code("73f187d527e385d9")
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

ARGS = {
    'question': 'What is the derivative of x^2?',
    'solution_raw': 'The derivative of x^2 with respect to x is 2x, obtained using the power rule.',
    'solution_rewrite': 'Using the power rule: d/dx(x^2) = 2x'
}
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
get_unparsed_batch Ran
ran on a synthesized input
dsl-lab/aops/classify_aops.py
code served (permissive licence) · get_code("9b98b3ce3a455ce5")
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. 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 tempfile
import os

# Create a temporary file for parsed_f
temp_dir = tempfile.gettempdir()
parsed_f = os.path.join(temp_dir, "parsed_ids_test.txt")

# Write some parsed topic IDs to the file
with open(parsed_f, 'w', encoding='utf-8') as f:
    f.write("1\n")
    f.write("3\n")
    f.write("5\n")

# Create sample data_list with data points containing meta information
data_list = [
    {'meta': {'topic_id': '0'}, 'content': 'data0'},
    {'meta': {'topic_id': '1'}, 'content': 'data1'},
    {'meta': {'topic_id': '2'}, 'content': 'data2'},
    {'meta': {'topic_id': '3'}, 'content': 'data3'},
    {'meta': {'topic_id': '4'}, 'content': 'data4'},
    {'meta': {'topic_id': '6'}, 'content': 'data6'},
    {'meta': {'topic_id': '7'}, 'content': 'data7'},
]

# Set up parameters
batch_size = 3

ARGS = {
    'data_list': data_list,
    'batch_size': batch_size,
    'parsed_f': parsed_f
}
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 tuple — a tuple output has no array shape of its own; none is 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_unparsed_batch Ran
ran on a synthesized input
dsl-lab/aops/parse_aops.py
code served (permissive licence) · get_code("9f1f598046ebe8a3")
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 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 torch
import tempfile
import os

# Create a temporary file to act as the parsed_f file
temp_dir = tempfile.gettempdir()
parsed_file = os.path.join(temp_dir, "parsed_ids_test.txt")

# Write some sample parsed IDs to the file
with open(parsed_file, 'w', encoding='utf-8') as f:
    f.write("1\n")
    f.write("3\n")
    f.write("5\n")

# Create sample data_list with distinct topic_ids
data_list = [
    {
        'meta': {'topic_id': 2},
        'content': 'sample data 2'
    },
    {
        'meta': {'topic_id': 4},
        'content': 'sample data 4'
    },
    {
        'meta': {'topic_id': 1},
        'content': 'sample data 1'
    },
    {
        'meta': {'topic_id': 6},
        'content': 'sample data 6'
    },
    {
        'meta': {'topic_id': 7},
        'content': 'sample data 7'
    },
]

batch_size = 2

ARGS = {
    'data_list': data_list,
    'batch_size': batch_size,
    'parsed_f': parsed_file
}
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 tuple, ndim 2, 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
process_data Ran
ran on a synthesized input
dsl-lab/aops/aops_crawler/clean_raw.py
code served (permissive licence) · get_code("020f9cd4a09e546c")
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
import numpy as np

# Construct a valid data argument for process_data
# The function checks for 'error_code' NOT in data['response']
# and 'new_topic_settings' IN data['response']['response']

data = {
    'response': {
        'response': {
            'new_topic_settings': {
                'topic_id': 1,
                'name': 'test_topic'
            }
        }
    }
}

ARGS = {
    'data': data
}
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 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
sanity_check Ran
ran on a synthesized input
dsl-lab/aops/parse_aops.py
code served (permissive licence) · get_code("d681a47633b8316f")
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.

class MockData:
    def __init__(self):
        self.posts = {
            1: {'username': 'alice', 'content': 'First post'},
            2: {'username': 'bob', 'content': 'Second post'},
            3: {'username': 'charlie', 'content': 'Third post'},
        }
    
    def get_post_by_number(self, post_number, post_data):
        return self.posts.get(post_number)

data = MockData()

post_data = {
    'topic_id': 42,
    'title': 'Test Topic',
    'posts': [1, 2, 3]
}

answers = [
    {'post_number': 1, 'user': 'alice'},
    {'post_number': 2, 'user': 'bob'},
    {'post_number': 3, 'user': 'charlie'},
]

ARGS = {
    'data': data,
    'post_data': post_data,
    'answers': answers,
}
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
build_prompt Not yet run
unverified (harvested, no recorded run)
dsl-lab/aops/classify_aops.py
code served (permissive licence) · get_code("403712b231130602")
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-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

Advances in Large Language Models (LLMs) have sparked interest in their ability to solve Olympiad-level math problems. However, the training and evaluation of these models are constrained by the limited size and quality of available datasets, as creating large-scale data for such advanced problems requires extensive effort from human experts. In addition, current benchmarks are prone to contamination, leading to unreliable evaluations. In this paper, we present an automated pipeline that leverages the rich resources of the Art of Problem Solving (AoPS) forum, which predominantly features Olympiad-level problems and community-driven solutions. Using open-source LLMs, we develop a method to extract question-answer pairs from the forum, resulting in AoPS-Instruct, a dataset of more than 600,000 high-quality QA pairs. Our experiments demonstrate that finetuning LLMs on AoPS-Instruct improves their reasoning abilities across various benchmarks. Moreover, we build an automatic pipeline that introduces LiveAoPSBench, an evolving evaluation set with timestamps, derived from the latest forum data, providing a contamination-resistant benchmark for assessing LLM performance. Notably, we observe a significant decline in LLM performance over time, suggesting their success on older examples may stem from pre-training exposure rather than true reasoning ability. Our work presents a scalable approach to creating and maintaining large-scale, high-quality datasets for advanced math reasoning, offering valuable insights into the capabilities and limitations of * Equal Contribution, order decided by a coin flip

For agents

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

get_harvested_code_for_paper("2501.14275")
get_code_for_paper("2501.14275")
have("2501.14275")

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

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

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

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

Connect an agent — have() is free.