SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.07315 · 2026

LaTER: Efficient Test-Time Reasoning via Latent Exploration and Explicit Verification

Jun Yu, Wei Huang, Yuchen Liu, Xuan Li, Yining Wang, Shengping Liu, Junnan Zhu, Delai Qiu, Guanjun Liu, Jiaen Liang

arXiv · PDF · Open in the Atlas

Code that ran

18 of 20 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 0 have no contract verdict; 16 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2605.07315.json · badge: /api/ran/2605.07315.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
TioeAre/LaTER canonical (classifier label)
classifier basis: census
18 ran · 2 no recorded run
FunctionStatusWhere it lives
build_pca_records Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TioeAre/LaTER/later/src/analysis/visualize_reasoning_trace.py
code served (permissive licence) · get_code("a85a75d30e6964cd")
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

torch.manual_seed(0)

# Analyze function usage:
# - sample_idx: used as int(sample_idx)
# - source_file: used as string
# - h_pca: indexed as h_pca[step, dim], needs shape (num_steps, projection_dim)
# - mask_list: iterated over, each element compared to 0 and converted to int
# - projection_dim: used as int and in range()
# - explicit_steps: used as int()
# - trans_idx: compared to -1 and compared to step, used as int()
# - explained_variance: iterated over and converted to float

sample_idx = 42
source_file = "test_source.txt"
projection_dim = 4
num_steps = 6
h_pca = torch.randn(num_steps, projection_dim)
mask_list = [0, 0, 1, 1, 0, 1]
explicit_steps = 3
trans_idx = 2
explained_variance = np.array([0.5, 0.3, 0.15, 0.05])

ARGS = {
    "sample_idx": sample_idx,
    "source_file": source_file,
    "h_pca": h_pca,
    "mask_list": mask_list,
    "projection_dim": projection_dim,
    "explicit_steps": explicit_steps,
    "trans_idx": trans_idx,
    "explained_variance": explained_variance,
}
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
compute_answer_ce Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/losses.py
code served (permissive licence) · get_code("ba14379aa8082452")
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 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

torch.manual_seed(0)

# token_ce: cross-entropy loss per token, shape (batch, seq_len)
token_ce = torch.randn(2, 4)

# answer_mask: mask indicating which tokens are part of the answer
# Can be same shape as token_ce or have an extra dimension at position 1
# The function handles both cases: same shape or [:, 1:] indexing
answer_mask = torch.randint(0, 2, (2, 4)).float()

ARGS = {
    "token_ce": token_ce,
    "answer_mask": answer_mask,
}
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 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
compute_inner_cot_mask Ran
ran, violated the contract we drafted
TioeAre/LaTER/later/src/train/losses.py
code served (permissive licence) · get_code("7e89c085b31f7654")
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 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Case 1: Valid cot_mask with shape [batch_size, seq_len]
# We need at least 3 True values in some rows for has_inner to be True
# Let's create a mask where some sequences have True values at different positions
cot_mask_valid = torch.tensor([
    [True, False, True, False],   # 2 True values - won't have inner
    [True, False, True, True],     # 3 True values - will have inner (positions 1, 2 between first and last)
], dtype=torch.bool)

# Case 2: None input
cot_mask_none = None

# We'll use the valid case as the primary test
ARGS = {
    "cot_mask": cot_mask_valid
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
extract_batch_base_index Ran
ran, honoured the contract we drafted
TioeAre/LaTER/later/src/analysis/plot_entropy_reasoning_curves.py
code served (permissive licence) · get_code("975601219023e1f4")
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 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.

from pathlib import Path

# The function extracts a batch base index from a Path object's stem
# by splitting on '_' and getting the second element (index 1)
# We need to create a Path object with a stem that has the format "something_NUMBER_..."

# Create a valid Path object with a stem containing an integer at index 1
pt_path = Path("batch_42_data.pt")

ARGS = {
    "pt_path": pt_path,
}
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 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
extract_content_outside_think Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/eval/gpt_evaluator.py
code served (permissive licence) · get_code("caafdd223786b1d3")
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 re

def extract_content_outside_think(text):
    """split think and response

    Parameters
    ----------
    text : _type_
        origin response

    Returns
    -------
    _type_
        reasoning content, result
    """
    inside_pattern = '<think>(.*?)</think>'
    inside_content = re.findall(inside_pattern, text, flags=re.DOTALL)
    outside_pattern = '<think>.*?</think>'
    outside_content_raw = re.split(outside_pattern, text, flags=re.DOTALL)
    cleaned_parts = (part.strip() for part in outside_content_raw if part and part.strip())
    outside_content_string = ' '.join(cleaned_parts)
    return (inside_content, outside_content_string)


# Test with a sample text containing think tags
text_with_think = """
This is before.
<think>
This is reasoning content
inside the think tags
</think>
This is after.
<think>Another thought</think>
More after content.
"""

ARGS = {
    "text": text_with_think
}
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 — 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
find_transition_idx Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TioeAre/LaTER/later/src/analysis/visualize_reasoning_trace.py
code served (permissive licence) · get_code("ccd39752a2f3f10f")
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 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 torch

torch.manual_seed(0)

# The function find_transition_idx takes a mask_list parameter
# It iterates through the list looking for a transition from 0 to 1
# It returns the index where this transition occurs, or -1 if not found

# Create a simple mask list with a transition from 0 to 1
mask_list = [0, 0, 1, 1]

ARGS = {
    "mask_list": mask_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 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_logger Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/log.py
code served (permissive licence) · get_code("1082508e65f77331")
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 Logger. 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 logging

# The function get_logger takes a single parameter: name (a string)
# It simply calls logging.getLogger(name) and returns the result
# No special attributes or methods are required beyond what strings naturally have

ARGS = {
    "name": "test_logger"
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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_no_latent_token_constants Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/dataset_no_latent.py
code served (permissive licence) · get_code("634dcdf1c4722980")
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
from unittest.mock import Mock

class MockTokenizer:
    def __init__(self):
        self.token_map = {
            '<think>': 1000,
            '</think>': 1001,
            '<|im_start|>': 1002,
            '<|im_end|>': 1003,
            '<|endoftext|>': 1004,
        }
    
    def convert_tokens_to_ids(self, token):
        return self.token_map.get(token, None)
    
    def encode(self, text, add_special_tokens=False):
        if text == '<think>':
            return [1000]
        elif text == '</think>':
            return [1001]
        else:
            return []

tokenizer = MockTokenizer()

ARGS = {
    'tokenizer': tokenizer,
}
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
list_pt_files Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/analysis/plot_entropy_reasoning_curves.py
code served (permissive licence) · get_code("a86097ee15f599da")
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 tempfile
from pathlib import Path
import torch

# Create a temporary directory with .pt files
tmpdir = tempfile.TemporaryDirectory()
data_dir = tmpdir.name

# Create some sample .pt files with names that match the pattern used in the function
Path(data_dir, "batch_0_data.pt").write_bytes(b"dummy")
Path(data_dir, "batch_1_data.pt").write_bytes(b"dummy")
Path(data_dir, "batch_2_data.pt").write_bytes(b"dummy")
Path(data_dir, "batch_10_data.pt").write_bytes(b"dummy")

# Define arguments for the function
ARGS = {
    "data_dir": data_dir,
    "max_files": 2
}
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
load_sft_frame Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/dataset.py
code served (permissive licence) · get_code("e7f33d9cfa4fe2d3")
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 DataFrame. 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 pandas as pd
import tempfile
import os

# Create a temporary parquet file for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.parquet")

# Create a sample dataframe with curriculum_index
df = pd.DataFrame({
    'curriculum_index': [2, 0, 1],
    'text': ['sample1', 'sample2', 'sample3'],
    'label': [1, 2, 3]
})

# Save to parquet
df.to_parquet(temp_file)

ARGS = {
    'data_path': temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
load_sft_split Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/dataset.py
code served (permissive licence) · get_code("381fc9b66380a95a")
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 pandas as pd
import tempfile
import os

# Create a temporary parquet file with sample data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "sample_data.parquet")

# Create a sample DataFrame with some rows
sample_data = {
    'text': ['sample text 1', 'sample text 2', 'sample text 3', 'sample text 4', 'sample text 5'],
    'label': [0, 1, 0, 1, 0]
}
df = pd.DataFrame(sample_data)
df.to_parquet(temp_file)

ARGS = {
    'data_path': temp_file,
    'val_ratio': 0.2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
read_model_type_from_config_dir Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/modeling_latent.py
code served (permissive licence) · get_code("fe22240ff8b648df")
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
from pathlib import Path
import tempfile
import os

# Create a temporary directory with a config.json file
temp_dir = tempfile.mkdtemp()
config_data = {
    'model_type': 'bert',
    'hidden_size': 768,
    'num_attention_heads': 12
}
config_path = Path(temp_dir) / 'config.json'
config_path.write_text(json.dumps(config_data), encoding='utf-8')

ARGS = {
    'model_path': temp_dir
}
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
resolve_lora_modules_to_save Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/lora_utils.py
code served (permissive licence) · get_code("2ec66e839484bff2")
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 torch.nn as nn
from typing import Any, Dict, List

torch.manual_seed(0)

# Test case 1: config with None for lora_modules_to_save
config_none = {
    'lora_modules_to_save': None
}

# Test case 2: config with string value
config_string = {
    'lora_modules_to_save': 'custom_module'
}

# Test case 3: config with list of strings
config_list = {
    'lora_modules_to_save': ['module1', 'module2', 'module3']
}

# Test case 4: config with missing key (defaults to None)
config_missing = {}

# Use the most comprehensive test case with a list
ARGS = {
    'config': config_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 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
setup_logger Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/log.py
code served (permissive licence) · get_code("c3e7726903aeb74e")
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 Logger. 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 logging
from pathlib import Path
import tempfile

ARGS = {
    'name': 'test_logger',
    'log_level': 'INFO',
    'log_file': None,
    'is_main_process': True,
    'rank': 0,
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
stack_hidden_states Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/analysis/plot_svd_reasoning_curves.py
code served (permissive licence) · get_code("0585003aede476e6")
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 2, dtype family float, shape (2, 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 torch

torch.manual_seed(0)

# Create a sequence of hidden state tensors
# The function expects tensors that can be squeezed to 2D after stacking
# Each tensor should have shape that when squeezed and stacked gives 2D result
hidden_states = [
    torch.randn(1, 4),  # Shape (1, 4) - will squeeze to (4,)
    torch.randn(1, 4),  # Shape (1, 4) - will squeeze to (4,)
]

ARGS = {
    "hidden_states": hidden_states
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
tensorboard_dir_from_config Ran
ran; our contract draft was wrong, not the code
TioeAre/LaTER/later/src/train/log.py
code served (permissive licence) · get_code("e28e3e9c75ae81fb")
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 PosixPath. 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 pathlib import Path

# The function takes a config dict and uses:
# - config.get('tensorboard_root', 'runs/tensorboard')
# - config.get('tensorboard_run_name', 'sft_latent_qwen3')
# Both are converted to strings and used in Path construction

ARGS = {
    'config': {
        'tensorboard_root': 'runs/tensorboard',
        'tensorboard_run_name': 'sft_latent_qwen3'
    }
}
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 PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath 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
truncate_no_latent_ids Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TioeAre/LaTER/later/src/train/dataset_no_latent.py
code served (permissive licence) · get_code("fe6e8d2482368cd8")
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 int; 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.

from dataclasses import dataclass

@dataclass
class NoLatentSampleSpans:
    assistant_prefix_start: int
    assistant_content_start: int
    think_start: int
    think_end: int
    answer_start: int
    im_end: int

# Create sample token_ids list
token_ids = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150]

# Create spans object with valid indices
spans = NoLatentSampleSpans(
    assistant_prefix_start=2,
    assistant_content_start=3,
    think_start=4,
    think_end=8,
    answer_start=9,
    im_end=15
)

# Set max_length
max_length = 10

ARGS = {
    "token_ids": token_ids,
    "spans": spans,
    "max_length": max_length
}
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 int — 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
truncate_trace Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
TioeAre/LaTER/later/src/analysis/visualize_reasoning_trace.py
code served (permissive licence) · get_code("647a91a7768de13a")
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 numpy as np

torch.manual_seed(0)

# Analyzing the function truncate_trace:
# - h_list: a list that supports indexing, slicing, and len()
# - mask_list: a list that supports indexing, slicing, len(), and equality checks with 0 and 1
# - explicit_steps: an integer

# The function finds transitions in mask_list and truncates h_list based on explicit_steps
# h_list appears to contain some kind of hidden states/representations
# mask_list contains binary values (0 and 1)

# Create sample data
h_list = [
    torch.randn(2, 4),  # batch_size=2, dim=4
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
    torch.randn(2, 4),
]

# mask_list with a transition from 0 to 1 at index 2
mask_list = [0, 0, 1, 1, 1]

explicit_steps = 3

ARGS = {
    "h_list": h_list,
    "mask_list": mask_list,
    "explicit_steps": explicit_steps,
}
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 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
compute_weighted_ce Not yet run
unverified (harvested, no recorded run)
TioeAre/LaTER/later/src/train/losses.py
code served (permissive licence) · get_code("de91122ef927f37c")
How it ran

no invocation recorded.

load_tokenizer Not yet run
unverified (harvested, no recorded run)
TioeAre/LaTER/later/src/analysis/plot_entropy_reasoning_curves.py
code served (permissive licence) · get_code("0e0355e6f4139423")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 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, 1 later) and 18 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_logger 8 other papers
6 dated earlier, 2 later
2111.05897 (2021-11)
Persia: An Open, Hybrid System Scaling Deep Learning-based Recommenders up to 100 Trillion Parameters
2401.10491 (2024-01)
Knowledge Fusion of Large Language Models
2412.03187 (2024-12)
Weighted-Reward Preference Optimization for Implicit Model Fusion
and 5 more not named here
extract_content_outside_think 1 other paper
1 dated earlier
2601.07329 (2026-01)
BayesRAG: Probabilistic Mutual Evidence Corroboration for Multimodal Retrieval-Augmented Generation

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

Chain-of-thought (CoT) reasoning improves large language models (LLMs) on difficult tasks, but it also makes inference expensive because every intermediate step must be generated as a discrete token. Latent reasoning reduces visible token generation by propagating continuous states, yet replacing explicit derivations with latent computation can hurt tasks that require symbolic checking. We propose Latent-Then-Explicit Reasoning (LaTER), a two-stage paradigm that first performs bounded exploration in a continuous latent space and then switches to explicit CoT for verification and answer generation. In a training-free instantiation, LaTER projects final-layer hidden states back to the input embedding space, preserves the latent KV cache, and uses entropy and model-native stoptoken probes to decide when to switch. We find that strong reasoning models already exhibit structured latent trajectories under this interface. On Qwen3-14B, training-free LaTER reduces total token usage by 16%-32% on several benchmarks while matching or improving accuracy on most of them; for example, it improves AIME 2025 from 70.0% to 73.3% while reducing tokens from 15,730 to 10,661. We further construct LATENT-SWITCH-69K, a supervised corpus that pairs condensed solution intuitions with shortened explicit derivations. Fine-tuning with latent rollout and halting supervision yields additional gains: trained LaTER reaches 80.0% accuracy on AIME 2025, 10.0 points above the standard CoT baseline, while using 33% fewer tokens. Our code, data, and model are available at https://github.com/TioeAre/LaTER. Recent work therefore studies reasoning in a continuous latent space [4,5]. Instead of sampling a visible token at every reasoning step, a model can feed back a hidden state or a soft embedding as the next input, using either an analytic mapping such as a pseudo-inverse projection [6] or a learned projector [7], and only decodes discrete readable tokens in the final answer stage. This can substantially reduce visible token generation and has shown promising efficiency gains [4, 8,

For agents

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

get_harvested_code_for_paper("2605.07315")
get_code_for_paper("2605.07315")
have("2605.07315")

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

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

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

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

Connect an agent — have() is free.