Papers
Topics
Authors
Recent
Search
2000 character limit reached

Latent Hidden-State Prompting

Updated 31 March 2026
  • Latent hidden-state prompting is a technique that extracts and injects semantic hidden states from vision-language models to guide 3D diffusion for shape synthesis.
  • The method employs a three-stage pipeline—back-view synthesis, latent extraction, and 3D voxel generation—to integrate 2D semantic insights into 3D constructions.
  • Empirical results demonstrate enhanced fidelity with improved IoU and Chamfer metrics, effectively bridging the gap between 2D semantics and 3D geometry.

Latent hidden-state prompting is a technique developed for integrating high-level semantic knowledge from multimodal diffusion models into downstream generative tasks, notably for language-controllable 3D shape synthesis. This approach leverages the intermediate hidden activations from powerful vision-LLM (VLM) transformers and injects them as conditioning signals into 3D diffusion backbones, enabling explicit semantic guidance of regions that are unobserved or ambiguous from the available 2D context. In the Know3D framework, latent hidden-state prompting addresses the critical challenge of hallucinating plausible, user-intended 3D geometry from a single-view image and a text description by bridging the representational gap between 2D semantic understanding and 3D structural generation (Chen et al., 24 Mar 2026).

1. Conceptual Foundations and Motivation

Traditional generative pipelines for 3D shape synthesis, particularly from single-view observations, are fundamentally limited by the absence of explicit 3D ground-truth for unobserved regions and the consequent stochasticity during completion or hallucination. Existing models often fail to align generated shapes with user intentions conveyed in natural language, either because 2D priors are semantically ambiguous or because 3D models lack exposure to the rich semantics encoded by multimodal transformers. Latent hidden-state prompting situates itself as a direct mechanism for transferring the internal, semantically fused representations from a vision-language diffusion model to the generative process of a 3D diffusion pipeline. The resulting process transforms stochastic hallucination into an explicitly controlled synthesis, grounded both in textual input and observable geometry (Chen et al., 24 Mar 2026).

2. End-to-End Pipeline Architecture

The latent hidden-state prompting protocol can be delineated as a three-stage pipeline:

  1. Semantic-Aware Back-View Synthesis: Input consists of a single front-view image IfrontI_\mathrm{front} and a text prompt TT specifying desired back-view attributes. A fine-tuned Qwen-Image-Edit (Qwen2.5-VL + MMDiT) model generates a plausible back-view image IbI_b conditioned on (Ifront,T)(I_\mathrm{front}, T).
  2. Knowledge Extraction: During the MMDiT denoising process for IbI_b, transformer hidden states {hDiTl}\{h_{DiT}^{l}\} from selected layers ll and diffusion timestep tt are extracted. The conditioning tensor HDiT=Concatl(hDiTl)H_{DiT}=\text{Concat}_l(h_{DiT}^l) encapsulates both spatial structure and semantics, representing the "semantic-structural" bottleneck of the VLM former.
  3. 3D Diffusion Generation: A two-stage 3D diffusion process (TRELLIS2-style) generates first a sparse-voxel scaffold VssV_{ss} and then a full geometry VgeoV_{geo}. Crucially, both stages are conditioned not only on 2D encoded features FfrontF_\mathrm{front} but also on the injected latent HDiTH_{DiT} via dedicated cross-attention branches (Chen et al., 24 Mar 2026).

3. Latent Extraction and Injection

The extraction and injection of hidden-state latents proceeds as follows. Define hVLMlh_{VLM}^{l} as the MMDiT denoiser’s hidden state at layer ll and timestep tt, with practical choices l∈{20,30,40}l \in \{20,30,40\} and t≈0.25t \approx 0.25. These are concatenated to form HDiT=[hVLM20;hVLM30;hVLM40]∈RC×H×WH_{DiT} = [h_{VLM}^{20}; h_{VLM}^{30}; h_{VLM}^{40}] \in \mathbb{R}^{C \times H \times W}.

During each 3D diffusion transformer block, original features F∈RN×DF \in \mathbb{R}^{N \times D} pass through:

  • Standard self-attention: Fsa=SelfAttn(F)F_{sa} = \mathrm{SelfAttn}(F).
  • Image cross-attention: Aimg=CrossAttn(Fsa,Kimg,Vimg)A_{img} = \mathrm{CrossAttn}(F_{sa}, K_{img}, V_{img}).
  • Additional "knowledge" cross-attention with learned 1×11 \times 1 projections:
    • KDiT=WKHDiT,VDiT=WVHDiTK_{DiT}=W^{K} H_{DiT}, \quad V_{DiT}=W^{V} H_{DiT}
    • ADiT=ZeroInitLinear(CrossAttn(Fsa,KDiT,VDiT))A_{DiT}= \mathrm{ZeroInitLinear}( \mathrm{CrossAttn}(F_{sa}, K_{DiT}, V_{DiT}) )
    • The transformer block’s full residual update becomes:

Fout=F+Aimg+ADiTF_{out} = F + A_{img} + A_{DiT}

The ZeroInitLinear layer, initialized to zero, ensures that at the start of training, ADiT=0A_{DiT}=0 and preserves the initial generative prior. The strength of semantic conditioning can be modulated via a scalar α\alpha absorbed in WVW^V or as bias in the linear layer. Learned low-rank adaptation (LoRA, rank 64) is applied to all original DiT attention weights, while the new cross-attention layers are fully trained (Chen et al., 24 Mar 2026).

4. Diffusion Dynamics and Semantic Guidance

Let xtx_t denote the noisy latent at 3D diffusion timestep tt, with the denoised mean μθ\mu_\theta predicted as μθ(xt,t;Ffront,HDiT)\mu_\theta(x_t, t; F_\mathrm{front}, H_{DiT}). The reverse-diffusion (Euler-Maruyama) update is:

xt−1=xt−η∇xt[12σt2∥xt−μθ(xt,t;Ffront,HDiT)∥2]+βt ϵ,x_{t-1} = x_t - \eta \nabla_{x_t} \left[ \frac{1}{2 \sigma_t^2} \| x_t - \mu_\theta(x_t, t; F_\mathrm{front}, H_{DiT}) \|^2 \right] + \sqrt{\beta_t}\, \epsilon,

with ϵ∼N(0,I)\epsilon\sim \mathcal{N}(0, I). The dependence of μθ\mu_\theta on HDiTH_{DiT} means the reverse step projects VLM-captured semantics directly onto the evolving 3D shape via gradient flow. This mechanism injects semantic priors into previously unobserved or ambiguous geometric regions, facilitating controllable synthesis in accordance with the text prompt (Chen et al., 24 Mar 2026).

5. Implementation Details and Training Regimen

Critical architectural and hyperparameter details include:

  • Layer selection: Hidden states from MMDiT encoder layers l∈{20,30,40}l \in \{20, 30, 40\} (out of 50), optimizing spatial-semantic balance.
  • Denoising timestep: Extraction at t=0.25t=0.25, corresponding to 25% remaining noise, yields optimal interplay between semantic structure and spatial specificity.
  • Projections: WKW^K and WVW^V reduce the combined channel dimension (e.g., C=3×512C=3 \times 512) to D=384D=384, aligning with the 3D DiT architecture.
  • Training protocol: The new cross-attention branches train at learning rate 10−410^{-4}; pretrained 3D backbone weights are frozen except for LoRA adapters. The cross-attention layers are initialized to zero to conserve pretrained behavior at outset (Chen et al., 24 Mar 2026).

Pseudocode for both training and inference is supplied in the original work, specifying the extraction, projection, and iterative conditioning logic for full reproducibility.

6. Empirical Findings and Ablations

Empirical ablation studies identify key sensitivity axes:

  • Denoising step: Hidden-state extraction at t=0.25t=0.25 yields mean Intersection-over-Union (IoU) 0.352 and Chamfer Distance (CD) 2.262, outperforming extractions at t=0t=0 (too semantic-poor) or t=0.75t=0.75 (excessively noisy), which degrade spatial-semantic balance.
  • Feature source: MMDiT hidden states (IoU=0.352, CD=2.262) outperform DINOv3 on generated images (IoU=0.342, CD=2.385) and VAE latents (IoU=0.308, CD=2.803), indicating superior 3D-relevant spatial prior and semantics in intermediate transformer activations.
  • Benchmarks: On HY3D-Bench, Know3D achieves highest ULIP (+0.2174) and Uni3D (+0.3518) among single-view methods. Qualitatively, the methodology produces more plausible, text-responsive back-view geometries (Chen et al., 24 Mar 2026).
Extraction Source IoU Chamfer (↓)
MMDiT hidden states 0.352 2.262
DINOv3 (image) 0.342 2.385
VAE latent 0.308 2.803

Higher IoU and lower Chamfer are better.

Further analysis confirms that concatenating hidden states from several layers enhances local-global balance in the semantic signal, while zero-initialized new attention branches shield the backbone from disruptive gradients during initial training (Chen et al., 24 Mar 2026).

7. Methodological Insights and Best Practices

A set of technical lessons emerges from empirical analysis:

  • Intermediate diffusion states, rather than fully denoised latents, optimize encoding of both layout and semantics.
  • Zero initialization of new cross-attention layers is crucial for preserving original generative priors early in joint training.
  • Layer concatenation covers both detailed geometry and abstract semantics.
  • Strong LoRA adaptation on pretrained backbones is necessary to avoid destructive overfitting, fully training only the injected prompt branches.
  • Meticulous tuning of the denoising timestep for hidden-state extraction is critical; too early sacrifices semantics, too late retains excessive noise (Chen et al., 24 Mar 2026).

This methodology, as operationalized in Know3D, demonstrates that harvesting and injecting the "semantic-structural" bottleneck of multimodal 2D diffusion transformers—as realized by latent hidden-state prompting—directly bridges VLM-derived knowledge with explicit 3D synthesis. This approach yields higher shape fidelity and controllable semantics relative to prior art and establishes a versatile protocol for integrating abstract conditioning signals into complex generative tasks.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Latent Hidden-State Prompting.