WSGraphCL
WSGraphCL pretrains a graph encoder on hyperspectral images with weak-strong contrastive learning.
Graphs and geometry · 151 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
- Graphs and geometry
- Parameters
- 16M
- Operations
- 151
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Transactions on Geoscience and Remote Sensing 63, 2025
- Cited by
- 10 (as of 27 October 2026)
- Authors
- Sirui Wang, Nassim Ait Ali Braham, Xiao Xiang Zhu
- Source
- GitHub: zhu-xlab/WSGraphCL
- 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
- m21438
- Graph hash
- dd7bd2a483fdd1b3dc0249408749a2c705168d31a1effd4d98acdd01a178499a
- Skeleton hash
- be493da829dcbef222dfe521c09390bb4473f8afb327de083fc6a83571fa0415
- Architecture hash
- 5bacfb3f0de5160faf8fcab63e4e06de3bd1910f643d4307ccd706ff2d388e61
- Diagram SHA-256
- 55ab595ee0c783b3bd0850e998cb7484ec95f5eb00bd81e86ca8337a19242f26
- 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
WSGraphCL is a weak-strong graph contrastive learning model for hyperspectral image (HSI) classification, tested in a few-shot scenario. The paper names two problems it addresses: traditional methods have limited performance when extracting features from noisy hyperspectral data, and supervised models require large quantities of labeled data.
The image is first reduced to superpixels with the SLIC algorithm, and each superpixel is treated as a node in a graph. Edges connect each node only to its K most similar nodes, with K fixed at 10, under a distance that combines a spectral term and a spatial term. The model input is a K-hop subgraph, which takes a target node as the central point and collects the neighbors connected to it within k steps. A graph convolutional encoder turns each subgraph into an embedding: a global sum pooling layer aggregates the nodes, and a linear projection reduces the embedding to a size of 1024.
The encoder is pretrained on unlabeled pixels with the InfoNCE contrastive loss, using a strong augmentation for one view and a weak augmentation for the other, while false negative pairs are filtered out of the negative pairs. A lightweight classifier is then trained on the features with a handful of labels. The paper evaluates on the Indian Pines, Pavia University and MDAS datasets, and reports that WSGraphCL outperforms the compared methods in OA, AA and kappa on Indian Pines.
Key idea. WSGraphCL pretrains a graph-based encoder on unlabeled hyperspectral pixels with weak-strong augmentations and false negative pair filtering, then classifies with a lightweight classifier and a handful of labels.
- wsgraphcl
- weak-strong graph contrastive learning
- hyperspectral image classification
- graph contrastive learning
- graph neural network
- few-shot hyperspectral classification
- self-supervised learning
- k-hop subgraph
- remote sensing
- hsi classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Wang_2025, title={Weak–Strong Graph Contrastive Learning Neural Network for Hyperspectral Image Classification}, volume={63}, ISSN={1558-0644}, url={http://dx.doi.org/10.1109/TGRS.2025.3562261}, DOI={10.1109/tgrs.2025.3562261}, journal={IEEE Transactions on Geoscience and Remote Sensing}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Wang, Sirui and Braham, Nassim Ait Ali and Zhu, Xiao Xiang}, year={2025}, pages={1–17} }