Adapting Self-Supervised Representations as a Latent Space for Efficient Generation
Ming Gui, Johannes Schusterbauer, Timy Phan, Felix Krause, Josh Susskind, Miguel Angel Bautista, Björn Ommer
TL;DR
RepTok proposes representing an image with a single continuous latent token derived from a pre-trained self-supervised vision transformer, by fine-tuning only the [cls] embedding and training a flow-matching decoder. A cosine-similarity loss keeps the adapted token aligned with the frozen SSL space, preserving its smooth, semantically structured geometry for stable generation. The approach uses an attention-free MLP-Mixer as the latent-space generator and a 2D VAE-based decoding pathway to enable efficient training on ImageNet-scale data, achieving competitive class-conditional generation with drastically reduced compute. It naturally extends to text-to-image synthesis by incorporating cross-attention for prompts, delivering competitive zero-shot MS-COCO results under limited training budgets. Overall, RepTok demonstrates that SSL representations can serve as compact, effective latent spaces for efficient generative modeling when appropriately fine-tuned and regularized.
Abstract
We introduce Representation Tokenizer (RepTok), a generative modeling framework that represents an image using a single continuous latent token obtained from self-supervised vision transformers. Building on a pre-trained SSL encoder, we fine-tune only the semantic token embedding and pair it with a generative decoder trained jointly using a standard flow matching objective. This adaptation enriches the token with low-level, reconstruction-relevant details, enabling faithful image reconstruction. To preserve the favorable geometry of the original SSL space, we add a cosine-similarity loss that regularizes the adapted token, ensuring the latent space remains smooth and suitable for generation. Our single-token formulation resolves spatial redundancies of 2D latent spaces and significantly reduces training costs. Despite its simplicity and efficiency, RepTok achieves competitive results on class-conditional ImageNet generation and naturally extends to text-to-image synthesis, reaching competitive zero-shot performance on MS-COCO under extremely limited training budgets. Our findings highlight the potential of fine-tuned SSL representations as compact and effective latent spaces for efficient generative modeling.
