Abstract
Pan-sharpening is a critical task in remote sensing that aims to fuse the high spatial resolution of panchromatic (PAN) images with the rich spectral information of multi-spectral (MS) images. While Convolutional Neural Networks (CNNs) have significantly advanced the state-of-the-art, they are often limited by local receptive fields and inefficient modality blending. This paper presents PanFormer, the first architecture to successfully adapt Transformers for pan-sharpening. By employing a dual-stream encoder and a novel bidirectional cross-attention fusion mechanism, PanFormer effectively models long-range dependencies and the complex relationships between PAN and MS data. Experimental results on the GaoFen-2 and WorldView-3 datasets demonstrate that PanFormer outperforms existing CNN-based models in both quantitative metrics and visual quality.
Introduction
In the domain of satellite imaging, hardware constraints often force a trade-off between spatial and spectral resolution. Satellites typically produce two distinct products: a high-resolution, grayscale Panchromatic (PAN) image and a low-resolution, multi-channel Multi-spectral (MS) image. Pan-sharpening is the computational process of merging these two sources to synthesize a high-resolution multi-spectral image.
Historically, deep learning approaches to this problem have relied on Convolutional Neural Networks (CNNs). However, CNNs possess inherent limitations. Their local receptive fields make it difficult to capture global spatial structures, and many architectures treat the PAN and MS inputs as simple stacked channels, failing to account for the unique physical characteristics of each modality. PanFormer addresses these issues by treating pan-sharpening as a global matching problem, utilizing the inherent strengths of the Transformer architecture.
The PanFormer Architecture
PanFormer utilizes a three-stage pipeline designed to preserve modality-specific features while facilitating deep cross-modal interaction.
1. Modality-specific Encoder
Unlike traditional models that fuse images at the input layer, PanFormer maintains two separate processing branches. Each branch utilizes Self-Attention Blocks (SAB) to extract features tailored to its specific modality. To resolve the resolution discrepancy between the two inputs, the PAN branch incorporates a "Patch Merging" layer, which aligns the spatial dimensions of the PAN features with those of the MS features before they reach the fusion stage.
2. Cross-modality Fusion Module
The core of the PanFormer architecture is the Cross-modality Fusion Module. This module employs Cross-Attention Blocks (CAB) where one modality serves as the "Query" and the other provides the "Key" and "Value." The authors implemented a bidirectional approach, calculating both PAN-to-MS and MS-to-PAN attention. This dual-pathway ensures that spatial details from the PAN image are accurately mapped to the spectral signatures of the MS image, and vice versa, leading to more robust feature integration than simple concatenation.
3. Image Restoration Module
The final stage is a restoration head composed of four convolutional layers and a pixel-shuffle layer. This module takes the fused features and upscales them to the target high-resolution multi-spectral output. To maintain computational efficiency—especially given the high resolution of satellite imagery—PanFormer adopts the shifted window strategy popularized by the Swin Transformer, which restricts attention calculations to local windows that shift across layers.
Experimental Setup and Results
The model was evaluated using two prominent satellite datasets: GaoFen-2 (GF-2), which contains 4 spectral bands, and WorldView-3 (WV-3), a more complex dataset with 8 spectral bands. Training and evaluation followed Wald’s protocol, which involves downsampling original imagery to create a ground truth for supervised learning.
Quantitative Performance
PanFormer established new state-of-the-art (SOTA) benchmarks across several key metrics, including Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index (SSIM), and Erreur Relative Globale Adimensionnelle de Synthèse (ERGAS):
- GaoFen-2: PanFormer achieved a PSNR of 41.4281, notably higher than the previous SOTA CNN, PSGAN (41.1466).
- WorldView-3: Despite the increased complexity of 8-band data, PanFormer reached a PSNR of 34.4175, outperforming the GPPNN model (33.6900).
Qualitative Analysis
Visual inspections confirm the quantitative findings. PanFormer produces images with significantly sharper edges and higher spatial fidelity. Crucially, the model minimizes "color bleeding" and spectral distortion—common artifacts in CNN-based methods like PanNet—resulting in a more natural and accurate representation of the Earth's surface.
Discussion and Limitations
The primary "aha moment" of this research is the realization that pan-sharpening is essentially a matching problem. Transformers are naturally suited for this because they can perform global matching between spatial details and spectral signatures. By keeping the encoders independent, PanFormer preserves the unique characteristics of each sensor type, leading to fewer spectral distortions.
However, these gains come with a computational trade-off. While PanFormer’s parameter count (~1.53M) is comparable to large CNNs, its inference speed is approximately 10 times slower (0.0468s vs 0.0045s per image). Additionally, the model showed a slight performance dip on the WorldView-3 dataset relative to GaoFen-2, suggesting that Transformers may require larger datasets or more specialized band-encoding strategies when dealing with higher spectral dimensions.
Conclusion
PanFormer represents a significant shift in pan-sharpening methodology, demonstrating that the global receptive fields and cross-attention mechanisms of Transformers can overcome the long-standing limitations of CNNs. Future work will focus on optimizing the attention mechanism to reduce the inference bottleneck and exploring more sophisticated restoration heads to further improve spectral accuracy.
Summary updated