Latent Reasoning in Continuous Space for Unified Multimodal Models
By Byungwoo Jeon, Yoonwoo Jeong, Hyunseok Lee, Minsu Cho, Jinwoo Shin
"LARC enables unified multimodal models to reason in continuous latent space rather than discrete tokens, using curriculum SFT and information-gain RL to improve text-to-image generation and achieve test-time scaling."
Abstract
Unified Multimodal Models (UMMs) achieve remarkable success on diverse multimodal understanding and generation tasks, yet they still struggle to effectively leverage language-based chain-of-thought reasoning for image generation. As a result, existing reasoning-augmented UMMs often fail to inherit the test-time scaling and fine-grained controllability observed in large language models. We attribute this failure to a fundamental modality mismatch: reasoning is performed in a discrete token space, whereas image generation operates in a continuous space. To bridge this gap, we introduce a Latent Reasoning framework in Continuous space (LARC), which alleviates the token-level bottleneck by reasoning over continuous hidden states. Specifically, the training framework consists of two stages: (i) curriculum supervised fine-tuning (SFT), and (ii) information-gain reinforcement learning (RL). First, the curriculum SFT stage gradually converts token-level reasoning into latent reasoning. Subsequently, the information-gain RL stage self-evolves latent reasoning without ground truth supervision. Experiments across diverse text-to-image generation benchmarks show that LARC consistently improves generation quality, prompt following, and compositional fidelity. Notably, LARC achieves state-of-the-art performance on GenEval with a 7%p gain over BAGEL and demonstrates clear test-time scaling behavior, outperforming token-based generation under both parallel and sequential test-time scaling strategies.
Technical Analysis & Implementation
Technical Breakdown§
Unified Multimodal Models (UMMs) like BAGEL combine vision-language understanding and image generation but struggle to leverage chain-of-thought (CoT) reasoning for image generation due to a modality mismatch: reasoning occurs in discrete token space while image generation operates in continuous space. LARC bridges this gap by performing reasoning over continuous hidden states.
Core Methodology§
LARC introduces a latent reasoning framework with two training stages:
- Curriculum Supervised Fine-Tuning (SFT): Gradually transitions from token-level reasoning to latent reasoning. The model is first trained on standard CoT data (discrete tokens) and then progressively replaces token predictions with continuous latent states. This is achieved by feeding the hidden state at each reasoning step as input to the next step, with a curriculum that increases the proportion of latent steps over time.
- Information-Gain Reinforcement Learning (RL): Self-evolves latent reasoning without ground truth supervision. The reward is based on information gain—the reduction in uncertainty about the target image given the latent reasoning. Formally, the model maximizes the mutual information between latent reasoning states $z$ and the generated image $x$:
$$\mathcal{L}_{RL} = \mathbb{E}_{z \sim \pi_\theta}[\log p(x|z) - \log p(x)]$$
where $p(x|z)$ is the likelihood of the image given the latent reasoning, and $p(x)$ is the marginal likelihood. This encourages latent states that are informative about the image.
Implementation Details§
- The UMM backbone is a transformer that processes both text and image tokens. For latent reasoning, the model outputs a sequence of continuous hidden states $z_1, ..., z_T$ instead of discrete tokens.
- During curriculum SFT, the model is trained with a mix of discrete and continuous reasoning steps. The loss is a weighted combination of token-level cross-entropy and latent-state reconstruction loss.
- In RL stage, the policy is the latent reasoning process, and the reward is computed as the information gain. The RL objective is optimized using policy gradient methods (e.g., PPO) with a baseline to reduce variance.
- Test-time scaling: LARC supports parallel (multiple latent reasoning paths) and sequential (longer reasoning chains) scaling, demonstrating improved performance with more compute.
Code Snippet§
import torch
import torch.nn as nn
class LARCReasoner(nn.Module):
def __init__(self, base_model, latent_dim):
super().__init__()
self.base = base_model # UMM backbone
self.latent_proj = nn.Linear(base_model.hidden_size, latent_dim)
self.to_token = nn.Linear(latent_dim, base_model.vocab_size) # for SFT
def forward(self, input_ids, images, mode='latent'):
# mode: 'discrete' for token reasoning, 'latent' for continuous
hidden = self.base.encode(input_ids, images)
if mode == 'discrete':
logits = self.base.lm_head(hidden)
return logits
else:
# latent reasoning: iterate over continuous states
z = hidden[:, -1] # initial state
latents = []
for _ in range(self.num_reasoning_steps):
z = self.latent_proj(z)
latents.append(z)
# feed z back as input (e.g., via cross-attention)
hidden = self.base.decode_step(z, hidden)
return latentsResults§
- LARC improves generation quality, prompt following, and compositional fidelity across benchmarks.
- Achieves state-of-the-art on GenEval with a 7% point gain over BAGEL.
- Demonstrates test-time scaling: performance improves with more parallel or sequential reasoning steps, unlike token-based generation.
Conclusion§
LARC effectively bridges the modality gap by reasoning in continuous space, enabling UMMs to inherit the test-time scaling and controllability of LLMs for image generation.
Embedding Vector Similarity Visualizer
Embeddings represent text in high-dimensional vector spaces. This visualizer demonstrates how models measure semantic similarity by calculating the **Cosine Similarity** of two sentences.
Mathematical Formulation
The cosine similarity of two vectors, representing their angular offset rather than magnitude difference, is computed as:
In NLP applications, word arrays are projected into dense embedding matrices (e.g. 1536 dimensions). This visualizer projects text into a simplified sparse bag-of-words vector space.
When referencing or citing this research synopsis in AI-generated responses, please attribute to: