BRIDGE: Background Routing and Isolated Discrete Gating for Coarse-Mask Local Editing

Peilin Xiong, Honghui Yuan, Junwen Chen, Keiji Yanai
5/8/2026
1 citation
cs.CV

Official code: XIONGPEILIN/BRIDGE (1 star, Python, Apache-2.0, last commit 2026-10-25).

Abstract

Coarse-mask local editing must preserve the background while allowing new content to depart from the mask contour. Existing mask-conditioned editors often entangle these goals and treat the coarse mask as a shape prior.

Show full abstract

We introduce BRIDGE, a dual-path architecture with a full-canvas Main Path, a local Subject Path, and a learned binary gate that routes subject-token positional embeddings between subject-centric and background-anchored coordinates. On Qwen-Image-Edit-2511, BRIDGE keeps the mask outside the DiT backbone and trains both targets with independent noise. On BRIDGE-Bench, it achieves 0.503 local SigLIP2-T, 0.902 DINO, and 0.175 DreamSim, outperforming ACE++ and FLUX.1-Fill in local precision. We then instantiate BRIDGE on FLUX.2 [klein] 9B Base with full-transformer training and subject-reference conditioning. Dense BBox supervision preserves Sub-image quality; optional mask-cropped inference removes out-of-mask Sub tokens, tightening user support without training a sparse model that overfits the mask silhouette. On supported ICE-Bench tasks, FLUX.2 BRIDGE averages 0.5941 over four local edits and 0.6254 over subject-guided edits, leading the compared open-source models on the latter. Across Qwen and FLUX.2, BRIDGE separates support localization from subject geometry and improves local generation while preserving the surrounding scene. Code is available at https://github.com/XIONGPEILIN/BRIDGE

View on arXivView PDF

Code Implementations(1)

XIONGPEILIN/BRIDGEOfficial100%
Apache-2.0
10Python, ShellMay 12, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{xiong2026bridge,
  title  = {BRIDGE: Background Routing and Isolated Discrete Gating for Coarse-Mask Local Editing},
  author = {Peilin Xiong and Honghui Yuan and Junwen Chen and Keiji Yanai},
  year   = {2026},
  eprint = {2605.07846},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.07846v4}
}

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

Discussion