FreeFuse: Multi-Subject LoRA Fusion via Auto Masking at Test Time

Yaoli Liu, Yao-Xiang Ding, Kun Zhou · Submission to ICLR 2026 · Rejected

TL;DR

Combining multiple subject LoRAs in text-to-image models usually leads to severe feature bleeding and identity confusion in close-interaction scenes. FreeFuse introduces an efficient, training-free method for Diffusion Transformers (DiTs) that extracts clean, dynamic subject masks from cross- and self-attention maps in just a single inference step—requiring no auxiliary segmentation networks, LoRA retraining, or manual bounding boxes.

What Problem Does This Paper Address?

Low-Rank Adaptation (LoRA) is the standard method for personalizing text-to-image (T2I) models. However, naively applying multiple character LoRAs at inference creates severe cross-contamination: features bleed into unintended subjects (e.g., blending facial features or skin tones when characters are close together).

Existing solutions come with steep compromises:

  • Weight merging / orthogonalization (e.g., ZipLoRA) struggles with multi-subject composition.
  • Region-based methods (e.g., Mix-of-Show, Orthogonal Adaptation) demand explicit bounding boxes or complex prompt templates from the user.
  • Auxiliary segmentation pipelines (e.g., OMG) add substantial latency and depend heavily on two-stage redrawing.

FreeFuse aims to eliminate feature conflicts automatically, test-time, while preserving full compatibility with community LoRAs and modern DiT backbones (like FLUX.1).

Methods

FreeFuse operates via a two-stage inference procedure:

[ Step 6 Attention ] ──> [ Sink Removal & Top-1% ] ──> [ Self-Attention Locality ] 
                                                               │
[ Spatial Masking ]  <── [ SLIC Superpixel Voting ] <──────────┘
  1. Attention Sink Filtering: Raw cross-attention maps often suffer from high-value border artifacts ("attention sinks"). FreeFuse filters these by combining top-$k$ thresholding (top 1%) with edge detection.
  2. Cross-to-Self Attention Refinement: Cross-attention maps alone are noisy and prone to inter-concept bleed. FreeFuse identifies the top 1% salient tokens from the filtered cross-attention map of each LoRA activation word, then computes their self-attention maps to exploit transformer spatial locality (diagonal dominance).
  3. Superpixel-Based Ensemble Voting: Pixel-level competition produces fragmented masks with holes. FreeFuse runs SLIC superpixel segmentation on the predicted $x_0$ sample and aggregates attention scores across superpixel blocks, assigning each block to the winning LoRA via argmax voting.
  4. Spatial Masking of LoRA Updates: For all subsequent denoising steps, each LoRA's update is strictly gated to its assigned mask: $$h'_p = h_p + \sum_{i=1}^N \mathbb{I}(p \in R_i) \cdot \Delta\theta_i(x_p)$$ Style LoRAs can simply bypass masking with an all-ones mask.

Crucially, mask extraction happens only once (at step 6 of 28, from the 17th double-stream block in FLUX.1-dev), avoiding the overhead of step-by-step attention manipulation.

Datasets

  • Core Comparative Evaluation: 20 total LoRAs trained on identical 5-character datasets (15 high-quality images per character across angles and outfits) using ai-toolkit.
  • Prompt Benchmark: 50 newly designed prompt sets emphasizing challenging physical interactions (hugging, kissing, whispering, arm-wrestling, face-touching) across complex lighting conditions.
  • Scalability Study: 35 character LoRAs and 6 object LoRAs downloaded from Civitai (each having $>300$ downloads) combined into 1-to-4 character configurations.

Key Insights and Ideas

  • Spatial Locality Prevents Global Leakage: While self-attention is mathematically global, DiT feature maps demonstrate strong diagonal dominance—tokens predominantly attend within their own spatial subject regions. Therefore, simply masking the residual LoRA output is sufficient to prevent contamination without altering attention weights.
  • Single-Step Early Extraction is Optimal: Diffusion models establish spatial layout and coarse composition within the earliest denoising timesteps. Extracting masks at step 6 yields cleaner semantic boundaries than extracting them later, while saving massive compute.
  • Self-Attention Acts as a Semantic Regularizer: Seeding self-attention queries with the top 1% cross-attention tokens captures tight, cohesive subject boundaries far better than raw cross-attention maps.

Key Results

  • Superior Generation Quality & Alignment:
  • Achieved 74.03 on VLM scoring (Gemini-2.5 evaluating character consistency, prompt adherence, and clarity), substantially outperforming LoRA Merge (51.94), OMG (53.02), Mix-of-Show (57.74), and CLoRA (23.56).
  • Outperformed all baselines in human preference alignment on HPSv3 (10.63 Avg / 12.25 10-Pass).
  • High identity preservation on LVFace (0.4685 10-Pass vs. 0.3698 LoRA Merge).
  • Inference Efficiency:
  • Adds only ~21% runtime overhead over baseline LoRA Merge (34s vs. 28s on an NVIDIA L20 GPU) with 0% additional VRAM footprint. In contrast, earlier methods like CLoRA (+425%) and OMG (+850%) introduce massive execution slowdowns.
  • Cross-Architecture Portability: Successfully transferred to Stable Diffusion 3.5 by simply switching attention extraction to the 25th transformer block, improving VLM score from 52.38 to 61.71.

Limitations and Future Work

  • Degradation at Scale ($\ge 5$ Subjects): When composing more than four subjects, the base DiT's inherent scene comprehension breaks down, producing hallucinated positions and misassigned attention regions (e.g., characters missing or duplicated).
  • Dependence on Base Model Spatial Grounding: Because FreeFuse avoids user-defined bounding boxes, it is fully reliant on the base model's prompt parsing to separate subjects in latent space.
  • Future Directions: Iterative attention-weight recomputation or lightweight spatial prior modules could help stabilize multi-LoRA scenarios beyond 4–5 simultaneous characters.

Summary updated

BibTeX
@misc{liu2025freefuse,
  author = {Yaoli Liu and Yao-Xiang Ding and Kun Zhou},
  title = {{FreeFuse: Multi-Subject LoRA Fusion via Auto Masking at Test Time}},
  year = {2025},
  eprint = {2510.23515},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.23515},
}
Figure