arXiv:2610.39557cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39557

LatentWeave: Test-Time Latent Optimization for Multimodal Reasoning

Fanci Meng, Kun Wang, Guibin Zhang, Xinlei Yu, Jiaming Zhang, Ming Li, Yang Wang

ABSTRACT

Recent advances in test-time optimization have shown that the multimodal reasoning performance of large multimodal language models (MLLMs) can be improved during inference without modifying backbone model parameters. However, existing approaches primarily operate at the prompt or output level, leaving the latent reasoning process largely uncontrolled and insufficient to prevent error accumulation during autoregressive generation. To address this limitation, we propose LatentWeave, a test-time framework that treats multimodal reasoning as a controllable latent trajectory. LatentWeave performs structured Latent Weaving, progressively refining intermediate hidden states segment-wise to correct emerging deviations, and further introduces Reasoning Anchors via lightweight WEAVE tokens to stabilize reasoning structure and guide answer-oriented generation. These mechanisms are designed to enable fine-grained, step-aware intervention in the latent reasoning process while keeping the main MLLM backbone parameters fixed. Extensive experiments across diverse multimodal reasoning benchmarks report improvements over the evaluated baselines; the contribution of latent optimization, anchor training, and additional test-time computation is analyzed separately in the ablation and efficiency studies. Our code is available at https://github.com/jins7/LatentWeave.

1 INTRODUCTION

Multimodal large language models (MLLMs) (Yin et al., 2024) increasingly support visual understanding and generation within unified systems (Ma et al., 2025; Wu et al., 2025), alongside specialized capabilities such as image-quality reasoning (Li et al., 2025b). These advances have broadened their use as general-purpose foundation models (Yang et al., 2023; Comanici et al., 2025). Research is consequently expanding from perception to multi-step reasoning over multimodal information (Li et al., 2025c; Viveiros et al., 2026). Maintaining a structured reasoning process remains challenging: LLaVA-CoT studies staged visual reasoning (Xu et al., 2025), while CoMT evaluates the integration of visual operations into intermediate reasoning (Cheng et al., 2025). As reasoning traces grow longer, the evolving evidence and intermediate representations become important targets for inference-time refinement (Jiang et al., 2026b; Zhang et al., 2026).

To improve the test-time performance of multimodal reasoning (Zhu et al., 2025; Jiang et al., 2026b), existing studies have explored intervention strategies from three core dimensions: ① Output-level refinement: Focuses on answer post-processing and self-correction (Madaan et al., 2023), iteratively optimizing model-generated outputs via answer rewriting, candidate filtering, or reasoning-trace refinement (Jiang et al., 2026a). ② Prompt-level control: Leverages concise guidance from prompts or reasoning structures (Xia et al., 2026), guiding models to follow predefined reasoning paths by constructing explicit reasoning chains (Wang et al., 2025), decomposing sub-problems (Acuna et al., 2025), or introducing stepwise textual guidance (Xia et al., 2026). ③ Parameter-level adaptation: Relies on parameter updates and adaptive adjustments (Zhao et al., 2025), incorporating reinforcement

†^{\dagger}Kun Wang and Yang Wang are the corresponding authors.

Figure

Figure 1: LatentWeave's Latent Weaving functions much like rectifying faulty knitting, preventing accumulation of errors and subsequent failure, whereas Reasoning Anchors mirror adding buttons at appropriate positions to a finished sweater body, enhancing its structural integrity.

updates (Zuo et al., 2025) or temporary adapter optimization (Yuan et al., 2026) during inference to enhance performance on specific reasoning tasks. Although these strategies yield improvements, their primary intervention targets are outputs, prompts, or parameters rather than individual latent states. Recent methods also optimize continuous representations (Li et al., 2025a; Zhang et al., 2026), motivating step-aware intervention in multimodal reasoning.

These observations motivate treating multimodal reasoning as a control problem over latent trajectories. Output- and prompt-oriented methods address errors through output refinement or external guidance (Jiang et al., 2026a; Xia et al., 2026). We hypothesize that some errors accumulate in intermediate hidden states and become harder to correct during subsequent generation. This motivates refining the evolving trajectory directly (Zhang et al., 2025; 2026). Here, latent reasoning refers to iteratively refining the model's internal hidden states during autoregressive generation. Such intervention can revise intermediate decisions while retaining the pretrained backbone parameters. The central question is how to localize these updates, preserve useful preceding context, and propagate corrections into the remaining continuation.

Given the prior limitations, we propose LatentWeave, a test-time framework that models multimodal reasoning as an evolving latent trajectory and directly optimizes its hidden states. As in knitting a sweater (Figure 1), an early deviation can be amplified by subsequent steps and distort the final result. Based on this insight, LatentWeave regulates reasoning trajectories via two paired core mechanisms: Latent Weaving refines hidden-state segments during generation. Unlike ACTS (Xia et al., 2026), which steers a frozen reasoner through textual strategies and starter phrases, LatentWeave directly optimizes each active segment, preserves accepted segments, and re-decodes the remaining suffix. Rectified trajectories supervise the lightweight WEAVEGen model to generate textual reasoning anchors. Reasoning Anchors differ from PILOT's latent-vector injection (Zheng et al., 2026): WEAVEGen serializes its guidance with <WEAVE> delimiters and passes it through the backbone's ordinary textual context, avoiding hidden-dimension transfer between models. WEAVEGen is trained offline and generates one anchor sequence per input. Both mechanisms keep the evaluated backbone fixed at test time; auxiliary generation costs are reported separately.

We summarize our contributions in the following three points:

① Problem formulation. We formulate multimodal reasoning as a latent trajectory control problem, hypothesizing that some reasoning failures arise from progressively accumulated deviations in intermediate latent states.

② Method. We propose LatentWeave, a frozen-backbone test-time framework that directly intervenes in latent representations during autoregressive generation. Latent Weaving refines hidden-state segments in sequence, while textual Reasoning Anchors are generated by a lightweight model (WEAVEGen) trained on rectified trajectories. Their text-based interface supports backbones with different hidden dimensions.

③ Experimental evaluation. Experiments cover seven benchmarks and five backbones (4B–27B). Over vanilla decoding, LatentWeave gains 6.57 percentage points on MathVision with Qwen3.5–4B, and 6.57 and 5.22 points on MathVision and RealWorldQA, respectively, with Qwen3.6–27B, demonstrating improvements across model scales and task domains.

Figure

Figure 2: The overall framework of our proposed LatentWeave.