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).
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.
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