# Pyramid Hierarchical Transformer for Hyperspectral Image Classification

arXiv: https://arxiv.org/abs/2404.14945 · HTML: https://mlsanity.com/paper/2404.14945/

## Key facts

- Cited by 11 papers in the map (data through 14 Oct 2026).
- Builds on 8 of its 76 references that are in the map.
- First posted on arXiv 23 Apr 2024.

## Builds on (most cited first, 8 of 8)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale](https://mlsanity.com/paper/2010.11929/) (2020)
- [SpectralGPT: Spectral Remote Sensing Foundation Model](https://mlsanity.com/paper/2311.07113/) (2023)
- [SpectralFormer: Rethinking Hyperspectral Image Classification with Transformers](https://mlsanity.com/paper/2107.02988/) (2021)
- [Graph Convolutional Networks for Hyperspectral Image Classification](https://mlsanity.com/paper/2008.02457/) (2020)
- [Hyperspectral Image Classification-Traditional to Deep Models: A Survey for Future Prospects](https://mlsanity.com/paper/2101.06116/) (2021)
- [Sharpend Cosine Similarity based Neural Network for Hyperspectral Image Classification](https://mlsanity.com/paper/2305.16682/) (2023)
- [Spatial Gated Multi-Layer Perceptron for Land Use and Land Cover Mapping](https://mlsanity.com/paper/2308.05235/) (2023)

## Built on by (most cited first, 11 of 11)

- [WaveMamba: Spatial-Spectral Wavelet Mamba for Hyperspectral Image Classification](https://mlsanity.com/paper/2408.01231/) (2024)
- [Multi-head Spatial-Spectral Mamba for Hyperspectral Image Classification](https://mlsanity.com/paper/2408.01224/) (2024)
- [Transformers Fusion across Disjoint Samples for Hyperspectral Image Classification](https://mlsanity.com/paper/2405.01095/) (2024)
- [Spatial and Spatial-Spectral Morphological Mamba for Hyperspectral Image Classification](https://mlsanity.com/paper/2408.01372/) (2024)
- [EnergyFormer: Energy Attention with Fourier Embedding for Hyperspectral Image Classification](https://mlsanity.com/paper/2503.08239/) (2025)
- [Transformer-Driven Active Transfer Learning for Cross-Hyperspectral Image Classification](https://mlsanity.com/paper/2411.18115/) (2024)
- [DiffFormer: a Differential Spatial-Spectral Transformer for Hyperspectral Image Classification](https://mlsanity.com/paper/2412.17350/) (2024)
- [Hybrid State-Space and GRU-based Graph Tokenization Mamba for Hyperspectral Image Classification](https://mlsanity.com/paper/2502.06427/) (2025)
- [AMBER -- Advanced SegFormer for Multi-Band Image Segmentation: an application to Hyperspectral Imaging](https://mlsanity.com/paper/2409.09386/) (2024)
- [Dynamic Memory Transformer for Hyperspectral Image Classification](https://mlsanity.com/paper/2504.13242/) (2025)
- [DSXFormer: Dual-Pooling Spectral Squeeze-Expansion and Dynamic Context Attention Transformer for Hyperspectral Image Classification](https://mlsanity.com/paper/2602.01906/) (2026)

## Abstract (arXiv)

The traditional Transformer model encounters challenges with variable-length input sequences, particularly in Hyperspectral Image Classification (HSIC), leading to efficiency and scalability concerns. To overcome this, we propose a pyramid-based hierarchical transformer (PyFormer). This innovative approach organizes input data hierarchically into segments, each representing distinct abstraction levels, thereby enhancing processing efficiency for lengthy sequences. At each level, a dedicated transformer module is applied, effectively capturing both local and global context. Spatial and spectral information flow within the hierarchy facilitates communication and abstraction propagation. Integration of outputs from different levels culminates in the final input representation. Experimental results underscore the superiority of the proposed method over traditional approaches. Additionally, the incorporation of disjoint samples augments robustness and reliability, thereby highlighting the potential of our approach in advancing HSIC. The source code is available at https://github.com/mahmad00/PyFormer.
