Multiview Transformer: Rethinking Spatial Information in Hyperspectral Image Classification

Jie Zhang, Yongshan Zhang, Yicong ZhouarXiv 2023 · DOI

Introduction: The Challenge of Spatial Overfitting

Hyperspectral imaging (HSI) provides a rich "spectral signature" for every pixel by capturing hundreds of narrow spectral bands. In HSI classification, models typically analyze a small spatial cuboid or patch surrounding a target pixel to leverage spatial context. However, this paper identifies a critical flaw in current state-of-the-art (SOTA) research: Spatial Overfitting.

The authors argue that because HSI datasets are often small and depict relatively simple scenes, models using large patch sizes (e.g., $13 \times 13$ or $15 \times 15$) tend to memorize the specific layout of a map rather than learning generalizable land-cover features. This "cheating" is exposed when models are tested on rotated versions of the same data; their performance drops significantly because the learned relative locations no longer match the scene.

Figure 1: Illustration of spatial overfitting. Models like SSRN and SSFTT show a significant performance drop when test patches are rotated by 180°, indicating they rely on scene-specific layouts rather than robust features.

Proposed Methodology: The Multiview Transformer

To address spatial overfitting and improve classification accuracy, the authors propose the Multiview Transformer. This architecture consists of three primary stages designed to extract robust spectral-spatial features while ignoring scene-specific noise.

Figure 2: The overall architecture of the proposed Multiview Transformer, featuring Multiview Principal Component Analysis (MPCA), a Spectral Encoder-Decoder (SED), and a Spatial-pooling Tokenization Transformer (SPTT).

1. Multiview Principal Component Analysis (MPCA)

Traditional PCA applied to hundreds of bands can be computationally taxing and may discard subtle but important details. MPCA addresses this by splitting the spectral bands into multiple groups and "views." PCA is then applied to each view independently. This approach reduces dimensionality while preserving a more diverse range of spectral information.

2. Spectral Encoder-Decoder (SED)

The SED is a U-shaped convolutional block that utilizes both 3D and 2D CNNs to aggregate the multiview representations. It compresses the data into a low-dimensional space before mapping it to a discriminative feature space. This process effectively fuses spectral and spatial clues into a unified representation.

3. Spatial-Pooling Tokenization Transformer (SPTT)

Standard Vision Transformers often treat every pixel as a token, which is computationally expensive for HSI. The SPTT instead divides the feature map into four quadrants and applies spatial pooling to create four representative tokens. This "smoothing" mechanism helps the model focus on regional features and ignore high-frequency scene noise. A fifth "global token" is added to capture the overall context of the entire cuboid.

Experimental Evaluation

The model was rigorously tested on three benchmark HSI datasets:

  • Indian Pines (IP): A class-imbalanced agricultural scene.
  • Pavia University (PU): A high-resolution urban scene.
  • Houston 2013: A complex urban environment.

Key Insights

  • The Rotation Test: The Multiview Transformer proved remarkably stable in the 180° rotation test. Unlike competing models, its accuracy remained consistent, validating its ability to learn generalizable features rather than memorizing layouts.
  • Robustness with Small Patches: The authors demonstrated that their model excels even with patch sizes as small as $3 \times 3$. By restricting the spatial context, they forced the model to rely on local spectral-spatial characteristics, preventing "cheating" via long-distance spatial correlations.

Results and Discussion

The Multiview Transformer consistently outperformed existing CNN and Transformer-based models (such as SSRN, RIAN, and HiT). On the Indian Pines dataset with a minimal $3 \times 3$ patch size, it achieved an Overall Accuracy (OA) of 88.01%, significantly higher than the next best model, RIAN (78.33%). Similar superior performance was observed on Pavia University (97.18% OA) and Houston (96.04% OA).

Ablation studies confirmed that both the MPCA and the SED stages are vital; removing either component led to a measurable decline in classification performance.

Conclusion and Future Work

The Multiview Transformer offers a robust solution to the spatial overfitting problem in HSI classification. By combining multiview dimensionality reduction with spatial-pooling tokenization, the model achieves high accuracy and generalizability.

While the model performs exceptionally on current benchmarks, the authors note that these datasets are still relatively simple. Future work will involve testing the architecture on more complex, large-scale, real-world remote sensing scenarios to further refine its ability to handle diverse environments.

Summary updated

BibTeX
@misc{zhang2023multiview,
  author = {Jie Zhang and Yongshan Zhang and Yicong Zhou},
  title = {{Multiview Transformer: Rethinking Spatial Information in Hyperspectral Image Classification}},
  year = {2023},
  eprint = {2310.07186},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.07186},
}
Figure