Do We Need to Design Specific Diffusion Models for Different Tasks? Try ONE-PIC

Ming Tao, Bing-Kun Bao, Yaowei Wang, Changsheng Xu
12/7/2024
cs.CV

Official code: tobran/ONE-PIC (17 stars, Apache-2.0, last commit 2024-07-23).

Abstract

Large pretrained diffusion models have demonstrated impressive generation capabilities and have been adapted to various downstream tasks. However, unlike Large Language Models (LLMs) that can learn multiple tasks in a single model based on instructed data, diffusion models always require additional branches, task-specific training strategies, and losses for effective adaptation to different downstream tasks. This task-specific fine-tuning approach brings two drawbacks. 1) The task-specific additional networks create gaps between pretraining and fine-tuning which hinders the transfer of pretrained knowledge. 2) It necessitates careful additional network design, raising the barrier to learning and implementation, and making it less user-friendly. Thus, a question arises: Can we achieve a simple, efficient, and general approach to fine-tune diffusion models? To this end, we propose ONE-PIC. It enhances the inherited generative ability in the pretrained diffusion models without introducing additional modules. Specifically, we propose In-Visual-Context Tuning, which constructs task-specific training data by arranging source images and target images into a single image. This approach makes downstream fine-tuning closer to the pertaining, allowing our model to adapt more quickly to various downstream tasks. Moreover, we propose a Masking Strategy to unify different generative tasks. This strategy transforms various downstream fine-tuning tasks into predictions of the masked portions. The extensive experimental results demonstrate that our method is simple and efficient which streamlines the adaptation process and achieves excellent performance with lower costs. Code is available at https://github.com/tobran/ONE-PIC.

View on arXivView PDF

Code Implementations(1)

tobran/ONE-PICOfficial100%
Apache-2.0
170Apr 26, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{tao2024need,
  title  = {Do We Need to Design Specific Diffusion Models for Different Tasks? Try ONE-PIC},
  author = {Ming Tao and Bing-Kun Bao and Yaowei Wang and Changsheng Xu},
  year   = {2024},
  eprint = {2412.05619},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.05619v1}
}

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/2412.05619.svg)](https://codeofpaper.com/paper/2412.05619)

Discussion