Adapting Self-Supervised Representations as a Latent Space for Efficient Generation

Ming Gui, Johannes Schusterbauer, Timy Phan, Felix Krause, Josh M. Susskind, Miguel Ángel Bautista, Björn Ommer · DOI

Introduction

Generative modeling for images has traditionally relied on high-dimensional latent grids, such as the $32 \times 32$ representations used in Latent Diffusion Models (LDMs). While effective, these grids contain significant spatial redundancy, leading to high computational costs during both training and inference. Recent attempts to linearize these grids into sequences of tokens still require complex Transformer architectures to model inter-token dependencies.

This paper introduces RepTok (Representation Tokenizer), a novel framework that challenges the necessity of multi-token representations. By leveraging pre-trained self-supervised learning (SSL) models like DINOv2, RepTok compresses an entire image into a single continuous latent token. This radical reduction in dimensionality allows for the use of lightweight generators, drastically lowering the computational barrier for high-quality image synthesis.

Methods

RepTok transforms a pre-trained SSL encoder into a generative tokenizer through a targeted adaptation process. Unlike standard autoencoders that learn a latent space from scratch, RepTok builds upon the semantically rich space of SSL models.

Targeted Adaptation and Detail Injection

The core of the method involves fine-tuning only the semantic [cls] token of a frozen SSL encoder. While SSL tokens excel at capturing high-level semantics, they often lack the low-level geometric details necessary for high-fidelity reconstruction. To bridge this gap, the [cls] token is trained alongside a generative decoder using Flow Matching. This process "injects" reconstruction details into the single token while preserving its semantic structure.

Regularization and Architecture

To maintain a well-behaved latent space suitable for sampling, the authors employ a cosine-similarity regularization loss. This ensures the adapted token remains close to the original SSL representation. Because the image is represented by a single vector, the need for spatial attention mechanisms is eliminated. Consequently, the generator is implemented as a simple MLP-Mixer, which is significantly more efficient than the Transformers typically used in models like Diffusion Transformers (DiT).

RepTok training and inference pipeline. (b) shows the latent space training where an SSL encoder is adapted. (c) shows the inference process using the representation generator and a generative decoder.

Key Results

RepTok demonstrates remarkable efficiency gains without sacrificing image quality. Evaluated on ImageNet-1K at $256 \times 256$ resolution, the model achieves a generation FID (gFID) of 3.22.

Computational Efficiency

The most striking result is the reduction in training compute. RepTok requires over 90% less compute than standard baselines. Specifically, it utilizes only 1.7% of the GFLOPs consumed by SiT-XL/2 to reach comparable performance levels. This efficiency extends to text-to-image (T2I) tasks; a version trained on a subset of COYO-700M achieved competitive zero-shot performance on MS-COCO with less than 20 hours of training on four A100 GPUs.

Performance and efficiency benchmarks. The left and middle plots show gFID-50K vs. total compute and training iterations, highlighting RepTok's (Ours) superior efficiency. The right bar chart quantifies the GFLOPs reduction in both the encoder and the generative model.

Latent Space Properties

The continuous nature of the RepTok latent space allows for smooth interpolation between images. Transitions between generated objects exhibit coherent changes in shape and orientation, a property attributed to the underlying SSL manifold. The model also achieves a reconstruction FID (rFID) of 1.85, confirming that a single token can encapsulate sufficient information for high-fidelity image recovery.

Discussion and Limitations

While RepTok marks a significant step toward efficient generation, it faces certain challenges. Representing an entire image with a single token may reach a "detail ceiling" at very high resolutions or for extremely complex scenes. Furthermore, there is an inherent trade-off between semantic smoothness (beneficial for generation) and pixel-perfect reconstruction. Finally, the model's reliance on object-centric SSL backbones can lead to difficulties with complex compositional text prompts, suggesting that scaling to more diverse datasets is a key direction for future work.

Summary updated

BibTeX
@inproceedings{gui2026adapting,
  author = {Ming Gui and Johannes Schusterbauer and Timy Phan and Felix Krause and Josh M. Susskind and Miguel Ángel Bautista and Björn Ommer},
  title = {{Adapting Self-Supervised Representations as a Latent Space for Efficient Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=0b6a2SE23v},
}
Figure