SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.01456 · 2025

Process Reinforcement through Implicit Rewards

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 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; 2 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 5 failures of our instrument; 3 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/2502.01456.json · badge: /api/ran/2502.01456.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
prime-rl/prime canonical (classifier label)
classifier basis not recorded on the link
14 ran · 3 no recorded run
FunctionStatusWhere it lives
create_filter_prompt Ran
ran on a synthesized input
prime-rl/prime/data_preprocessing/stage2_format_choice.py
code served (permissive licence) · get_code("4af93356397e2583")
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 torch
import numpy as np

# The function takes one parameter: item
# Looking at the function body:
# - item['prompt'] is accessed, so item must be a dict with a 'prompt' key
# - The prompt should contain a mathematical question with multiple choice options

ARGS = {
    'item': {
        'prompt': 'Given that an interior angle of a regular polygon is $144^{\\circ}$, then the number of sides of this regular polygon is ( )\nA: $12$\nB: $10$\nC: $8$\nD: $6$'
    }
}
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 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
create_question_prompt Ran
ran on a synthesized input
prime-rl/prime/data_preprocessing/stage2_format_choice.py
code served (permissive licence) · get_code("c7721490607b846e")
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 torch
import numpy as np

# Examine the function signature and body
# The function takes 'item' parameter which should be a dict with 'prompt' key
# The function accesses item['prompt'] to create a user prompt message
# The function returns a list of chat messages (system and user messages)

# Create a valid item dict with a 'prompt' key containing a sample math question
item = {
    'prompt': 'Given that an interior angle of a regular polygon is $144^{\\circ}$, then the number of sides of this regular polygon is ( )\n\nA: $12$\n\nB: $10$\n\nC: $8$\n\nD: $6$'
}

ARGS = {
    'item': item
}
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 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
create_solution_prompt Ran
ran on a synthesized input
prime-rl/prime/data_preprocessing/stage2_format_choice.py
code served (permissive licence) · get_code("120a553951e00af6")
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 torch

# Create a minimal item dict with the required keys
item = {
    'prompt': 'Given that an interior angle of a regular polygon is $144^{\\circ}$, then the number of sides of this regular polygon is ( )\n\nA: $12$\n\nB: $10$\n\nC: $8$\n\nD: $6$',
    'solution': 'Given that an interior angle of a regular polygon is $144^{\\circ}$, we can find the number of sides of this polygon by following these steps:\n\n1. Calculate the exterior angle of the polygon. The sum of an interior angle and its corresponding exterior angle is $180^{\\circ}$. Therefore, the exterior angle is $180^{\\circ} - 144^{\\circ} = 36^{\\circ}$.\n\n2. The sum of all exterior angles of any polygon is always $360^{\\circ}$. To find the number of sides (n) of the polygon, we use the formula for the sum of exterior angles: $n \\times \\text{exterior angle} = 360^{\\circ}$. Substituting the exterior angle we found:\n\n\\[n = \\frac{360^{\\circ}}{36^{\\circ}} = 10\\]\n\nTherefore, the number of sides of this regular polygon is $\\boxed{10}$, which corresponds to choice $\\boxed{B}$.'
}

ARGS = {
    'item': item
}
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 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
estimate_pass_at_k Ran
ran; our contract draft was wrong, not the code
prime-rl/prime/eval/utils/evaluation.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from rucaibox/bamboo, is pointer only (licence: NONE) · get_code("e080db2eaa81fdb3")
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 rucaibox/bamboo, 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. A run is recorded.

handle_base Ran
ran, honoured the contract we drafted
prime-rl/prime/data_preprocessing/math_util/grader.py
code served (permissive licence) · get_code("bb175bff1060d928")
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 int, ndim 0, dtype family int, 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

def handle_base(x) -> str:
    if isinstance(x, str) and '_' in x:
        x = x.split('_')[0]
        x = float(x)
        return int(x)
    return x

# Test case 1: string with underscore
ARGS = {
    'x': '42_suffix_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 int, ndim 0, dtype family int, 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
is_digit Ran
ran, honoured the contract we drafted
prime-rl/prime/data_preprocessing/math_util/grader.py
code served (permissive licence) · get_code("2a180d3156997924")
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
import numpy as np

# The function is_digit takes a single parameter 's' which is converted to string
# and checked if it can be parsed as a float, with special handling for commas and '{,}'

ARGS = {
    's': '1,234.56'
}
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 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
normalize Ran
ran; our contract draft was wrong, not the code
prime-rl/prime/data_preprocessing/math_util/grader.py
code served (permissive licence) · get_code("960059cee2753e3f")
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

torch_imported = False
try:
    import torch
    torch_imported = True
except ImportError:
    pass

def handle_base(x) -> str:
    if isinstance(x, str) and '_' in x:
        x = x.split('_')[0]
        x = float(x)
        return int(x)
    return x

def handle_pi(string, pi):
    if isinstance(string, str) and '\\pi' in string:
        idx = string.find('\\pi')
        while idx != -1:
            if idx > 0 and string[idx - 1].isdigit():
                string = string[:idx] + f'*{pi}' + string[idx + 3:]
            else:
                string = string[:idx] + f'1*{pi}' + string[idx + 3:]
            idx = string.find('\\pi', idx + 1)
        try:
            string = eval(string)
        except:
            pass
    return string

def normalize(answer, pi) -> str:
    if isinstance(answer, str) and bool(re.match('\\$\\d+(\\.\\d+)?', answer)):
        return answer[1:]
    if isinstance(answer, str) and (bool(re.match('^\\d+(\\.\\d+)?%$', answer)) or bool(re.match('^\\d+(\\.\\d+)?\\\\%$', answer))):
        return answer.replace('\\%', '').replace('%', '')
    answer = handle_base(answer)
    answer = handle_pi(answer, pi)
    return answer

ARGS = {
    "answer": "$42.5",
    "pi": 3.14159
}
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
normalize_answer Ran
ran; our contract draft was wrong, not the code
prime-rl/prime/data_preprocessing/math_util/math_normalize.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from PKU-SEC-Lab/SPEX, is pointer only (licence: NONE) · get_code("101b1e54fcdadf90")
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 PKU-SEC-Lab/SPEX, 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. A run is recorded.

parallel_evaluate_continual_async Ran
ran on a synthesized input
prime-rl/prime/training/verl/utils/reward_score/prime.py
code served (permissive licence) · get_code("2f2aa5fc73311d4e")
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 coroutine. 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
from unittest.mock import Mock, patch

def evaluate_code(completion, reference):
    """Mock function for code evaluation."""
    return (True, [{"test_case": {"res": "[True]"}}])

def evaluate_math(completion, reference):
    """Mock function for math evaluation."""
    return (1, [])

# Patch the evaluation functions before importing the main function
import sys
current_module = sys.modules[__name__]
current_module.evaluate_code = evaluate_code
current_module.evaluate_math = evaluate_math

# Create test data
completions = [
    "def add(a, b): return a + b",
    "2 + 2 = 4"
]

references = [
    json.dumps({"inputs": [[1, 2], [3, 4]], "outputs": [3, 7]}),
    "4"
]

tasks = [
    "code",
    "math"
]

num_processes = 2

task_timeout = 300.0

ARGS = {
    "completions": completions,
    "references": references,
    "tasks": tasks,
    "num_processes": num_processes,
    "task_timeout": task_timeout
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
process_humaneval_test Ran
ran; our contract draft was wrong, not the code
prime-rl/prime/eval/utils/evaluation_leetcode.py
code served (permissive licence) · get_code("af48c07b88855b2d")
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 math
import re
import sys
import copy
import datetime
import itertools
import collections
import heapq
import functools
import hashlib
import numpy
import numpy as np
import string
from typing import *
from collections import *
from functools import *

# Create a minimal sample dictionary
sample = {
    'task_id': 'HumanEval/0',
    'generation': 'def add(a, b):\n    return a + b',
    'prompt': 'def add(a, b):\n'
}

# Create a minimal problems dictionary with HumanEval format
problems = {
    'HumanEval/0': {
        'test': 'assert add(2, 3) == 5\nassert add(-1, 1) == 0',
        'example_test': 'assert add(1, 1) == 2'
    },
    'Mbpp/0': {
        'test': ['assert func(2) == 4', 'assert func(3) == 9']
    }
}

# Create a Go-specific problems dictionary
go_problems = {
    'HumanEval/1': {
        'import': 'import "fmt"',
        'test_setup': 'package main\nimport "fmt"',
        'test': 'func main() { fmt.Println("test") }',
        'example_test': 'func main() { fmt.Println("example") }'
    }
}

# Create a Rust-specific problems dictionary
rust_problems = {
    'HumanEval/2': {
        'declaration': 'fn add(a: i32, b: i32) -> i32 { a + b }',
        'test': 'assert_eq!(add(2, 3), 5);'
    }
}

ARGS = {
    'sample': sample,
    'problems': problems,
    'example_test': False,
    'is_mbpp': False,
    'language': 'python'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
process_row_with_timeout Ran
ran on a synthesized input
prime-rl/prime/training/verl/utils/reward_score/prime.py
code served (permissive licence) · get_code("38c21e0e3a1e76d2")
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 coroutine. 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 asyncio
from concurrent.futures import ThreadPoolExecutor
from functools import partial

def evaluate_code(completion, reference):
    """Stand-in evaluator for code task"""
    return {"score": 0.8, "passed": True}

def evaluate_math(completion, reference):
    """Stand-in evaluator for math task"""
    return {"score": 0.9, "correct": True}

async def process_completion(completion, task, reference):
    if task == 'code':
        return evaluate_code(completion, reference)
    elif task == 'math':
        return evaluate_math(completion, str(reference))
    else:
        print('task')
        raise NotImplementedError

async def process_row_with_timeout(completion, reference, task, executor, timeout=300.0):
    """
    Process a single row with a timeout.
    """
    loop = asyncio.get_running_loop()
    try:
        tasks = [asyncio.wait_for(loop.run_in_executor(executor, partial(process_completion, completion, task, reference)), timeout=timeout)]
        return await asyncio.gather(*tasks)
    except asyncio.TimeoutError:
        print(f'Timeout occurred for completion: {completion}')
        return None
    except Exception as e:
        print(f'Error processing completion: {completion[:10]}, Error: {e}')
        return None

executor = ThreadPoolExecutor(max_workers=2)

ARGS = {
    'completion': 'def hello():\n    return 42',
    'reference': 42,
    'task': 'code',
    'executor': executor,
    'timeout': 30.0
}
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 coroutine — a coroutine output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a coroutine 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
read_problems Ran
ran; our contract draft was wrong, not the code
prime-rl/prime/eval/utils/data.py
code served (permissive licence) · get_code("562c0ef13357b53b")
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 tempfile
import gzip
import json
import os

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
test_file = os.path.join(temp_dir, 'test_humaneval.jsonl.gz')

# Create sample HumanEval-like data
sample_tasks = [
    {
        "task_id": "HumanEval/0",
        "prompt": "def solution(x):\n    pass",
        "entry_point": "solution",
        "canonical_solution": "def solution(x):\n    return x + 1",
        "test": "assert solution(1) == 2"
    },
    {
        "task_id": "HumanEval/1",
        "prompt": "def add(a, b):\n    pass",
        "entry_point": "add",
        "canonical_solution": "def add(a, b):\n    return a + b",
        "test": "assert add(1, 2) == 3"
    }
]

# Write compressed jsonl file
with gzip.open(test_file, 'wt', encoding='utf-8') as f:
    for task in sample_tasks:
        f.write(json.dumps(task) + '\n')

# Define the ARGS dictionary
ARGS = {
    'evalset_file': test_file
}
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
tell_choice Ran
ran on a synthesized input
prime-rl/prime/data_preprocessing/stage1_filter.py
code served (permissive licence) · get_code("860555756a95114b")
How it ran

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

import torch

torch.manual_seed(0)

# The function tell_choice checks if a dict 'd' has a 'problem' key
# and examines its string content for choice patterns.
# The extracted_model_output parameter is not used in the function body.

# Create a valid dict with 'problem' key containing choices in format 'A.' 'B.' 'C.'
d_with_dot_format = {
    'problem': 'What is the answer? A. First option B. Second option C. Third option'
}

# extracted_model_output is not used, so we can pass any value
extracted_model_output = None

ARGS = {
    'd': d_with_dot_format,
    'extracted_model_output': extracted_model_output
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tell_choice Ran
ran on a synthesized input
prime-rl/prime/data_preprocessing/stage3_merge.py
code served (permissive licence) · get_code("652e9a2cd5d2bd69")
How it ran

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

import torch

# Construct a dict that will make tell_choice return True
# The function checks if all three choices appear in the prompt with different formats
# Let's use the first format: 'A.', 'B.', 'C.'

d = {
    'prompt': 'Here are the options: A. First option B. Second option C. Third option'
}

ARGS = {'d': d}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_completion Not yet run
unverified (harvested, no recorded run)
prime-rl/prime/training/verl/utils/reward_score/prime.py
code served (permissive licence) · get_code("aacfe469bd668c58")
How it ran

no invocation recorded.

process_fn Not yet run
unverified (harvested, no recorded run)
prime-rl/prime/data_preprocessing/stage1_filter.py
code served (permissive licence) · get_code("86bc2b52fc4de062")
How it ran

no invocation recorded.

process_fn Not yet run
unverified (harvested, no recorded run)
prime-rl/prime/data_preprocessing/stage3_merge.py
code served (permissive licence) · get_code("4dc6b4c66100580d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 7 later) and 10 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
estimate_pass_at_k 20 other papers
17 dated earlier, 3 later
2107.03374 (2021-07)
Evaluating Large Language Models Trained on Code
2207.14255 (2022-07)
Efficient Training of Language Models to Fill in the Middle
2210.14868 (2022-10)
Multi-lingual Evaluation of Code Generation Models
and 17 more not named here
normalize_answer 10 other papers
3 dated earlier, 1 the same month, 6 later
2404.02078 (2024-04)
Advancing LLM Reasoning Generalists with Preference Trees
2406.12809 (2024-06)
Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
2412.01981 (2024-12)
Free Process Rewards without Process Labels
and 7 more not named here
read_problems 10 other papers
6 dated earlier, 4 later
2310.20329 (2023-10)
InstructCoder: Instruction Tuning Large Language Models for Code Editing
2401.08565 (2024-01)
Tuning Language Models by Proxy
2401.14196 (2024-01)
DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligence
and 7 more not named here
is_digit 7 other papers
2 dated earlier, 5 later
2404.02078 (2024-04)
Advancing LLM Reasoning Generalists with Preference Trees
2412.01981 (2024-12)
Free Process Rewards without Process Labels
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 4 more not named here
handle_base 5 other papers
2 dated earlier, 3 later
2404.02078 (2024-04)
Advancing LLM Reasoning Generalists with Preference Trees
2412.01981 (2024-12)
Free Process Rewards without Process Labels
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 2 more not named here
normalize 5 other papers
2 dated earlier, 3 later
2404.02078 (2024-04)
Advancing LLM Reasoning Generalists with Preference Trees
2412.01981 (2024-12)
Free Process Rewards without Process Labels
2504.16084 (2025-04)
TTRL: Test-Time Reinforcement Learning
and 2 more not named here
process_humaneval_test 1 other paper
1 later
2602.02979 (2026-02)
CPMöbius: Iterative Coach-Player Reasoning for Data-Free Reinforcement Learning

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

Dense process rewards have proven a more effective alternative to the sparse outcome-level rewards in the inference-time scaling of large language models (LLMs), particularly in tasks requiring complex multi-step reasoning. While dense rewards also offer an appealing choice for the reinforcement learning (RL) of LLMs since their fine-grained rewards have the potential to address some inherent issues of outcome rewards, such as training efficiency and credit assignment, this potential remains largely unrealized. This can be primarily attributed to the challenges of training process reward models (PRMs) online, where collecting high-quality process labels is prohibitively expensive, making them particularly vulnerable to reward hacking. To address these challenges, we propose PRIME (Process Reinforcement through IMplicit rEwards), which enables online PRM updates using only policy rollouts and outcome labels through implict process rewards. PRIME combines well with various advantage functions and forgoes the dedicated reward model training phrase that existing approaches require, substantially reducing the development overhead. We demonstrate PRIME's effectiveness on competitional math and coding. Starting from Qwen2.5-Math-7B-Base, PRIME achieves a 15.1% average improvement across several key reasoning benchmarks over the SFT model. Notably, our resulting model, Eurus-2-7B-PRIME, surpasses Qwen2.5-Math-7B-Instruct on seven reasoning benchmarks with 10% of its training data.

For agents

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

get_harvested_code_for_paper("2502.01456")
get_code_for_paper("2502.01456")
have("2502.01456")

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

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

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

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

Connect an agent — have() is free.