FINE: Factorizing Knowledge for Initialization of Variable-sized Diffusion Models

Yucheng Xie, Fu Feng, Ruixiao Shi, Jianlu Shen, Jing Wang +2 more
9/28/2024
cs.CV

No confident code implementation found for this paper.

Abstract

The training of diffusion models is computationally intensive, making effective pre-training essential. However, real-world deployments often demand models of variable sizes due to diverse memory and computational constraints, posing challenges when corresponding pre-trained versions are unavailable. To address this, we propose FINE, a novel pre-training method whose resulting model can flexibly factorize its knowledge into fundamental components, termed learngenes, enabling direct initialization of models of various sizes and eliminating the need for repeated pre-training. Rather than optimizing a conventional full-parameter model, FINE represents each layer's weights as the product of $U_{\star}$, $Σ_{\star}^{(l)}$, and $V_{\star}^\top$, where $U_{\star}$ and $V_{\star}$ serve as size-agnostic learngenes shared across layers, while $Σ_{\star}^{(l)}$ remains layer-specific. By jointly training these components, FINE forms a decomposable and transferable knowledge structure that allows efficient initialization through flexible recombination of learngenes, requiring only light retraining of $Σ_{\star}^{(l)}$ on limited data. Extensive experiments demonstrate the efficiency of FINE, achieving state-of-the-art performance in initializing variable-sized models across diverse resource-constrained deployments. Furthermore, models initialized by FINE effectively adapt to diverse tasks, showcasing the task-agnostic versatility of learngenes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xie2024fine,
  title  = {FINE: Factorizing Knowledge for Initialization of Variable-sized Diffusion Models},
  author = {Yucheng Xie and Fu Feng and Ruixiao Shi and Jianlu Shen and Jing Wang and Yong Rui and Xin Geng},
  year   = {2024},
  eprint = {2409.19289},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.19289v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.19289.svg)](https://codeofpaper.com/paper/2409.19289)

Discussion