Flux Already Knows -- Activating Subject-Driven Image Generation without Training

Hao Kang, Stathi Fotiadis, Liming Jiang, Qing Yan, Yumin Jia +3 more
4/12/2025
cs.CVcs.AI

No official code found. Best implementation: bytedance/LatentUnfold (145 stars, Apache-2.0, last commit 2025-09-10).

Abstract

We propose a simple yet effective zero-shot framework for subject-driven image generation using a vanilla Flux model. By framing the task as grid-based image completion and simply replicating the subject image(s) in a mosaic layout, we activate strong identity-preserving capabilities without any additional data, training, or inference-time fine-tuning. This "free lunch" approach is further strengthened by a novel cascade attention design and meta prompting technique, boosting fidelity and versatility. Experimental results show that our method outperforms baselines across multiple key metrics in benchmarks and human preference studies, with trade-offs in certain aspects. Additionally, it supports diverse edits, including logo insertion, virtual try-on, and subject replacement or insertion. These results demonstrate that a pre-trained foundational text-to-image model can enable high-quality, resource-efficient subject-driven generation, opening new possibilities for lightweight customization in downstream applications.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Implementation of paper: Flux Already Knows – Activating Subject-Driven Image Generation without Training

14515Shell, PythonMar 14, 20251 years agoApache-2.0
data-freediffusion-modelsflux-devin-context-promptinginference+4 more

Similar Papers

Cite this paper

@article{kang2025flux,
  title  = {Flux Already Knows -- Activating Subject-Driven Image Generation without Training},
  author = {Hao Kang and Stathi Fotiadis and Liming Jiang and Qing Yan and Yumin Jia and Zichuan Liu and Min Jin Chong and Xin Lu},
  year   = {2025},
  eprint = {2504.11478},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.11478v2}
}

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

Discussion