Papers
Topics
Authors
Recent
Search
2000 character limit reached

Discriminative Mask Guidance (DMG)

Updated 18 July 2026
  • Discriminative Mask Guidance (DMG) is a design principle that leverages spatial masks or mask-derived statistics to focus adversarial supervision on semantically relevant regions.
  • It is implemented across diverse tasks such as segmentation-aware anomaly synthesis, semantic image editing, and speech enhancement, with each approach adapting mask sources and guidance mechanisms.
  • Empirical results demonstrate that DMG improves performance metrics like mIoU, accuracy, and perceptual scores by balancing global realism with local fidelity in targeted regions.

Discriminative Mask Guidance (DMG) denotes a class of mask-aware mechanisms in which a spatial mask is used to localize supervision, constrain editing, or focus adversarial evaluation on regions of interest. In current arXiv usage, the term is explicit in segmentation-aware anomaly synthesis, where DMG is a discriminator-side module that jointly evaluates global realism and local anomaly fidelity under a pixel-level mask (Wang et al., 5 Aug 2025). Closely related formulations appear in semantic image editing, where a mask is inferred by contrasting conditional denoising predictions under different prompts (Couairon et al., 2022). The acronym is not standardized across the literature: a 2025 text-to-video paper uses DMG to mean Dynamic Mask Guidance rather than Discriminative Mask Guidance (Feng et al., 24 Mar 2025), and an earlier domain generalization paper uses DMG for Domain-specific Masks for Generalization (Chattopadhyay et al., 2020).

1. Terminological scope and recurring design pattern

Across the papers that use or motivate the label, the common structural element is spatial selectivity: the model does not treat the full signal uniformly, but instead uses a mask or mask-derived proxy to decide where discriminative pressure should be concentrated. The underlying source of that mask varies. In SARD, it is an explicit binary anomaly mask supplied to the discriminator (Wang et al., 5 Aug 2025). In DiffEdit, it is inferred from the discrepancy between diffusion-model predictions under source and target prompts (Couairon et al., 2022). In training-free style-consistent image synthesis for e-commerce, the mask is derived from cross-attention maps and then used to gate the value stream at the QKV level; the paper does not use the term DMG explicitly, but the mechanism has been described as a training-free instantiation of it (Li, 2024).

Setting Mask source Primary effect
SARD Pixel-level anomaly mask Local adversarial supervision in DfgD_{\text{fg}}
DiffEdit Difference between ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}}) and ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}}) Automatic edit localization
E-commerce synthesis Aggregated text cross-attention maps QKV-level gating of conditioning
Speech enhancement (special case) TF mask estimator producing S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t) Analytic discriminative score toward masked reconstruction

This suggests that DMG is best understood less as a single algorithm than as a design principle: use a mask, or a mask-derived sufficient statistic, to restrict where guidance acts. The discriminative component is also heterogeneous. In SARD, it is genuinely discriminator-side and adversarial (Wang et al., 5 Aug 2025). In DiffEdit, it is discriminative in the sense of contrasting two conditional predictions (Couairon et al., 2022). In speech enhancement, DMG appears as a special case of a broader discriminative score guidance framework when the discriminative estimate is produced by a TF mask model (Li et al., 2024).

2. Discriminator-side DMG in segmentation-aware anomaly synthesis

The most direct and formal use of “Discriminative Mask Guidance” appears in SARD, where DMG is integrated into a dual-branch discriminator operating alongside Region-Constrained Diffusion (RCD) (Wang et al., 5 Aug 2025). RCD freezes the background during reverse diffusion and updates only masked foreground anomaly regions, while DMG ensures that those foreground updates are both locally faithful to the mask and globally plausible in the full image.

The discriminator receives an image x\mathbf{x} and a binary mask m\mathbf{m}. One branch, Dimg(x)D_{\text{img}}(\mathbf{x}), evaluates holistic realism. The other branch, Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m}), evaluates the masked anomaly region by extracting intermediate features fl(x)f_l(\mathbf{x}), upsampling the mask to feature resolution, and applying

Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).

The discriminator loss combines global and local softplus terms for real and generated samples, with balancing coefficient ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})0. The generator receives gradients from both ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})1 and ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})2, together with a region-weighted reconstruction loss

ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})3

with ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})4, ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})5, ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})6, and ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})7 (Wang et al., 5 Aug 2025).

Its coupling to RCD is explicit. If ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})8 is sampled from the DDPM posterior, the next state is fused as

ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})9

Thus, only foreground anomaly pixels are denoised, while the background follows the forward trajectory unchanged. DMG does not itself freeze the background; rather, it evaluates whether the masked update is realistic and well aligned to the specified region.

The implementation details are unusually concrete. Training uses Adam with learning rates ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})0 for the generator and ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})1 for the discriminator, EMA decay ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})2, R1 regularization on ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})3, batch size ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})4, ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})5 diffusion steps per sample, and ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})6 iterations on ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})7 NVIDIA A800 GPUs (Wang et al., 5 Aug 2025). Masks are randomly generated binary maps in the reported setup.

The ablation isolates DMG’s effect. On MVTec-AD with a SegFormer backbone, adding DMG improves Grid from ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})8 to ϵθ(,csrc)\epsilon_\theta(\cdot,c_{\text{src}})9 mIoU and from S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)0 to S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)1 Acc; Leather from S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)2 to S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)3 mIoU and from S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)4 to S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)5 Acc; Tile from S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)6 to S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)7 mIoU and from S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)8 to S^(f,t)=M(f,t)Y(f,t)\hat{S}(f,t)=M(f,t)Y(f,t)9 Acc; Transistor from x\mathbf{x}0 to x\mathbf{x}1 mIoU and from x\mathbf{x}2 to x\mathbf{x}3 Acc; Capsule from x\mathbf{x}4 to x\mathbf{x}5 mIoU and from x\mathbf{x}6 to x\mathbf{x}7 Acc; and Screw from x\mathbf{x}8 to x\mathbf{x}9 mIoU and from m\mathbf{m}0 to m\mathbf{m}1 Acc (Wang et al., 5 Aug 2025). With both RCD and DMG enabled, SARD reaches average m\mathbf{m}2 mIoU/Acc on MVTec-AD with SegFormer, m\mathbf{m}3 with BiseNet V2, and on BTAD class 03 achieves m\mathbf{m}4 with SegFormer and m\mathbf{m}5 with BiseNet V2 (Wang et al., 5 Aug 2025).

The technical point of significance is that DMG here is not a sampling-time heuristic. It is a discriminator architecture and loss design that supplies explicit region-targeted adversarial gradients.

3. DMG as contrastive mask discovery in semantic image editing

In DiffEdit, DMG is the mechanism that determines what must be edited by contrasting the diffusion model’s conditional predictions under two prompts, m\mathbf{m}6 and m\mathbf{m}7 (Couairon et al., 2022). The input is an image m\mathbf{m}8, a target edit prompt, and a source prompt that can be either empty or descriptive of the original image. The method computes, for spatial location m\mathbf{m}9 and timestep Dimg(x)D_{\text{img}}(\mathbf{x})0,

Dimg(x)D_{\text{img}}(\mathbf{x})1

averages these differences across selected timesteps and multiple noise seeds, normalizes the result, and thresholds it: Dimg(x)D_{\text{img}}(\mathbf{x})2

The recommended operating regime is specific. Mask estimation uses a moderate noise level of about Dimg(x)D_{\text{img}}(\mathbf{x})3, averages across approximately Dimg(x)D_{\text{img}}(\mathbf{x})4 noise seeds, and uses Dimg(x)D_{\text{img}}(\mathbf{x})5 as a default threshold (Couairon et al., 2022). Selected timesteps are typically mid-range denoising steps, where the semantic signal is strongest. The resulting mask lives at latent resolution, such as Dimg(x)D_{\text{img}}(\mathbf{x})6 for ImageNet LDM at Dimg(x)D_{\text{img}}(\mathbf{x})7 or Dimg(x)D_{\text{img}}(\mathbf{x})8 for Stable Diffusion at Dimg(x)D_{\text{img}}(\mathbf{x})9.

DiffEdit then combines DMG with DDIM latent inversion. The image is encoded unconditionally to Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})0, producing a latent trajectory that can reconstruct the original image when decoded without edits. During masked decoding, target-conditioned updates are used inside the mask and reconstruction-preserving latents from the encoded source trajectory are injected outside it: Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})1 or equivalently

Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})2

This is the core content-preservation mechanism: inside Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})3, the model edits toward Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})4; outside Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})5, it decodes back toward the source image (Couairon et al., 2022).

The role of the source prompt is subtle. When Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})6 is well aligned with the original image, it suppresses regions that are already semantically consistent under both prompts and isolates only the changed concept. When the source caption is poorly aligned, as in free-form COCO captions, the unconditional prompt can perform comparably (Couairon et al., 2022). This makes DiffEdit’s DMG genuinely discriminative: it localizes edits through conditional disagreement rather than through an externally supplied segmentation mask.

The reported evaluation spans ImageNet, Imagen-generated images, and COCO, using CSFID, FID, CLIPScore, and LPIPS. DiffEdit achieves the best CSFID–LPIPS trade-offs on ImageNet, better CLIP–LPIPS and FID–CLIP trade-offs than SDEdit, FlexIT, and Cross-Attention Control on Imagen-generated images, and the best CLIP–LPIPS trade-offs on COCO with FID comparable to SDEdit (Couairon et al., 2022). The implementation uses Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})7 DDIM steps, classifier-free guidance scale Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})8 for ImageNet LDM and Dfg(x,m)D_{\text{fg}}(\mathbf{x},\mathbf{m})9 for Stable Diffusion, and requires roughly fl(x)f_l(\mathbf{x})0 seconds per edit on a single GPU (Couairon et al., 2022).

4. Attention-derived and training-free mask guidance at the QKV level

A distinct but related line appears in style-consistent image synthesis for e-commerce, where the method operates entirely at inference time by modifying attention maps in a frozen UNet with decoupled text and image conditioning (Li, 2024). The paper introduces the QKV level as the locus of intervention and combines shared KV with mask guidance extracted from attention maps. Although the paper does not name the mechanism DMG, the supplied interpretation identifies it as a training-free instance of discriminative mask guidance.

The attention backbone is standard: fl(x)f_l(\mathbf{x})1 Two batches are formed: a style-reference batch using the reference image and a preset style-stabilizing prompt, and a target batch using the same reference image with the user prompt. In each cross-attention layer, the target batch keeps its own queries but replaces its keys and values with those of the reference: fl(x)f_l(\mathbf{x})2 yielding

fl(x)f_l(\mathbf{x})3

The mask is then derived from text-side cross-attention maps. Per-layer, per-head attention fl(x)f_l(\mathbf{x})4 is aggregated across heads, optionally across layers, reduced across tokens to obtain a spatial attention map, normalized, and thresholded to form fl(x)f_l(\mathbf{x})5 (Li, 2024). The paper states that guidance is applied by “multiplying the threshold map with fl(x)f_l(\mathbf{x})6 to better guide image generation.” The description also presents an equivalent attention-gated realization fl(x)f_l(\mathbf{x})7 and a value-gated realization in which token weights derived from fl(x)f_l(\mathbf{x})8 rescale fl(x)f_l(\mathbf{x})9. In both cases, the effect is the same: conditioning is injected more strongly where cross-attention indicates product-critical regions and weakened elsewhere.

Several details matter operationally. Mask guidance is confined to the text-side cross-attention because direct masking of image-side cross-attention can introduce drift in a training-free regime (Li, 2024). Practical thresholds for binary masks are given as Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).0; soft masks using sigmoid smoothing with Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).1–Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).2 are suggested for stability; classifier-free guidance scale is typically Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).3–Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).4; and DDIM or DPM-Solver with Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).5–Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).6 steps is reported as sufficient (Li, 2024).

The reported evidence is qualitative rather than numerical. The paper states that shared KV preserves the main composition of e-commerce products across generated images and that mask guidance from text cross-attention keeps subject layout unchanged while allowing background and style attributes to adapt to the reference style (Li, 2024). A plausible implication is that this formulation sits between segmentation-free editing and explicit mask-conditioned generation: it derives the mask from the model’s own attention structure, but uses that mask as an internal conditioning gate rather than as a separate input modality.

5. Mask-derived discriminative scores in diffusion-based speech enhancement

In diffusion-based speech enhancement, the paper on streamable generative modeling with discriminative guidance generalizes the notion of DMG by treating a mask-based enhancer as one possible source of a discriminative target signal (Li et al., 2024). The task is single-channel speech enhancement at Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).7 kHz. A score-based SDE models Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).8, where Dfg(x,m)=ψ ⁣(fl(x)Up(m)).D_{\text{fg}}(\mathbf{x}, \mathbf{m}) = \psi\!\left(f_l(\mathbf{x}) \odot \mathrm{Up}(\mathbf{m})\right).9 is noisy speech and ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})00 is clean speech. A discriminative network ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})01 produces an enhanced waveform ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})02, and this is converted into an analytic discriminative score

ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})03

This score is used for the first ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})04 reverse steps, after which the sampler switches back to the learned generative score network ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})05.

The DMG connection is explicit when ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})06 is a TF-mask estimator. If ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})07 is the noisy STFT and ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})08 is the predicted mask, then

ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})09

In that case, the guidance toward ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})10 is exactly a mask-derived discriminative signal (Li et al., 2024). The important difference from many iterative guidance schemes is computational: one forward pass through the discriminative model provides ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})11, and the same ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})12 is reused across multiple reverse steps.

The paper reports a concrete trade-off between generative refinement and discriminative efficiency. For the online SkiM-G model with ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})13 reverse steps and no guidance, WSJ0-CHiME3 results are PESQ ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})14, ESTOI ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})15, SDR ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})16 dB, and CHiME4 real-data NISQA OVRL ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})17. Purely discriminative SkiM-D reaches PESQ ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})18, ESTOI ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})19, SDR ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})20 dB, and NISQA OVRL ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})21. Guided sampling with ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})22 and ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})23 gives PESQ ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})24, ESTOI ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})25, SDR ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})26 dB, and NISQA OVRL ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})27. Under a more aggressive budget of ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})28, unguided sampling collapses to PESQ ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})29, ESTOI ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})30, SDR ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})31 dB, whereas guided sampling with ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})32 recovers PESQ ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})33, ESTOI ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})34, and SDR ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})35 dB (Li et al., 2024).

This setting broadens the DMG concept beyond 2D visual masks. The mask need not be consumed directly by the diffusion model; it can first produce a discriminative reconstruction, and that reconstruction can then define an analytic score that substitutes for the generative score during the early reverse process.

A central misconception is that “DMG” has a single accepted expansion. It does not. In the video-generation paper “Resource-Efficient Motion Control for Video Generation via Dynamic Mask Guidance,” DMG explicitly stands for Dynamic Mask Guidance, not Discriminative Mask Guidance (Feng et al., 24 Mar 2025). There, the method injects a time-varying foreground mask sequence into a latent diffusion U-Net through mask-aware cross-attention and temporal-spatial self-attention anchored at the first frame. The paper also states that there are no discriminative or classifier-based gradients during sampling and that the method is architectural conditioning rather than gradient-based guidance (Feng et al., 24 Mar 2025). In domain generalization, DMG instead denotes Domain-specific Masks for Generalization, where per-domain masks gate activations in a shared classifier and are learned by cross-entropy plus a soft IoU overlap penalty (Chattopadhyay et al., 2020). That formulation is discriminative, but it is not a diffusion-mask-guidance method.

Across the genuinely mask-guided settings, the recurring failure mode is sensitivity to mask quality or to the proxy from which the mask is inferred. In SARD, misaligned or noisy masks can force anomaly fidelity in the wrong region and produce artifacts (Wang et al., 5 Aug 2025). In DiffEdit, poor alignment of ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})36 or ambiguity in ϵθ(,ctgt)\epsilon_\theta(\cdot,c_{\text{tgt}})37 can mislocalize the edit mask, while threshold choice affects over- versus under-editing (Couairon et al., 2022). In the e-commerce attention-based method, too low a threshold can over-condition and deform the product, whereas too high a threshold weakens guidance; cross-attention may also fail to cleanly separate product and background under ambiguous prompts (Li, 2024). In speech enhancement, overly strong discriminative guidance can collapse behavior toward the discriminative model and reduce perceptual generalization under domain mismatch (Li et al., 2024).

These limitations suggest that the decisive variable is often not the existence of a mask, but the reliability of the mechanism that defines it: manual annotation, segmentation, prompt-contrast statistics, cross-attention concentration, or a TF-mask estimator. DMG is therefore most effective when the mask source is well aligned with the semantics of the desired change and when the downstream architecture applies that mask in a way that preserves the unmasked context rather than merely amplifying the masked region.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Discriminative Mask Guidance (DMG).