Geometry-Aware Subspace Perturbation for Heterogeneous Federated Learning

Xiangtao Zhang, Hailong Yan, Obed Irihose, Joey Tianyi Zhou, Chee Seng Chan, Ce Zhu, Le ZhangNeurIPS 2026

TL;DR

When devices in a federated network use different neural network architectures, you can't simply average their weights—which often traps local models into memorizing their own tiny, private datasets. This paper introduces SPAS, a lightweight technique that nudges models out of sharp, overfitted traps and into flat, generalizable valleys by tracking the hidden geometry of their gradients. Best of all, it achieves the generalization magic of expensive adversarial methods without doubling your compute bill.

What Problem Does This Paper Address?

Standard Federated Learning assumes every participant—whether a smartphone or a hospital server—runs the exact same model architecture, allowing a central server to average their parameter updates. Heterogeneous Federated Learning (HFL) drops this unrealistic constraint, letting each client train its own distinct architecture (say, a ResNet on one device and a Vision Transformer on another) on its own uniquely skewed data.

Because you cannot directly average weights across different architectures, clients share information indirectly (via prototypes or distillation) and optimize largely on their own. Combined with limited local data, this isolation leads to severe overfitting: training accuracy hits 100%, while test accuracy lags far behind.

Figure 1: Challenges in existing HFL frame- works. (a) and (b) show the training and test ac- curacy of different clients under FedTGP [58] and FedMRL [53], respectively.

A classic remedy for overfitting is injecting parameter perturbations during training to push models toward "flat minima"—wide valleys in the loss landscape that generalize well. Right now, you have two flawed options:

  1. Random noise: Computationally cheap, but blind to the landscape's geometry, making exploration inefficient.
  2. Adversarial perturbations (like Sharpness-Aware Minimization, or SAM): Great at finding flat minima by calculating worst-case gradient directions, but requires an extra backpropagation pass every step—nearly doubling training costs.

Can we get the smart, directional exploration of SAM at the bargain-basement compute cost of random noise?

Methods

To build a better perturbation, the authors first looked at how gradients actually behave during HFL training, uncovering three distinct geometric properties:

Figure 2: Empirical analysis of gradient dynamics in HFL. (a) The singular value distribution shows that gradient trajectories exhibit a low-rank structure, where most energy is concentrated in a few dominant components. (b) The gradient covariance reveals strong anisotropy, indicating that different directions contribute unequally to optimization. (c) The gradient norm evolves over communication rounds, reflecting changes in optimization states during training. (d) The similarity of principal components across rounds shows that the underlying gradient subspace is not fixed but evolves over time. These observations collectively highlight the low-rank, anisotropic, and evolving nature of gradient dynamics, motivating the design of geometry-aware perturbations.
  1. Low-rank: Most gradient energy is concentrated in just a handful of dominant directions (e.g., the top 20 principal components capture 97.3% of the variation).
  2. Anisotropic: Different parameter directions contribute very unequally to optimization.
  3. Evolving: Both the overall gradient norm and the dominant directions shift over communication rounds.

To exploit this geometry without extra backward passes, the authors propose Subspace Perturbation with Adaptive Sampling (SPAS), a plug-and-play local training wrapper built on three pillars:

  • Representation (Low-Rank Subspace): Instead of perturbing millions of parameters blindly, SPAS restricts perturbations to a tiny, $r$-dimensional orthonormal subspace ($r \ll d$, with default $r=3$) that captures the dominant gradient directions.
  • Generation (Covariance-Aligned Sampling): Rather than isotropic Gaussian noise, SPAS proves mathematically that matching the second-order statistics (covariance) of the projected gradients is optimal. It samples latent perturbations scaled by the eigenvalues of the subspace—injecting more variance along high-energy gradient directions.
  • Adaptation (Dynamic Scaling & Oja Updates): As training nears convergence and gradients shrink, giant perturbations can destabilize the model. SPAS scales perturbation magnitude dynamically using the previous step's gradient norm. Furthermore, to prevent the subspace from going stale as the landscape shifts, SPAS incrementally updates the basis vectors every few steps using a lightweight, online Oja-style streaming rule—no historical gradient storage or expensive batch SVD required.

Datasets

The authors evaluate SPAS across six standard image classification benchmarks—introducing no new datasets, but splitting existing ones to simulate two types of statistical heterogeneity alongside model heterogeneity (mixing ResNet-18/34/50 and ViT-B/16 & B/32 across clients):

  • Feature Skew (same classes, different visual domains): Office10 and Digit5.
  • Label Skew (clients hold different class distributions via pathological or Dirichlet splitting): CIFAR-10, CIFAR-100, Flowers102, and Tiny-ImageNet.

Key Insights and Ideas

  • Covariance matching replaces extra backprops: By taking a second-order Taylor expansion of the loss, the authors show that a zero-mean perturbation's expected effect is governed entirely by its covariance. Aligning noise covariance with historical gradient statistics mimics SAM's sharpness-aware benefits using only streaming math ($O(dr^2)$ overhead).
  • Perturb the tail, spare the head: Applying SPAS to the tail layers (closer to the output) consistently beats perturbing early head layers or random layers. Early feature-extraction layers are overly sensitive to parameter jitters, whereas perturbing later layers encourages robust, generalizable decision boundaries.
  • Provably flatter minima: Visualizing the Hessian spectrum confirms the theory—adding SPAS slashes the dominant eigenvalue (a direct measure of landscape sharpness) on FedKD from 48.10 down to 19.50.

Key Results

  • Consistent Plug-and-Play Gains: Wrapping SPAS around six state-of-the-art HFL baselines (FML, FedKD, FedDistill, FedProto, FedMRL, FedTGP) improves test accuracy across nearly all configurations, yielding gains of up to 4.49% under feature skew (Office10 with FedDistill, jumping from 72.56% to 77.05%) and 2.39% under label skew (CIFAR-100 with FedMRL).
  • SAM-level Accuracy at 1x FLOPs: On Office10, SPAS slightly edges out SAM in data-level accuracy (77.72% vs. 77.52%, over a 72.56% baseline) while keeping gradient evaluation FLOPs at 1× instead of 2×. Average runtime per round drops from SAM's 52.43s down to 38.86s (close to the 33.50s unperturbed baseline).
  • Works in Traditional FL, Too: Adapted to homogeneous FedAvg via a global update subspace, SPAS boosts data-level accuracy by 3.24% while cutting runtime from MoFedSAM's 46.62s down to 29.21s.

Limitations and Future Work

Not discussed in the paper. (While the authors note practical trade-offs—such as balancing accuracy against minor compute increases when tuning the subspace rank $r$, update interval $s$, and number of perturbed layers $p$—they do not include a dedicated section discussing broader algorithmic limitations or future research directions.)

Summary updated

Abstract

We propose a geometry-aware perturbation framework that explicitly models the low-rank, anisotropic, and evolving structure of gradient dynamics to improve generalization in heterogeneous federated learning (HFL). Our approach is built upon three key components. First, we represent perturbations within a low-dimensional subspace that captures the dominant directions of gradient trajectories. Second, we generate perturbations through a structure-aware sampling strategy that aligns with the covariance of projected gradients, enabling distribution-aware exploration. Third, we introduce an adaptive mechanism that dynamically adjusts both the magnitude and the structure of perturbations to match the evolving optimization process. Extensive experiments demonstrate that the proposed method consistently improves generalization across diverse HFL benchmarks, achieving up to a $4.49\%$ improvement on the $\textit{Office10}$ dataset with minimal computational overhead.
BibTeX
@inproceedings{zhang2026geometry,
  author = {Xiangtao Zhang and Hailong Yan and Obed Irihose and Joey Tianyi Zhou and Chee Seng Chan and Ce Zhu and Le Zhang},
  title = {{Geometry-Aware Subspace Perturbation for Heterogeneous Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hucJI0EfE9},
}
Figure