SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.19187 · NeurIPS · 2025

LIMOPro: Reasoning Refinement for Efficient and Effective Test-time Scaling

Yang Xiao, Wenjie Li, Pengfei Liu, Jiashuo Wang, Kaishuai Xu, Ruifeng Yuan, Chunpu Xu

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 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; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 2 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.19187.json · badge: /api/ran/2505.19187.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
gair-nlp/limopro canonical (classifier label)
classifier basis not recorded on the link
2 ran · 2 no recorded run
FunctionStatusWhere it lives
calculate_full_string_perplexity Ran
ran on a synthesized input
gair-nlp/limopro/CIE/cie.py
code served (permissive licence) · get_code("43f0a2dd8746fe09")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn as nn

torch.manual_seed(0)

# Build a minimal model that returns logits
class MinimalLanguageModel(nn.Module):
    def __init__(self, vocab_size=100, hidden_dim=8):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.linear = nn.Linear(hidden_dim, vocab_size)
    
    def forward(self, input_ids):
        embedded = self.embedding(input_ids)
        logits = self.linear(embedded)
        return type('Output', (), {'logits': logits})()

model = MinimalLanguageModel(vocab_size=100, hidden_dim=8)
model.eval()

# Build a minimal tokenizer
class MinimalTokenizer:
    def __init__(self, vocab_size=100, max_length=50):
        self.vocab_size = vocab_size
        self.max_length = max_length
    
    def __call__(self, text, return_tensors=None):
        # Create dummy token ids based on text length
        tokens = [i % self.vocab_size for i in range(len(text.split()) + 1)]
        tokens = tokens[:self.max_length]
        input_ids = torch.tensor([tokens], dtype=torch.long)
        return type('Encoding', (), {'input_ids': input_ids})()

tokenizer = MinimalTokenizer(vocab_size=100, max_length=50)

# Sample full text
full_text = "the quick brown fox jumps over the lazy dog"

# Device (CPU only)
device = 'cpu'

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

def parse_model_output(output: str):
    """parse the eval model output to be analyzed

    Args:
        output (_type_): the anser of model to be analyzed

    Returns:
        _type_: _description_
    """
    result = {'analysis': None, 'correctness': False}
    analysis_pattern = '##\\s*Analysis\\s*(.*?)\\s*##\\s*Correctness'
    correctness_pattern = '##\\s*Correctness\\s*(.*?)$'
    analysis_match = re.search(analysis_pattern, output, re.DOTALL)
    if analysis_match:
        result['analysis'] = analysis_match.group(1).strip()
    correctness_match = re.search(correctness_pattern, output, re.DOTALL)
    if correctness_match:
        correctness_value = correctness_match.group(1).strip()
        result['correctness'] = 'correct' in correctness_value.lower()
    return (result['analysis'], result['correctness'])


# Valid output string with both Analysis and Correctness sections
output_string = """
## Analysis
The model performed well on the test cases. The logic is sound and handles edge cases properly.
## Correctness
The answer is correct.
"""

ARGS = {
    'output': output_string
}
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 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
calculate_substring_perplexity Not yet run
unverified (harvested, no recorded run)
gair-nlp/limopro/CIE/cie.py
code served (permissive licence) · get_code("0350366c7fd8da6f")
How it ran

no invocation recorded.

find_substring_token_indices Not yet run
unverified (harvested, no recorded run)
gair-nlp/limopro/CIE/cie.py
code served (permissive licence) · get_code("aef09f6dd0e5a41c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

Repositories linked to this paper

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

Abstract

Large language models (LLMs) have demonstrated remarkable reasoning capabilities through test-time scaling approaches, particularly when fine-tuned with chain-of-thought (CoT) data distilled from more powerful large reasoning models (LRMs). However, these reasoning chains often contain verbose elements that mirror human problem-solving, categorized as progressive reasoning (the essential solution development path) and functional elements (verification processes, alternative solution approaches, and error corrections). While progressive reasoning is crucial, the functional elements significantly increase computational demands during test-time inference. We introduce PIR (Perplexity-based Importance Refinement), a principled framework that quantitatively evaluates the importance of each reasoning step based on its impact on answer prediction confidence. PIR systematically identifies and selectively prunes only low-importance functional steps while preserving progressive reasoning components, creating optimized training data that maintains the integrity of the core solution path while reducing verbosity. Models fine-tuned on PIR-optimized data exhibit superior test-time scaling properties, generating more concise reasoning chains while achieving improved accuracy (+0.9% to +6.6%) with significantly reduced token usage (-3% to -41%) across challenging reasoning benchmarks (AIME, AMC, and GPQA Diamond). Our approach demonstrates strong generalizability across different model sizes, data sources, and token budgets, offering a practical solution for deploying reasoningcapable LLMs in scenarios where efficient test-time scaling, response time, and computational efficiency are valuable constraints. Code and dataset are available at the LIMOPro. However, this approach faces a significant challenge: reasoning chains distilled from LRMs often contain numerous functional elements that, while reflecting human problem-solving processes, possibly produce unnecessarily verbose outputs [7,32,4]. In a typical mathematical scenario, an LRM might solve a problem by establishing an initial solution path, verifying calculations, identifying † Corresponding authors. 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

For agents

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

get_harvested_code_for_paper("2505.19187")
get_code_for_paper("2505.19187")
have("2505.19187")

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

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

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

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

Connect an agent — have() is free.