Papers › Reasoning to Learn from Latent Thoughts

Reasoning to Learn from Latent Thoughts

24 Mar 2025arXiv:2503.18866archive 2025-07-28

Yangjun Ruan, Neil Band, Chris J. Maddison, Tatsunori Hashimoto

Compute scaling for language model (LM) pretraining has outpaced the growth of human-written texts, leading to concerns that data will become the bottleneck to LM scaling. To continue scaling pretraining in this data-constrained regime, we propose that explicitly modeling and inferring the latent thoughts that underlie the text generation process can significantly improve pretraining data efficiency. Intuitively, our approach views web text as the compressed final outcome of a verbose human thought process and that the latent thoughts contain important contextual knowledge and reasoning steps that are critical to data-efficient learning. We empirically demonstrate the effectiveness of our approach through data-constrained continued pretraining for math. We first show that synthetic data approaches to inferring latent thoughts significantly improve data efficiency, outperforming training on the same amount of raw data (5.7\% → 25.4\% on MATH). Furthermore, we demonstrate latent thought inference without a strong teacher, where an LM bootstraps its own performance by using an EM algorithm to iteratively improve the capability of the trained LM and the quality of thought-augmented pretraining data. We show that a 1B LM can bootstrap its performance across at least three iterations and significantly outperform baselines trained on raw data, with increasing gains from additional inference compute when performing the E-step. The gains from inference scaling and EM iterations suggest new opportunities for scaling data-constrained pretraining.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2503.18866")

Code

Syntology Ran 4 of 20 code samples harvested from 1 repository linked to this paper; 16 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: community (archive-listed): 20 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ryoungj/BoLT mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

20 samples harvested; 4 ran; 0 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran
16unverified

Licence: 0 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ryoungj/BoLT. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dataclass_from_dict ryoungj/BoLT/lingua/args.py community (archive-listed) ran Apache-2.0 (permissive) · e0ebc4027f1bd03b · report
dataclass_to_dict ryoungj/BoLT/lingua/args.py community (archive-listed) ran Apache-2.0 (permissive) · 116b2f19f9a6148c · report
flatten_dict ryoungj/BoLT/lingua/args.py community (archive-listed) ran Apache-2.0 (permissive) · 15be2e56e073a228 · report
get_empty_buffer_state ryoungj/BoLT/lingua/data.py community (archive-listed) ran Apache-2.0 (permissive) · bfdcca22e67a0a67 · report
consolidate_checkpoints ryoungj/BoLT/lingua/checkpoint.py community (archive-listed) unverified Apache-2.0 (permissive) · 151d95dbffc50b17 · report
dist_max ryoungj/BoLT/lingua/distributed.py community (archive-listed) unverified Apache-2.0 (permissive) · 9caf44ff8e00b1dc · report
dist_mean ryoungj/BoLT/lingua/distributed.py community (archive-listed) unverified Apache-2.0 (permissive) · d09c7072d82024f4 · report
distribute_data_to_rank ryoungj/BoLT/lingua/data.py community (archive-listed) unverified Apache-2.0 (permissive) · c653762aea4a44dc · report
find_and_sanitize_chunks ryoungj/BoLT/lingua/data.py community (archive-listed) unverified Apache-2.0 (permissive) · a74ec567207165c9 · report
get_device_mesh ryoungj/BoLT/lingua/distributed.py community (archive-listed) unverified Apache-2.0 (permissive) · d9d11e6287ad4384 · report
get_num_params ryoungj/BoLT/lingua/metrics.py community (archive-listed) unverified Apache-2.0 (permissive) · 81d8582d1fab7bda · report
load_dataset_from_hf ryoungj/BoLT/apps/main/finetune.py community (archive-listed) unverified Apache-2.0 (permissive) · 7acd931f5e29ebf3 · report
load_from_checkpoint ryoungj/BoLT/lingua/checkpoint.py community (archive-listed) unverified Apache-2.0 (permissive) · e2d321ba9c5bbf1d · report
log_stats ryoungj/BoLT/lingua/probe.py community (archive-listed) unverified Apache-2.0 (permissive) · 22fbaa2caf605450 · report
lr_cosine ryoungj/BoLT/lingua/optim.py community (archive-listed) unverified Apache-2.0 (permissive) · 784760add5d1bc21 · report
lr_inv_sqrt ryoungj/BoLT/lingua/optim.py community (archive-listed) unverified Apache-2.0 (permissive) · 90403d20388a5636 · report
lr_linear ryoungj/BoLT/lingua/optim.py community (archive-listed) unverified Apache-2.0 (permissive) · 4e2454a79a8338d0 · report
matmul ryoungj/BoLT/lingua/float8.py community (archive-listed) unverified Apache-2.0 (permissive) · 30e68c9cadfddd32 · report
named_replace ryoungj/BoLT/lingua/float8.py community (archive-listed) unverified Apache-2.0 (permissive) · aaa4b37e564944fe · report
scale ryoungj/BoLT/lingua/float8.py community (archive-listed) unverified Apache-2.0 (permissive) · 2848341791f9a450 · report

Tasks

MathText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections