SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.13308 · 2025

Seek in the Dark: Reasoning via Test-Time Instance-Level Policy Gradient in Latent Space

arXiv · PDF · Open in the Atlas

Code that ran

12 of 16 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, 2 violated it and 8 have no contract verdict; 1 failure 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.13308.json · badge: /api/ran/2505.13308.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
bigai-nlco/latentseek canonical (classifier label)
classifier basis not recorded on the link
12 ran · 4 no recorded run
FunctionStatusWhere it lives
AIME_2024_prompt Ran
ran on a synthesized input
bigai-nlco/latentseek/src/prompts/solver_prompts.py
code served (permissive licence) · get_code("7ced33ff18e50b62")
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

# Construct valid arguments for AIME_2024_prompt
ARGS = {
    'q': 'What is the sum of all positive integers less than 1000 that are divisible by 7?',
    'prompt_idx': 0
}
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
MATH_500_prompt Ran
ran on a synthesized input
bigai-nlco/latentseek/src/prompts/solver_prompts.py
code served (permissive licence) · get_code("c7427018645757d3")
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 MATH_500_prompt takes:
# - q (str): a question string
# - prompt_idx (int): an index into the prompt list (default 0)

# Looking at the function body:
# - q is used as a string in f-string formatting
# - prompt_idx is used as an index into a list of length 2
# The function returns prompt[prompt_idx], which is a list of dicts with 'role' and 'content' keys

# Construct valid arguments
q = "What is the derivative of x^2?"
prompt_idx = 0

ARGS = {
    "q": q,
    "prompt_idx": prompt_idx
}
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
choice_answer_clean Ran
ran; our contract draft was wrong, not the code
bigai-nlco/latentseek/src/extract_judge_answer/grader.py
pointer only (licence: MIT); the stored copy get_code serves, from QwenLM/Qwen2.5-Math, is pointer only (licence: NONE) · get_code("809c0178a7ae90ff")
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 QwenLM/Qwen2.5-Math, 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.

choice_answer_clean Ran
ran on a synthesized input
bigai-nlco/latentseek/src/extract_judge_answer/parse_utils_qwen.py
code served (permissive licence) · get_code("29ac3caee056dbbd")
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

def choice_answer_clean(pred: str):
    pred = pred.strip('\n')
    ICL = False
    for trigger in ('choice is', 'answer is'):
        if pred.count(trigger) > 1:
            ICL = True
    if ICL:
        pred = pred.split('\n\n')[0]
    preds = re.split('|'.join(('choice is', 'answer is')), pred)
    if len(preds) > 1:
        answer_flag = True
        pred = preds[-1]
    else:
        answer_flag = False
    pred = pred.strip('\n').rstrip('.').rstrip('/').strip(' ').lstrip(':')
    tmp = re.findall('\\b(A|B|C|D|E)\\b', pred.upper())
    if tmp:
        pred = tmp
    else:
        pred = [pred.strip().strip('.')]
    if len(pred) == 0:
        pred = ''
    elif answer_flag:
        pred = pred[0]
    else:
        pred = pred[-1]
    pred = pred.rstrip('.').rstrip('/')
    return pred


ARGS = {
    'pred': 'The choice is A. The answer is B.'
}
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 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
extract_answer Ran
ran on a synthesized input
bigai-nlco/latentseek/src/extract_judge_answer/utils.py
code served (permissive licence) · get_code("6b13e7afc2042384")
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 json
import re

# The function extract_answer takes the following parameters:
# - text: str
# - data_name: str (default 'gsm8k')
# - prompt_idx: int (default 0)
# - model_name: str (default 'Qwen2.5-7B-Instruct')

# Based on the function body, we need to provide valid arguments that will
# execute without error. The function primarily does string processing and
# regex matching, so we need sample text inputs.

ARGS = {
    'text': 'The answer is 42',
    'data_name': 'gsm8k',
    'prompt_idx': 0,
    'model_name': 'Qwen2.5-7B-Instruct'
}
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 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
extract_true_answer Ran
ran on a synthesized input
bigai-nlco/latentseek/src/extract_judge_answer/utils.py
code served (permissive licence) · get_code("55245bd240cd59a0")
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 torch

# Test case 1: GSM8K dataset
text_gsm8k = "Let me solve this step by step.\n#### 42"

# Test case 2: MATH-500 dataset
text_math500 = "The answer is 3.14159"

# Test case 3: AIME_2024 dataset
text_aime = "Final answer: 999"

ARGS = {
    'text': text_gsm8k,
    'name': 'gsm8k'
}
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
get_vera_prompt Ran
ran on a synthesized input
bigai-nlco/latentseek/src/prompts/vera_prompts.py
code served (permissive licence) · get_code("a5b1d036650981f3")
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 torch
import numpy as np

# Construct arguments for get_vera_prompt function
ARGS = {
    'vera_name': 'calculation_check',
    'question': 'What is 2 + 3 multiplied by 4?',
    'solution': 'First, I calculate 2 + 3 = 5. Then I multiply 5 by 4 to get 5 * 4 = 20. Therefore, the answer is 20.'
}
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 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
gsm8k_prompt Ran
ran on a synthesized input
bigai-nlco/latentseek/src/prompts/solver_prompts.py
code served (permissive licence) · get_code("b82d92df5b302601")
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

# Set seed for reproducibility
torch.manual_seed(0)

# Define the arguments for gsm8k_prompt
ARGS = {
    'q': "A store has 15 apples. If they sell 8 apples in the morning and 3 in the afternoon, how many apples are left?",
    'prompt_idx': 0
}
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
is_digit Ran
ran, violated the contract we drafted
bigai-nlco/latentseek/src/extract_judge_answer/grader.py
pointer only (licence: MIT); the stored copy get_code serves, from QwenLM/Qwen2.5-Math, is pointer only (licence: NONE) · get_code("fb37d3c84b18e368")
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 QwenLM/Qwen2.5-Math, 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.

is_equiv Ran
ran, violated the contract we drafted
bigai-nlco/latentseek/src/extract_judge_answer/math_equivalent_MATH.py
code served (permissive licence) · get_code("20063c675d638a77")
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.

ARGS = {
    'str1': '\\frac{1}{2}',
    'str2': '0.5',
    'verbose': False
}
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 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
original_generation Ran
ran on a synthesized input
bigai-nlco/latentseek/src/ori_generation.py
code served (permissive licence) · get_code("7334a52286348c49")
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. 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)

class MockTokenizer:
    def __init__(self):
        self.eos_token = '</s>'
        self.vocab_size = 100
    
    def __call__(self, text_list, return_tensors=None):
        # Return a mock tokenizer output with input_ids
        batch_size = len(text_list)
        input_ids = torch.randint(0, self.vocab_size, (batch_size, 5))
        
        class TokenizerOutput:
            def __init__(self, input_ids):
                self.input_ids = input_ids
            
            def to(self, device):
                self.input_ids = self.input_ids.to(device)
                return self
        
        return TokenizerOutput(input_ids)
    
    def decode(self, token_ids):
        if isinstance(token_ids, list):
            return "generated answer text"
        else:
            return "</s>"

class MockModel(nn.Module):
    def __init__(self, hidden_dim=4, vocab_size=100):
        super().__init__()
        self.hidden_dim = hidden_dim
        self.vocab_size = vocab_size
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.lm_head = nn.Linear(hidden_dim, vocab_size)
        self.model = self
    
    def forward(self, input_ids, output_hidden_states=False):
        # Simulate model forward pass
        embeds = self.embedding(input_ids)
        # Use mean pooling to get hidden states
        hidden_states = embeds.mean(dim=1, keepdim=True)
        hidden_states = hidden_states.expand(-1, input_ids.shape[1], -1)
        
        class ModelOutput:
            def __init__(self, hidden_states):
                self.hidden_states = hidden_states
            
            def __getitem__(self, idx):
                if idx == 0:
                    return self.hidden_states
                return None
        
        return ModelOutput(hidden_states)

input_text = "What is the meaning of life?"
device = "cpu"
tokenizer = MockTokenizer()
model = MockModel(hidden_dim=4, vocab_size=100)

ARGS = {
    'input_text': input_text,
    'model': model,
    'tokenizer': tokenizer,
    '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 tuple — a tuple 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
parse_digits Ran
ran, honoured the contract we drafted
bigai-nlco/latentseek/src/extract_judge_answer/grader.py
pointer only (licence: MIT); the stored copy get_code serves, from QwenLM/Qwen2.5-Math, is pointer only (licence: NONE) · get_code("7d4b7f8c3875b126")
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 QwenLM/Qwen2.5-Math, 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.

convert_expr Not yet run
unverified (harvested, no recorded run)
bigai-nlco/latentseek/src/extract_judge_answer/latex2sympy/latex2sympy2.py
code served (permissive licence) · get_code("9675ce6b40daf814")
How it ran

no invocation recorded.

convert_relation Not yet run
unverified (harvested, no recorded run)
bigai-nlco/latentseek/src/extract_judge_answer/latex2sympy/latex2sympy2.py
code served (permissive licence) · get_code("d3b7a1bd2b1b514a")
How it ran

no invocation recorded.

latex2sympy Not yet run
unverified (harvested, no recorded run)
bigai-nlco/latentseek/src/extract_judge_answer/latex2sympy/latex2sympy2.py
code served (permissive licence) · get_code("699bf6581fe5aa36")
How it ran

no invocation recorded.

optimized_generation Not yet run
unverified (harvested, no recorded run)
bigai-nlco/latentseek/src/opt_generation.py
code served (permissive licence) · get_code("0dfb6b192649acd6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 6 the same month, 4 later) and 9 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
is_digit 18 other papers
8 dated earlier, 2 the same month, 7 later, 1 undated
2405.14365 (2024-05)
JiuZhang3.0: Efficiently Improving Mathematical Reasoning by Training Small Data Synthesis Models
2410.07985 (2024-10)
Omni-MATH: A Universal Olympiad Level Mathematic Benchmark For Large Language Models
2502.06703 (2025-02)
Can 1B LLM Surpass 405B LLM? Rethinking Compute-Optimal Test-Time Scaling
and 15 more not named here
parse_digits 18 other papers
8 dated earlier, 2 the same month, 7 later, 1 undated
2405.14365 (2024-05)
JiuZhang3.0: Efficiently Improving Mathematical Reasoning by Training Small Data Synthesis Models
2410.07985 (2024-10)
Omni-MATH: A Universal Olympiad Level Mathematic Benchmark For Large Language Models
2502.06703 (2025-02)
Can 1B LLM Surpass 405B LLM? Rethinking Compute-Optimal Test-Time Scaling
and 15 more not named here
choice_answer_clean 15 other papers
7 dated earlier, 2 the same month, 5 later, 1 undated
2410.07985 (2024-10)
Omni-MATH: A Universal Olympiad Level Mathematic Benchmark For Large Language Models
2502.06703 (2025-02)
Can 1B LLM Surpass 405B LLM? Rethinking Compute-Optimal Test-Time Scaling
2502.06773 (2025-02)
On the Emergence of Thinking in LLMs I: Searching for the Right Intuition
and 12 more not named here
is_equiv 11 other papers
10 dated earlier, 1 later
2310.05914 (2023-10)
NEFTune: Noisy Embeddings Improve Instruction Finetuning
2310.09168 (2023-10)
EXPLORE-INSTRUCT: Enhancing Domain-Specific Instruction Coverage through Active Exploration
2024.findings-emnlp.407 (2024 (year only))
MultiAgent Collaboration Attack: Investigating Adversarial Attacks in Large Language Model Collaborations via Debate
and 8 more not named here
convert_expr 3 other papers
2 dated earlier, 1 the same month
2410.09671 (2024-10)
OpenR: An Open Source Framework for Advanced Reasoning with Large Language Models
2503.16212 (2025-03)
MathFusion: Enhancing Mathematical Problem-solving of LLM through Instruction Fusion
2505.20347 (2025-05)
SeRL: Self-Play Reinforcement Learning for Large Language Models with Limited Data
convert_relation 3 other papers
2 dated earlier, 1 the same month
2410.09671 (2024-10)
OpenR: An Open Source Framework for Advanced Reasoning with Large Language Models
2503.16212 (2025-03)
MathFusion: Enhancing Mathematical Problem-solving of LLM through Instruction Fusion
2505.20347 (2025-05)
SeRL: Self-Play Reinforcement Learning for Large Language Models with Limited Data
latex2sympy 3 other papers
2 dated earlier, 1 the same month
2410.09671 (2024-10)
OpenR: An Open Source Framework for Advanced Reasoning with Large Language Models
2503.16212 (2025-03)
MathFusion: Enhancing Mathematical Problem-solving of LLM through Instruction Fusion
2505.20347 (2025-05)
SeRL: Self-Play Reinforcement Learning for Large Language Models with Limited Data

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

Reasoning ability, a core component of human intelligence, continues to pose a significant challenge for Large Language Models (LLMs) in the pursuit of AGI. Although model performance has improved under the training scaling law, significant challenges remain, particularly with respect to training algorithms, such as catastrophic forgetting, and the limited availability of novel training data. As an alternative, test-time scaling enhances reasoning performance by increasing test-time computation without parameter updating. Unlike prior methods in this paradigm focused on token space, we propose leveraging latent space for more effective reasoning and better adherence to the test-time scaling law. We introduce LatentSeek, a novel framework that enhances LLM reasoning through Test-Time Instance-level Adaptation (TTIA) within the model's latent space. Specifically, LatentSeek leverages policy gradient to iteratively update latent representations, guided by self-generated reward signals. LatentSeek is evaluated on a range of reasoning benchmarks, including GSM8K, MATH-500, and AIME2024, across multiple LLM architectures. Results show that LatentSeek consistently outperforms strong baselines, such as Chain-of-Thought prompting and fine-tuning-based methods. Furthermore, our analysis demonstrates that LatentSeek is highly efficient, typically converging within a few iterations for problems of average complexity, while also benefiting from additional iterations, thereby highlighting the potential of test-time scaling in the latent space. These findings position LatentSeek as a lightweight, scalable, and effective solution for enhancing the reasoning capabilities of LLMs.

For agents

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

get_harvested_code_for_paper("2505.13308")
get_code_for_paper("2505.13308")
have("2505.13308")

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

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

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

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

Connect an agent — have() is free.