NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shift

Haozhe Si, Yuxuan Wan, Yuqing Wang, Minh N. Do, Han ZhaoNeurIPS 2026

TL;DR

Hyperspectral cameras see the world in hundreds of slices of light, revealing the chemical makeup of everything from crops to floodwaters—but a deep learning model trained on one satellite's sensor usually breaks the moment you feed it data from another. LESSViT solves this "cross-sensor" problem by using a clever low-rank tensor math trick to model spatial and spectral features jointly without blowing up your GPU memory. The result is a single, flexible Vision Transformer that seamlessly adapts to unseen wavelengths and shifting channel counts at test time, with zero retraining.

What Problem Does This Paper Address?

If you train a standard computer vision model, life is predictable: almost every camera hands you three channels—Red, Green, and Blue. Hyperspectral imagery (HSI) is a wildly different beast. Instead of three broad buckets, an HSI sensor captures hundreds of narrow, contiguous slices of the electromagnetic spectrum, turning every pixel into a detailed physical fingerprint of the material beneath it.

The catch? Every satellite and drone sensor slices the spectrum differently, varying in wavelength coverage, band spacing, and total channel count (say, 120 bands vs. 202). Consequently, Vision Transformers (ViTs) trained on one sensor suffer from catastrophic "spectral shift" when tested on another.

Existing workarounds force an unpleasant choice:

  • Implicit modeling: Collapse all spectral channels into the initial patch embedding layer. It's fast, but hardcodes the channel count and treats ordered wavelengths like an unordered bag of features.
  • Explicit full attention: Treat every spatial patch in every channel as its own token. This captures rich physics-based relationships, but attention complexity explodes to $\mathcal{O}(N^2 C^2)$ (for $N$ spatial patches and $C$ channels), quickly causing out-of-memory crashes.

How do we build a ViT that explicitly understands physical wavelengths, accepts any number of channels on the fly, and actually scales?

Methods

The authors introduce LESSViT (Low-rank Efficient Spatial–Spectral ViT) alongside a tailored self-supervised pretraining recipe called HyperMAE.

Overview of the LESSViT framework, showing cross-spectral generalization, HyperMAE pretraining, and LESS Attention with SSRoPE.

Here is how the pieces fit together:

  • Tied Patch Embedding (Standard/Adapted): Instead of one giant fixed projection across all channels, LESSViT applies a shared linear projection to each $P \times P$ patch independently per channel. Whether an image has 30 channels or 200, it cleanly maps into an $N \times C$ grid of tokens, augmented with learnable spatial, spectral, and global [CLS] summary tokens.
  • LESS Attention (Novel): Rather than flattening the $N \times C$ grid and paying the quadratic $\mathcal{O}(N^2 C^2)$ tax, LESSViT exploits the natural separability of space and light. It uses attention pooling to summarize the grid into spatial-only tokens and spectral-only tokens, runs separate self-attention on each branch, and recombines their outputs via a Kronecker product ($\otimes$). Under balanced regimes, this low-rank tensor factorization slashes complexity down to $\mathcal{O}(rNC)$ (in practice, rank $r=1$ works great!).
Figure 2: Overview of LESSViT. (a) The tied patch embedding converts a hyperspectral image (C ˆ H ˆ W) into a grid of spatial–spectral tokens with spatial, spectral, and global [CLS] tokens. (b) The LESS block factorizes spatial and spectral attention via structured decomposition, enabling efficient modeling of joint spatial–spectral interactions.
  • Spatial–Spectral RoPE / SSRoPE (Novel): Because channel index "5" means different things on different sensors, LESSViT ditches fixed index embeddings. It extends Rotary Positional Embedding (RoPE) axially: 2D spatial coordinates $(u, v)$ rotate spatial queries/keys, while the actual continuous physical wavelength $\lambda$ rotates spectral queries/keys.
  • HyperMAE Pretraining (Adapted/Tailored): Standard random token masking ruins the neat grid structure LESS Attention needs. HyperMAE uses decoupled axis-aligned masking (masking 75% of spatial patches uniformly across channels, and 75% of spectral bands independently) plus Hierarchical Channel Sampling (randomly dropping a fraction of channels before pretraining) to keep reconstruction memory cheap.

Datasets

The authors build a new cross-spectral generalization protocol on top of the existing SpectralEarth benchmark (which features 202-band EnMAP satellite imagery across five downstream tasks: CDL, EuroCrops, BDFORET, BNETD segmentation, and CORINE multi-label classification).

Figure 3: Band-center locations of the six evaluation configurations. Each tick marks a retained band center. C120VNIR+ and C120SWIR+ differ in their VNIR–SWIR sampling balance; C82 contains the complementary bands interleaved with the training bands, and C202 includes all available EnMAP bands. PRISMA and EO1H show the target band centers of the SRF-based configurations. Shaded regions indicate excluded spectral regions.

By holding the spatial scenes fixed and manipulating the 202 EnMAP bands, they isolate pure spectral shift. Models are trained only on a 120-band visible/near-infrared-heavy split ($C120_{\text{VNIR+}}$) and tested zero-shot on five out-of-distribution (OOD) setups:

  1. Sampling shift ($C120_{\text{SWIR+}}$): 120 bands, shifted heavily toward shortwave infrared.
  2. Complementary bands ($C82$): The 82 interleaved bands never seen during training.
  3. Channel expansion ($C202_{\text{Full}}$): All 202 bands at once.
  4. Simulated sensors (PRISMA & EO-1 Hyperion): Convolving EnMAP spectra with Gaussian spectral response functions to mimic real-world satellite optics (133 and 155 bands).

Key Insights and Ideas

  • In-distribution specialization is a trap: Models that collapse channels early (like SpectralViT) dominate on the exact sensor setup they were trained on, but suffer catastrophic collapse when bands shift. High in-distribution scores do not buy you cross-sensor robustness.
  • Space and spectrum are low-rank separable: In controlled ablations, LESS Attention with rank $r=1$ matches the cross-spectral generalization of brute-force $\mathcal{O}(N^2 C^2)$ full attention—proving you don't need an all-to-all token bloodbath to couple spatial context with material spectra.
  • Physics-grounded positions matter: Swapping continuous wavelength RoPE (SSRoPE) for standard coordinate MLPs (SIREN) noticeably hurts dense segmentation, showing that relative physical wavelength distances help the attention heads interpolate across unseen bands.

Key Results

  • Dominant OOD Robustness: Across all 25 out-of-distribution task–configuration pairs, LESSViT takes 1st place. Its average relative performance drop from in-distribution is just 2.0% to 10.7%, whereas the strongest baseline (HyperFree) drops by 18.0% to 34.6%, and the top in-distribution model (SpectralViT) plummets by 55.5% to 62.6%.
  • Near-Constant Scaling: When scaling inference from 10 channels up to 200 channels, LESSViT maintains ~1.0× flat relative latency. Meanwhile, full spatial–spectral attention (ChannelViT) spikes to 12.5× latency at 180 channels and hits an Out-Of-Memory error at 200 channels—even on a massive 144 GB GPU.
  • Cheaper Pretraining: Sampling just 20–30% of channels during HyperMAE pretraining cuts training time by 17% (from 41 to 34 hours) with virtually zero loss in downstream accuracy.

Limitations and Future Work

The authors are candid about two main hurdles:

  1. Simulated vs. real cross-sensor noise: Because all evaluation subsets (including PRISMA and Hyperion) were mathematically derived from EnMAP data, real-world headaches like differing atmospheric corrections, sensor noise floors, calibration quirks, and varying spatial resolutions remain untested.
  2. Patch size vs. token count: LESSViT uses $16 \times 16$ patches, trailing SpectralViT's $4 \times 4$ patches in fine-grained in-distribution segmentation boundaries. Shrinking patch size explodes spatial token count $N$, making even $\mathcal{O}(rNC)$ demanding at high channel counts.

Future work aims to test LESSViT on true multi-satellite observations, design higher-resolution architectures, and take the model beyond Earth observation into domains like medical imaging and material analysis.

Summary updated

BibTeX
@inproceedings{si2026lessvit,
  author = {Haozhe Si and Yuxuan Wan and Yuqing Wang and Minh N. Do and Han Zhao},
  title = {{LESSViT: Robust Hyperspectral Representation Learning under Spectral Configuration Shift}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9iUg5MUTw9},
}
Figure