SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.12284 · ICLR · 2024

MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models

Zhenguo Li, Adrian Weller, Yu Zhang, Han Shi, James Kwok, Weiyang Liu, Zhengying Liu, Longhui Yu, Weisen Jiang, Jincheng Yu

arXiv · PDF · Open in the Atlas

Code that ran

15 of 22 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, 1 violated it and 0 have no contract verdict; 14 failures of our instrument; 7 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2309.12284.json · badge: /api/ran/2309.12284.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
meta-math/MetaMath canonical (classifier label)
classifier basis: classifier_2025
15 ran · 7 no recorded run
FunctionStatusWhere it lives
is_number Ran
ran, violated the contract we drafted
meta-math/MetaMath/eval_gsm8k.py
code served (permissive licence) · get_code("0fe9cf6c00ef56ea")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:34:05Z). 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.

# Setup code for is_number function

ARGS = {
    "s": "3.14"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
_fix_a_slash_b Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("5e9ee828a2e2425b")
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

def _fix_a_slash_b(string):
    if len(string.split('/')) != 2:
        return string
    a = string.split('/')[0]
    b = string.split('/')[1]
    try:
        a = int(a)
        b = int(b)
        assert string == '{}/{}'.format(a, b)
        new_string = '\\frac{' + str(a) + '}{' + str(b) + '}'
        return new_string
    except:
        return string

ARGS = {
    'string': '3/4'
}
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
_fix_fracs Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("3e4ba8b51b005d2b")
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 torch.nn as nn

# The function _fix_fracs takes a single parameter: string
# It processes LaTeX \frac commands in a string
# The function only uses string operations on the input

ARGS = {
    'string': r'\frac12 + \frac{3}{4}'
}
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
_fix_sqrt Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("4621fed7d175cce7")
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

def _fix_sqrt(string):
    if '\\sqrt' not in string:
        return string
    splits = string.split('\\sqrt')
    new_string = splits[0]
    for split in splits[1:]:
        if split[0] != '{':
            a = split[0]
            new_substr = '\\sqrt{' + a + '}' + split[1:]
        else:
            new_substr = '\\sqrt' + split
        new_string += new_substr
    return new_string


ARGS = {
    'string': 'x + \\sqrt2 + \\sqrt{3} + y'
}
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
_remove_right_units Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("65bd3c41accc64eb")
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

def _remove_right_units(string):
    if '\\text{ ' in string:
        splits = string.split('\\text{ ')
        return splits[0]
    else:
        return string

ARGS = {
    'string': '42\\text{ meters per second'
}
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
_strip_string Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("c6aa3b84fc7a24e9")
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.

# Looking at the function _strip_string, it takes a single parameter: string (str)
# The function performs various string manipulations and transformations
# No torch or complex objects needed - just a string parameter

ARGS = {
    "string": "\\frac{1}{2} \\text{ units} \\sqrt{4} 3/4"
}
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
batch_data Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/eval_gsm8k.py
code served (permissive licence) · get_code("66b3b5450182da3a")
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) and returned list. 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 sys

torch.manual_seed(0)

MAX_INT = sys.maxsize

def batch_data(data_list, batch_size=1):
    n = len(data_list) // batch_size
    batch_data = []
    for i in range(n - 1):
        start = i * batch_size
        end = (i + 1) * batch_size
        batch_data.append(data_list[start:end])
    last_start = (n - 1) * batch_size
    last_end = MAX_INT
    batch_data.append(data_list[last_start:last_end])
    return batch_data


# Create a simple data list with distinct elements
data_list = [
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
]

batch_size = 2

ARGS = {
    "data_list": data_list,
    "batch_size": batch_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
create_response Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("cdd294b5fa8c76de")
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 openai

# Mock the openai.Completion.create to avoid actual API calls
class MockCompletion:
    @staticmethod
    def create(engine, prompt, temperature, max_tokens, top_p, frequency_penalty, presence_penalty, stop, request_timeout):
        return {"choices": [{"text": "Mock response"}]}

openai.Completion = MockCompletion()

ARGS = {
    'prompt_input': 'What is the capital of France?',
    'eng': 'text-davinci-002',
    'max_tokens': 1024,
    'temperature': 0.0,
    'stop': 'Q',
    'timeout': 20
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — 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
create_response_chat Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("e56a1c38554053a2")
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 openai

# Mock the openai.ChatCompletion.create to avoid actual API calls
class MockChatCompletion:
    @staticmethod
    def create(model, messages, temperature, request_timeout):
        return {
            "id": "chatcmpl-123",
            "object": "chat.completion",
            "created": 1234567890,
            "model": model,
            "choices": [
                {
                    "index": 0,
                    "message": {
                        "role": "assistant",
                        "content": "Mock response"
                    },
                    "finish_reason": "stop"
                }
            ],
            "usage": {
                "prompt_tokens": 10,
                "completion_tokens": 5,
                "total_tokens": 15
            }
        }

openai.ChatCompletion = MockChatCompletion()

# Set up arguments for create_response_chat
prompt_input = [
    {"role": "user", "content": "Hello, how are you?"},
    {"role": "assistant", "content": "I'm doing well, thank you!"},
]

eng = 'gpt-3.5-turbo'

temperature = 0.5

timeout = 20

ARGS = {
    'prompt_input': prompt_input,
    'eng': eng,
    'temperature': temperature,
    'timeout': timeout,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — 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
delete_extra_zero Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("b5bd259672545188")
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

def delete_extra_zero(n):
    try:
        n = float(n)
    except:
        return n
    if isinstance(n, int):
        return str(n)
    if isinstance(n, float):
        n = str(n).rstrip('0')
        n = int(n.rstrip('.')) if n.endswith('.') else float(n)
        n = str(n)
        return n

# Test cases for delete_extra_zero function
# The function takes a single parameter 'n' which can be:
# - a number (int or float)
# - a string representation of a number
# - something that cannot be converted to float

ARGS = {
    'n': 3.1400
}
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
extract_math_answer Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("9429b9301289a950")
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

ARGS = {
    'pred_str': 'The answer is 42',
    'split_str': 'The answer is '
}
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_answer_from_chat_model Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("2e11d65849756456")
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 time
import logging

# Create a mock logger
logger = logging.getLogger('test')
logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler()
logger.addHandler(handler)

# Define ARGS dictionary with all parameters for get_answer_from_chat_model
ARGS = {
    'prompt': 'What is 2+2?======This is an example prompt. Based on the pattern shown, answer the following question.',
    'logger': logger,
    'eng': 'gpt-3.5-turbo',
    'temperature': 0.7,
    'timeout': 30,
    'max_try': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai — 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
jload Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/train_math.py
code served (permissive licence) · get_code("d07d04439cd1d44f")
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) 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 io
import json
import tempfile
import os

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

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "dict"}
}

with open(temp_file, 'w') as f:
    json.dump(test_data, f)

# Define ARGS with the file path
ARGS = {
    "f": temp_file,
    "mode": "r"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
remove_boxed Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/eval_math.py
code served (permissive licence) · get_code("f3bbe264b05aadd3")
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) 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.

# Analyze the function
# remove_boxed(s) takes a string parameter 's'
# It checks if the string starts with '\boxed{' and ends with '}'
# If so, it returns the content between them
# Otherwise it returns None

# Create test cases for the ARGS dict
ARGS = {
    "s": "\\boxed{answer}"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
wrapper Ran
ran; our contract draft was wrong, not the code
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("abda8b0048d01129")
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 torch.nn as nn

torch.manual_seed(0)

# Define a simple function that will be called by wrapper
def simple_func(args):
    """A simple function that processes arguments"""
    x, y = args
    return x + y

# Create test arguments
idx = 0
test_x = torch.randn(2, 4)
test_y = torch.randn(2, 4)
args_tuple = (test_x, test_y)

# Construct idx_args as a tuple of (idx, args)
idx_args = (idx, args_tuple)

# Define the ARGS dict with all parameters
ARGS = {
    'idx_args': idx_args,
    'func': simple_func
}
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
BackwardReasoning Not yet run
unverified (harvested, no recorded run)
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("a596c25460663eb8")
How it ran

no invocation recorded.

LogUtils Not yet run
unverified (harvested, no recorded run)
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("71361dae629cb546")
How it ran

no invocation recorded.

PathUtils Not yet run
unverified (harvested, no recorded run)
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("800ac3b48f19f794")
How it ran

no invocation recorded.

answer_cleansing Not yet run
unverified (harvested, no recorded run)
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("c22739942cdfc7de")
How it ran

no invocation recorded.

batch_get_api Not yet run
unverified (harvested, no recorded run)
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("1fde7ca5a428d3fc")
How it ran

no invocation recorded.

batch_get_api_merge Not yet run
unverified (harvested, no recorded run)
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("462b6fd895d0b3e3")
How it ran

no invocation recorded.

batch_get_chat_api Not yet run
unverified (harvested, no recorded run)
meta-math/MetaMath/code_for_generating_data/code/main_backward_reasoning.py
code served (permissive licence) · get_code("220568f45521e253")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 8 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 8 later) and 14 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
jload 46 other papers
9 dated earlier, 1 the same month, 36 later
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
2305.12870 (2023-05)
Lion: Adversarial Distillation of Proprietary Large Language Models
2305.13068 (2023-05)
Making Language Models Better Tool Learners with Execution Feedback
and 43 more not named here
remove_boxed 20 other papers
1 dated earlier, 1 the same month, 18 later · 1 only as an assembly brick
2103.03874 (2021-03)
Measuring Mathematical Problem Solving With the MATH Dataset
2309.06275 (2023-09)
Re-Reading Improves Reasoning in Large Language Models
2310.05914 (2023-10)
NEFTune: Noisy Embeddings Improve Instruction Finetuning
and 17 more not named here
is_number 18 other papers
4 dated earlier, 3 the same month, 11 later
1807.06756 (2018-07)
SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilities
1906.02425 (2019-06)
Uncertainty-guided Continual Learning with Bayesian Neural Networks
2005.00558 (2020-05)
POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training
and 15 more not named here
batch_data 7 other papers
7 later
2404.10346 (2024-04)
Self-Explore: Enhancing Mathematical Reasoning in Language Models with Fine-grained Rewards
2405.06680 (2024-05)
Exploring the Compositional Deficiency of Large Language Models in Mathematical Reasoning Through Trap Problems
2405.14804 (2024-05)
Can LLMs Solve longer Math Word Problems Better?
and 4 more not named here
_fix_a_slash_b
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2502.00334 (2025-02)
UGPhysics: A Comprehensive Benchmark for Undergraduate Physics Reasoning with Large Language Models
_fix_fracs
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2502.00334 (2025-02)
UGPhysics: A Comprehensive Benchmark for Undergraduate Physics Reasoning with Large Language Models
_fix_sqrt
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2502.00334 (2025-02)
UGPhysics: A Comprehensive Benchmark for Undergraduate Physics Reasoning with Large Language Models
_strip_string
brick of this paper's assembly: helper
1 other paper
1 later
2502.00334 (2025-02)
UGPhysics: A Comprehensive Benchmark for Undergraduate Physics Reasoning with Large Language Models

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

Large language models (LLMs) have pushed the limits of natural language understanding and exhibited excellent problem-solving ability. Despite the great success, most existing open-source LLMs (e.g., LLaMA-2) are still far away from satisfactory for solving mathematical problems due to the complex reasoning procedures. To bridge this gap, we propose MetaMath, a finetuned language model that specializes in mathematical reasoning. Specifically, we start by bootstrapping mathematical questions by rewriting the question from multiple perspectives, which results in a new dataset called MetaMathQA. Then we finetune the LLaMA-2 models on MetaMathQA. Experimental results on two popular benchmarks (i.e., GSM8K and MATH) for mathematical reasoning demonstrate that MetaMath outperforms a suite of open-source LLMs by a significant margin. Our MetaMath-7B model achieves 66.5% on GSM8K and 19.8% on MATH, exceeding the state-ofthe-art models of the same size by 11.5% and 8.7%. Particularly, MetaMath-70B achieves an accuracy of 82.3% on GSM8K, slightly better than GPT-3.5-Turbo. We release the MetaMathQA dataset, the MetaMath models with different model sizes and the training code for public use. Meta-Question: James buys 5 packs of beef that are 4 pounds each.

For agents

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

get_harvested_code_for_paper("2309.12284")
get_code_for_paper("2309.12284")
have("2309.12284")

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

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

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

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

Connect an agent — have() is free.