SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2025.findings-acl.605 · ACL Findings · 2025

LEMMA: Learning from Errors for MatheMatical Advancement in LLMs

Wei Wu, Lijun Wu, Yu Li, Qizhi Pei, Conghui He, Honglin Lin, H Zhao, Zhuoshi Pan, Chenlin Ming, Zinan Tang

Open in the Atlas

Code that ran

13 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 11 have no contract verdict; 1 failure of our instrument; 3 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2025.findings-acl.605.json · badge: /api/ran/2025.findings-acl.605.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
ytyz1307zzh/RefAug canonical (classifier label)
classifier basis: census
13 ran · 3 no recorded run
FunctionStatusWhere it lives
api_endpoint_from_url Ran
ran; our contract draft was wrong, not the code
ytyz1307zzh/RefAug/src/utils/openai_parallel_request.py
code served (permissive licence) · get_code("4d9eaca9e25c5a7a")
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 api_endpoint_from_url(request_url):
    """Extract the API endpoint from the request URL."""
    match = re.search('^https://[^/]+/v\\d+/(.+)$', request_url)
    if match is None:
        match = re.search('^https://[^/]+/openai/deployments/[^/]+/(.+?)(\\?|$)', request_url)
    return match[1]

# Test case 1: Standard API endpoint format
request_url_1 = "https://api.example.com/v1/chat/completions"

# Test case 2: Azure OpenAI deployment format
request_url_2 = "https://my-resource.openai.azure.com/openai/deployments/my-deployment/chat/completions?api-version=2023-05-15"

ARGS = {
    "request_url": request_url_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
check_repeated_ending Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/evaluate/remove_followup.py
code served (permissive licence) · get_code("95e3f095de9ac6bc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Construct a string with a repeated ending pattern
# The function looks for n-grams that repeat at least 6 times at the end
text = "abcabcabcabcabcabcabc"

ARGS = {
    "text": text
}
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 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
concat_messages_format Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/model/inference.py
code served (permissive licence) · get_code("a4d7300852e9e70d")
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

class MockTokenizer:
    def __init__(self):
        self.eos_token = '<|end|>'

example = {
    'messages': [
        {'role': 'system', 'content': 'You are a helpful assistant.'},
        {'role': 'user', 'content': 'What is 2 + 2?'},
        {'role': 'assistant', 'content': 'The answer is 4.'},
    ],
    'response_prefix': 'Let me think about this...'
}

tokenizer = MockTokenizer()

ARGS = {
    'example': example,
    'tokenizer': tokenizer
}
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
concat_prompt_completion_format Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/model/inference.py
code served (permissive licence) · get_code("62caf75ed6f89233")
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

torch.manual_seed(0)

example = {
    'prompt': '  What is the capital of France?  ',
    'response_prefix': 'The answer is '
}

splitter = '\n\n'

ARGS = {
    'example': example,
    'splitter': splitter
}
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
floatify Ran
ran, honoured the contract we drafted
ytyz1307zzh/RefAug/src/evaluate/eval_mathinstruct.py
code served (permissive licence) · get_code("f8cd262700389f42")
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 float, 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

ARGS = {
    "num": "42.5"
}
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 float, 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
get_hits Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/evaluate/check_overlap.py
code served (permissive licence) · get_code("370625cf69c4efc7")
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.

from nltk.util import ngrams

# Construct valid arguments for get_hits function

# Create a simple example dict with 'id' and a text column
example = {
    'id': 'train_001',
    'text': 'the quick brown fox jumps over the lazy dog'
}

# Create an index structure
# index maps test_id -> {ngram_n -> list of test_ngrams}
index = {
    'test_001': {
        -1: ['quick brown', 'lazy dog'],  # full string checks
        1: ['the', 'quick', 'brown', 'fox'],  # unigrams
        2: ['quick brown', 'brown fox', 'over the']  # bigrams
    },
    'test_002': {
        -1: ['jumps over'],
        1: ['jumps', 'over'],
        2: ['jumps over', 'the lazy']
    }
}

# Define the arguments
ARGS = {
    'example': example,
    'index': index,
    'column': 'text',
    'ngram_n': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — 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
get_instruction Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/model/inference.py
code served (permissive licence) · get_code("7a35e514cdc2b061")
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)

# Test case 1: example with 'instruction' key
example_instruction = {
    'instruction': 'Translate the following text to French.'
}

# Test case 2: example with 'question' key
example_question = {
    'question': 'What is the capital of France?'
}

# Test case 3: example with 'prompt' key
example_prompt = {
    'prompt': 'Complete this sentence: The quick brown fox...'
}

# Test case 4: example with 'messages' key
example_messages = {
    'messages': [
        {'role': 'system', 'content': 'You are a helpful assistant.'},
        {'role': 'user', 'content': 'What is 2+2?'}
    ]
}

# Use the first example with 'instruction' key
ARGS = {
    'example': example_instruction
}
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
load_test_dataset Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/evaluate/check_overlap.py
code served (permissive licence) · get_code("f4166e0359f432b3")
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
import tempfile
import os

# Create a temporary JSON file with test data
test_data = [
    {
        'id': 'MATH-1',
        'question': 'What is 2 + 2?',
        'solution': 'We have 2 + 2 = 4. The answer is 4.'
    },
    {
        'id': 'gsm8k-1',
        'question': 'John has 5 apples. He buys 3 more. How many does he have?',
        'answer': 'John starts with 5 apples.\n5 + 3 = <<5 + 3 = 8>>.\n#### 8'
    },
    {
        'id': 'MATH-2',
        'question': 'Solve x^2 = 4',
        'solution': 'Taking the square root of both sides: x = 2 or x = -2. The answer is x = ±2.'
    },
    {
        'id': 'other-1',
        'question': 'This should be skipped',
        'answer': 'Not included'
    },
    {
        'id': 'gsm8k-2',
        'question': 'Alice has 10 dollars. She spends 3 dollars. How much remains?',
        'answer': 'Alice starts with 10 dollars.\n10 - 3 = <<10 - 3 = 7>>.\n#### 7'
    }
]

# Create a temporary file
temp_fd, temp_path = tempfile.mkstemp(suffix='.json', text=True)
try:
    with os.fdopen(temp_fd, 'w', encoding='utf-8') as f:
        json.dump(test_data, f)
    
    ARGS = {
        'data_path': temp_path
    }
finally:
    # Clean up will happen after the function executes
    pass
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
make_test_index Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/evaluate/check_overlap.py
code served (permissive licence) · get_code("fd8f28599ff6f900")
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 defaultdict. 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 nltk.util import ngrams
from collections import defaultdict

# Create a small stand-in id2example dict
# The function expects id2example to be a dict where each value is an object
# that supports indexing with a key (like a dict or object with __getitem__)
id2example = {
    "id_1": {
        "text": "the quick brown fox jumps over the lazy dog and the quick brown fox"
    },
    "id_2": {
        "text": "hello world this is a test sentence for ngram extraction"
    },
}

key = "text"

ARGS = {
    "id2example": id2example,
    "key": key,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type defaultdict — a defaultdict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a defaultdict 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
merge_lists Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/model/merge_output_data.py
code served (permissive licence) · get_code("28e7a3e67ab0f909")
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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create temporary JSON files with test data
temp_dir = tempfile.mkdtemp()

# Create first test file
file1_path = os.path.join(temp_dir, "data1.json")
with open(file1_path, 'w', encoding='utf8') as f:
    json.dump([{"id": 1, "text": "hello"}, {"id": 2, "text": "world"}], f)

# Create second test file
file2_path = os.path.join(temp_dir, "data2.json")
with open(file2_path, 'w', encoding='utf8') as f:
    json.dump([{"id": 3, "text": "foo"}, {"id": 4, "text": "bar"}, {"id": 5, "text": "baz"}], f)

ARGS = {
    "input_files": [file1_path, file2_path]
}
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 list, ndim 1, 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
number_it Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/evaluate/eval_mathinstruct.py
code served (permissive licence) · get_code("ad0d81c576d94861")
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 float, 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 floatify(num: str):
    try:
        num = float(num)
        if num.is_integer():
            return round(num)
        else:
            return num
    except Exception:
        return None

def number_it(num: str):
    if num.count('^') == 1:
        num = num.replace('^', '**')
    if 'frac' in num:
        pattern = '\\\\frac\\{([^{}]+)\\}\\{([^{}]+)\\}'
        num = re.sub(pattern, '\\1/\\2', num)
        try:
            num = str(eval(num))
        except Exception:
            pass
    elif ',' in num:
        num = num.replace(',', '')
    if floatify(num) is not None:
        return floatify(num)
    else:
        try:
            num = eval(num)
            if isinstance(num, list) or isinstance(num, tuple):
                num = num[0]
            if floatify(num) is not None:
                return floatify(num)
            else:
                return None
        except Exception:
            return None

ARGS = {
    "num": "3.14"
}
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 float, 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
read_jsonl_as_list Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/evaluate/error_analysis.py
code served (permissive licence) · get_code("57394a4d47335a0e")
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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os

# Create a temporary JSONL file with sample data
temp_dir = tempfile.mkdtemp()
jsonl_path = os.path.join(temp_dir, 'test_data.jsonl')

# Write sample JSONL data
sample_data = [
    {"id": 1, "text": "hello world"},
    {"id": 2, "text": "foo bar"},
    {"id": 3, "text": "test data"}
]

with open(jsonl_path, 'w', encoding='utf8') as fout:
    for item in sample_data:
        fout.write(json.dumps(item) + '\n')

ARGS = {
    'path': jsonl_path
}
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 list, ndim 1, 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
split_list Ran
ran on a synthesized input
ytyz1307zzh/RefAug/src/model/split_input_data.py
code served (permissive licence) · get_code("cacfcace64980427")
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 generator. 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)

# Analyze the function:
# - split_list takes input_list (a list) and n (an integer)
# - It uses len(input_list), divmod, and list slicing
# - No special attributes or methods are called on the list elements
# - The function splits a list into n roughly equal parts

# Create a simple list to split
input_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Create n as the number of chunks to split into
n = 3

ARGS = {
    "input_list": input_list,
    "n": n
}
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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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
chatgpt_single_turn_inference Not yet run
unverified (harvested, no recorded run)
ytyz1307zzh/RefAug/src/utils/gpt_utils.py
code served (permissive licence) · get_code("98fe0cc868dff837")
How it ran

no invocation recorded.

num_tokens_consumed_from_request Not yet run
unverified (harvested, no recorded run)
ytyz1307zzh/RefAug/src/utils/openai_parallel_request.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Leirunlin/Text-level-Graph-Attack, is pointer only (licence: NONE) · get_code("27007d0ec4adb00b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Leirunlin/Text-level-Graph-Attack, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

within_eps Not yet run
unverified (harvested, no recorded run)
ytyz1307zzh/RefAug/src/evaluate/eval_mathinstruct.py
code served (permissive licence) · get_code("98b05a45dfc53b99")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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
num_tokens_consumed_from_request 4 other papers
4 dated earlier
2309.07430 (2023-09)
Adapted Large Language Models Can Outperform Medical Experts in Clinical Text Summarization
2309.16595 (2023-09)
Can LLMs Effectively Leverage Graph Structural Information through Prompts, and Why?
2403.06754 (2024-03)
ALaRM: Align Language Models via Hierarchical Rewards Modeling
and 1 more not named here
floatify 3 other papers
2 dated earlier, 1 same year, order not determinable
2402.05808 (2024-02)
Training Large Language Models for Reasoning through Reverse Curriculum Reinforcement Learning
2412.01981 (2024-12)
Free Process Rewards without Process Labels
2505.21413 (2025-05)
RefTool: Reference-Guided Tool Creation for Knowledge-Intensive Reasoning
api_endpoint_from_url 2 other papers
2 dated earlier
2402.14007 (2024-02)
Can Watermarks Survive Translation? On the Cross-lingual Consistency of Text Watermark for Large Language Models
2403.06754 (2024-03)
ALaRM: Align Language Models via Hierarchical Rewards Modeling
within_eps 2 other papers
1 dated earlier, 1 same year, order not determinable
2412.01981 (2024-12)
Free Process Rewards without Process Labels
2505.21413 (2025-05)
RefTool: Reference-Guided Tool Creation for Knowledge-Intensive Reasoning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large language models (LLMs) have demonstrated remarkable reasoning capability in solving mathematical problems. However, existing approaches primarily focus on improving the quality of correct training data, e.g., distilling high-quality correct solutions from advanced models, neglecting the value contained in error data, potentially hindering the model's reflective ability. Though some studies attempt to leverage error data, they often involve complex mechanisms, such as Monte Carlo Tree Search (MCTS) to explore error nodes. In this work, we propose to enhance LLMs' reasoning ability by Learning from Errors for MatheMatical Advancement (LEMMA). LEMMA constructs data consisting of an incorrect solution with an erroneous step and a reflection connection to a correct solution for fine-tuning. Specifically, we systematically analyze the modelgenerated error types and introduce an errortype grounded mistake augmentation method to collect diverse and representative errors. Correct solutions are either from fixing the errors or generating a fresh start. Through a model-aware smooth reflection connection, the erroneous solution is transferred to the correct one. By fine-tuning on the constructed dataset, the model is able to self-correct errors autonomously within the generation process without relying on external critique models. Experimental results demonstrate that LEMMA achieves significant performance improvements over other strong baselines.

For agents

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

get_harvested_code_for_paper("2025.findings-acl.605")
get_code_for_paper("2025.findings-acl.605")
have("2025.findings-acl.605")

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

curl https://syntology.ai/api/ran/2025.findings-acl.605.json

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

[![Syntology run record](https://syntology.ai/api/ran/2025.findings-acl.605.svg)](https://syntology.ai/paper/2025.findings-acl.605)

Connect an agent — have() is free.