CrossDiff: Diffusion Probabilistic Model With Cross-conditional Encoder-Decoder for Crack Segmentation

Xianglong Shi, Yunhan Jiang, Xiaoheng Jiang, Mingling Xu, Yang LiuarXiv 2025 · DOI

Introduction

Detecting and segmenting cracks in concrete structures—such as roads, pavements, and bridges—is a critical task for ensuring structural safety. However, this task presents a "slender" nightmare for traditional computer vision models. Cracks are often long, narrow, and winding, making them susceptible to being lost during the downsampling processes of standard Convolutional Neural Networks (CNNs). Furthermore, low contrast against concrete backgrounds and the presence of noise like oil stains or tire marks complicate accurate detection.

To address these challenges, we present CrossDiff, the first framework to apply Diffusion Probabilistic Models (DPMs) to industrial crack segmentation. By utilizing a unique "cross-shaped" architecture, CrossDiff achieves a significant performance leap over previous state-of-the-art (SOTA) methods, particularly in delineating ultra-slender cracks.

Methodology: The Cross-conditional Architecture

CrossDiff shifts from traditional discriminative modeling to a generative approach. Instead of predicting a mask directly, the model learns to iteratively denoise a segmentation map from Gaussian noise, guided by the original input image.

The CrossDiff architecture featuring the Cross Encoder, Diffusion components, and the Fusion Nexus (FN) module.

The core of the framework is the cross-conditional encoder-decoder structure:

  • Cross Encoder: Based on the Vision Transformer (ViT), this module extracts high-level semantic features from the raw input, ensuring fine-grained details are preserved throughout the process.
  • Cross Decoder: Working alongside the diffusion process, it uses transposed convolutions and residual blocks to refine crack boundaries.
  • Fusion Nexus Module (FN): This component dynamically balances features from the raw image and the evolving segmentation map based on the current diffusion timestep.
  • Dual Optimization: Training involves a composite loss function that combines standard diffusion denoising loss with a conditional reconstruction loss from the Cross Decoder.

Experimental Results

CrossDiff was evaluated on five diverse datasets, including CFD, CrackTree200, DeepCrack, GAPs384, and Rissbilder. The model demonstrated a commanding lead over existing methods such as CrackFormer and SegDecNet++, outperforming them by an average of 8.0% in both Dice score and Intersection over Union (IoU).

Qualitative comparison of crack segmentation results between SegDecNet++, CrossDiff, and Ground Truth (GT).

Slender Crack Mastery

The model's superiority is most evident on the CrackTree200 dataset, notorious for its thin cracks. While traditional methods like DeepLabv3+ struggle to identify these structures (often scoring below 2% Dice), CrossDiff achieved a Dice score of 55.10%. The iterative denoising process allows information to propagate along narrow structures, maintaining consistency where single-pass CNNs fail.

Robustness and Stability

As a probabilistic model, CrossDiff handles uncertainty in low-contrast areas more effectively, leading to fewer false positives. It also exhibits higher stability across different segmentation thresholds, making it more reliable for real-world deployment without extensive hyperparameter tuning.

Conclusion and Future Work

CrossDiff represents a paradigm shift in crack segmentation by leveraging the generative power of diffusion models. While highly effective, the authors noted a "complexity ceiling" where increasing model depth makes convergence more difficult. Future research will focus on optimizing computational efficiency to enable real-time industrial inspection on edge devices.

Summary updated

BibTeX
@misc{shi2025crossdiff,
  author = {Xianglong Shi and Yunhan Jiang and Xiaoheng Jiang and Mingling Xu and Yang Liu},
  title = {{CrossDiff: Diffusion Probabilistic Model With Cross-conditional Encoder-Decoder for Crack Segmentation}},
  year = {2025},
  eprint = {2501.12860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.12860},
}
Figure