Quaternion Transformer
Transformer that classifies hyperspectral images using quaternion self-attention on band-selected quaternion data.
Image classification · 693 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 6.8M
- Operations
- 693
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE TCSVT 2023
- Cited by
- 51 (as of 27 October 2026)
- Authors
- Xiaofei Yang, Weijia Cao, Yao Lu, Yicong Zhou
- License
- GPL-3.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19570
- Graph hash
- cc60999647e4311988c8eb9dadeefa64b7f55921066d3ac30f11ed426c595816
- Skeleton hash
- 668812f9ae8a47e39e96eca731050350c8c538753e418103f096ab8d3ec01262
- Architecture hash
- 3ce46b574d211de647f6b07c8f1d691e71e3ade98d7e4957891749a4b34a07a0
- Diagram SHA-256
- 92fd73ee53654cd92bd5afc2281d9fa32c5e0c8157c17a82b23ecec290d726ce
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
QTN, the Quaternion Transformer Network, is a transformer for classifying hyperspectral images. Its abstract names three problems with earlier transformer methods on these three-dimensional images: processing them as 1D sequences misses the 3D structure, the many parameters are expensive, and they use only spatial information, lacking the spectral information.
A band adaptive selection module (BASM) first produces quaternion data from the hyperspectral image. A quaternion self-attention (QSA) mechanism then captures local and global representations, and the network is a stack of QSA layers. Its computation uses quaternion algebra in hypercomplex spaces. The abstract reports experiments on three public datasets in which QTN outperforms the vision transformers and convolutional neural networks it is compared with. This model is built from a PyTorch reproduction of the paper.
Key idea. QTN converts hyperspectral images to quaternion data with a band adaptive selection module and classifies them with a stack of quaternion self-attention layers.
- QTN
- Quaternion Transformer Network
- Quaternion Transformer
- hyperspectral image classification
- HSI classification
- quaternion self-attention
- band adaptive selection module
- quaternion neural network
- hypercomplex
AI-written summary, based on the paper's abstract and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Yang_2023, title={QTN: Quaternion Transformer Network for Hyperspectral Image Classification}, volume={33}, ISSN={1558-2205}, url={http://dx.doi.org/10.1109/TCSVT.2023.3283289}, DOI={10.1109/tcsvt.2023.3283289}, number={12}, journal={IEEE Transactions on Circuits and Systems for Video Technology}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Yang, Xiaofei and Cao, Weijia and Lu, Yao and Zhou, Yicong}, year={2023}, month=Dec, pages={7370–7384} }