TL;DR
FINE is a novel pre-training framework that factorizes diffusion model weights into shared, size-agnostic "learngenes" and lightweight, layer-specific components. This allows researchers to efficiently initialize variable-sized diffusion models for diverse hardware deployments without training from scratch, delivering up to a $3n\times$ computational speedup when deploying multiple model sizes.
What Problem Does This Paper Address?
Denoising diffusion models, particularly Diffusion Transformers (DiTs), excel at generating high-quality images but are notoriously expensive to train. In the real world, deploying these models requires adapting them to various hardware constraints—from resource-constrained edge devices and smartphones to massive cloud servers.
Standard model zoos only provide pre-trained weights at a few fixed scales (like DiT-B or DiT-XL). If a deployment scenario requires a custom intermediate size, engineers must either train a new model from scratch or rely on heuristic transfer methods (like pruning or layer-reusing). However, diffusion models rely on delicate cross-layer dependencies to maintain semantic consistency during the iterative denoising process. Existing layer-isolated transfer methods disrupt this coherence, leading to suboptimal performance.
Methods
The authors introduce FINE (Flexible Factorization for Initialization of Variable-sized Diffusion Models within the Learngene paradigm). Instead of optimizing a standard full-parameter model, FINE introduces a structural constraint during pre-training that mimics a Singular Value Decomposition (SVD).
For every layer $l$ of a specific weight type, the weight matrix $W^{(l)}$ is represented as: $$W^{(l)}_* = U_* \Sigma^{(l)}_* V_*^\top$$
The core innovation is a cross-layer weight sharing mechanism: the matrices $U_*$ and $V_*$ are shared across all layers of the same type, acting as size-agnostic "learngenes" that capture core generative knowledge. Meanwhile, $\Sigma^{(l)}_*$ is a lightweight, diagonal matrix unique to each layer.
The framework operates in two stages:
- Knowledge Factorization (Pre-training): The shared learngenes ($U, V$) and layer-specific singular values ($\Sigma$) are jointly trained on a large dataset.
- Model Initialization: To initialize a target model of a new size (e.g., fewer layers), the shared learngenes are frozen. A new set of layer-specific singular values ($\Sigma_{tgt}$) is randomly initialized and optimized on a small dataset for just a few hundred steps. This data-driven approach allows the model to adaptively tailor the core knowledge to the new architecture size.
Datasets
- ImageNet-1K: Used for primary knowledge factorization pre-training and evaluation across variable-depth models (ranging from 4 to 12 layers). It was also used for the DeiT classification extension.
- Downstream Transfer Datasets: CelebA-HQ, LSUN-Bedroom, LSUN-Church, Hubble, MRI, and Pokemon were used to evaluate how well the learned learngenes generalize to entirely new domains.
- Note: The paper establishes the first comprehensive benchmark specifically designed to evaluate learngene-based initialization in image generation tasks.
Key Insights and Ideas
- Cross-Layer Sharing Preserves Denoising Hierarchy: Traditional SVD fine-tuning approaches decompose layers independently. FINE demonstrates that forcing layers to share singular vectors successfully captures depth-invariant knowledge without breaking the temporal and hierarchical coherence essential to diffusion.
- Data-Driven Adaptation Beats Heuristics: Previous learngene frameworks required manual, subjective stacking of layers to fit a target size. FINE replaces this by optimizing a compact parameter space ($\Sigma$), allowing the target model to self-assemble the shared learngenes optimally.
- Structural Coherence Across Scales: Visualizing the learned $\Sigma$ values using Principal Component Analysis (PCA) reveals a clear linear relationship across layers. Layers from smaller models align cleanly with corresponding segments in deeper models, proving that FINE captures true cross-scale structural alignment.
Key Results
- State-of-the-Art Initialization: FINE consistently outperformed direct initialization (He-Init, Mimetic) and transfer methods (LiGO, Share Init, TLEG) across all tested depths, reducing Fréchet Inception Distance (FID) by up to 4.89 on DiT-B $L_{10}$.
- Significant Training Speedups: Models initialized with FINE and trained for only 100K steps outperformed models trained from scratch for 300K steps. When initializing $n$ different model sizes, FINE cuts total training costs down to a $300K + 100K \times n$ paradigm, achieving a roughly $3n\times$ speedup over training each from scratch.
- Strong Domain Transferability: Despite being pre-trained on ImageNet, FINE's frozen learngenes transferred exceptionally well to out-of-domain datasets, yielding notable FID improvements on CelebA-HQ ($\downarrow$0.28), LSUN-Bedroom ($\downarrow$2.60), and LSUN-Church ($\downarrow$2.01) compared to full fine-tuning, while updating only 35% of the parameters.
Limitations and Future Work
- One-Time Pre-training Cost: FINE requires a specialized factorized pre-training routine from the start. It cannot be directly applied to standard, full-parameter pre-trained models available in existing model zoos without first undergoing factorization.
- Architecture Constraints: The current implementation and evaluation focus heavily on Transformer backbones (DiT and DeiT). Extending this cross-layer factorization paradigm to CNN-based diffusion architectures (like traditional U-Nets) remains an open challenge for future research.
Summary updated