SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.16219 · 2025

Reinforcement Learning for Reasoning in Small LLMs: What Works and What Doesn't

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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 1 has no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.16219.json · badge: /api/ran/2503.16219.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
knoveleng/open-rs canonical (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
FunctionStatusWhere it lives
format_reward Ran
ran, honoured the contract we drafted
knoveleng/open-rs/src/open_r1/rewards.py
code served (permissive licence) · get_code("0a5c0b6fb53cd48c")
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

torch.manual_seed(0)

# The function expects:
# - completions: a list of lists, where each inner list contains dicts with 'content' key
# - **kwargs: additional keyword arguments (unused in the function body)

# Build valid completions structure
completions = [
    [{'content': 'Some reasoning\n</think>\nFinal answer'}],
    [{'content': 'Thinking process\n</think>\nAnswer here'}],
]

ARGS = {
    'completions': completions,
}
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
get_callbacks Ran
ran; our contract draft was wrong, not the code
knoveleng/open-rs/src/open_r1/utils/callbacks.py
pointer only (licence: MIT); the stored copy get_code serves, from tuoyou-hao/BPD-GRPO, is pointer only (licence: NONE) · get_code("9b92c44e1bde6319")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tuoyou-hao/BPD-GRPO, 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.

get_param_count_from_repo_id Ran
ran, honoured the contract we drafted
knoveleng/open-rs/src/open_r1/utils/hub.py
pointer only (licence: MIT); the stored copy get_code serves, from tuoyou-hao/BPD-GRPO, is pointer only (licence: NONE) · get_code("dcbd918d943fcaab")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tuoyou-hao/BPD-GRPO, 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.

tag_count_reward Ran
ran on a synthesized input
knoveleng/open-rs/src/open_r1/rewards.py
code served (permissive licence) · get_code("0a9f60618bd16d86")
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

torch.manual_seed(0)

# The function expects `completions` which is a list of objects where each element
# has index [0] and that indexed element has a 'content' key.
# Based on the function body, completions is a list of lists/tuples where:
# - completions[i][0] is a dict-like object
# - completions[i][0]['content'] is a string to be analyzed

# Create sample completions with proper structure
completions = [
    [
        {
            'content': '<think>\nThis is a thinking section\n</think>\nThis is the answer.'
        }
    ],
    [
        {
            'content': '<think>\nAnother thought\n</think>\nAnother answer.'
        }
    ]
]

ARGS = {
    'completions': completions
}
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
get_gpu_count_for_vllm Not yet run
unverified (harvested, no recorded run)
knoveleng/open-rs/src/open_r1/utils/hub.py
pointer only (licence: MIT); the stored copy get_code serves, from tuoyou-hao/BPD-GRPO, is pointer only (licence: NONE) · get_code("4b0eb1a9216422d3")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tuoyou-hao/BPD-GRPO, 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.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 0 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
get_callbacks 5 other papers
5 later
2507.02834 (2025-07)
ExPO: Unlocking Hard Reasoning with Self-Explanation-Guided Reinforcement Learning
2511.04902 (2025-11)
You Need Reasoning to Learn Reasoning: The Limitations of Label-Free RL in Weak Base Models
2601.19404 (2026-01)
RPO:Reinforcement Fine-Tuning with Partial Reasoning Optimization
and 2 more not named here
format_reward 3 other papers
3 later
2504.15777 (2025-04)
Tina: Tiny Reasoning Models via LoRA
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2601.19404 (2026-01)
RPO:Reinforcement Fine-Tuning with Partial Reasoning Optimization
get_gpu_count_for_vllm 3 other papers
3 later
2507.02834 (2025-07)
ExPO: Unlocking Hard Reasoning with Self-Explanation-Guided Reinforcement Learning
2511.04902 (2025-11)
You Need Reasoning to Learn Reasoning: The Limitations of Label-Free RL in Weak Base Models
2606.21498 (2026-06)
Balancing Performance and Diversity in GRPO Autoregressive Text-to-Image Post-Training
get_param_count_from_repo_id 3 other papers
3 later
2507.02834 (2025-07)
ExPO: Unlocking Hard Reasoning with Self-Explanation-Guided Reinforcement Learning
2511.04902 (2025-11)
You Need Reasoning to Learn Reasoning: The Limitations of Label-Free RL in Weak Base Models
2606.21498 (2026-06)
Balancing Performance and Diversity in GRPO Autoregressive Text-to-Image Post-Training
tag_count_reward 2 other papers
2 later
2504.15777 (2025-04)
Tina: Tiny Reasoning Models via LoRA
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical 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-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

Enhancing the reasoning capabilities of large language models (LLMs) typically relies on massive computational resources and extensive datasets, limiting accessibility for resource-constrained settings. Our study investigates the potential of reinforcement learning (RL) to improve reasoning in small LLMs, focusing on a 1.5-billion-parameter model, DeepSeek-R1-Distill-Qwen-1.5B, under strict constraints: training on 4 NVIDIA A40 GPUs (48 GB VRAM each) within 24 hours. Adapting the Group Relative Policy Optimization (GRPO) algorithm and curating a compact, high-quality mathematical reasoning dataset, we conducted three experiments to explore model behavior and performance. Our results demonstrate rapid reasoning gains - e.g., AMC23 accuracy rising from 63% to 80% and AIME24 reaching 46.7%, surpassing o1-preview - using only 7,000 samples and a $42 training cost, compared to thousands of dollars for baseline models. However, challenges such as optimization instability and length constraints emerged with prolonged training. These findings highlight the efficacy of RL-based fine-tuning for small LLMs, offering a cost-effective alternative to large-scale approaches. We release our code and datasets as open-source resources, providing insights into trade-offs and laying a foundation for scalable, reasoning-capable LLMs in resource-limited environments. All are available at https://github.com/knoveleng/open-rs.

For agents

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

get_harvested_code_for_paper("2503.16219")
get_code_for_paper("2503.16219")
have("2503.16219")

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

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

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

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

Connect an agent — have() is free.