InsertFuse: A Unified Framework for Multi-Category Reference-Guided Image Insertion

Guangzhao Li, Qingyan Wei, Huayu Zheng, Yige Zheng, Chaoyang Zhang, Jie Yang, Yunan Ding, Yan Tai, Siqi Luo, Xiaohong LiuarXiv 2026

TL;DR

InsertFuse is a unified framework for multi-category, reference-guided image insertion that eliminates optimization conflicts between diverse insertion tasks (like virtual try-on vs. human insertion). By training specialized category experts and consolidating their knowledge into a single student model via Insertion On-Policy Distillation (IOPD), it achieves state-of-the-art reference fidelity and spatial control.

What Problem Does This Paper Address?

Reference-guided image insertion is the task of taking an object from a reference image and seamlessly blending it into a specific region of a target scene. This requires a delicate balance: the model must preserve the object's unique identity and texture while realistically adapting its pose, lighting, and scale to the new environment.

While models can be trained to do this well for a single category (e.g., just garments), building a unified model that handles multiple categories (apparel, accessories, humans, animals) introduces severe cross-category interference. Different categories demand fundamentally different generation strategies—accessories require fine-grained texture preservation, whereas virtual try-on requires complex non-rigid deformation. Directly training a single model on mixed-category data introduces conflicting optimization signals, which degrades the model's specialized capabilities across the board.

Methods

InsertFuse tackles cross-category interference by decoupling specialized learning from capability consolidation into a two-stage framework:

  1. Category-Specific Expert Learning: Separate expert models are trained independently on distinct insertion categories (e.g., garments, humans, accessories).
  2. Insertion On-Policy Distillation (IOPD): A single student model is trained by mimicking the velocity targets of the corresponding frozen expert. Crucially, this distillation happens on-policy—meaning the experts are queried at the exact intermediate states visited by the student along its own generation trajectory. This transfers specialized behaviors into a single model without requiring multiple branches at inference time.
Figure 1: Overview of InsertFuse. Left: The masked context and reference images are encoded through the vision-language and VAE branches. Token-Aligned Geometry Conditioning (TAGC) converts the target mask into grid-aligned geometry features and integrates them with the patchified visual features. Right: Category-specific experts are first trained on their respective insertion data. During student training, on-policy rollouts and Insertion On-Policy Distillation (IOPD) are interleaved: the student generates trajectories, and the matched frozen expert supplies velocity targets at the visited states for distillation. The resulting unified student handles all insertion categories without retaining the experts at inference.

To improve spatial accuracy and reference fidelity, the authors introduce three key components:

  • Token-Aligned Geometry Conditioning (TAGC): Instead of simply passing a binary mask, TAGC processes the mask using a signed distance transform to capture boundary-aware geometry. These features are mapped directly onto the visual token grid, providing explicit spatial guidance.
  • Region-Balanced Flow Matching (RBFM): Standard flow matching averages loss globally, allowing large backgrounds to dominate the training signal. RBFM separately normalizes prediction errors inside and outside the insertion region, ensuring stable supervision regardless of the object's scale.
  • Reference Classifier-Free Guidance (Reference CFG): During expert training, the visual reference condition is randomly dropped. At inference, this allows the model to isolate and amplify the guidance vector derived purely from the visual reference, preventing identity drift.

Datasets

The authors evaluated their framework using two main datasets:

  • AnyInsertion: A public multi-category benchmark used to evaluate cross-dataset generalization.
  • Custom Multi-Category Dataset: A dedicated dataset collected by the authors containing 1,000 training examples and a test set for each of 5 distinct categories: accessory, animal, garment, general-object, and human.

Key Insights and Ideas

  • The Reality of Gradient Conflicts: Through a rigorous gradient analysis, the authors proved that direct joint training suffers from severe directional interference. For instance, gradients for the human and garment categories have a negative inner product up to 80% of the time, meaning an update that improves human insertion actively worsens garment insertion.
  • Scale-Invariant Supervision: Simple foreground weighting doesn't fix the scale problem in image editing. By independently normalizing regional errors based on their effective area, RBFM ensures that a tiny ring receives the same optimization weight as a massive wardrobe.
  • On-Policy Alignment Over Joint Optimization: Rather than trying to find a compromised optimization path during joint training, forcing a student model to trace the generation paths of pre-stabilized experts yields a much cleaner unified policy.

Key Results

InsertFuse achieved state-of-the-art quantitative performance across both benchmarks, demonstrating superior reference fidelity (measured via DINO-I and CLIP-I) and image quality (PSNR, SSIM, LPIPS, FID).

  • Quantitative Performance: On the multi-category test set, InsertFuse achieved a PSNR of 24.40 and an LPIPS of 0.0795, significantly outperforming Direct Joint Training (PSNR: 19.36, LPIPS: 0.1746) and closely approaching the performance of separate, un-unified category experts.
  • User Study: In a multi-way user preference study, InsertFuse won 51.8% of votes for reference fidelity and 58.2% for insertion quality against top competitors like AnyDoor and $A^2$-Edit.
Figure 2: Qualitative comparison across diverse reference-guided insertion cases. The cyan overlay in each source image denotes the designated insertion region. InsertFuse more faithfully preserves reference-specific appearance and fine-grained structure while adapting the inserted subject to the target geometry, pose, perspective, and occlusion relationships.

Qualitatively, InsertFuse excels at preserving complex textures (like knitted beanies or graphic logos) and correctly re-orienting objects to match the perspective and occlusion boundaries of the target scene.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{li2026insertfuse,
  author = {Guangzhao Li and Qingyan Wei and Huayu Zheng and Yige Zheng and Chaoyang Zhang and Jie Yang and Yunan Ding and Yan Tai and Siqi Luo and Xiaohong Liu},
  title = {{InsertFuse: A Unified Framework for Multi-Category Reference-Guided Image Insertion}},
  year = {2026},
  eprint = {2608.06490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.06490},
}
Figure