ATT-CR: Adaptive Triangular Transformer for Cloud Removal

Yang Wu, Ye Deng, Pengna Li, Wenli Huang, Kangyi Wu, Xiaomeng Xin, Jinjun Wang

TL;DR

This paper introduces ATT-CR, a novel transformer-based model for removing clouds from remote sensing images. It tackles the computational cost and performance degradation issues of existing methods by proposing a Triangular Attention mechanism and a Feature Selection Gating Module, achieving superior results with improved efficiency.

What Problem Does This Paper Address?

Remote sensing images are crucial for various applications, but clouds often obscure ground objects, hindering their usability. Existing cloud removal methods, especially those using Convolutional Neural Networks (CNNs), struggle to model long-range dependencies effectively due to their local receptive fields. While Transformer-based methods excel at capturing these long-range dependencies, they suffer from high computational complexity (quadratic with respect to image size) and can be negatively impacted by treating cloudy and clear pixels equally during attention computation. This leads to suboptimal performance, especially in dense cloud scenarios. The paper aims to address these limitations by developing a model that is both computationally efficient and robust to varying cloud conditions.

Methods

The core of the proposed ATT-CR model lies in two novel components:

  • Triangular Attention (TAN): This module addresses the computational complexity of standard self-attention. Instead of a full softmax attention, TAN approximates it using lower and upper triangular matrices. This decomposition allows for a linear computational complexity of O(N) (where N is the number of pixels). Crucially, by splitting attention heads into two groups, one focusing on preceding pixels (lower triangular) and the other on subsequent pixels (upper triangular), TAN effectively captures global context while mitigating the low-rank limitations often associated with linear attention mechanisms. This ensures a fuller representation of feature dependencies.
  • Feature Selection Gating Module (FSGM): This module is designed to improve the model's robustness to cloudy pixels. It works in conjunction with TAN to adaptively distinguish between cloudy and clean features at both spatial and channel levels. By selectively emphasizing valid features and suppressing those corrupted by clouds, FSGM prevents the propagation of invalid information to subsequent layers, leading to cleaner and more accurate reconstructions.

The overall architecture is a multi-stage encoder-decoder framework, incorporating these novel modules within Transformer blocks. Additionally, the model utilizes Multi-Scale Tokens (MS-Tokens) to capture ground object features at varying scales, further enhancing feature diversity.

Datasets

The authors validate their approach on four publicly available datasets:

  • RICE1: A thin-cloud dataset with 500 image pairs.
  • RICE2: A thick-cloud dataset with 735 image pairs.
  • T-CLOUD: A real-world thin-cloud dataset from Landsat 8, containing 2,939 image pairs.
  • SEN12MS-CR: A large-scale multi-spectral dataset with 122,218 training samples, including both Sentinel-1 SAR and Sentinel-2 optical imagery.

Key Insights and Ideas

  • Linear Complexity with Full-Rank Attention: The paper demonstrates that by decomposing attention into triangular components, it's possible to achieve linear computational complexity while simultaneously overcoming the low-rank limitations of traditional linear attention. This is a significant step towards efficient yet powerful long-range dependency modeling.
  • Adaptive Feature Selection for Robustness: The FSGM module highlights the importance of adaptively filtering features based on cloud presence. This is crucial for remote sensing data where cloud contamination is a major challenge, and it significantly improves the quality of the restored images.
  • Synergy of Components: The ablation studies clearly show that the effectiveness of ATT-CR stems from the synergistic combination of TAN, MS-Tokens, and FSGM. Each component contributes uniquely to achieving both high performance and computational efficiency.

Key Results

  • Quantitative Performance: ATT-CR consistently outperforms state-of-the-art (SOTA) methods across various datasets (RICE1, RICE2, T-CLOUD, SEN12MS-CR) in terms of PSNR and SSIM metrics. For instance, on RICE1, it achieves a PSNR of 36.83dB and SSIM of 0.9629, outperforming previous SOTA by 0.08dB in PSNR. On SEN12MS-CR, it achieves a PSNR of 29.97db, SSIM of 0.902, and SAM of 7.484, with significantly fewer parameters and computational costs compared to ACA-CRNet.
  • Computational Efficiency: The proposed method achieves a favorable trade-off between performance and efficiency. It uses significantly fewer parameters and FLOPs compared to many SOTA methods. For example, it reduces parameter count by 73.4% and FLOPs by 65.5% compared to CR-former on T-CLOUD, RICE1, and RICE2 datasets.
  • Qualitative Results: Visualizations show that ATT-CR effectively removes clouds, preserves fine-grained textures, and recovers crucial ground details, even in challenging thick cloud scenarios, outperforming competing methods in terms of clarity and detail restoration.

Limitations and Future Work

  • Interpretability of FSGM: While FSGM is effective, the authors note that interpreting the fine-grained channel behaviors within the deep network remains challenging. Enhancing the interpretability of this gating process is suggested as a future research direction.
  • Runtime Efficiency: Due to the serial nature of triangular attention, the runtime efficiency, while competitive, could be further improved. The authors plan to explore custom operators to accelerate triangular attention.
  • Generalizability: The paper suggests that the core components (TAN and FSGM) are inherently generalizable to other remote sensing restoration tasks beyond cloud removal, such as haze, shadow, and atmospheric interference removal, which could be explored in future work.

Summary updated

BibTeX
@article{wu2025att,
  author = {Yang Wu and Ye Deng and Pengna Li and Wenli Huang and Kangyi Wu and Xiaomeng Xin and Jinjun Wang},
  title = {{ATT-CR: Adaptive Triangular Transformer for Cloud Removal}},
  journal = {IEEE J. Sel. Top. Appl. Earth Obs. Remote. Sens.},
  year = {2025},
  doi = {10.1109/jstars.2025.3596856},
}
Figure