Cubic Discrete Diffusion: Discrete Visual Generation on High-Dimensional Representation Tokens

Yuqing Wang, Chuofan Ma, Zhijie Lin, Yao Teng, Lijun Yu, Shuai Wang, Jiaming Han, Jiashi Feng, Yi Jiang, Xihui Liu

TL;DR

Cubic Discrete Diffusion (CubiD) is the first discrete generative model capable of directly handling high-dimensional representation tokens (768–1024 dimensions) from pretrained vision models. By introducing fine-grained, element-wise masking across a 3D spatial-dimensional tensor, CubiD bridges the long-standing architectural gap between visual understanding and generation, achieving state-of-the-art synthesis results while preserving semantic richness.

What Problem Does This Paper Address?

Current multimodal models suffer from a representation split: they use high-dimensional semantic features (like DINOv2 or SigLIP) for understanding tasks, but rely on highly compressed, low-dimensional discrete tokens (like VQ-VAE or VQGAN, typically 8–32 dimensions) for generation. This compression sacrifices the semantic detail necessary for a truly unified architecture.

While we can discretize high-dimensional features, generating them is computationally nightmarish. An image represented by a $16 \times 16 \times 768$ tensor contains nearly 200,000 tokens. Standard autoregressive models would require an intractable number of sequential steps ($O(hwd)$), while traditional discrete diffusion models mask entire spatial positions at once, failing to capture the complex dependencies between different dimensions at the exact same pixel location.

Comparison of discrete visual generation approaches.

Methods

The authors introduce Cubic Discrete Diffusion (CubiD) to make high-dimensional discrete generation tractable through two key components:

  1. Dimension-wise Quantization (DQ): Instead of clustering entire high-dimensional vectors into a massive codebook (which fails due to the curse of dimensionality), DQ quantizes each dimension independently into $L$ discrete levels. This training-free approach perfectly preserves the spatial-dimensional tensor structure.
  2. Fine-Grained Cubic Masking: CubiD treats the $h \times w \times d$ token space as a unified 3D cube. During training, individual elements are randomly and independently masked across both the spatial and dimensional axes based on a truncated Gaussian distribution.

The architecture utilizes a standard bidirectional Transformer. Crucially, to keep computation efficient, all $d$ dimensions of a spatial position are concatenated into a single vector, keeping the Transformer's sequence length fixed at $h \times w$. An MLP-based prediction head then simultaneously outputs $d \times L$ logits, decoupling the generation's step complexity from the feature dimensionality. During inference, the model iteratively unmasks tokens in parallel over a fixed number of steps $T$ using a cosine schedule.

Overview of Cubic Discrete Diffusion training and discretization.

Datasets

  • Generation & Evaluation: Trained and evaluated on ImageNet-256 for class-conditional image generation.
  • Multimodal Understanding: Evaluated using the LLaVA framework across four standard benchmarks: GQA, TextVQA, POPE, and MME to verify if the quantized tokens retain their semantic understanding capabilities.

Key Insights and Ideas

  • Unified Tokens are Viable: The authors prove that dimension-wise quantized high-dimensional tokens perform almost identically to their continuous counterparts on LLaVA understanding benchmarks, whereas traditional Vector Quantization (VQ) causes severe performance degradation.
  • Element-Wise Masking is Essential: Grouping masks by entire dimensions or entire spatial positions fails. Fine-grained, element-wise masking allows the model to learn intra-position correlations (how dimensions relate within a pixel) and inter-position patterns (how features propagate spatially) simultaneously.
  • Decoupled Complexity: Because high-dimensional features possess inherent semantic redundancy, CubiD can generate images in a fixed number of parallel steps ($T \ll hwd$), turning an otherwise impossible generation task into an efficient parallel refinement process.
Qualitative comparison of different masking strategies showing the superiority of element-wise masking.

Key Results

  • State-of-the-Art Generation: On ImageNet-256, CubiD-XXL (3.7B parameters) achieved a state-of-the-art discrete generation score of 1.88 gFID with classifier-free guidance.
  • Weak Guidance Dependency: Even without classifier-free guidance, CubiD-XXL achieved 2.02 gFID, outperforming most VAE-based discrete models that do not use guidance.
  • Strong Scaling Laws: Performance steadily improved as model size scaled from 900M (CubiD-L) to 3.7B parameters (CubiD-XXL), showing clear scaling properties typical of autoregressive language models.
Inference process showing coarse-to-fine parallel generation.

Limitations and Future Work

While CubiD successfully handles high-dimensional tokens, the optimal quantization level ($L$) varies depending on the underlying vision encoder used (e.g., $L=8$ for DINOv2 vs. $L=16$ for SigLIP2), indicating that feature distributions heavily impact the discretization step.

Additionally, while this paper validates that the same tokens can be used for both understanding and generation, future work will focus on fully integrating CubiD into unified, early-fusion multimodal large language models to realize a single, seamless architecture for all vision-language tasks.

Summary updated

BibTeX
@inproceedings{wang2026cubic,
  author = {Yuqing Wang and Chuofan Ma and Zhijie Lin and Yao Teng and Lijun Yu and Shuai Wang and Jiaming Han and Jiashi Feng and Yi Jiang and Xihui Liu},
  title = {{Cubic Discrete Diffusion: Discrete Visual Generation on High-Dimensional Representation Tokens}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=bVAti91D8g},
}
Figure