Navigation menu
dNaViT: Discrete Codes are General-Purpose Visual Representations
dNaViT: Discrete Codes are General-Purpose Visual Representations
Xiaotong Li, Zhengrong Yue, Xu Huang, Jialv Zou, Minhao Jing, Wenhao Yan et al.
2026-11-11▲ 33arXiv 2611.12426v1Hugging Face
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
dNaViT is a discrete native-resolution visual tokenizer built on a frozen encoder with residual modulation, grouped product quantization, and dual-branch reconstruction, evaluated across understanding, reconstruction, generation, and editing.
Problem
Multimodal models often rely on modality-specific representations and heterogeneous objectives, while language models use discrete tokens in a unified next-token framework. Discretizing dense continuous visual signals into a finite vocabulary creates an information bottleneck, and a single discrete bottleneck must preserve both high-level semantics for understanding and fine-grained pixels for reconstruction. The paper asks how far a finite discrete vocabulary can go in representing the visual world.
Method
dNaViT starts from a frozen pretrained native-resolution vision encoder and introduces a Residual Modulator that fuses intermediate features and learns a zero-initialized spatially varying correction to the final representation. The enriched features are discretized with grouped product quantization, factorizing channels into groups with separate codebooks while keeping the spatial token grid unchanged. Two decoders share the quantized codes: a semantic branch aligns codes with continuous visual features, and a pixel branch supervises image reconstruction. A code-conditioned Refiner built on a pretrained generation prior can replace the ViT pixel decoder and is trained as a multi-step teacher distilled into a one-step student. Training proceeds through continuous pixel pretraining, discrete semantic reconstruction, and joint reconstruction.
Results
- At 512×512 resolution with spatial downsampling factor f=32, dNaViT reaches 28.12 dB PSNR and 0.81 SSIM without sacrificing semantic representation capability. §1
- With Qwen3-8B, dNaViT scores 885 on OCRBench and surpasses prior discrete baselines while rivaling Qwen3-VL-8B on key document and reasoning benchmarks. §1
- dNaViT-8B reports GenEval2 GM 49.5, Qwen-Image-Bench 52.17, SpatialGenEval 0.68, and LongText EN and CN both 0.94. §4.3
- In Table 9, the discrete ResMod setting averages 65.05, compared with 66.96 for the continuous ResMod setting, with comparable performance across general understanding, OCR, and document benchmarks. §5.2
- A training-free insertion of pretrained ResMod into the continuous understanding model maintains average 66.48 versus 66.31 without retraining the LLM. §5.1
Limitations
- There is no dedicated limitations section; the understanding comparisons in Table 9 use Qwen3-1.7B as the language backbone, so broader backbone coverage is left open by the experiments.
- The paper states that the bit budget characterizes the available discrete alphabet, not empirical entropy or semantic information retained, and that greater capacity alone does not guarantee faithful reconstruction.
- The paper states that discrete visual embeddings require more training data because they are learned from scratch, and that increasing data scale progressively closes the gap with continuous models.
- The paper states that the ViT pixel decoder tends to over-smooth high-frequency information, so small text, fine boundaries, and repetitive textures can appear blurred or partially merged.
Key points
- dNaViT is a Discrete Native-resolution Vision Transformer that maps images to discrete visual primitives analogous to language tokens. §Abstract
- It is built on a frozen pretrained encoder; ResMod fuses intermediate features and predicts a zero-initialized scale-and-shift residual. §2.3
- Grouped product quantization partitions channels into G groups with K-entry codebooks, yielding K^G combinations without a monolithic vocabulary and keeping Nq unchanged. §2.4
- The same quantized matrix feeds a semantic decoder and a pixel decoder, whose complementary objectives guide what the codes retain. §2.5
- Training has three stages: continuous pixel pretraining, discrete semantic reconstruction, and joint reconstruction; Stage 2 stops pixel gradients at quantized embeddings and Stage 3 opens them. §3.1
- The tokenizer combines a frozen Qwen3-VL ViT of about 400M parameters with a residual modulator of about 100M, totaling about 500M. §3.1
- The Refiner conditions a flow decoder on discrete codes alone, avoiding intermediate pixel decoding and text conditioning, and distills a multi-step teacher into a one-step student. §2.6
- The paper reports evaluation across 12 visual understanding benchmarks, 4 generation benchmarks, and an image editing benchmark. §Abstract
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

