Many image generators do not work from raw pixels alone. A separate segmentation model first draws a mask saying which pixels to change, and the generator then fills in only that region. Virtual try-on works this way: a new garment is painted onto a photo of a person while the face, hands and hair are kept. To keep those regions sharp, generators often add skip connections, which are shortcuts that carry high-resolution features from the input image directly to the output and bypass the blurry compressed middle of the network. In current designs the segmentation mask itself decides which shortcuts stay open. When the mask is wrong, for example when it clips a finger, a hair strand or a collar edge into the "replace" region, the shortcut for those pixels is cut and their detail is lost for good.
We propose to decouple the two roles. The mask stays a hint, and a small learned gate decides at each scale which shortcut features to pass. The gate is trained with one asymmetric rule: it is penalized only for letting the old garment through, and it is otherwise free to open wherever source pixels help reconstruction. In two sentences: the gate sees the unmasked source features plus a deliberately corrupted mask, and learns to reopen shortcuts that the mask wrongly closed. Because it is only punished for leaking content that must be replaced, it recovers thin boundary detail the upstream segmenter missed without reintroducing ghosting.
Core Claim
The closest existing mechanism is the Enhanced Mask-Aware Skip Connections in LaDI-VTON. That work adds a latent-diffusion try-on model with extra encoder-to-decoder skips around the compressed latent, and gates them with the binary try-on mask. The gate is a hard multiply by the mask, so under-segmentation silently removes detail. The opposite response comes from Du et al., in Mask Does Not Matter (MFTON) and Mitigating Occlusions in Virtual Try-On. They drop masks at inference altogether, relying on a coarse try-on overlay, Laplacian texture attention and a Sobel-gradient loss, or on background replacement plus a teacher-student "covering-and-eliminating" curriculum. They document "ghosting" from leftover garment fragments and truncated limbs caused by imperfect masks. These papers motivate the problem. They also give up the cheap, pixel-exact identity routing that skips provide.
Our claim is narrower and testable. Most real parser errors are thin boundary errors, roughly as wide as the latent downsampling factor (8 pixels in Stable Diffusion's autoencoder). In that band, a decoder-level gate trained with the leak-only constraint can bring detail in kept regions under corrupted masks close to its clean-mask level, with no loss at clean masks and no increase in garment leakage. Errors wider than the latent grid also corrupt the diffusion stage itself, and we do not expect a decoder gate to fix them. Mapping where this boundary lies is part of the contribution.
Mechanism
Let $E_l(x)$ be encoder features of the unmasked source photo $x$ at scale $l$, $\tilde m$ the (possibly wrong) upstream mask, and $g_l \in [0,1]$ a per-pixel gate predicted by a light convolutional head from $E_l(x)$, $\tilde m$ and the decoder's own features at that scale. The skip passes $g_l \odot E_l(x)$. Training uses the paired try-on setting with clean dataset parse labels available only at training time. Let $G$ be the set of pixels labeled as the source garment in the clean parse. The objective is
$$ \mathcal{L} = \mathcal{L}_{\text{rec}}(\hat y, y) + \lambda \sum_{l}\frac{1}{|G_l|}\sum_{p \in G_l} g_l(p), $$
where $\hat y$ is the decoded output, $y$ the ground-truth image, $\mathcal{L}_{\text{rec}}$ the usual reconstruction and perceptual loss, $G_l$ the garment set downsampled to scale $l$, and $\lambda$ a weight. The second term is the only constraint on the gate. It exists because paired try-on data contain a shortcut: the source garment equals the target garment, so an unconstrained skip would simply copy it. During training $\tilde m$ is drawn from a corruption model: erosion and dilation of 1 to 16 pixels, boundary jitter, dropped hand or hair parts, and masks from a weaker parser. The gate therefore cannot rely on the hint.
The asymmetry separates this from mask refinement. A refiner is trained to match the clean parse everywhere. Our gate has no target outside $G$, so it opens wherever source features reduce reconstruction error, including pixels whose parse labels are themselves ambiguous, such as hair over a collar. Whether this asymmetry matters is an explicit ablation. The design follows the observation in Pixel-Aware Stable Diffusion that high-frequency detail is lost in the compressed latent and must come from a pixel-level path. We keep that path but give it region control.
Research Program
All variants share one frozen LaDI-VTON diffusion backbone and differ only in the skip and decoder module, which LaDI-VTON trains separately and cheaply. The work has three parts.
Corruption benchmark. On VITON-HD and Dress Code, we build a controlled mask-corruption suite. We also measure the width distribution of disagreements between two independent human parsers on the test sets, to check the thin-boundary assumption on realistic rather than synthetic errors.
Dependency curves. For every method we plot keep-region quality against mask error, measured as boundary F-score of $\tilde m$ against the clean parse. The quantity of interest is the slope of this curve, not a single score. This extends the finding in Towards Open-World Segmentation of Parts that downstream accuracy is bounded by upstream mask geometry. We measure how tight that bound is for detail preservation specifically.
Scope test. We fine-tune the diffusion stage on corrupted masks as well, to see whether wide errors need a diffusion-level fix.
Baselines
The naive reference point is LaDI-VTON exactly as released, with hard mask-gated skips, evaluated at every corruption level. At zero corruption it is our upper target. Its Dress Code FID is 4.14 as reported in LaDI-VTON. We will recompute all metrics under our protocol instead of relying on that figure.
The cheap robustness baselines keep the hard gate but alter its input. One feathers or dilates the mask before gating, in the spirit of the noisy semantic softening in NSG-GAN. Another retrains the skip module with the same corruption augmentation we use. The third is a two-step pipeline: a pixel-space mask-refinement network trained on clean parses, followed by the original hard gate.
These three get the same data, the same corruption distribution, the same trainable parameter budget within 10%, and the same number of optimizer steps. Learning rate and $\lambda$-equivalents are tuned on a validation split with equal trial counts.
The ablation that isolates our key ingredient is the same learned gate trained symmetrically, supervised to match the clean parse everywhere. If it equals the asymmetric gate, the claim reduces to "learned refinement in feature space", and we will report it as such.
The strongest mask-free competitors are MFTON and the covering-and-eliminating method of Du et al. On VITON-HD they report FID 9.382 with SSIM 0.902 (MFTON) and FID 8.854 with KID 0.96 (Mitigating Occlusions). VITON-HD itself reports FID 11.74. These methods do not use inference masks, so their curves are flat by construction. We run them if code is available and otherwise compare against the reported numbers with the protocol caveat stated. No reported Dress Code number was found on Lacuna for either Du et al. method.
Beating the baselines means three things together. At zero corruption, our keep-region scores must fall within the seed-to-seed spread of the released model. At realistic parser-level corruption, the keep-region quality gap to clean masks must shrink substantially more than with the best cheap baseline; we treat halving it as the design target. Leakage must not rise above the hard-gate model.
Why not just…?
Why not just use a stronger upstream segmenter? Better parsers shrink errors but do not remove them. 2S-CEDiff uses a widely used automatic anatomy segmenter and still treats its masks as ground truth, with no recovery path. Du et al. report parser failures under hard poses and hand-body overlap. Our dependency curves answer this directly: a better parser moves a method left along the curve but leaves its slope unchanged, and the slope is what we change.
Why not just dilate or feather the mask, or train with corrupted masks? This is the real threat, and it is run as a baseline rather than argued away. A hard gate still multiplies by the hint, so any pixel the corrupted mask marks as "replace" is still zeroed. Dilation trades lost detail for garment leakage, and augmentation teaches the decoder to hallucinate more convincingly but not to recover source pixels. If augmentation alone matches our gate within noise, we will conclude that the learned gate is unnecessary.
Why not just go mask-free as Du et al. do? Mask-free methods remove mask dependence, but they report residual failures of their own: distortions inherited from the coarse overlay in MFTON, and an "unlearnable" case under contradictory training pairs in the NeurIPS work. They also give up the direct identity-routing path. We compare keep-region detail on hands, face and hair, where skips should matter most. If mask-free models match us there, our method's remaining advantage is only lower cost.
Why not just add pixel-aware cross-attention? The pixel-aware cross-attention in PASD restores pixel detail but has no notion of regions, so in try-on it would attend to the old garment as readily as to a hand. A pixel-aware attention branch fed the unmasked source is included in the leakage evaluation. We expect it to preserve detail but ghost.
Proposed Experiments
The data are VITON-HD at 1024×768 and Dress Code across all three garment categories, in both paired and unpaired settings.
Detail preservation. In the paired setting we score kept regions (face, hands, hair, arms), defined by the clean parse. The metrics are region-restricted LPIPS and SSIM, plus a Sobel gradient-domain error, borrowing MFTON's operator as a metric. Scores are reported separately for the thin band within 16 pixels of the true boundary.
Leakage. In the unpaired setting we report FID and KID, and a ghosting score: the fraction of pixels in the target-garment region whose color is closer to the source garment than to the target garment.
Human check. A small blind forced-choice study on hands and hair at matched corruption checks that the metrics track what people see.
Decisive tests. The first is the slope comparison between the asymmetric gate and the corruption-augmented hard gate, which settles whether the idea adds anything beyond augmentation. The second is the asymmetric versus symmetric gate, which settles whether the leak-only rule is the active ingredient. The third is the error-width sweep, which should show the gate's benefit fading once errors exceed roughly one latent cell. That result would confirm the stated scope and say when the diffusion stage must also be retrained.
References
- LaDI-VTON: Latent Diffusion Textual-Inversion Enhanced Virtual Try-On
- Mask Does Not Matter: A Unified Latent Diffusion-Enhanced Framework for Mask-Free Virtual Try-On
- Mitigating Occlusions in Virtual Try-On via A Simple-Yet-Effective Mask-Free Framework
- Pixel-Aware Stable Diffusion for Realistic Image Super-Resolution and Personalized Stylization
- Towards Open-World Segmentation of Parts
- A Unified Framework for Biphasic Facial Age Translation with Noisy-Semantic Guided Generative Adversarial Networks
- VITON-HD: High-Resolution Virtual Try-On via Misalignment-Aware Normalization
- 2S-CEDiff: A Two-Stage Diffusion Framework for Generating High-Fidelity Contrast-Enhanced CT Images from Non-Contrast Scans