Manuscript Offprint

arXiv:2611.12426

dNaViT: Discrete Codes are General-Purpose Visual Representations

Xiaotong Li, Zhengrong Yue, Xu Huang, Jialv Zou, Minhao Jing, Wenhao Yan, Haodong Li, Hai Huang, Bo Zhao, Yan Feng, Peng Pei, Xunliang Cai

Meituan LongCat Team

Discrete autoregressive modeling, notably through next-token prediction, has become a cornerstone of modern language models. Extending this paradigm to vision allows visual and language models to converge on a unified framework, thereby fostering shared methodology and infrastructure. This work investigates a central question: how far can a finite discrete vocabulary go in representing the richness of the visual world? We present dNaViT, a Discrete Native-resolution Vision Transformer that produces discrete visual primitives analogous to language tokens. Built upon a frozen pretrained encoder, dNaViT applies lightweight residual modulation with a dual-branch objective to inject reconstruction-aware cues into semantic features. By leveraging grouped product quantization, it scales discrete capacity without inflating spatial sequence lengths, while a balanced training recipe maintains both semantic and pixel-level information. Consequently, dNaViT functions as a versatile discrete visual tokenizer, enabling unified encoding across downstream tasks alongside high-fidelity image decoding. Extensive evaluations show that dNaViT matches or exceeds task-specific baselines across 12 visual understanding benchmarks, 4 generation benchmarks, and an image editing benchmark. These findings demonstrate that a compact discrete vocabulary can serve as a universal visual currency and unlock the full potential of fully unified, native multimodal methodology.

Project Page GitHub Hugging Face

Figure

Figure 1 dNaViT: A unified visual tokenizer for general-purpose modeling. dNaViT represents arbitrary-resolution images as discrete visual primitives, natively unifying reconstruction, understanding, generation, and editing under a shared vocabulary. By achieving performance competitive with specialized baselines across all domains, dNaViT validates a shared token-based paradigm for vision, analogous to language modeling.

Correspondence: lixiaotong.edu@gmail.com

Figure

Original

Reconstructed

Edited

Recognition: Handwritten Letter

Figure

Figure

Figure

Figure

Q: Transcribe the handwritten text on the left page of this letter verbatim as a single paragraph. Preserve the original spelling and punctuation. Stop at the last word of the left page.

A:

that the school children were out of the school buildings when the worst shock came! In a letter written just before the earthquake, Mrs. Johns said she feared your health was not good. How are you? My old cousin who lives with me – Dr. Elizabeth Blackwell's adopted daughter, now 85, almost blind & very deaf, but bright in her mind – dictates to me letters to her old friends, and generally winds up by begging them to take good

References (100)

Couldn't load all references. Reload the page to try again.