SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.18917 · NeurIPS · 2025

Behavior Injection: Preparing Language Models for Reinforcement Learning

Ding Zhao, Zuxin Liu, Zhepeng Cen, Yihang Yao, William Han

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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, 1 violated it and 3 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2505.18917.json · badge: /api/ran/2505.18917.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
czp16/bridge-llm-reasoning canonical (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
FunctionStatusWhere it lives
convert_to_regular_types Ran
ran; our contract draft was wrong, not the code
czp16/bridge-llm-reasoning/simple_verl/sverl/trainer/fsdp_sft_trainer.py
code served (permissive licence) · get_code("f887d72c9492d9ee")
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.

from omegaconf import ListConfig, DictConfig

# Test with various types that the function handles
nested_dict_config = DictConfig({
    "model": "bert",
    "layers": 12,
    "hidden_size": 768,
    "nested": DictConfig({"key": "value", "number": 42})
})

nested_list_config = ListConfig([1, 2, DictConfig({"a": "b"}), "test"])

regular_dict = {
    "name": "test",
    "values": [1, 2, 3],
    "nested": {"inner": "data"}
}

regular_list = [1, "string", {"key": "val"}, [1, 2, 3]]

mixed_tuple = (1, 2, {"nested": "dict"}, [4, 5])

simple_string = "hello"

simple_int = 42

simple_float = 3.14

ARGS = {
    "obj": nested_dict_config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
omegaconf — 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
extract_step Ran
ran, honoured the contract we drafted
czp16/bridge-llm-reasoning/simple_verl/sverl/trainer/fsdp_sft_trainer.py
code served (permissive licence) · get_code("216e28c040173a61")
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 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 re

def extract_step(path):
    match = re.search('global_step_(\\d+)', path)
    if match:
        return int(match.group(1))
    return None

# Test case 1: path with global_step pattern
path_with_step = "/models/checkpoint_global_step_42/model.pt"

# Test case 2: path without global_step pattern
path_without_step = "/models/checkpoint_final/model.pt"

ARGS = {
    "path": path_with_step
}
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 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
get_huggingface_actor_config Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
czp16/bridge-llm-reasoning/simple_verl/sverl/utils/model.py
code served (permissive licence) · get_code("fe79c459a3e4cc64")
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 MockConfig. 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
from transformers import AutoConfig

torch.manual_seed(0)

# The function uses:
# - model_name: str parameter passed to AutoConfig.from_pretrained()
# - override_config_kwargs: Dict that gets iterated with items() and used with setattr()
# - trust_remote_code: bool parameter passed to AutoConfig.from_pretrained()

# Since we can't actually download models, we need to mock AutoConfig.from_pretrained
# to return a config object that has attributes we can set

class MockConfig:
    """Mock configuration object that behaves like a PretrainedConfig"""
    def __init__(self):
        self.hidden_size = 768
        self.num_hidden_layers = 12
        self.vocab_size = 50257
        self.max_position_embeddings = 2048
    
    def __repr__(self):
        return f"MockConfig(hidden_size={self.hidden_size}, num_hidden_layers={self.num_hidden_layers})"

# Patch AutoConfig.from_pretrained to return our mock config
original_from_pretrained = AutoConfig.from_pretrained
AutoConfig.from_pretrained = lambda model_name, trust_remote_code=False: MockConfig()

ARGS = {
    "model_name": "gpt2",
    "override_config_kwargs": {
        "hidden_size": 256,
        "num_hidden_layers": 4,
        "vocab_size": 1000
    },
    "trust_remote_code": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockConfig — a MockConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockConfig 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
is_transformers_version_in_range Ran
ran, violated the contract we drafted
czp16/bridge-llm-reasoning/simple_verl/sverl/models/transformers/monkey_patch.py
code served (permissive licence) · get_code("42a7954a8cfa89e0")
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
import numpy as np
from packaging import version

# The function checks if the transformers package version falls within a given range
# It uses version.parse() to compare version strings
# We need to provide valid version strings as arguments

ARGS = {
    'min_version': '4.0.0',
    'max_version': '5.0.0',
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, packaging, 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
random_select_and_remove Ran
ran on a synthesized input
czp16/bridge-llm-reasoning/iGSM-reasoning/igsm_reasoning/utils/misc.py
code served (permissive licence) · get_code("f54b6e64d0d661f8")
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 Tensor, ndim 1, dtype family float, shape (2,) 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
import random

def random_select_and_remove(lst):
    if not lst:
        return None
    index = random.randrange(len(lst))
    lst[index], lst[-1] = (lst[-1], lst[index])
    return lst.pop()

# Construct arguments
torch.manual_seed(0)
random.seed(0)

# Create a list with various elements to select and remove from
test_list = [1, 2, 3, 4, 5, "test", torch.tensor([1.0, 2.0]), {"key": "value"}]

ARGS = {
    "lst": test_list
}
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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) 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
simplify_equation Ran
ran on a synthesized input
czp16/bridge-llm-reasoning/iGSM-reasoning/igsm_reasoning/utils/misc.py
code served (permissive licence) · get_code("f6a2fa6deae09745")
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 re

def simplify_equation(equation: str) -> str:
    expr = equation.strip()
    steps = [expr]

    def is_number(s: str) -> bool:
        try:
            float(s)
            return True
        except ValueError:
            return False
    paren_pattern = re.compile('\\([^()]+\\)')
    mult_pattern = re.compile('(?P<a>\\-?\\d+)\\s*\\*\\s*(?P<b>\\-?\\d+)')
    add_sub_pattern = re.compile('(?P<a>\\-?\\d+)\\s*(?P<op>[+\\-])\\s*(?P<b>\\-?\\d+)')
    while not is_number(expr):
        paren_match = paren_pattern.search(expr)
        if paren_match:
            paren_str = paren_match.group(0)
            inner_expr = paren_str[1:-1]
            ops = re.findall('[+\\-]', inner_expr)
            if len(ops) > 1:
                sub_match = add_sub_pattern.search(inner_expr)
                if sub_match:
                    a = sub_match.group('a')
                    op = sub_match.group('op')
                    b = sub_match.group('b')
                    partial_result = str(int(eval(f'{a}{op}{b}')))
                    new_inner = inner_expr[:sub_match.start()] + partial_result + inner_expr[sub_match.end():]
                    new_paren = f'({new_inner})'
                    expr = expr[:paren_match.start()] + new_paren + expr[paren_match.end():]
                    steps.append(expr)
                    continue
            else:
                inner_value = str(int(eval(inner_expr)))
                expr = expr[:paren_match.start()] + inner_value + expr[paren_match.end():]
                steps.append(expr)
                continue
        mult_match = mult_pattern.search(expr)
        if mult_match:
            a = mult_match.group('a')
            b = mult_match.group('b')
            result = str(int(eval(f'{a}*{b}')))
            expr = expr[:mult_match.start()] + result + expr[mult_match.end():]
            steps.append(expr)
            continue
        add_sub_match = add_sub_pattern.search(expr)
        if add_sub_match:
            a = add_sub_match.group('a')
            op = add_sub_match.group('op')
            b = add_sub_match.group('b')
            result = str(int(eval(f'{a}{op}{b}')))
            expr = expr[:add_sub_match.start()] + result + expr[add_sub_match.end():]
            steps.append(expr)
            continue
        break
    return steps

ARGS = {
    "equation": "2 + 3 * (4 - 1) - 5"
}
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
softmax Ran
ran on a synthesized input
czp16/bridge-llm-reasoning/iGSM-reasoning/igsm_reasoning/utils/misc.py
code served (permissive licence) · get_code("a0b94e702fcbb1c4")
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 ndarray, ndim 1, dtype family float, shape (4,) 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 numpy as np

# Create a small valid numpy array for the softmax function
# The function expects a 1D or 2D array and applies softmax
x = np.array([1.0, 2.0, 3.0, 4.0])

ARGS = {
    "x": x
}
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 ndarray, ndim 1, dtype family float, shape (4,) — shape (4,) 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
union_tensor_dict Ran
ran; our contract draft was wrong, not the code
czp16/bridge-llm-reasoning/simple_verl/sverl/protocol.py
code served (permissive licence) · get_code("21331a58f93375e4")
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 TensorDict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from tensordict import TensorDict

torch.manual_seed(0)

# Create two TensorDicts with identical batch size
batch_size = torch.Size([2])

# First tensor dict with some keys
tensor_dict1 = TensorDict(
    {
        "shared_key": torch.randn(2, 4),
        "key1": torch.randn(2, 3),
    },
    batch_size=batch_size,
)

# Second tensor dict with overlapping and new keys
tensor_dict2 = TensorDict(
    {
        "shared_key": tensor_dict1["shared_key"].clone(),  # Same tensor values
        "key2": torch.randn(2, 5),
    },
    batch_size=batch_size,
)

ARGS = {
    "tensor_dict1": tensor_dict1,
    "tensor_dict2": tensor_dict2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensordict, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TensorDict — a TensorDict 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
unpad_dataproto Ran
ran; our contract draft was wrong, not the code
czp16/bridge-llm-reasoning/simple_verl/sverl/protocol.py
code served (permissive licence) · get_code("25f0ea3f460f6ce1")
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 DataProto. 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)

class DataProto:
    """Stand-in class for DataProto that supports slicing."""
    def __init__(self, data):
        self.data = data
    
    def __getitem__(self, key):
        """Support slicing to return a new DataProto with sliced data."""
        sliced_data = self.data[key]
        return DataProto(sliced_data)
    
    def __repr__(self):
        return f"DataProto({self.data})"

# Create a small DataProto instance with some data
data_tensor = torch.randn(2, 4)
data_proto = DataProto(data_tensor)

ARGS = {
    "data": data_proto,
    "pad_size": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataProto — a DataProto output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataProto 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
apply_monkey_patch Not yet run
unverified (harvested, no recorded run)
czp16/bridge-llm-reasoning/simple_verl/sverl/models/transformers/monkey_patch.py
code served (permissive licence) · get_code("de7d7446ae53cba4")
How it ran

no invocation recorded.

get_generation_config Not yet run
unverified (harvested, no recorded run)
czp16/bridge-llm-reasoning/simple_verl/sverl/utils/model.py
code served (permissive licence) · get_code("660713a8fa047736")
How it ran

no invocation recorded.

get_weight_loader Not yet run
unverified (harvested, no recorded run)
czp16/bridge-llm-reasoning/simple_verl/sverl/models/weight_loader_registry.py
code served (permissive licence) · get_code("56f0394b62f6be9c")
How it ran

no invocation recorded.

squeeze Not yet run
unverified (harvested, no recorded run)
czp16/bridge-llm-reasoning/simple_verl/sverl/utils/model.py
code served (permissive licence) · get_code("3b15e2ac7497c441")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 8 the same month, 9 later) and 4 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
unpad_dataproto 89 other papers
12 dated earlier, 11 the same month, 62 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 86 more not named here
squeeze 82 other papers
11 dated earlier, 11 the same month, 56 later, 1 same year, order not determinable, 3 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 79 more not named here
union_tensor_dict 64 other papers
12 dated earlier, 13 the same month, 35 later, 1 same year, order not determinable, 3 undated · 4 only as an assembly brick
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 61 more not named here
get_generation_config 63 other papers
7 dated earlier, 4 the same month, 50 later, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
and 60 more not named here
get_huggingface_actor_config 53 other papers
11 dated earlier, 11 the same month, 28 later, 1 same year, order not determinable, 2 undated
2409.19256 (2024-09)
HybridFlow: A Flexible and Efficient RLHF Framework
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
and 50 more not named here
extract_step 19 other papers
4 dated earlier, 6 the same month, 7 later, 1 same year, order not determinable, 1 undated
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
2502.14768 (2025-02)
Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning
and 16 more not named here
is_transformers_version_in_range 14 other papers
6 dated earlier, 3 the same month, 3 later, 1 same year, order not determinable, 1 undated
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2025.findings-emnlp.1015 (2025 (year only))
MT-R1-Zero: Advancing LLM-based Machine Translation via R1-Zero-like Reinforcement Learning
2502.14768 (2025-02)
Logic-RL: Unleashing LLM Reasoning with Rule-Based Reinforcement Learning
and 11 more not named here
convert_to_regular_types 7 other papers
2 dated earlier, 2 the same month, 3 later
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2504.05520 (2025-04)
Efficient Reinforcement Finetuning via Adaptive Curriculum Learning
2505.04588 (2025-05)
ZeroSearch: Incentivize the Search Capability of LLMs without Searching
and 4 more not named here
apply_monkey_patch 2 other papers
1 dated earlier, 1 later
2502.19613 (2025-02)
Self-rewarding correction for mathematical reasoning
2602.12735 (2026-02)
VimRAG: Navigating Massive Visual Context in Retrieval-Augmented Generation via Multimodal Memory Graph

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

Reinforcement learning (RL) has emerged as a powerful post-training technique to incentivize the reasoning ability of large language models (LLMs). However, LLMs can respond very inconsistently to RL finetuning: some show substantial performance gains, while others plateau or even degrade. To understand this divergence, we analyze the per-step influence of the RL objective and identify two key conditions for effective post-training: (1) RL-informative rollout accuracy, and (2) strong data co-influence, which quantifies how much the training data affects performance on other samples. Guided by these insights, we propose behavior injection, a task-agnostic data augmentation scheme applied prior to RL. Behavior injection enriches the supervised finetuning (SFT) data by seeding exploratory and exploitative behaviors, effectively making the model more RLready. We evaluate our method across two reasoning benchmarks with multiple base models. The results demonstrate that our theoretically motivated augmentation can significantly increase the performance gain from RL over the pre-RL model. Website: https://bridge-llm-reasoning.github.io/. Our key insights stem from two perspectives: ( 1) Analysis of the RL learning objective: we identify two critical factors that influence model improvement during RL tuning: rollout accuracy and the data co-influence coefficient, which quantifies how strongly RL training data affects generalization to the target domain. (2) Desirable behaviors for RL: while exploration and exploitation are central in low-dimensional RL [31], they are often underexplored in the context of LLM post-training. Motivated by these findings, we introduce BRIDGE (BehavioR Injection Data auGmEntation), a data-centric augmentation strategy applied during the SFT stage. BRIDGE injects desired behaviors into the model before RL, enabling it to generate more informative trajectories during RL rollout and leading to greater final performance improvements. Our contributions are summarized as: 1. In-depth analysis of LLM reinforcement learning. We provide a detailed examination of the RL training process, highlighting two key factors that drive learning efficiency: rollout accuracy distribution and the data co-influence coefficient. We propose BRIDGE, which prepares the model for RL by explicitly injecting exploration and exploitation behaviors during SFT. 3. Comprehensive empirical evaluation. We evaluate BRIDGE across diverse tasks from iGSM and PromptBench. Extensive experiments and ablation studies demonstrate that BRIDGE enhances data co-influence and significantly improves performance in the RL stage. RL-based post-training for LLMs. Reinforcement learning (RL) has become a central posttraining approach for aligning and extending large language models. Large-scale efforts such as and DeepSeek-R1 [33] illustrated the gains obtainable from reward optimization on general-purpose models. Since then, RL fine-tuning has been pushed into a variety of domainspecialized settings. In mathematics, verifier-guided or programmatically graded rewards help models master challenging problems [34,35,24,36,37,38], while logic benchmarks likewise benefit from RL-driven reasoning refinement [39,40]. Interactive agents leverage RL for textual tool use and multistep planning [41,42,43,44,45,46], mobile-app control [25], device manipulation [47,48], and web navigation [49]. Additional applications include medical visual QA [50], software-engineering assistance [51], social reasoning [52], and tool-centric instruction following [53]. Analysis of LLM finetuning. To understand how model performance changes during finetuning, researchers study SFT learning dynamics of LLM [54] in terms of data influence [55,56] or likelihood analysis [57,58]. In the context of RL finetuning, OpenAI o1 [32] showed that RL significantly improve reasoning by encouraging the generation of longer CoT. Subsequent studies [59,60,61,62] validate this effect and show that RL enables inference-time scaling by favoring more expressive reasoning traces. This finding is aligned with theoretical analyses that characterize the expressivity of CoT [63,64,65,66]. Furthermore, researchers [67,68,69] observe that RL fine-tuning often amplifies behaviors already accessible in the base model rather than introducing entirely new ones, which are crucial cognitive operations to performance growth in RL [70]. Distinct from these works, we investigate the tuning dynamics by RL learning objective, and we identify behaviors from the perspective of exploration and exploitation to prepare models for RL tuning.

For agents

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

get_harvested_code_for_paper("2505.18917")
get_code_for_paper("2505.18917")
have("2505.18917")

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

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

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

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

Connect an agent — have() is free.