Skip to content

Checking your reading list…

Retry verification

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

dNaViT: Unified Discrete Visual Tokens for Reconstruction, Understanding & Generation

dNaViT: Unified Discrete Visual Tokens for Reconstruction, Understanding & Generation

Meituan's LongCat team introduces dNaViT, a discrete vision tokenizer that uses grouped product quantization and a frozen encoder with residual modulation to achieve high-quality image reconstruction, visual understanding, generation, and editing from a single discrete representation, outperforming task-specific models on benchmarks like OCRBench and GenEval2.

Problem: Visual Tokenizers Force a Choice Between Generation and Understanding

Traditional visual tokenizers split into two families: those optimized for image generation preserve local textures and colors but lack semantic structure for understanding tasks; those derived from pretrained vision encoders capture objects and relationships but discard pixel-level details needed for faithful reconstruction. This duality forces multimodal systems to maintain two separate encoding interfaces, training objectives, and data pipelines, preventing vision from being modeled as a language-like discrete sequence.

dNaViT Architecture: Freeze Semantics, Then Add Pixel Details

dNaViT (Discrete Native-resolution Vision Transformer) starts from a frozen pretrained vision encoder to preserve its semantic space. A lightweight Residual Modulator (ResMod) aggregates intermediate features from the frozen encoder and injects reconstruction-relevant details via zero-initialized scale-and-shift paths, ensuring early training does not disturb pretrained features. The shared quantized representation is supervised by two branches: a semantic decoder that reconstructs pretrained features (preserving high-level semantics) and a pixel decoder that reconstructs the image (preserving low-level details). A three-stage progressive training — continuous pixel reconstruction, discrete semantic reconstruction, then joint optimization — mitigates gradient conflicts between the two objectives.

Grouped Product Quantization: Scaling Capacity Without Lengthening Sequences

To increase discrete capacity without expanding the spatial grid (H/32 × W/32), dNaViT employs grouped product quantization. Each spatial position's channel features are split into multiple groups, each with an independent codebook producing a discrete ID. Adding groups raises per-position information content while keeping sequence length constant. These codes have unified meaning across tasks: for understanding, IDs feed into an LLM via newly learned group embeddings; for reconstruction, the same IDs index the frozen tokenizer's codebook embeddings for the pixel decoder; for generation and editing, the LLM predicts multiple group IDs decoded through the same interface.

Key Results Across Reconstruction, Understanding, Generation, and Editing

Reconstruction: dNaViT-G64 at 512×512 ImageNet validation achieves 28.12 dB PSNR and 0.81 SSIM (f=32 compression, ViT pixel decoder without refinement). At 1024×1024, PSNR reaches 32.90 dB.

Understanding: Frozen dNaViT-G16 tokenizer combined with Qwen3-8B yields dNaViT-8B scoring 885 on OCRBench, 86.5 on CharXiv DQ, 96.2 on DocVQA, and 79.2 on InfoVQA — demonstrating fine-grained visual information survives quantization.

Generation & Editing: dNaViT-8B scores 49.5 on GenEval2 GM, 52.17 on Qwen-Image-Bench, 0.94 on LongText-Bench (both languages), and 7.30 on GEdit-Bench English full set.

Extended Work: G-STAR and Semantic Lossless Discrete Representations

Two follow-up works extend dNaViT. G-STAR (arXiv:2611.13004) targets higher compression rates for discrete visual generation: it splits sub-codes along the channel dimension for lossless packing and uses a Semi-AR Head to model intra-group dependencies, improving compression and reducing inference latency without sacrificing quality. "Can Discrete Tokens Serve as Semantically Lossless Representations of Visual Signals?" (arXiv:2610.37662) evaluates the semantic ceiling of discrete tokens, finding quantization error is not a reliable proxy for understanding performance; effective bit budget of discrete indices is key. Their FVQ model achieves SOTA for discrete representations at industrial scale and is the first discrete model known to compete with strong continuous models like Qwen3-VL, including fine-grained OCR.

Implications: Vision as Another Language for Next-Token Prediction

dNaViT provides a language-like interface for vision: images can be pre-converted to discrete IDs, enabling training to consume integer sequences directly. This changes multimodal engineering — visual tokens can be preprocessed, cached, and packed like text tokens; sequence lengths are known before scheduling; the massive vision encoder need not remain in the training graph. Mature LLM data processing, parallel training, and inference infrastructure become directly reusable for vision. The approach has been validated in LongCat-Next using the DiNA paradigm, unifying text, vision, and audio in a single autoregressive framework, and scaled to 1.6T total parameters in LongCat-2.5.

Limitations and Outlook

Trade-offs remain among codebook capacity, quantization levels, compression ratio, and sequence length; understanding and reconstruction objectives do not automatically align. dNaViT's core contribution is shifting the discussion from "can discrete vision do understanding?" to "how to design a truly universal visual vocabulary." The team aims to make vision and language "converge by different paths," and this work summarizes a year of native discrete multimodal modeling research.

Paper: https://arxiv.org/abs/2611.12426 Code & Models:

https://github.com/meituan-longcat/LongCat-Next/tree/main/dNaViT
About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

Report an issue with this article
multimodalVQ-VAEautoregressive modelingdNaViTMeituan LongCatdiscrete representationgrouped product quantizationvision tokenizer

Reader feedback

Was this useful?

Useful0

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion