TL;DR
ViQ (Visual Quantized Representations) is a novel framework that bridges the representational gap between continuous visual features and discrete text tokens in Multimodal Large Language Models (MLLMs). By balancing high-level semantics with low-level details at native image resolutions, ViQ matches the performance of state-of-the-art continuous visual encoders while accelerating MLLM training by up to 70%.
What Problem Does This Paper Address?
Modern MLLMs typically process images using continuous visual encoders (like CLIP or SigLIP). However, this introduces a fundamental representational mismatch: text is processed as discrete tokens, while vision remains continuous and high-dimensional.
Existing attempts to quantize images into discrete tokens usually suffer from a harsh trade-off: reconstruction-focused tokenizers (like VQ-VAEs) lose high-level semantic meaning, while semantically rich tokenizers lose fine-grained details. Furthermore, most existing tokenizers force images into fixed resolutions, destroying native aspect ratios and cropping out vital information. ViQ addresses these challenges by creating a unified discrete visual representation that preserves both semantics and details at any native resolution.
Methods
The authors structure ViQ's training into a progressive two-stage pipeline:
-
Stage 1: Text-Aligned Pre-Training at Any Resolution
The framework initializes with a powerful continuous visual encoder (SigLIP2-g) and adapts it to handle arbitrary resolutions dynamically using flexible positional embeddings. The encoder is optimized using cross-entropy text supervision from a language model, alongside a self-distillation loss from a fixed-resolution teacher model to retain foundational semantic capabilities. -
Stage 2: Visual Quantized Representation Learning
- Proximal Representation: Direct quantization of high-dimensional features causes severe information loss. ViQ introduces a bottleneck layer followed by $L_\infty$-norm regularization, projecting continuous features onto a hypercube surface to compact the latent space before discretization.
- Multi-Head Finite Scalar Quantization (FSQ): FSQ is employed for stable, optimization-free quantization. To enhance capacity, each visual patch is expanded into $2 \times 2$ independent sub-tokens using a position-aware head-wise mechanism.
- Low-Level Supervision: To ensure fine-grained details are preserved, the bottleneck layer is supervised using a pre-trained VAE latent reconstruction loss.
Datasets
- Training: A fixed dataset of 2,000K samples drawn from LLaVA-OneVision.
- Multimodal Evaluation: 9 diverse benchmarks spanning general understanding (MMStar, MMMU), world knowledge (SimpleVQA, InfoVQA), text/document recognition (TextVQA, DocVQA, OCRBench), and chart/scientific reasoning (AI2D, ChartQA).
- Reconstruction Evaluation: The $256 \times 256$ ImageNet-1K validation set.
Key Insights and Ideas
- The Geometry of Quantization Matters: Instead of directly mapping continuous features to discrete codes, gradually regularizing the latent space via an $L_\infty$-norm—which perfectly aligns with the grid structure of FSQ—significantly reduces information loss.
- Decoupling Patches for Better Downstream Tasks: Expanding patches into independent sub-tokens via multi-head attention increases representation capacity without introducing cross-patch interactions, making the tokens highly generalizable.
- Latent Regression over Pixel Fitting: Supervising the quantization process in the latent space of a pre-trained VAE strikes a much better balance between low-level detail and high-level semantics than rigid pixel-level mean-squared error (MSE), and it does so at a fraction of the computational cost.
Key Results
- Competitive with Continuous Models: On the 9-benchmark aggregate score, ViQ achieves an average score of 57.2 (with Qwen2.5-1.5B) and 63.9 (with Qwen2.5-7B). This beats previous discrete tokenizers (like UniTok and QLIP) by a massive margin and matches top-tier continuous models like InternViT-2.5 and SigLIP2-g.
- Massive Training Acceleration: Because images can be tokenized offline into discrete codes, MLLM training no longer requires processing raw images online. This yields a 20% to 70% speedup in training iteration times across various LLM backbone sizes.
- High-Fidelity Reconstruction: ViQ achieves a PSNR of 22.73 and an rFID of 0.62 on ImageNet-1K, ranking first among discrete visual autoencoders optimized for understanding. It can compress an image to just 1/96th of its raw size while maintaining high reconstruction quality.
Limitations and Future Work
- Scaling to Ultra-Large Models: The framework has only been validated on LLMs up to 7B parameters; its synergy with massively larger foundation models (e.g., 70B+) remains an open question.
- Data Dependency: The robustness of the proximal representations depends heavily on the diversity of the pre-training data, making it susceptible to inherent data biases.
- The Tokenization Gap: While ViQ narrows the gap, it still slightly trails continuous models on ultra-detail-intensive tasks like OCRBench due to the aggressive nature of discrete tokenization. The authors suggest exploring multi-scale or residual quantization to mitigate this.
Summary updated