Intern Lumina U2: A Multi-Codebook Diffusion Large Language Model for Omni-Visual Understanding and Image Generation
Abstract
Unified multimodal generation covers discrete, continuous, and hybrid paradigms. Discrete approaches with single-codebook visual tokenizers align naturally with text modeling but have limited representational capacity. Continuous and hybrid approaches retain richer visual representations, but they model text and images in heterogeneous spaces with different training objectives, potentially introducing optimization conflicts between modalities with misaligned representation spaces. These choices expose a central question: how to efficiently model high-capacity visual representations alongside textual content in a shared optimization space within a single backbone. We present Intern Lumina U2, to our knowledge the first diffusion language model to represent multi-codebook visual tokens in a fully discrete space. Each visual position is represented by a group of codes from complementary codebooks, increasing its representational capacity while preserving compatibility with discrete text modeling. At the input, the embeddings are concatenated at each position; at the output, a lightweight multi-codebook autoregressive head predicts the codes within each position sequentially, while the diffusion backbone processes all positions in parallel. Built on the unified 4D representation of AToken, Intern Lumina U2 supports image, video, and 3D inputs within a single backbone and achieves leading performance among unified models in visual understanding, image generation, and image editing. We further build a full-stack training, inference, and evaluation system on both Ascend and NVIDIA platforms to verify the cross-platform effectiveness of our model. We also improve the inference efficiency through a stability-aware sampling strategy, which combines confidence-plateau-guided unmasking approach with drift-triggered cache refreshing mechanisms, accelerating image generation by 4.45x.
Figures & tables
| Supported modalities | Representation and decoding | ||||||||
| Model | Image und. | Image gen. | Video und. | 3D und. | Discrete tokens | Masked-diff. decoding | Multi- codebook | Diffusion text | No continuous generator |
| Autoregressive | |||||||||
| Emu3 | ✓ | ✓ | ✓ | ✗ | ✓ | ✗ | ✗ | ✗ | ✓ |
| Emu3.5 | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ | ✗ | ✗ | ✓ |
| Janus-Pro | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ | ✗ | ✗ | ✓ |
| VILA-U | ✓ | ✓ | ✓ | ✗ | ✓ | ✗ | ✓ | ✗ | ✓ |
| Stage | Position share (%) | |||||
| Und. | T2I | Text | Edit | Video | 3D | |
| Vision–Language alignment | 30 | 50 | 20 | – | – | – |
| Perception pretraining | 30 | 50 | 20 | – | – | – |
| Omni-visual mid-training, Stage 1 | 30 | 60 | 10 | – | – | – |
| Omni-visual mid-training, Stage 2 | 40 | 40 | 10 | 5 | 4 | 1 |
| Instruction SFT | 25 | 50 | 5 | 10 | 8 | 2 |
| Configuration | Vision- Language alignment | Perception pretraining | Omni-visual mid-training | Instruction SFT | |
| Stage 1 | Stage 2 | ||||
| Training setup | |||||
| Generation resolution | |||||
| Sequence length | 8,192 | 8,192 | 16,384 | 16,384 | 16,384 |
| Text length limit | 2,048 | 2,048 | 2,048 | 2,048 | 2,048 |
| Text block length | 32 | 32 | 32 | 32 | 32 |
| Method | Steps | BB fwd | Lat. (s) | Speedup | GenEval |
| Cumulative system optimizations (fixed 96-step schedule) | |||||
| Production path | 96.0 | 192 | 159.9 | 1.00 | 86.6 |
| + CFG batching | 96.0 | 192 | 117.2 | 1.36 | 89.0 |
| + AR-head KV cache | 96.0 | 192 | 84.2 | 1.90 | 88.6 |
| + hidden-state cache | 96.0 | 192 (65%) | 64.1 | 2.49 | 89.2 |
| + V-verify refresh | 96.0 | 192 (63%) | 64.5 | 2.48 | 89.3 |
| Understanding-only | Unified | Intern Lumina U2 | |||||||
| Benchmark | Qwen2.5- VL | LLaDA-V | BAGEL | Intern VL-U | Lumina- DiMOO | LLaDA-o | LLaDA 2.0-Uni | Ascend | NVIDIA |
| #Params | 7B | 8B | 7B+7B | 2B+1.7B | 8B | 8B | 16B-A1.4B | 16.9B-A1.4B | |
| Documents and charts | |||||||||
| ChartQA | 84.1 | 78.3 | 74.3 | 76.6 | 8.3 | 87.9 | 80.1 | 86.2 | 81.2 |
| CharXiv (DQ) | 73.9 | 47.0 | 70.6 | 53.3 | 27.8 | 69.8 | 68.4 | 85.9 | 84.0 |
| Perception and hallucination | |||||||||
| Model | Video-MME | MLVU | MVBench |
| Video-LLaVA-7B | 39.9 | – | 43.1 |
| LLaVA-Mini | – | 42.8 | 44.5 |
| VideoLLaMA2-7B | 46.6 | – | 54.6 |
| LLaDA-V | 56.1 | 59.5 | – |
| Ours (Ascend) | 52.6 | 62.1 | 61.8 |
| Ours (NVIDIA) | 56.7 | 64.9 | 57.2 |
| Model | #Params | GenEval | DPG-Bench | TIIF | WISE |
| Generation-only models | |||||
| FLUX.1 [Dev] | 12B | 66 | 83.84 | 71.8 | 0.50 |
| Qwen-Image | 20B | 87 | 88.32 | 86.8 | 0.62 |
| Unified understanding-and-generation models | |||||
| Janus-Pro | 7B | 80 | 84.19 | 65.0 | 0.35 |
| Show-o2 | 7B | 76 | 86.14 | – | 0.39 |
| Model | Sty | Wor | Att | Act | Rel | Log | Gra | Com | Lay | Txt | Overall |
| Generation-only models | |||||||||||
| FLUX.1 [Dev] | 83.90 | 88.92 | 67.84 | 62.17 | 67.26 | 30.91 | 60.96 | 47.04 | 71.83 | 32.18 | 61.30 |
| Qwen-Image | 94.70 | 94.15 | 87.93 | 82.60 | 80.08 | 51.59 | 60.96 | 72.94 | 86.57 | 72.13 | 78.36 |
| Unified understanding-and-generation models | |||||||||||
| Janus-Pro | 90.80 | 86.71 | 67.74 | 64.26 | 68.40 | 37.05 | 64.44 | 62.11 | 72.01 | 2.59 | 61.61 |
| BAGEL | 90.20 | 85.60 | 67.74 | 61.98 | 70.69 | 30.23 | 66.44 | 58.12 | 76.49 | 7.76 | 61.53 |
| Model | Short prompts | Long prompts | ||||||
| Basic | Adv. | Real | Overall | Basic | Adv. | Real | Overall | |
| Generation-only models | ||||||||
| FLUX.1 [Dev] | 83.1 | 65.8 | 70.7 | 71.1 | 78.7 | 68.5 | 71.5 | 71.8 |
| Qwen-Image | 86.2 | 79.3 | 90.3 | 86.1 | 87.2 | 80.9 | 91.4 | 86.8 |
| Unified understanding-and-generation models | ||||||||
| Janus-Pro | 79.3 | 59.7 | 65.8 | 65.5 | 78.3 | 58.8 | 60.3 | 65.0 |
| Model | Alignment | Text | Reasoning | Style | Diversity | Overall |
| Generation-only models | ||||||
| FLUX.1 [Dev] | 0.786 | 0.523 | 0.253 | 0.368 | 0.238 | 0.434 |
| Qwen-Image | 0.882 | 0.891 | 0.306 | 0.418 | 0.197 | 0.539 |
| Unified understanding-and-generation models | ||||||
| Janus-Pro | 0.553 | 0.001 | 0.139 | 0.276 | 0.365 | 0.267 |
| BAGEL | 0.769 | 0.244 | 0.173 | 0.367 | 0.251 | 0.361 |
| Model | GenExam Physics | VeriphyT2IBench | ||
| Strict | Relaxed | Local | Global | |
| Reference and generation-only models | ||||
| Seedream 4.0 | 3.5 | 49.0 | 64.80 | 65.07 |
| FLUX.1 Kontext max | 0.0 | 25.6 | – | – |
| Gemini 2.5 Flash Image | – | – | 69.98 | 66.14 |
| GPT-Image-1 | – | – | 68.32 | 68.56 |
| Local scoring | Seedream | Gemini | GPT-Image | SenseNova | Princigram-D | Princigram-B | Intern Lumina U2 |
| E&M | 65.55 | 67.75 | 69.58 | 53.46 | 76.00 | 78.59 | 83.30 |
| Mechanics | 56.19 | 61.63 | 60.25 | 52.16 | 68.24 | 71.59 | 71.34 |
| Optics | 77.81 | 82.33 | 79.54 | 80.96 | 75.64 | 78.92 | 79.23 |
| Quantum mechanics | 69.67 | 73.27 | 71.35 | 68.93 | 73.41 | 77.59 | 76.32 |
| Thermodynamics | 42.91 | 58.90 | 49.24 | 46.24 | 60.40 | 66.95 | 63.73 |
| Acoustics | 62.42 | 68.44 | 66.88 | 65.26 | 68.39 | 73.01 | 72.17 |
| Easy prompts | Seedream | Gemini | GPT-Image | SenseNova | Princigram-D | Princigram-B | Intern Lumina U2 |
| E&M | 75.32 | 80.56 | 80.41 | 75.45 | 82.11 | 84.74 | 83.78 |
| Mechanics | 66.08 | 67.84 | 68.19 | 64.96 | 74.41 | 76.77 | 75.40 |
| Optics | 80.81 | 83.21 | 81.79 | 82.98 | 78.05 | 79.01 | 81.37 |
| Quantum mechanics | 70.97 | 74.13 | 75.41 | 73.39 | 75.58 | 81.34 | 81.47 |
| Thermodynamics | 64.75 | 66.77 | 67.66 | 64.61 | 68.93 | 72.13 | 69.30 |
| Acoustics | 64.88 | 69.86 | 69.19 | 69.72 | 67.84 | 71.13 | 71.94 |
| Model | #Params | ImgEdit | GEdit-EN | GEdit-CN |
| Editing-specialist models | ||||
| Step1X-Edit | 12B | 3.06 | 6.97 | 6.86 |
| Qwen-Image-Edit | 20B | 4.35 | 7.56 | 7.52 |
| Unified understanding-and-generation models | ||||
| BAGEL | 7B+7B | 3.20 | 6.52 | 6.50 |
| OmniGen2 | 3B+4B | 3.44 | 6.41 | – |
| Design | Table organization | Softmax width | Params | Peak memory (GB) | Step time (s) | Next-code accuracy |
| D1 universal | 778.11M | 43.79 | 7.1 | |||
| D2 offset-shared | 778.11M | 18.68 | 6.2 | |||
| D3 independent (ours) | 4,096 | 793.02M | 18.62 | 6.6 |
| Output head | Codebook dependence | GenEval | DPG-Bench | TIIF | UniGenBench |
| Independent parallel | no | 68.94 | 83.22 | 70.1 | 59.6 |
| Q-Former | no | 69.67 | 78.92 | 63.9 | 56.7 |
| Multi-codebook AR (ours) | yes | 82.78 | 83.27 | 73.2 | 62.1 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Field | Value | Field | Value |
| Transformer layers | 20 | First dense layers | 1 |
| Hidden size | 2048 | FFN size (dense) | 5120 |
| Attention heads | 16 | KV heads | 4 |
| Head dimension | 128 | RoPE dimension / fraction | 64 / 0.5 |
| RoPE base | 600000 | Max position embeddings | 16384 |
| RMSNorm / eps | yes / | Activation | silu |
| Role | Token | Id |
| Text mask (corruption target) | <|mask|> | 156895 |
| Padding | <|pad|> | 156892 |
| Answer boundary | <BOA> / <EOA> | 157165 / 157166 |
| Image boundary | <BOI> / <EOI> | 157167 / 157168 |
| 3D boundary | <BO3D> / <EO3D> | 157169 / 157170 |
| Video boundary | <BOV> / <EOV> | 157171 / 157172 |
| idx | token | type | turn | is_clean | block | position id |
| Turn 0: clean condition (media + question) | ||||||
| 0 | <BOI> | 1 | 0 | 1 | 0 | |
| 1–2 | 2 | 0 | 1 | 1–2 | ||
| 3 | 2 | 0 | 1 | 3 | ||
| 4–5 | 2 | 0 | 1 | 4–5 | ||
| 6 | 2 | 0 | 1 | 6 | ||
| Modality | Grid | Flattening order | Delimiter tokens |
| Image | row-major | 5001 per row | |
| Video | frame-major | 5004 per row, 5005 per frame | |
| 3D asset | sparse voxels, coords | 5002 per row, 5003 per layer |
| Category | Type | Sources | Encoding resolution | Stages |
| Image understanding | Public | LLaVA-OneVision ( Li et al., 2025 ) and LLaVA-OneVision-1.5 ( An et al., 2025 ) instruction sets | 256 / 512 / native | 1–5 |
| Private | Image subsets of the InternVL ( Wang et al., 2025a ) instruction data, covering captioning; document, chart, table, and equation data; OCR data built from web image–text pairs; grounding, counting, and GUI or web screenshot data; and structured-reasoning data and samples with <think> reasoning traces | |||
| Video understanding | Public | Caption and QA sets over WebVid ( Bain et al., 2021 ) , Kinetics-400/600/700 ( Kay et al., 2017 ; Carreira et al., 2018 ; Carreira et al., 2019 ) , ActivityNet ( Caba Heilbron et al., 2015 ) , YouCook2 ( Zhou et al., 2018 ) , LSMDC ( Rohrbach et al., 2017 ) , TextVR ( Wu et al., 2025c ) , NTU RGB+D ( Shahroudy et al., 2016 ) , NExT-QA ( Xiao et al., 2021 ) , CLEVRER ( Yi et al., 2020 ) , STAR ( Wu et al., 2021 ) , Perception Test ( Pătrăucean et al., 2023 ) , EgoSchema ( Mangalam et al., 2023 ) , and MovieChat ( Song et al., 2024 ) | 64 frames, area | 4–5 |
| Private | Video subsets of the InternVL instruction data; temporal-reasoning and counting sets | |||
| 3D understanding | Public | Objaverse ( Deitke et al., 2023 ) assets with Cap3D-style captions ( Luo et al., 2023 ) ; GAPartNet ( Geng et al., 2023 ) part-level annotations; Sketchfab ( Sketchfab, 2026 ) assets | sparse voxels | 4–5 |
| Private | – |
| Source | Scored | Text rule | Following | Aesthetic top 70% | Kept |
| English | 22.69 | 4.33 | 4.75 | 3.09 | 10.51 (46%) |
| Chinese | 31.35 | 6.92 | 6.26 | 4.15 | 14.02 (45%) |
Unified Multimodal Models
Unified multimodal models combine multiple data types in shared systems for cross-modal understanding, generation, reasoning, and interaction.
See all 287 papers