Manuscript Offprint

arXiv:2609.35694

Reasoning with Continuous Latent Diffusion

Xiang Cheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Continuous diffusion generates complete reasoning solutions through iterative refinement in latent space. We introduce Latent Flow Reasoning Models (LFRMs), an ELF-based training and inference recipe. Our experiments show that accurate decoding alone does not ensure strong reasoning performance. We therefore learn compact representations from multiple layers of a strong autoregressive teacher. Their decomposition also enables asynchronous denoising at different rates. We show that prompt encodings need only preserve the information required for the correct text-conditional score, rather than exactly match teacher features, and use a staged curriculum to learn a compact prompt encoder that replaces the teacher Transformer at inference. We adapt DiffusionNFT to learned self-conditioning guidance and incorporate gold-solution endpoints to supplement sparse rewards. Our supervised models outperform reported results from recent continuous-diffusion baselines at comparable backbone scales on mathematical reasoning and HumanEval code generation. With a 638M-parameter denoising backbone and learned prompt conditioning, post-NFT LFRM-L achieves 63.74% pass@1 on GSM8K and 24.6% on MATH500 at 64 denoising steps, and 32.85% on HumanEval and 30.18% on HumanEval+ at 128 denoising steps. Code will be available at: https://github.com/chengxiang/LFRM.

1 Introduction

Autoregressive language models have made substantial progress on mathematical reasoning (Lewkowycz et al., 2022; DeepSeek-AI et al., 2025). Continuous diffusion offers a complementary approach, generating complete solutions through iterative refinement of all answer positions. Whereas autoregressive and discrete-diffusion language models typically generate in token space, continuous latent diffusion makes the denoising representation an additional design choice (Hu et al., 2026; Nie et al., 2025). Reasoning requires this representation to preserve exact quantities and dependencies between deductions. We therefore ask: what representation makes complex reasoning solutions amenable to generation through denoising? Token representations span a spectrum of complexity: tokenwise embedding tables, contextual encodings from bidirectional networks such as T5, and hidden activations of powerful autoregressive models (Gulrajani and Hashimoto, 2023; Raffel et al., 2019; Yang et al., 2025). We find that strong clean-token recovery can coexist with weak reasoning generation, motivating representation design for both decoding and generation (Figure 2; Appendix C.2).

We introduce Latent Flow Reasoning Models (LFRMs), based on the simple continuous flow formulation of Embedded Language Flows (ELF; Hu et al., 2026). Our pipeline learns compact answer representations from multiple layers of a strong autoregressive teacher (Figure 1). To avoid retaining the teacher for prompt conditioning, we separate the answer-generation target from the prompt encoding. Conditioning on prompt text makes that encoding an internal, learnable interface:

it need only preserve the information required for denoising, without exact teacher-feature matching (Lemma 1). We use this flexibility to jointly train a compact prompt encoder and denoiser through the generative objective.

Remaining close to standard continuous diffusion lets us apply DiffusionNFT (Zheng et al., 2025) with verifiable rewards, after adapting it to ELF's learned guidance. Our supervised models outperform comparable-scale continuous-diffusion baselines on mathematical reasoning and HumanEval code generation; NFT further improves accuracy on both math and code.

Contributions. Our complete reasoning pipeline comprises the following key contributions:

  1. A complete recipe for competitive continuous-diffusion reasoning. We develop an LFRM pipeline spanning representation learning, conditional flow training, and inference (Figure 1). Our models demonstrate strong performance on math and coding tasks. Our supervised models outperform reported continuous-diffusion baselines at comparable backbone scales on mathematical reasoning across the evaluated denoising budgets (Tables 3–4); our supervised and post-NFT models also outperform reported PlaidQ results on HumanEval(+) (Table 6).

  2. Representation design shapes both reasoning accuracy and denoising dynamics. We analyze representations for both ease of decoding (Appendix C.2) and ease of generation, motivating a learned multilayer representation that improves reasoning accuracy (Figure 2). Its layer decomposition enables asynchronous denoising across components, improving accuracy over synchronous denoising in our matched schedule comparison (Section 4.3 and Table 2). Thus the latent space shapes both what the model learns and how it generates.

  3. Learning compact prompt encoders through staged adaptation. We show that information preservation for denoising is sufficient for an ideal downstream score network to recover the correct text-conditional score, without exact MSE matching to teacher prompt features (Lemma 1). This permits a compact prompt encoder to replace the large teacher. Our staged curriculum first learns the flow under fixed teacher conditioning, then fits the encoder and jointly adapts both networks (Figure 4), addressing the difficulty of learning them together from initialization (Figure 2).

  4. Guidance-compatible diffusion reinforcement learning for reasoning. We propose a method to reconcile DiffusionNFT's CFG-free optimization (Zheng et al., 2025) with ELF's learned self-conditioning guidance. We optimize guidance-corrected fields while retaining guided rollouts, jointly updating the flow and prompt encoder as a text-conditioned policy (Section 5.1). Gold-solution endpoints supplement sparse correctness rewards, with their anchoring effect characterized in Lemma 2. NFT improves single-sample accuracy on math and code, and majority-vote performance on mathematics (Figure 5; Table 6).

References (100)

Couldn't load all references. Reload the page to try again.