GPSToken: Gaussian Parameterized Spatially-adaptive Tokenization for Image Representation and Generation

Zhengqiang Zhang, Rongyuan Wu, Lingchen Sun, Lei Zhang

In the world of computer vision, we’ve long been obsessed with grids. Whether it's the pixels on your screen or the patches used by Vision Transformers (ViTs), we tend to treat images as rigid, uniform structures. But natural images aren't uniform—a clear blue sky contains far less information per square inch than the intricate scales of a lizard or the complex feathers of a bird.

Spatially-adaptive GPS-tokens overlaid on an image

A new paper from researchers at The Hong Kong Polytechnic University and OPPO Research Institute, titled GPSToken, suggests it's time to break the grid. By representing images using flexible 2D Gaussians instead of fixed squares, they’ve achieved state-of-the-art results in image reconstruction and generation with surprising efficiency.

TL;DR

GPSToken replaces rigid grid-based image patches with flexible, 2D Gaussian-parameterized tokens that adapt to the actual content of an image. This spatially-adaptive approach allows for high-fidelity image representation and generation using significantly fewer tokens, achieving an impressive FID of 1.50 on ImageNet-256 while training up to 5x faster than traditional methods.

What Problem Does This Paper Address?

Most modern image generative models (like Stable Diffusion or VQGAN) rely on "tokenization." They break an image down into a sequence of latent codes. Traditionally, this is done using a uniform grid (e.g., dividing a 256x256 image into a 16x16 grid of patches).

The problem? Grids are "content-blind." They allocate the same amount of computational budget to a flat background as they do to a complex human face. This inflexibility limits how well a model can represent fine details without blowing up the token count (and thus the computational cost). Furthermore, rigid squares are poor at capturing the anisotropic (directional) shapes found in nature, like the edge of a leaf or the curve of a lens.

Methods

The authors introduce GPSToken, which stands for Gaussian Parameterized Spatially-adaptive Tokenization. The workflow consists of three main stages:

The GPSToken parameterization combining Gaussian parameters and textual features
  1. Spatially-Adaptive Initialization: Instead of a grid, the model uses an entropy-driven algorithm to partition the image. Areas with high texture complexity get more, smaller regions, while simple areas get fewer, larger ones.
  2. Gaussian Parameterization: Each region is modeled as a 2D Gaussian. This means each token stores five geometric parameters (position $x, y$, scale $\sigma_x, \sigma_y$, and rotation $\rho$) plus a vector of texture features.
  3. Refinement and Rendering: A specialized Transformer refines these parameters to better fit the image content. To get back to a standard image format, the model uses a differentiable splatting-based renderer (inspired by 3D Gaussian Splatting). This allows the entire system to be trained end-to-end.

For image generation, they propose a two-stage pipeline: first, a lightweight model generates the "structural layout" (the Gaussian parameters), and then a diffusion model generates the "texture features" conditioned on that layout.

Datasets

The model was primarily trained and evaluated on ImageNet (at 256x256, 512x512, and 1024x1024 resolutions). To test its generalization, the researchers also evaluated it on:

  • COCO2017: Natural images.
  • FFHQ: High-quality human faces.
  • STARE: Medical (retinal) images.
  • WHU_RS19: Remote sensing (satellite) imagery.

Key Insights and Ideas

  • Disentangling Layout from Texture: By separating the where and shape (Gaussians) from the what (texture features), the model mimics human perception—sketching the structure first before filling in the details.
  • The Power of Splatting: Using a differentiable renderer to bridge irregular tokens with standard 2D decoders is a clever way to maintain compatibility with existing high-performance decoder architectures while enjoying the benefits of adaptive tokenization.
  • Inference-Time Flexibility: Because the tokens are parameterized Gaussians, users can manually "nudge" tokens or increase the token count at inference time to focus on specific areas (like a face or text) for higher-quality reconstruction without retraining the model.

Key Results

GPSToken sets a new bar for efficiency and quality:

  • Reconstruction: On ImageNet-256, it achieved a reconstruction FID (rFID) of 0.65 using only 128 tokens. For context, many competing models require 256 or even 1024 tokens to reach similar quality.
  • Generation: It achieved a state-of-the-art FID of 1.50 for class-conditional generation on ImageNet.
  • Training Speed: The two-stage generation approach is remarkably fast. It reached a competitive FID score in just 100k iterations, making it 3x to 5x faster to train than the baseline SiT-XL/2 model.
  • Resolution Scalability: The model generalizes well to higher resolutions (1024x1024) even when trained on smaller images, outperforming standard VAEs.

Limitations and Future Work

While the results are impressive, the authors note a few areas for improvement:

  • Heuristic Initialization: The current method relies on a manual entropy-driven algorithm for the initial layout. Future work could involve a learned initialization module to make the process even more robust.
  • Architecture Specialization: The generative part of the model still uses somewhat standard diffusion backbones. The authors suggest that designing architectures specifically tailored to predicting Gaussian parameters could eliminate the need for post-processing calibration and further boost performance.

GPSToken represents a significant step toward more "intelligent" image compression and generation, moving us away from the tyranny of the grid and toward representations that actually respect the underlying geometry of our world.

Summary updated

BibTeX
@inproceedings{zhang2025gpstoken,
  author = {Zhengqiang ZHANG and Rongyuan Wu and Lingchen Sun and Lei Zhang},
  title = {{GPSToken: Gaussian Parameterized Spatially-adaptive Tokenization for Image Representation and Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=BxoEDR2yQM},
}
Figure