paper-with-me

Papers

Your Latent Mask is Wrong: Pixel-Equivalent Latent Compositing for Diffusion Models

2025-12-04 · Rowan Bradbury, Dazhi Zhong arxiv

Latent inpainting in diffusion models still relies almost universally on linearly interpolating VAE latents under a downsampled mask. We propose a key principle for compositing image latents: Pixel-Equivalent Latent Compositing (PELC). An equivalent latent compositor should be the same as compositing in pixel space. This principle enables full-resolution mask control and true soft-edge alpha compositing, even though VAEs compress images 8x spatially. Modern VAEs capture global context beyond patch-aligned local structure, so linear latent blending cannot be pixel-equivalent: it produces large artifacts at mask seams and global degradation and color shifts. We introduce DecFormer, a 7.7M-parameter transformer that predicts per-channel blend weights and an off-manifold residual correction to realize mask-consistent latent fusion. DecFormer is trained so that decoding after fusion matches pixel-space alpha compositing, is plug-compatible with existing diffusion pipelines, requires no backbone finetuning and adds only 0.07% of FLUX.1-Dev's parameters and 3.5% FLOP overhead. On the FLUX.1 family, DecFormer restores global color consistency, soft-mask support, sharp boundaries, and high-fidelity masking, reducing error metrics around edges by up to 53% over standard mask interpolation. Used as an inpainting prior, a lightweight LoRA on FLUX.1-Dev with DecFormer achieves fidelity comparable to FLUX.1-Fill, a fully finetuned inpainting model. While we focus on inpainting, PELC is a general recipe for pixel-equivalent latent editing, as we demonstrate on a complex color-correction task.

📄 PDF Abstract BibTeX arXiv:2512.05198

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Image Generation with Self Pixel-wise Normalization

2022-01-26 · Yoon-Jae Yeo, Min-Cheol Sagong, Seung Park, Sung-Jea Ko 외

Region-adaptive normalization (RAN) methods have been widely used in the generative adversarial network (GAN)-based image-to-image translation technique. However, since these approaches need a mask image to infer the pix…

Generative Adversarial NetworkImage GenerationImage-to-Image Translation

Box-driven Class-wise Region Masking and Filling Rate Guided Loss for Weakly Supervised Semantic Segmentation

2019-04-26 · CVPR 2019 6 · Chunfeng Song, Yan Huang, Wanli Ouyang, Liang Wang

Semantic segmentation has achieved huge progress via adopting deep Fully Convolutional Networks (FCN). However, the performance of FCN based models severely rely on the amounts of pixel-level annotations which are expens…

Semantic SegmentationWeakly-supervised LearningWeakly supervised Semantic SegmentationWeakly-Supervised Semantic Segmentation

Class Re-Activation Maps for Weakly-Supervised Semantic Segmentation

2022-03-02 · CVPR 2022 1 · Zhaozheng Chen, Tan Wang, Xiongwei Wu, Xian-Sheng Hua 외

Extracting class activation maps (CAM) is arguably the most standard step of generating pseudo masks for weakly-supervised semantic segmentation (WSSS). Yet, we find that the crux of the unsatisfactory pseudo masks is th…

Semantic SegmentationWeakly supervised Semantic SegmentationWeakly-Supervised Semantic Segmentation

PiLaMIM: Toward Richer Visual Representations by Integrating Pixel and Latent Masked Image Modeling

2025-01-06 · Junmyeong Lee, Eui Jun Hwang, Sukmin Cho, Jong C. Park

In Masked Image Modeling (MIM), two primary methods exist: Pixel MIM and Latent MIM, each utilizing different reconstruction targets, raw pixels and latent representations, respectively. Pixel MIM tends to capture low-le…

Mask-based Latent Reconstruction for Reinforcement Learning

2022-01-28 · Tao Yu, Zhizheng Zhang, Cuiling Lan, Yan Lu 외

For deep reinforcement learning (RL) from pixels, learning effective state representations is crucial for achieving high performance. However, in practice, limited experience and high-dimensional inputs prevent effective…

Deep Reinforcement Learningreinforcement-learningReinforcement LearningReinforcement Learning (RL)+1