UniCompress: Token Compression for Unified Vision–Language Understanding and Generation

Ziyao Wang, Chen Chen, Jingtao Li, Weiming Zhuang, Jiabo Huang, Ang Li, Lingjuan Lyu

TL;DR

Unified vision-language models achieve architectural simplicity by treating pixels just like text tokens, but the resulting massive sequence lengths cause severe computational bottlenecks. UniCompress is a lightweight, plug-and-play token compression framework that reduces visual token counts by up to 4× without requiring expensive large language model (LLM) retraining. By combining simple spatial pooling with learnable global meta tokens and an autoregressive decompressor, it slashes inference latency by over 40% while fully preserving performance across both multimodal understanding and image generation tasks.

What Problem Does This Paper Address?

Recent breakthroughs in multimodal AI have shifted toward unified autoregressive models (e.g., UniTok, VILA-U, VarGPT). These architectures process text and images in a single shared token space, handling tasks from visual question answering (VQA) to text-to-image generation via simple next-token prediction.

However, these models face a major practical limitation: token efficiency. Standard discrete image tokenizers typically map a single image into hundreds or thousands of tokens (e.g., a $32 \times 32 = 1024$ token grid). Passing these long sequences through an LLM backbone incurs massive memory overhead and crippling inference latency.

While naive token pruning or downsampling works well enough for image understanding (where coarse semantics suffice), it disastrously degrades image generation (often by more than 15%). Generation relies heavily on fine-grained, spatially consistent details that are easily destroyed by uniform pruning. Furthermore, training a brand-new, more efficient tokenizer from scratch forces engineers to retrain the entire downstream LLM, which is computationally prohibitive.

Methods

UniCompress solves this by introducing a modular, plug-in compression-decompression stack around an off-the-shelf discrete tokenizer, leaving the core LLM completely untouched.

Figure 2. Overview of UNICOMPRESS. The tokenizer is augmented with three modules: a global token extractor, a token compressor, and an autoregressive decompressor. The language model consumes a compact visual sequence for understanding and produces compressed- domain targets for generation.

The framework introduces three lightweight components:

  1. Global Token Extractor: Uses one-way cross-attention to compress the full image token field into a tiny set of learnable query tokens (typically just $N_g = 4$ global meta tokens). These capture holistic scene semantics and layout constraints.
  2. Pooling-based Compressor: Applies a fixed-size average pooling operation (e.g., $2 \times 2$ or $4 \times 4$) directly to the dense token grid, shrinking the local token sequence length by a factor of $s^2$ (up to 4× fewer tokens).
  3. Autoregressive Decompressor: A Transformer decoder that acts during image generation. It takes the compressed local tokens and uses the global meta tokens as "semantic anchors" to autoregressively reconstruct the original high-fidelity dense token grid for the image decoder.

The Two-Stage Training Pipeline

To avoid expensive LLM retraining, UniCompress uses a clever two-stage pipeline:

  • Stage 1 (Tokenizer-side): The LLM is frozen. The global extractor, compressor, and decompressor are trained together purely on an image reconstruction task using a combined regression and codebook consistency loss.
  • Stage 2 (LLM-side): The newly enhanced tokenizer stack is frozen. The LLM is lightly fine-tuned to accept and predict the new compact sequence layout (Global Tokens + Separator + Compressed Local Tokens).

Datasets

The authors validated UniCompress using a robust suite of standard benchmarks:

  • Pre-training & Fine-tuning: Trained on JDB (for image generation) and ShareGPT4V / ShareGPT4V PT (for multimodal understanding).
  • Vision-Language Understanding Evaluation: Evaluated across seven diverse benchmarks: GQA, MME, POPE, Seed-bench, TextVQA, MMMU, and MM-Bench.
  • Image Generation Evaluation: Evaluated on the MJHQ-30K dataset, measuring image quality via Fréchet Inception Distance (FID) and text-alignment via CLIPScore.

Key Insights and Ideas

  • Asymmetry in Task Sensitivity: The core insight driving this paper is that image understanding and image generation have fundamentally different token requirements. Understanding is highly robust to spatial compression, whereas generation is incredibly fragile.
  • Global Meta Tokens as Anchors: By separating the visual representation into global scene-level constraints and pooled local evidence, the autoregressive decompressor can successfully fill in the missing high-frequency details (textures, boundaries) during generation without bloating the LLM's context window.
  • "Compress Once, Reuse for Both": The dual representation allows the exact same compression mechanism to support continuous features for understanding tasks and discrete targets for generation tasks, ensuring true modality unification.

Key Results

UniCompress achieves a highly coveted Pareto improvement, delivering massive efficiency gains with negligible performance trade-offs:

  • Token Reduction & Speedups: The framework successfully compresses visual token sequences by 4× (e.g., from 256 down to 64 local tokens). This translates directly to an end-to-end generation inference speedup of over 40% (e.g., cutting UniTok's generation time from 32.25 to 18.96 minutes) and a 15.4% reduction in training time.
  • Preserved Understanding: Across all seven understanding benchmarks, the performance drop was capped at $\le$ 3 points, with some benchmarks fully matching pre-compression accuracy.
  • High-Quality Generation: Generation quality remained highly competitive, capping the FID increase to $\le$ 5 points, vastly outperforming naive pruning methods.
Visual quality comparison between standard UniTok and UniCompress

Limitations and Future Work

While UniCompress demonstrates excellent results, the authors note a few areas for expansion:

  • Fixed Compression Ratios: The primary experiments instantiate a fixed compression ratio ($s=2$). Although the design naturally extends to content-adaptive rates (compressing simple backgrounds more than complex objects), this was not deeply explored in the main evaluation.
  • Residual Generation Loss: Though minimal, there is still a slight degradation in fine-grained image generation quality (a moderate increase in FID) compared to uncompressed baselines. Future work will focus on closing this gap entirely, potentially through tighter integration with diffusion-based unified backbones.

Summary updated

BibTeX
@inproceedings{wang2026unicompress,
  author = {Ziyao Wang and Chen Chen and Jingtao Li and Weiming Zhuang and Jiabo Huang and Ang Li and Lingjuan Lyu},
  title = {{UniCompress: Token Compression for Unified Vision–Language Understanding and Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=OKpKN35hVS},
}
Figure