SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.29712 · 2026

Why Struggle with Continuous Latents? Interpretable Discrete Latent Reasoning via Rendered Compression

Qianli Ma, Yibo Miao, Shaobo Wang, Jiangtong Li, Li Niu, Zelin Peng, Bingjie Gao, Qingyang Liu, Yulin Sun, Haonan Zhao, Shuochen Chang

arXiv · PDF · Open in the Atlas

Code that ran

13 of 19 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; 4 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 7 failures of our instrument; 6 no recorded run), measured 2026-11-24; 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/2606.29712.json · badge: /api/ran/2606.29712.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
Miraclecsc/Discrete-Latent-Reasoning canonical (classifier label)
classifier basis: census
13 ran · 6 no recorded run
FunctionStatusWhere it lives
build_image_transform Ran
ran; our contract draft was wrong, not the code
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/export_codebook_ids.py
pointer only (licence: NONE) · get_code("5cf5b42882a4641d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

extract_coordinates_and_label Ran
ran; our contract draft was wrong, not the code
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/hf_code/modeling_deepseekocr2.py
pointer only (licence: NONE) · get_code("efa042d231a33f48")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_base_model Ran
ran; our contract draft was wrong, not the code
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/export_codebook_ids.py
pointer only (licence: NONE) · get_code("771d0a6e88b87f34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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_conversational Ran
ran, violated the contract we drafted
Miraclecsc/Discrete-Latent-Reasoning/latent_llm/trl/trl/data_utils.py
pointer only (licence: NONE) · get_code("7d917ecb72ab517d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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_liger_kernel_available Ran
ran, violated the contract we drafted
Miraclecsc/Discrete-Latent-Reasoning/latent_llm/trl/trl/import_utils.py
pointer only (licence: NONE) · get_code("5ef9050db11f6a70")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

load_image Ran
ran, honoured the contract we drafted
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/hf_code/modeling_deepseekocr2.py
pointer only (licence: NONE) · get_code("423c3753d415a8e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

prepare_multimodal_messages Ran
ran; our contract draft was wrong, not the code
Miraclecsc/Discrete-Latent-Reasoning/latent_llm/trl/trl/data_utils.py
pointer only (licence: NONE) · get_code("d3e695f171355495")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

prepare_multimodal_messages_vllm Ran
ran; our contract draft was wrong, not the code
Miraclecsc/Discrete-Latent-Reasoning/latent_llm/trl/trl/data_utils.py
pointer only (licence: NONE) · get_code("0a72e50c0c6c809f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

re_match Ran
ran; our contract draft was wrong, not the code
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/hf_code/modeling_deepseekocr2.py
pointer only (licence: NONE) · get_code("5f6c894866c688de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

resolve_model_dtype Ran
ran; our contract draft was wrong, not the code
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/export_codebook_ids.py
pointer only (licence: NONE) · get_code("98474d13c1001a6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

yarn_find_correction_dim Ran
ran, honoured the contract we drafted
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/hf_code/modeling_deepseekv2.py
pointer only (licence: NONE) · get_code("de3c1ddb7a5bbb47")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

yarn_find_correction_range Ran
ran, honoured the contract we drafted
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/hf_code/modeling_deepseekv2.py
pointer only (licence: NONE) · get_code("ed5f1f4e8c0439b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

yarn_get_mscale Ran
ran, honoured the contract we drafted
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/hf_code/modeling_deepseekv2.py
pointer only (licence: NONE) · get_code("8dfdb3a53834d90f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning 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.

add_response_schema Not yet run
unverified (harvested, no recorded run)
Miraclecsc/Discrete-Latent-Reasoning/latent_llm/trl/trl/chat_template_utils.py
pointer only (licence: NONE) · get_code("8f69dd031f754df2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

clone_chat_template Not yet run
unverified (harvested, no recorded run)
Miraclecsc/Discrete-Latent-Reasoning/latent_llm/trl/trl/chat_template_utils.py
pointer only (licence: NONE) · get_code("f53efd7df2a5b09e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_patched_checkpoint_dir Not yet run
unverified (harvested, no recorded run)
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/visualize_latent_ids.py
pointer only (licence: NONE) · get_code("0f99e454dec4edce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

format_messages Not yet run
unverified (harvested, no recorded run)
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/visualize_latent_ids.py
pointer only (licence: NONE) · get_code("f7b7e7fc9cc7cad8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

is_chat_template_prefix_preserving Not yet run
unverified (harvested, no recorded run)
Miraclecsc/Discrete-Latent-Reasoning/latent_llm/trl/trl/chat_template_utils.py
pointer only (licence: NONE) · get_code("cc23b32462ca72ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_model_and_tokenizer Not yet run
unverified (harvested, no recorded run)
Miraclecsc/Discrete-Latent-Reasoning/deepseek_codebook/visualize_latent_ids.py
pointer only (licence: NONE) · get_code("8e067d12bb78f5b8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Miraclecsc/Discrete-Latent-Reasoning when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 3 the same month, 0 later) and 10 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
yarn_get_mscale 3 other papers
2 dated earlier, 1 the same month
2412.10302 (2024-12)
DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding
2025.acl-industry.15 (2025 (year only))
Run LoRA Run: Faster and Lighter LoRA Implementations
2606.04980 (2026-06)
AlphaQ: Calibration-Free Bit Allocation for Mixture-of-Experts Quantization
yarn_find_correction_dim 2 other papers
1 dated earlier, 1 the same month
2412.10302 (2024-12)
DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding
2606.04980 (2026-06)
AlphaQ: Calibration-Free Bit Allocation for Mixture-of-Experts Quantization
yarn_find_correction_range 2 other papers
1 dated earlier, 1 the same month
2412.10302 (2024-12)
DeepSeek-VL2: Mixture-of-Experts Vision-Language Models for Advanced Multimodal Understanding
2606.04980 (2026-06)
AlphaQ: Calibration-Free Bit Allocation for Mixture-of-Experts Quantization
extract_coordinates_and_label 1 other paper
1 dated earlier
2601.23184 (2026-01)
ReGuLaR: Variational Latent Reasoning Guided by Rendered Chain-of-Thought
is_conversational 1 other paper
1 dated earlier
2403.10088 (2024-03)
Intent-conditioned and Non-toxic Counterspeech Generation using Multi-Task Instruction Tuning with RLAIF
is_liger_kernel_available 1 other paper
1 dated earlier
2403.10088 (2024-03)
Intent-conditioned and Non-toxic Counterspeech Generation using Multi-Task Instruction Tuning with RLAIF
load_image 1 other paper
1 dated earlier
2601.23184 (2026-01)
ReGuLaR: Variational Latent Reasoning Guided by Rendered Chain-of-Thought
prepare_multimodal_messages_vllm 1 other paper
1 dated earlier
2403.10088 (2024-03)
Intent-conditioned and Non-toxic Counterspeech Generation using Multi-Task Instruction Tuning with RLAIF
re_match 1 other paper
1 dated earlier
2601.23184 (2026-01)
ReGuLaR: Variational Latent Reasoning Guided by Rendered Chain-of-Thought

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 achieve high reasoning performance via explicit chain-ofthought and reinforcement learning, but require long output sequences and extended inference time. Latent reasoning reduces this cost by shifting computation into a latent space; however, continuous latent methods are hard to train, suffering from unstable and uninterpretable reasoning trajectories. We argue these issues stem from a misalignment between continuous-space reasoning and discrete symbolic supervision, as continuous states lack explicit anchors for step-by-step alignment. To resolve this, we propose Discrete Latent Reasoning (DLR), the first method that converts continuous latent states into explicit discrete tokens. Inspired by render-based compression, we render textual chains of thought into images, extract visual features, and construct a discrete latent vocabulary via clustering-based finetuning. Expanding the vocabulary and output head enables standard autoregressive modeling over both natural language and latent tokens, supporting pretraining alignment, SFT, and RL. Experiments on five reasoning benchmarks and two model series (Qwen3-VL and LLaMA-3) confirm that DLR outperforms prior latent reasoning baselines with up to 20× compression. Furthermore, the learned latent trajectories retain an interpretable semantic structure. Overall, discrete latent tokens provide a controllable and interpretable basis for efficient latent reasoning. Code is available at github.com/Miraclecsc/Discrete-Latent-Reasoning.

For agents

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

get_harvested_code_for_paper("2606.29712")
get_code_for_paper("2606.29712")
have("2606.29712")

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

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

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

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

Connect an agent — have() is free.