Diffusion Transformers (DiTs) have set new standards in generative modeling, and integrating them with Vision Foundation Models (VFMs) offers a tempting prospect: injecting rich, deep semantic understanding into the generation process. However, combining the two is notoriously computationally expensive.
To solve this, researchers have introduced RePack then Refine, a three-stage framework that dramatically accelerates DiT training by compressing VFM features into a compact manifold. The result? A state-of-the-art FID of 1.65 on ImageNet-1K achieved in just 64 training epochs—orders of magnitude faster than traditional methods.
The Dimensionality Curse of VFMs
Standard Latent Diffusion Models (LDMs) rely on Variational Autoencoders (VAEs) to compress images into a latent space before training. Recently, the field has experimented with replacing VAEs with VFMs (like DINOv2 or CLIP) to leverage their "semantic-rich" features.
However, there is a significant catch: raw VFM features are incredibly redundant. A standard ViT-B/16 encoder outputs feature maps with 768 channels. Mathematically, the total number of numerical elements in these features can equal or exceed the number of pixels in the original image, completely negating the primary benefit of latent diffusion—compression. Training a DiT on such high-dimensional, noisy data is computationally heavy and leads to sluggish convergence.
The "RePack then Refine" Framework
To harvest VFM semantics without the dimensional baggage, the authors propose a highly efficient three-stage pipeline:
- Representation Packing (RePack): Instead of utilizing the raw 768-dimensional VFM features, the model uses a lightweight, bias-free linear projection layer to "pack" these features into a compact 32-dimensional manifold. This stage is trained alongside a decoder to ensure the compressed latents can still accurately reconstruct the original image.
- Generative Modeling: A Diffusion Transformer (specifically, an optimized variant called LightningDiT) is trained to model the distribution of these 32-dimensional latents. Because this space is lower-dimensional and semantically dense, the DiT learns exceptionally fast.
- Latent-Guided Refinement: Extreme compression in the first stage acts as a low-pass filter, which inevitably loses high-frequency textures like fur or skin pores. To remedy this, the authors introduce a Latent-Guided Refiner—a U-Net that takes the decoded base image and the upsampled latents as guidance to synthesize realistic, fine-grained textures in a single feed-forward step.
Key Insights and Performance
The framework was evaluated on the ImageNet-1K dataset ($256 \times 256$) using a frozen DINOv3-ViT-B/16 backbone. The architectural choices yielded several fascinating insights:
- The "Elbow Point" of Semantics: Principal Component Analysis (PCA) revealed that the first 32 principal components of VFM features account for roughly 77% of the total variance. Beyond this "elbow point," the remaining 700+ dimensions contribute mostly marginal noise.
- Bias-Free is Better: A bias-free linear projection outperforms a biased one. The authors hypothesize this is because it performs pure rotation and scaling of the feature space, avoiding unnecessary distribution shifts that could confuse the DiT.
- Decoupling Structure and Texture: By separating the generative task (the DiT) from the texture restoration task (the Refiner), the model avoids the "optimization dilemma" where a single network struggles to simultaneously learn global semantic coherence and fine pixel details.
Unprecedented Efficiency
The efficiency gains of this manifold learning approach are striking. While a standard DiT-XL/1 takes roughly 1,400 epochs to reach an FID of 2.27, RePack-DiT-XL/1 achieves a superior FID of 1.82 in just 64 epochs.
When the Refiner module is added, performance improves further to an FID of 1.65, significantly outperforming other VFM-based baselines like VA-VAE (FID 2.11 at 64 epochs) and RAE-DiT-XL (FID 4.28 at 80 epochs). Furthermore, the RePack encoder is remarkably lightweight, adding only 0.04M learnable parameters to the frozen VFM backbone.
Limitations and Next Steps
Due to compute constraints, the authors capped their training at 80 epochs, noting that longer training schedules will likely unlock even higher generative potential.
Looking forward, the team plans to scale the RePack framework to large-scale Text-to-Image (T2I) generation. Interestingly, they also found that the Refiner module is highly specialized to the RePack latents; applying it to other VAEs (like SD-VAE) degraded performance. This suggests that the Refiner's success is intricately tied to the unique, noise-filtered properties of the RePack semantic manifold.
Summary updated