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

Minimizing Layerwise Activation Norm Improves Generalization in Federated Learning

M. Yashwanth, Gaurav Kumar Nayak, Harsh Rangwani, Arya Singh, R. Venkatesh Babu, Anirban Chakraborty

Introduction

Federated Learning (FL) enables collaborative model training across decentralized clients while preserving data privacy. However, a significant challenge in FL is poor generalization, often attributed to models converging to "sharp" local minima. Because clients typically possess non-IID (non-independent and identically distributed) data, local training tends to overfit to biased local distributions. This results in a global model that is sensitive to parameter perturbations, leading to high error rates on unseen data.

Methodology: Minimizing Activation’s Norm (MAN)

To address the generalization gap, this work introduces MAN (Minimizing Activation’s Norm), a computationally efficient regularizer designed to guide models toward "flat" minima. The core theoretical insight is that the sharpness of the loss landscape—quantified by the top eigenvalue of the Hessian matrix—is upper-bounded by the norm of the activations entering each layer.

Instead of the prohibitive cost of computing the Hessian directly, MAN adds a penalty term to the loss function that minimizes the second moment of activations across all layers. This approach requires negligible computational overhead as it utilizes values already computed during the standard forward pass. It serves as a "plug-and-play" regularizer compatible with any existing FL optimizer, such as FedAvg, FedProx, or FedDC.

Figure 1: (a) Loss landscape of FedAvg, (b) Schematic of the MAN regularization process, and (c) Flattened loss landscape achieved by FedAvg+MAN.

Experimental Evaluation

The effectiveness of MAN was evaluated on standard benchmarks, including CIFAR-100 and Tiny-ImageNet. To simulate realistic FL environments, data was partitioned using a Dirichlet distribution ($\delta$), where lower values of $\delta$ indicate higher degrees of label heterogeneity (non-IID).

Performance Gains and Efficiency

MAN consistently improves the performance of various FL optimizers. For instance, on CIFAR-100 with non-IID partitioning, integrating MAN with FedDC increased accuracy from 52.02% to 55.21%. Beyond final accuracy, MAN significantly accelerates convergence. In experiments on CIFAR-100, FedDC+MAN reached a target accuracy of 50% in 144 communication rounds, compared to 294 rounds for standard FedDC—a nearly 50% reduction in communication costs.

Figure 5: Accuracy vs. communication rounds for various FL algorithms with and without MAN across different data distributions ($\delta=0.3, 0.6,$ and iid).

Key Insights

  • The Activation-Hessian Link: Theoretical proofs demonstrate that minimizing activation norms effectively constrains the Hessian's eigenvalues, providing a proxy for flatness without the computational burden of second-order methods like Sharpness-Aware Minimization (SAM).
  • Universal Compatibility: MAN enhances state-of-the-art FL algorithms, suggesting that sharpness is a universal bottleneck in federated optimization.
  • Visual Evidence: Visualization of the loss surface confirms that MAN transforms jagged, sharp landscapes into smooth, flat valleys, which are inherently more robust to the distribution shifts common in FL.

Conclusion and Future Work

MAN offers a computationally efficient solution for Federated Learning by improving generalization and communication efficiency. Future research could explore the sensitivity of the balancing hyperparameter, the performance of MAN in Natural Language Processing tasks, and its applicability to more complex architectures like Transformers.

Summary updated

BibTeX
@inproceedings{yashwanth2024minimizing,
  author = {M. Yashwanth and Gaurav Kumar Nayak and Harsh Rangwani and Arya Singh and R. Venkatesh Babu and Anirban Chakraborty},
  title = {{Minimizing Layerwise Activation Norm Improves Generalization in Federated Learning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00228},
}
Figure