SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.15777 · 2025

Tina: Tiny Reasoning Models via LoRA

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 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 4 have no contract verdict; 0 failures of our instrument; 1 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/2504.15777.json · badge: /api/ran/2504.15777.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
shangshang-wang/tina canonical (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
FunctionStatusWhere it lives
format_reward Ran
ran, honoured the contract we drafted
shangshang-wang/tina/tina/post_train_hf/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
make_conv_for_grpo Ran
ran on a synthesized input
shangshang-wang/tina/tina/post_train_hf/preprocess.py
code served (permissive licence) · get_code("133adebb42af8653")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Construct the example dict with 'problem' key
example = {
    'problem': 'Solve the quadratic equation x^2 + 2x + 1 = 0'
}

# Construct the system_prompt string
system_prompt = 'You are a helpful mathematical assistant.'

# Define ARGS mapping all parameters to values
ARGS = {
    'example': example,
    'system_prompt': system_prompt
}
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 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_conv_for_grpo_l1 Ran
ran on a synthesized input
shangshang-wang/tina/tina/post_train_hf/preprocess.py
code served (permissive licence) · get_code("12848e41008dff01")
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 random
import torch

torch.manual_seed(0)

ARGS = {
    'example': {
        'problem': 'What is the solution to this math problem?'
    },
    'system_prompt': 'You are a helpful assistant.',
    'min_length': 10,
    'max_length': 50
}
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 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_conv_for_sft Ran
ran on a synthesized input
shangshang-wang/tina/tina/post_train_hf/preprocess.py
code served (permissive licence) · get_code("b044862ba88ba6bf")
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 torch
import numpy as np

class MockTokenizer:
    def apply_chat_template(self, conv, tokenize=False, add_generation_prompt=False):
        # Simple mock: convert conversation to string
        result = ""
        for turn in conv:
            for msg in turn:
                result += f"{msg['role']}: {msg['content']}\n"
        return result

# Create example data matching the function's expectations
example = {
    'question': ['What is 2+2?', 'What is 3+3?'],
    'thinking_trajectories': [
        'Let me think about this step by step. 2+2 equals 4.',
        'Let me think about this step by step. 3+3 equals 6.'
    ],
    'attempt': ['4', '6'],
    'claude_thinking_trajectory': [
        'I need to add 2 and 2. That gives 4.',
        'I need to add 3 and 3. That gives 6.'
    ],
    'claude_attempt': ['4', '6'],
    'deepseek_thinking_trajectory': [
        'Adding 2+2 gives us 4.',
        'Adding 3+3 gives us 6.'
    ],
    'deepseek_attempt': ['4', '6'],
    'solution': ['4', '6'],
    'answer': ['4', '6'],
}

tokenizer = MockTokenizer()

ARGS = {
    'example': example,
    'dataset_name_or_path': 'simplescaling/s1K',
    'tokenizer': tokenizer,
    'trace_free': False,
}
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 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
tag_count_reward Ran
ran on a synthesized input
shangshang-wang/tina/tina/post_train_hf/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
push_to_hub_revision Not yet run
unverified (harvested, no recorded run)
shangshang-wang/tina/tina/post_train_hf/hub.py
code served (permissive licence) · get_code("fbe6d51c3b19c3d3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 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
format_reward 3 other papers
1 dated earlier, 2 later
2503.16219 (2025-03)
Reinforcement Learning for Reasoning in Small LLMs: What Works and What Doesn't
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
tag_count_reward 2 other papers
1 dated earlier, 1 later
2503.16219 (2025-03)
Reinforcement Learning for Reasoning in Small LLMs: What Works and What Doesn't
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-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

How cost-effectively can strong reasoning abilities be achieved in language models? Driven by this fundamental question, we present Tina, a family of tiny reasoning models achieved with high cost-efficiency. Notably, Tina demonstrates that substantial reasoning performance can be developed using only minimal resources, by applying parameter-efficient updates during reinforcement learning (RL), using low-rank adaptation (LoRA), to an already tiny 1.5B parameter base model. This minimalist approach produces models that achieve reasoning performance which is competitive with, and sometimes surpasses, SOTA RL reasoning models built upon the same base model. Crucially, this is achieved at a tiny fraction of the computational post-training cost employed by existing SOTA models. In fact, the best Tina model achieves a &gt;20\% reasoning performance increase and 43.33\% Pass@1 accuracy on AIME24, at only \$9 USD post-training and evaluation cost (i.e., an estimated 260x cost reduction). Our work reveals the surprising effectiveness of efficient RL reasoning via LoRA. We validate this across multiple open-source reasoning datasets and various ablation settings starting with a single, fixed set of hyperparameters. Furthermore, we hypothesize that this effectiveness and efficiency stem from LoRA rapidly adapting the model to the structural format of reasoning rewarded by RL, while largely preserving the base model's underlying knowledge. In service of accessibility and open research, we fully open-source all code, training logs, and model weights \&amp; checkpoints.

For agents

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

get_harvested_code_for_paper("2504.15777")
get_code_for_paper("2504.15777")
have("2504.15777")

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

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

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

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

Connect an agent — have() is free.