Skip to main content
QUICK REVIEW

[Paper Review] Compare Where It Matters: Using Layer-Wise Regularization To Improve Federated Learning on Heterogeneous Data

Ha Min Son, Moon Hyun Kim|arXiv (Cornell University)|Dec 1, 2021
Privacy-Preserving Technologies in DataComputer Science20 references3 citations
TL;DR

FedCKA proposes a layer-wise regularization framework for federated learning that improves performance on non-IID data by selectively regularizing only the most important, naturally similar layers—specifically the first two layers—using Centered Kernel Alignment (CKA) to measure representational similarity. This approach achieves state-of-the-art accuracy (up to 97.58% on CIFAR-10) while maintaining training efficiency comparable to FedAvg, even on deep models like ResNet-50.

ABSTRACT

Federated Learning is a widely adopted method to train neural networks over distributed data. One main limitation is the performance degradation that occurs when data is heterogeneously distributed. While many works have attempted to address this problem, these methods under-perform because they are founded on a limited understanding of neural networks. In this work, we verify that only certain important layers in a neural network require regularization for effective training. We additionally verify that Centered Kernel Alignment (CKA) most accurately calculates similarity between layers of neural networks trained on different data. By applying CKA-based regularization to important layers during training, we significantly improve performance in heterogeneous settings. We present FedCKA: a simple framework that out-performs previous state-of-the-art methods on various deep learning tasks while also improving efficiency and scalability.

Motivation & Objective

  • To address performance degradation in federated learning under non-IID data distribution.
  • To identify which layers in neural networks are most critical for regularization in heterogeneous settings.
  • To improve training efficiency and scalability by avoiding regularization of all layers.
  • To evaluate the effectiveness of CKA as a similarity metric for comparing representations across clients.
  • To develop a scalable, high-performing regularization framework that outperforms existing state-of-the-art methods.

Proposed method

  • Applies layer-wise regularization only to the first two layers, identified as naturally similar and most impactful for performance.
  • Uses Centered Kernel Alignment (CKA) to compute similarity between activation representations of local models across clients.
  • Introduces a regularization term ℓcka based on CKA to align the representations of the first two layers during local training.
  • Employs a three-model forward pass (client, global, and target) to compute CKA similarity efficiently without increasing layer count.
  • Optimizes computational cost by focusing regularization only on key layers, avoiding per-layer operations across deep architectures.
  • Designs FedCKA as a plug-in framework compatible with FedAvg, requiring minimal modification to existing FL pipelines.

Experimental results

Research questions

  • RQ1Which layers in a neural network are most sensitive to reinitialization and thus most critical for regularization in federated learning?
  • RQ2How does CKA compare to other similarity metrics (e.g., l2, cosine) in measuring representational similarity between models trained on non-IID data?
  • RQ3Can selective regularization of only naturally similar layers improve performance without degrading training efficiency?
  • RQ4How does FedCKA scale with increasing model depth, especially in comparison to methods that regularize every layer?
  • RQ5Does using CKA-based regularization lead to better convergence and accuracy on standard benchmarks like CIFAR-10 and Tiny ImageNet?

Key findings

  • FedCKA achieves 97.58% accuracy on CIFAR-10 with α = 5.0, significantly outperforming FedAvg (54.82%) and other SOTA methods.
  • Using CKA for regularization yields the highest performance, with kernel CKA slightly outperforming linear CKA but at higher computational cost.
  • On ResNet-50 with Tiny ImageNet, FedCKA maintains training times comparable to FedAvg (750.97s), while FedProx, SCAFFOLD, and MOON show exponential increases.
  • Regularizing only the first two layers reduces training overhead and improves scalability, especially for deep models with many layers.
  • The use of CKA as a similarity metric leads to more accurate alignment of representations, penalizing only truly dissimilar updates.
  • FedCKA demonstrates that focusing regularization on naturally similar layers is more effective than uniform regularization across all layers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.