FiT: Flexible Vision Transformer for Diffusion Model

ICML 2024 pp. 33160-33176

Abstract

In the context of this reality, existing diffusion models, such as Diffusion Transformers, often face challenges when processing image resolutions outside of their trained domain. To overcome this limitation, we present the Flexible Vision Transformer (FiT), a transformer architecture specifically designed for generating images with unrestricted resolutions and aspect ratios. Unlike traditional methods that perceive images as static-resolution grids, FiT conceptualizes images as sequences of dynamically-sized tokens. This perspective enables a flexible training strategy that effortlessly adapts to diverse aspect ratios during both training and inference phases, thus promoting resolution generalization and eliminating biases induced by image cropping. Enhanced by a meticulously adjusted network structure and the integration of training-free extrapolation techniques, FiT exhibits remarkable flexibility in resolution extrapolation generation. Comprehensive experiments demonstrate the exceptional performance of FiT across a broad range of resolutions. Repository available at https://github.com/whlzy/FiT.

Cite

Text

Lu et al. "FiT: Flexible Vision Transformer for Diffusion Model." International Conference on Machine Learning, 2024.

Markdown

[Lu et al. "FiT: Flexible Vision Transformer for Diffusion Model." International Conference on Machine Learning, 2024.](https://mlanthology.org/icml/2024/lu2024icml-fit/)

BibTeX

@inproceedings{lu2024icml-fit,
  title     = {{FiT: Flexible Vision Transformer for Diffusion Model}},
  author    = {Lu, Zeyu and Wang, Zidong and Huang, Di and Wu, Chengyue and Liu, Xihui and Ouyang, Wanli and Bai, Lei},
  booktitle = {International Conference on Machine Learning},
  year      = {2024},
  pages     = {33160-33176},
  volume    = {235},
  url       = {https://mlanthology.org/icml/2024/lu2024icml-fit/}
}