Papers › FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention

FastComposer: Tuning-Free Multi-Subject Image Generation with Localized Attention

17 May 2023arXiv:2305.10431archive 2025-07-28

Guangxuan Xiao, Tianwei Yin, William T. Freeman, Frédo Durand, Song Han

Diffusion models excel at text-to-image generation, especially in subject-driven generation for personalized images. However, existing methods are inefficient due to the subject-specific fine-tuning, which is computationally intensive and hampers efficient deployment. Moreover, existing methods struggle with multi-subject generation as they often blend features among subjects. We present FastComposer which enables efficient, personalized, multi-subject text-to-image generation without fine-tuning. FastComposer uses subject embeddings extracted by an image encoder to augment the generic text conditioning in diffusion models, enabling personalized image generation based on subject images and textual instructions with only forward passes. To address the identity blending problem in the multi-subject generation, FastComposer proposes cross-attention localization supervision during training, enforcing the attention of reference subjects localized to the correct regions in the target images. Naively conditioning on subject embeddings results in subject overfitting. FastComposer proposes delayed subject conditioning in the denoising step to maintain both identity and editability in subject-driven image generation. FastComposer generates images of multiple unseen individuals with different styles, actions, and contexts. It achieves 300×-2500× speedup compared to fine-tuning-based methods and requires zero extra storage for new subjects. FastComposer paves the way for efficient, personalized, and high-quality multi-subject image creation. Code, model, and dataset are available at https://github.com/mit-han-lab/fastcomposer.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.10431")

Code

Syntology Ran 6 of 17 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mit-han-lab/fastcomposer officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 6 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

6ran
11unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mit-han-lab/fastcomposer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_test_transforms mit-han-lab/fastcomposer/fastcomposer/transforms.py official repository ran MIT (permissive) · addaaf66c3ab7352 · report
get_train_transforms mit-han-lab/fastcomposer/fastcomposer/transforms.py official repository ran MIT (permissive) · c036796b62b5952d · report
get_train_transforms_with_segmap mit-han-lab/fastcomposer/fastcomposer/transforms.py official repository ran MIT (permissive) · 15ed5aec7f6bd270 · report
prepare_image_token_idx mit-han-lab/fastcomposer/fastcomposer/data.py official repository ran MIT (permissive) · 817e9d69c2cd23d3 · report
scatter_object_embeddings mit-han-lab/fastcomposer/fastcomposer/model.py official repository ran MIT (permissive) · ff242689fdee9a2e · report
stable_diffusion_call_with_references_delayed_conditioning mit-han-lab/fastcomposer/fastcomposer/pipeline.py official repository ran MIT (permissive) · d3c9a29ac1be57e9 · report
collate_fn mit-han-lab/fastcomposer/fastcomposer/data.py official repository unverified MIT (permissive) · 1b1c247142456689 · report
compute_similarity_matrix mit-han-lab/fastcomposer/evaluation/single_object/single_object_evaluation.py official repository unverified MIT (permissive) · b77a02409cff8d05 · report
fuse_object_embeddings mit-han-lab/fastcomposer/fastcomposer/model.py official repository unverified MIT (permissive) · 2fa8e59bc1db947b · report
get_accessory_prompts mit-han-lab/fastcomposer/evaluation/single_object/data.py official repository unverified MIT (permissive) · 032366a6a60db29a · report
get_context_prompts mit-han-lab/fastcomposer/evaluation/single_object/data.py official repository unverified MIT (permissive) · 4876d90a82330a60 · report
get_data_loader mit-han-lab/fastcomposer/fastcomposer/data.py official repository unverified MIT (permissive) · c39580137a368949 · report
get_style_prompts mit-han-lab/fastcomposer/evaluation/single_object/data.py official repository unverified MIT (permissive) · 8d486087a7446edf · report
greedy_matching mit-han-lab/fastcomposer/evaluation/single_object/single_object_evaluation.py official repository unverified MIT (permissive) · 20c814d007b3b03b · report
parse_args mit-han-lab/fastcomposer/fastcomposer/utils.py official repository unverified MIT (permissive) · 15ad961bd4dd81e7 · report
read_reference_images mit-han-lab/fastcomposer/evaluation/single_object/single_object_evaluation.py official repository unverified MIT (permissive) · 09e9aa9e75519b16 · report
unet_store_cross_attention_scores mit-han-lab/fastcomposer/fastcomposer/model.py official repository unverified MIT (permissive) · 0a5a54048f832e12 · report

Tasks

DenoisingDiffusion PersonalizationDiffusion Personalization Tuning FreeImage GenerationPersonalized Image GenerationText to Image GenerationText-to-Image Generation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Diffusion Personalization Tuning Free AgeDB FastComposer Cosine Similarity 0.256 #7 of 7 Archive leaderboard report
Diffusion Personalization Tuning Free AgeDB FastComposer FID 31.736 #7 of 7 Archive leaderboard report
Diffusion Personalization Tuning Free AgeDB FastComposer LPIPS 0.487 #7 of 7 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections