WaDiS: Boundary-Preserving Diffusion Segmentation via Multi-Scale Wavelet Conditioning and Frequency-Aware Gating

Qiang Gao, Yi Wang, Yong Zhang, Bin Fang, Yong Li, Lan Du, Cunjian ChenarXiv 2026

It’s late, you’re tired, and the last thing you want to do is squint at blurry medical scans. Unfortunately, that’s exactly what computer vision models have been doing for years. Medical images—whether they are ultrasound, CT, or colonoscopy frames—are notoriously "noisy." They have fuzzy boundaries and low contrast, making it incredibly hard for a machine to tell where a tumor ends and healthy tissue begins.

The paper WaDiS (Wavelet-powered Diffusion Segmentation) introduces a clever way to sharpen the "vision" of generative models, ensuring they don't just guess where the boundaries are, but actually preserve them using some elegant math from the frequency domain.

TL;DR

WaDiS is a new framework that helps AI "see" sharp boundaries in blurry medical images by combining the generative power of diffusion models with the precision of wavelet transforms. By processing images in the frequency domain, it filters out noise and retains fine structural details that standard neural networks usually blur away.

What Problem Does This Paper Address?

In medical imaging, the "ground truth" is often a bit of a guess. As shown in Figure 1, even experts struggle with ambiguous boundaries.

The challenge: fuzzy boundaries across different medical imaging modalities.

Standard segmentation models (like U-Nets) rely on "downsampling"—shrinking the image to understand its global context. The problem? Downsampling is like squinting; you get the big picture, but you lose the sharp edges. Diffusion models (the tech behind DALL-E) are great at generating realistic textures, but they often struggle to keep those textures perfectly aligned with the tiny, critical anatomical boundaries required for surgery or diagnosis.

Methods

The authors introduce three main "upgrades" to the standard latent diffusion pipeline:

  1. Multi-Scale Wavelet Conditioning: Instead of using a standard CNN to "encode" the image, they use a Discrete Wavelet Transform (DWT). Think of DWT as a lossless prism. It decomposes the image into different frequency sub-bands (low-frequency "blobs" and high-frequency "edges") without losing a single pixel of information. This ensures the model has a perfect map of the edges from the very start.
  2. Frequency-Aware Gating Block (FAGB): This is the "gatekeeper" sitting in the model's skip connections. It uses a Fast Fourier Transform (FFT) to jump into the frequency domain, where it’s much easier to distinguish between "useful edge information" and "random background noise." It adaptively boosts the former and suppresses the latter.
  3. Structure-Preserving Color Augmentation: Medical images vary wildly depending on the camera or scanner used. WaDiS uses a trick in the LAB color space to swap the "color palette" of images during training while keeping the "shapes" identical. This teaches the model to ignore whether a polyp is slightly more pink or red and focus entirely on its shape.
The WaDiS architecture: (a) the latent diffusion pipeline and (b) the wavelet-based encoder.

Datasets

The authors didn't cherry-pick; they tested WaDiS on five diverse benchmarks:

  • CVC-ClinicDB: Polyp segmentation (colonoscopy).
  • Synapse: Multi-organ segmentation (abdominal CT).
  • ISIC2018: Skin lesion segmentation (dermoscopy).
  • TN3K: Thyroid nodule segmentation (ultrasound).
  • REFUGE2: Optic disc and cup segmentation (fundus imaging).

Key Insights and Ideas

  • Lossless is King: Standard neural network layers throw away data to find patterns. By using Wavelets, WaDiS keeps the "fine print" of the image available to the model at every scale.
  • The Frequency Domain is a Cheat Code: Some problems are hard to solve in "pixel space" but easy in "frequency space." Filtering noise is one of them. The FAGB (Figure 4) allows the model to perform surgical-grade noise removal before it even tries to draw a boundary.
  • Decoupling Appearance from Anatomy: By transferring color statistics between images (Figure 5), the model becomes robust to the "style" of the medical device, focusing purely on the underlying biology.

Key Results

WaDiS consistently outperformed both traditional CNNs (like U-Net++) and modern Transformers (like Swin-UNet).

  • Boundary Accuracy: On the CVC-ClinicDB dataset, it achieved a Dice score of 96.33%, outperforming the previous best diffusion model (SDSeg) by a significant margin.
  • Sharpness: The most telling metric is HD95 (which measures how far the predicted boundary is from the real one). WaDiS consistently produced the lowest HD95 scores, meaning its "lines" were physically closer to the true anatomical edges.
Qualitative results: WaDiS (Ours) produces much cleaner, more accurate masks compared to other models.

Limitations and Future Work

While WaDiS is a boundary-preserving powerhouse, it comes with a "computation tax." Moving back and forth between pixel space and frequency space (FFT) adds a moderate increase in inference time and memory usage.

Additionally, the current version is a 2D architecture. While it works on CT slices, it doesn't yet "see" in 3D. The authors suggest that future work will involve developing lightweight 3D wavelet representations to handle volumetric data like MRI more natively.

Summary updated

Abstract

Diffusion models have shown strong potential in medical image segmentation due to their generative capabilities and robustness. However, existing methods often struggle to preserve fine anatomical boundaries and to retain multi-scale structural information due to the loss of spatial and frequency details during feature encoding, particularly in complex clinical imaging conditions. This work presents WaDiS, a wavelet-powered conditional latent diffusion framework for medical image segmentation that addresses these limitations through multi-scale wavelet conditioning and frequency-aware information filtering for boundary preservation. The model adopts a multi-scale wavelet conditioning encoder to retain rich structural features, leveraging its lossless nature to better preserve semantic priors critical to the diffusion process. In addition, a Frequency-Aware Gating Block (FAGB) is introduced into the skip connections of the diffusion U-Net, enabling adaptive spectral filtering and residual fusion to better emphasize boundary structures while reducing irrelevant content. To improve generalization across clinical domains, we adopt a structure-preserving color augmentation strategy during training. Specifically, global color statistics are transferred between samples in the LAB color space, allowing the model to decouple appearance from structure and focus more on anatomical shape rather than color bias. Experiments on five benchmark datasets demonstrate that WaDiS consistently outperforms existing diffusion-based and conventional segmentation methods, with notable improvements in boundary accuracy, robustness to noise, and generalization under color variation. The code for this work will be made publicly available upon acceptance.
BibTeX
@misc{gao2026wadis,
  author = {Qiang Gao and Yi Wang and Yong Zhang and Bin Fang and Yong Li and Lan Du and Cunjian Chen},
  title = {{WaDiS: Boundary-Preserving Diffusion Segmentation via Multi-Scale Wavelet Conditioning and Frequency-Aware Gating}},
  year = {2026},
  eprint = {2611.30164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30164},
}
Figure