Cross-Instance Contrastive Masking in Vision Transformers for Self-Supervised Hyperspectral Image Classification

Abstract

Spurious correlations arise when models learn non-causal features, such as background artifacts, instead of meaningful class-relevant patterns. This paper proposes a novel Cross-Instance Contrastive Masking in Vision Transformer (CICM-ViT) for hyperspectral image (HSI) classification, which attempts to reduce shortcut learning through Cross-Instance Contrastive Masking (CICM) by shuffling and masking patches, enforcing invariant and causal feature learning through spectral-spatial feature extraction via self-supervision. Using the dependencies between instances, CICM-ViT dynamically masks spectral patches across instances, promoting the learning of discriminative features while reducing redundancy, especially in low-data settings. This approach reduces shortcut learning by focusing on global patterns rather than relying on local spurious correlations. CICM-ViT achieves state-of-the-art performance on HSI datasets, with 99.91% OA on Salinas, 96.88% OA on Indian Pines, and 98.88% OA on Botswana, outperforming most SOTA CNN- and Transformer-based approaches in both accuracy and efficiency, with only 89,680 parameters. Further experiments on a semi-synthetic dataset demonstrate the effectiveness of the method against spurious correlations.

Cite

Text

Chatterjee et al. "Cross-Instance Contrastive Masking in Vision Transformers for Self-Supervised Hyperspectral Image Classification." ICLR 2025 Workshops: SCSL, 2025.

Markdown

[Chatterjee et al. "Cross-Instance Contrastive Masking in Vision Transformers for Self-Supervised Hyperspectral Image Classification." ICLR 2025 Workshops: SCSL, 2025.](https://mlanthology.org/iclrw/2025/chatterjee2025iclrw-crossinstance/)

BibTeX

@inproceedings{chatterjee2025iclrw-crossinstance,
  title     = {{Cross-Instance Contrastive Masking in Vision Transformers for Self-Supervised Hyperspectral Image Classification}},
  author    = {Chatterjee, Abhiroop and Ghosh, Susmita and Ghosh, Ashish},
  booktitle = {ICLR 2025 Workshops: SCSL},
  year      = {2025},
  url       = {https://mlanthology.org/iclrw/2025/chatterjee2025iclrw-crossinstance/}
}