FactoFormer: Factorized Hyperspectral Transformers with Self-Supervised Pretraining

Shaheer Mohamed, Maryam Haghighat, Tharindu Fernando, Sridha Sridharan, Clinton Fookes +1 more
9/18/2023
48 citations
cs.CVcs.AI
transformer-attentioncontrastive-ssl

Official code: csiro-robotics/FactoFormer (22 stars, Python, last commit 2024-06-22).

Abstract

Hyperspectral images (HSIs) contain rich spectral and spatial information. Motivated by the success of transformers in the field of natural language processing and computer vision where they have shown the ability to learn long range dependencies within input data, recent research has focused on using transformers for HSIs.

Show full abstract

However, current state-of-the-art hyperspectral transformers only tokenize the input HSI sample along the spectral dimension, resulting in the under-utilization of spatial information. Moreover, transformers are known to be data-hungry and their performance relies heavily on large-scale pretraining, which is challenging due to limited annotated hyperspectral data. Therefore, the full potential of HSI transformers has not been fully realized. To overcome these limitations, we propose a novel factorized spectral-spatial transformer that incorporates factorized self-supervised pretraining procedures, leading to significant improvements in performance. The factorization of the inputs allows the spectral and spatial transformers to better capture the interactions within the hyperspectral data cubes. Inspired by masked image modeling pretraining, we also devise efficient masking strategies for pretraining each of the spectral and spatial transformers. We conduct experiments on six publicly available datasets for HSI classification task and demonstrate that our model achieves state-of-the-art performance in all the datasets. The code for our model will be made available at https://github.com/csiro-robotics/factoformer.

View on arXivView PDF

Code Implementations(1)

[IEEE T-GRS 2024] The official repository for Journal Article “FactoFormer: Factorized Hyperspectral Transformers with Self-Supervised Pre-Training”, Accepted to IEEE Transactions on Geoscience and Remote Sensing, December 2023.

221PythonMar 29, 20232 years agoNOASSERTION
attentionhyperspectralself-supervised-learningselfsupervisedtransformers

Similar Papers

Cite this paper

@article{mohamed2023factoformer,
  title  = {FactoFormer: Factorized Hyperspectral Transformers with Self-Supervised Pretraining},
  author = {Shaheer Mohamed and Maryam Haghighat and Tharindu Fernando and Sridha Sridharan and Clinton Fookes and Peyman Moghadam},
  year   = {2023},
  eprint = {2309.09431},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.09431v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.09431.svg)](https://codeofpaper.com/paper/2309.09431)

Discussion