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

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

Introduction

Generative models like Diffusion and Flow Matching are computationally expensive, typically operating on high-dimensional pixel spaces or 2D latent grids. Even Latent Diffusion Models (LDMs) suffer from spatial redundancy, where neighboring pixels or latent features carry overlapping information. While recent works have moved toward 1D tokenization (representing images as a sequence of discrete tokens), they still require dozens of tokens to maintain quality.

RepTok (Representation Tokenizer) asks a radical question: Can we represent an entire image with just one continuous latent token? By lightly fine-tuning the semantic embedding of a pre-trained self-supervised learning (SSL) model, RepTok demonstrates that highly efficient generative modeling is possible without complex attention mechanisms during generation, reducing training costs by over 90% compared to standard transformer-based baselines.

The RepTok Framework

The RepTok framework simplifies the generative pipeline into three main components:

Overview of the RepTok framework
  1. The Adapted SSL Encoder: The authors take a pre-trained SSL model (like DINOv2) and fine-tune only the [cls] (class) token. While the original SSL token excels at capturing high-level semantics, it often ignores the low-level details needed for reconstruction. This targeted adaptation injects those missing details.
  2. Cosine-Similarity Regularization: To prevent fine-tuning from breaking the well-structured latent space of the original SSL model, a loss term is introduced to keep the adapted token close to the original frozen SSL representation. This ensures the latent space remains smooth and navigable for a generator.
  3. The MLP-Mixer Generator: Because the image is represented by a single token, there are no spatial interactions to model within the latent space. This allows the replacement of heavy, attention-based Transformers with a lightweight, attention-free MLP-Mixer for class-conditional generation, trained using a Flow Matching objective.

Key Insights

  • SSL Models are "Almost" Generative Encoders: Pre-trained SSL representations already possess a smooth, semantically structured geometry. Instead of learning a latent space from scratch, we only need to nudge an existing one to include reconstruction-relevant details.
  • The Death of Spatial Redundancy: Collapsing the image into a single token bypasses the "grid" problem entirely. Modeling the relationship between different parts of an image can be offloaded to the encoder-decoder stage rather than the generation stage.
  • Regularization via Alignment: Instead of standard VAE bottlenecks (like KL-divergence or Vector Quantization), RepTok uses alignment with a frozen SSL model, preserving a semantic manifold naturally suited for interpolation and generation.

Results and Efficiency

RepTok was evaluated on ImageNet-1K for class-conditional generation and MS-COCO for zero-shot text-to-image synthesis (trained on a subset of COYO-700M).

Training efficiency and compute reduction of RepTok compared to baselines
  • Massive Efficiency Gains: RepTok reduces training GFLOPs by over 90% compared to state-of-the-art models like DiT and SiT.
  • High Performance: On ImageNet $256 \times 256$, RepTok achieved an FID of 1.88 (with Classifier-Free Guidance), matching or beating much heavier models.
  • Speed: The inference process is significantly faster, as the MLP-Mixer generator adds negligible overhead compared to the generative decoder.
  • Text-to-Image Scalability: Despite a tiny training budget (under 20 hours on four A100 GPUs), the model reached competitive zero-shot performance on MS-COCO, proving the single-token approach scales to complex, prompt-based synthesis.

Limitations and Future Work

A single token (typically 768 or 1024 dimensions) has a finite capacity, which may limit the model's ability to capture extremely fine-grained details in highly complex or high-resolution scenes. Consequently, achieving precise "pixel-perfect" control over the location of small objects remains a challenge. Future directions include extending the framework to a "few-token" regime (e.g., 4 or 8 tokens) to strike an even better balance between extreme efficiency and high-fidelity detail for ultra-high-resolution images.

Summary updated

BibTeX
@inproceedings{gui2026adapting,
  author = {Ming Gui and Johannes Schusterbauer and Timy Phan and Felix Krause and Joshua 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