# InstantSwap: Fast Customized Concept Swapping across Sharp Shape Differences

Source: [InstantSwap: Fast Customized Concept Swapping across Sharp Shape Differences](<https://www.sota2.com/research/paper/68fa75f61e209131cea6aacf>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T03:44:34.944Z

Authors: Chenyang Zhu, Kai Li, Yue Ma, Longxiang Tang, Chengyu Fang, Chubin Chen, Qifeng Chen, Xiu Li

Published: 2024-12-02T06:59:52.000Z

## Abstract

Recent advances in Customized Concept Swapping (CCS) enable a text-to-image model to swap a concept in the source image with a customized target concept. However, the existing methods still face the challenges of inconsistency and inefficiency. They struggle to maintain consistency in both the foreground and background during concept swapping, especially when the shape difference is large between objects. Additionally, they either require time-consuming training processes or involve redundant calculations during inference. To tackle these issues, we introduce InstantSwap, a new CCS method that aims to handle sharp shape disparity at speed. Specifically, we first extract the bbox of the object in the source image automatically based on attention map analysis and leverage the bbox to achieve both foreground and background consistency. For background consistency, we remove the gradient outside the bbox during the swapping process so that the background is free from being modified. For foreground consistency, we employ a cross-attention mechanism to inject semantic information into both source and target concepts inside the box. This helps learn semantic-enhanced representations that encourage the swapping process to focus on the foreground objects. To improve swapping speed, we avoid computing gradients at each timestep but instead calculate them periodically to reduce the number of forward passes, which improves efficiency a lot with a little sacrifice on performance. Finally, we establish a benchmark dataset to facilitate comprehensive evaluation. Extensive evaluations demonstrate the superiority and versatility of InstantSwap. Project Page: https://instantswap.github.io/

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Object Swapping on DreamEditBench (test)](<https://www.sota2.com/research/sota/object-swapping-on-dreameditbench-test.md>): Object Swapping; DreamEditBench (test); Object Fidelity: 2.68.

- [Object-scene harmony evaluation on DreamEditBench](<https://www.sota2.com/research/sota/object-scene-harmony-evaluation-on-dreameditbench.md>): Object-scene harmony evaluation; DreamEditBench; ChatGPT-5 Preference Rate: 86.12.

- [Image Editing on Inference Speed Benchmark per-sample](<https://www.sota2.com/research/sota/image-editing-on-inference-speed-benchmark-per-sample.md>): Image Editing; Inference Speed Benchmark per-sample; Inference Time (s): 23.48.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2412.01197>)

[PDF](<https://arxiv.org/pdf/2412.01197.pdf>)
