2D Gaussians Meet Visual Tokenizer

Yiang Shi, Xiaoyang Guo, Wei Yin, Mingkai Jia, Qian Zhang, Xiaolin Hu, Wenyu Liu, Xinggang WangarXiv 2025 · DOI

Introduction

Autoregressive models have revolutionized image generation by treating pixels as sequences of discrete tokens. However, the standard "patchification" process used in models like VQ-GAN is inherently grid-bound. While effective for texture and color, these models struggle with global geometry and precise spatial relationships. This limitation is most evident in the "garbled" text and blurred structural lines common in AI-generated imagery. Visual Gaussian Quantization (VGQ) addresses this by incorporating a structural branch that understands geometry through learnable 2D Gaussians.

Methodology: Visual Gaussian Quantization (VGQ)

VGQ utilizes a dual-branch architecture to capture both appearance and structure:

  1. VQ Branch: Discretizes local appearance patterns (texture and color) using a standard vector-quantized codebook.
  2. 2DGS Branch: Encodes structural information into learnable 2D Gaussians, each defined by position, rotation, scale, and a local feature embedding.
VGQ excels at preserving fine-grained structural details in complex scenes.

The outputs are fused via a Hadamard product, where the structural features act as "soft spatial gates" for the texture features. An extended version, VGQ-multigs, allows multiple Gaussians per token, further increasing structural resolution.

Key Insights

The combination of appearance and structure preserves significantly more mutual information than simply increasing the codebook size of standard VQ models. Ablation studies on Mini-ImageNet confirmed that element-wise multiplication (Hadamard product) is the most effective fusion method, allowing the 2DGS branch to modulate the application of texture features spatially. Furthermore, performance scales positively with the number of Gaussians per token.

Results and Evaluation

Evaluated on ImageNet-1K (256x256), VGQ-multigs (4 Gaussians per token) achieved a state-of-the-art rFID of 0.556 and a PSNR of 24.93, significantly outperforming baselines like Open-MAGVIT2 (rFID 1.17).

Qualitatively, VGQ maintains sharp contours and accurate character structures in text-heavy images, where previous models typically produce unreadable artifacts.

Conclusion and Future Directions

VGQ successfully bridges the gap between discrete tokenization and geometric modeling. Future work will focus on adaptive Gaussian allocation to improve computational efficiency in low-complexity regions and exploring the integration of VGQ's structured latent space with Large Language Models for enhanced multimodal understanding.

Summary updated

BibTeX
@misc{shi2025d,
  author = {Yiang Shi and Xiaoyang Guo and Wei Yin and Mingkai Jia and Qian Zhang and Xiaolin Hu and Wenyu Liu and Xinggang Wang},
  title = {{2D Gaussians Meet Visual Tokenizer}},
  year = {2025},
  eprint = {2508.13515},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.13515},
}
Figure