Hyperspectral cameras record hundreds of narrow color channels per pixel. Each pixel therefore carries a spectrum that can identify crop cultivars, minerals or tissue types. The data is scarce: a typical labeled collection is one airborne flightline with a few thousand annotated pixels. It is also siloed, because agencies, farms and hospitals often cannot pool raw captures. Federated learning trains one model across institutions by exchanging model updates instead of data, which looks like the natural remedy. It hits a basic obstacle. Every institution owns a different sensor. A 103-band ROSIS camera covering 430–860 nm, a 200-band AVIRIS covering 400–2500 nm and a 48-band CASI produce inputs whose channel k means a different physical wavelength. Standard federated averaging assumes every client's first layer means the same thing, so it either breaks or forces everyone onto an artificial common band grid.
We propose to index the model's spectral input layer by physical wavelength rather than by channel number. A small shared network maps each band's center wavelength and bandwidth to an embedding. Every sensor's update then lands in the same parameter space, and a scarce-label client gains from other institutions exactly where their sensors overlap in wavelength. The server aggregates this shared spectral layer in function space: it reconstructs the consensus embedding at each wavelength, weighting each client by how densely its sensor actually samples that wavelength. Clients that never observe the shortwave infrared therefore cannot overwrite what other clients learned there. The question is whether this lets a client with 5–25 labeled pixels per class beat local training, beat federated training on resampled bands, and beat a separate input stem per sensor.
Core Claim
The obstacle to federated hyperspectral learning is not the usual problem of clients having different label distributions. The obstacle is that clients disagree on what the input coordinates mean. Our claim is that two things together turn sensor heterogeneity from a barrier into a source of shared supervision. The first is a spectral tokenizer conditioned on physical wavelength. The second is coverage-weighted aggregation of that tokenizer in function space. This tokenizer-plus-aggregation pairing should give measurable few-shot gains on clients whose sensors only partly overlap others, and it should support zero-shot onboarding of sensors never seen in training.
The closest centralized mechanism comes from Hyperspectral Image Fusion with Spectral-Band and Fusion-Scale Agnosticism. That work processes 31 to 204 bands with one model by slicing nested "Matryoshka" kernels according to how many bands are present, and our proposal reuses its principle of decoupling architecture from band count. Its slicing is indexed by band count, though, so a 48-band and a 103-band client would co-train the first 48 slices even when those slices correspond to different wavelengths. Federated averaging would then mix physically unrelated weights. We replace the index with the wavelength itself.
The federated work that touches hyperspectral data handles a different kind of heterogeneity. Cooperative Hardware-Prompt Learning for Snapshot Compressive Imaging (FedHP) conditions a prompt network on each client's coded-aperture mask while keeping a reconstruction backbone frozen, and reports a 0.35 dB gain over FedAvg, FedProx and SCAFFOLD. Its clients share one band layout and differ only in their masks. Learning Across Decentralized Multi-Modal Remote Sensing Archives with Federated Learning assigns separate backbones to radar and 12-band multispectral clients, with zero-padded "pseudo-fusion," whitening and a contrastive loss on co-registered scenes, reaching 76.7% F1 on BigEarthNet-MM. It handles two fixed modalities over the same geography, not a continuum of band layouts over unrelated scenes. These two papers motivate our setting; neither supplies a mechanism for it.
Research Program
Tokenizer. Each band b of a client's sensor has a published center wavelength $\lambda_b$ and full width at half maximum $w_b$. A shared network $g_\phi$ (a small MLP on Fourier features of wavelength) produces the band embedding $e_b = g_\phi(\lambda_b, w_b)$. A pixel's reflectance values $x_b$ become tokens $x_b e_b$. A spectral attention pool with a learned query compresses the variable-length token set into a fixed-size vector, so the downstream trunk sees identical shapes on every client. The trunk is a spatial–spectral factorized transformer in the spirit of FactoFormer, whose factorized attention was designed for data efficiency on small hyperspectral samples. The trunk is shared through federated averaging of low-rank adapters, following the parameter-efficient practice surveyed in Advances and Open Challenges in Federated Foundation Models.
Aggregation of the tokenizer. Because $g_\phi$ is an entangled MLP, naive averaging is unsafe. A client whose sensor stops at 860 nm still changes the network's output at 2200 nm, and it does so with no data there to justify the change. We aggregate in function space instead. The inputs to $g$ are wavelengths, which are public, so the server can do this without any client data. Let $c_k(\lambda)$ be client k's coverage density: the sum of its bands' Gaussian spectral response curves, scaled by its number of labeled pixels. The server fits the new shared network by
$$\phi^{t+1} = \arg\min_\phi \sum_{\lambda \in \Lambda} \sum_{k} \frac{c_k(\lambda)}{\sum_j c_j(\lambda)} \big\| g_\phi(\lambda) - g_{\phi_k^{t}}(\lambda) \big\|^2 ,$$
where $\Lambda$ is a dense wavelength grid from 380 to 2500 nm and $\phi_k^t$ is client k's locally updated tokenizer. Wherever no client has coverage, the target defaults to the previous global function. Each client sends only $\phi_k$ and its adapters; the band metadata is already public.
Label scarcity. Clients get 5 or 25 labeled pixels per class plus their unlabeled cube. Local training adds a masked-band reconstruction loss on unlabeled pixels: hide a random subset of wavelengths and predict them from the rest. This loss is what lets a client contribute tokenizer gradients even for classes it barely labels. The trunk may optionally be initialized from SpectralEarth-style pretraining. SpectralEarth: Training Hyperspectral Foundation Models at Scale reports convergence in 10 epochs instead of 100 and robustness when only 5% of labels are used. We run every method with and without this initialization, so that pretraining gains are not credited to federation.
Baselines
The local-only reference trains the identical architecture on each client's own labeled and unlabeled pixels, with the same masked-band loss and the same number of optimizer steps a client performs over all federated rounds. Any federated method that fails to beat it on the scarcest clients has no reason to exist. WHU-Hi gives an anchor for this regime: at 25 samples per class on HanChuan, spatial-patch deep models reached 82–86% overall accuracy and SVMs about 61%.
The resample-and-mask baseline is the strongest simple competitor. It linearly interpolates every client onto a common 10 nm grid over 380–2500 nm, masks grid points outside a sensor's range, and runs FedAvg and FedProx with a conventional first layer. It receives the same trunk, adapters, rounds and a hyperparameter search of the same size as our method. To beat it, we need a statistically significant overall-accuracy gain, measured over five seeds and spatially disjoint splits, on clients whose sensors partly overlap others. Matching it would mean our contribution collapses into an engineering simplification.
The per-sensor stem baseline gives each client a private input projection and a shared trunk. This mirrors the modality-specific backbones of Büyüktas et al. and the private-plus-shared split of FedDPA. It isolates whether sharing the spectral layer matters at all. The clustered baseline follows OSC-FSKD, clustering clients by update similarity and adding self-distillation; we expect its clusters to recover sensor identity. The centralized upper bound pools all scenes and trains the wavelength tokenizer jointly. We also compare to the strongest centralized few-shot hyperspectral classifier in the file, MIFOMO, which reports 95.44% overall accuracy on Indian Pines. Its shot protocol is not detailed in the file, so we rerun it under our splits rather than quote it as comparable. For federated hyperspectral classification across heterogeneous sensors we found no reported result on Lacuna.
Two ablations isolate the key ingredients. The first replaces wavelength indexing with SSA-style index slicing. The second replaces function-space coverage-weighted aggregation with plain FedAvg of $\phi$.
Why not just…?
Why not just resample every sensor to a common wavelength grid and run FedAvg? This is a real threat. Within the 430–860 nm range shared by most sensors, interpolation may be nearly lossless. The weaknesses lie elsewhere. Interpolation ignores band width, so a 10 nm AVIRIS band and a 4 nm ROSIS band are treated alike. Masked grid points still receive first-layer weights, and clients without coverage of those points pull them toward zero. The resample-and-mask baseline above tests exactly this. We will report gains separately for wavelengths inside and outside the overlap region. If the gap exists only outside the overlap, we will say so plainly.
Why not just fine-tune a centrally pretrained hyperspectral foundation model locally, with no federation? SpectralEarth shows that pretraining helps in low-label settings and transfers across satellites. Pretraining on public EnMAP data, however, cannot use the private labeled scenes that federation exists to share. It also covers only one sensor's band layout. Running every method with and without pretrained initialization measures directly whether federation adds anything on top of pretraining. The FedDPA finding is indirect evidence that it does: purely local tuning fell from 77.12 ROUGE-1 into the 40s under test-time distribution shift.
Why not just give each sensor its own private input layer? That design is simple and avoids interference, but it gives up two things. It cannot transfer spectral knowledge between sensors that observe the same wavelengths. It also cannot accept a new sensor without labeled data to train a new stem. The per-sensor stem baseline and the held-out sensor test below decide this question.
Why not just cluster clients by sensor? Clustering lowers drift by shrinking each group, and in this setting that shrinking is exactly the cost: scarce clients are left with fewer partners. If OSC-FSKD-style clustering matches our method, it would indicate that cross-sensor sharing carries no value.
Proposed Experiments
We simulate federation over public scenes, one sensor per client. Clients are Indian Pines and Salinas (AVIRIS), Pavia University and Pavia Centre (ROSIS), Chikusei (Hyperspec-VNIR), Botswana (Hyperion), and WHU-Hi LongKou, HanChuan and HongHu (Headwall Nano-Hyperspec, UAV). Houston (CASI, 48 bands) and Loukia (176 bands) are held out as unseen sensors. Classes are not shared across scenes, so each client keeps its own classification head and the federation shares tokenizer and trunk. Metrics are overall accuracy, average accuracy and kappa per client at 5 and 25 shots, plus bytes communicated per round.
Three checks decide the outcome. The first is cross-sensor transfer. Each ROSIS client runs at 5 shots in three settings: alone, federated with the other VNIR-only sensors, and federated with the AVIRIS and Hyperion clients added. Gains should grow with the clients' spectral overlap, and they should exceed what the resample-and-mask baseline achieves. The second is a drift test for wavelengths no client in the round observes. We run rounds containing only VNIR clients, then measure how much the tokenizer output changes above 1000 nm and how much AVIRIS-client accuracy drops. Plain FedAvg of $\phi$ should show drift there, and coverage-weighted aggregation should not. The third is onboarding a new sensor. The tokenizer is evaluated zero-shot on Houston and Loukia band metadata, and a linear probe is trained with 5 shots per class. We compare against per-sensor stems trained from scratch and against index slicing. If wavelength indexing wins none of these three checks against resampling, we report federated resampling as the practical recipe and treat the negative result as the finding.
References
- Hyperspectral Image Fusion with Spectral-Band and Fusion-Scale Agnosticism
- Cooperative Hardware-Prompt Learning for Snapshot Compressive Imaging
- Learning Across Decentralized Multi-Modal Remote Sensing Archives with Federated Learning
- FactoFormer: Factorized Hyperspectral Transformers With Self-Supervised Pretraining
- Advances and Open Challenges in Federated Foundation Models
- SpectralEarth: Training Hyperspectral Foundation Models at Scale
- WHU-Hi: UAV-borne hyperspectral with high spatial resolution (H2) benchmark datasets for hyperspectral image classification
- Dual-Personalizing Adapter for Federated Foundation Models
- Towards Satellite Non-IID Imagery: A Spectral Clustering-Assisted Federated Learning Approach
- Cross-Domain Few-Shot Learning for Hyperspectral Image Classification Based on Mixup Foundation Model