SplitGP: Achieving Both Generalization and Personalization in Federated Learning

Dong-Jun Han, Do-Yeon Kim, Minseok Choi, Christopher G. Brinton, Jaekyun Moon

TL;DR

SplitGP is a hybrid framework that combines Split Learning and Federated Learning to solve the "personalization vs. generalization" trade-off. By splitting a model into a personalized client-side component and a generalized server-side component, it allows resource-constrained edge devices to achieve high accuracy on local tasks while efficiently offloading unfamiliar data to the cloud.

What Problem Does This Paper Address?

In the world of Federated Learning (FL), researchers usually chase one of two goals: Generalization (a global model that works for everyone) or Personalization (a local model tailored to a specific user).

However, real-world edge-AI faces a "double whammy" of challenges:

  1. The Distribution Shift: A user’s data is usually "non-IID" (not identical to others). A personalized model works great for their usual routine but fails when they encounter something new (out-of-distribution classes). Conversely, a global model might be mediocre for everyone’s specific needs.
  2. Resource Constraints: Mobile and IoT devices have tiny storage and limited battery. Running a massive, state-of-the-art neural network locally is often impossible.

Existing FL methods force developers to choose between these two, often ignoring the inference-time costs. SplitGP asks: Can we have both personalization and generalization without crushing the device's hardware?

Methods

The authors introduce SplitGP, which utilizes a "split" architecture and a multi-exit strategy:

  • Model Splitting: The full model is sliced into two parts. The client-side component ($\phi$) acts as a feature extractor, and the server-side component ($\theta$) acts as the heavy-lifting "head."
  • The Auxiliary Classifier ($h$): To enable early exits, the client also maintains a small, personalized classifier.
  • Dual-Role Training: During training, the client-side model is optimized for personalization (local classes), while the server-side model is trained to generalize across all clients' data. A weighting parameter ($\lambda$) controls how much the client model "blends" with the global average during aggregation.
  • Entropy-Based Inference: This is the "secret sauce." During inference, the client runs the data through its local component. It calculates the Shannon entropy (a measure of uncertainty).
  • If entropy is low (the device is "sure"), it exits early and gives a personalized prediction.
  • If entropy is high (the device is "confused" by new data), it sends the intermediate features to the server to get a generalized prediction from the full model.

Datasets

The framework was evaluated using two classic computer vision benchmarks, modified to simulate non-IID edge environments:

  • Fashion-MNIST (FMNIST): 10 classes of clothing items.
  • CIFAR-10: 10 classes of common objects/animals.
  • Setup: The authors simulated 50 clients, each receiving only 2 out of the 10 possible classes to create a highly non-IID (personalized) training environment.

Key Insights and Ideas

  • Specialization vs. Generalization: By assigning different roles to different parts of the network, SplitGP turns the client into a "specialist" for local data and the server into a "generalist" for everything else.
  • The Power of the Early Exit: Most edge-AI tasks are repetitive. By using an early exit for 80-90% of common tasks, the system drastically reduces latency and communication costs.
  • Storage Efficiency: The paper demonstrates that you don't need the whole model on the device. By only storing the client-side component, devices saved nearly 90% of storage space compared to traditional FL.
  • Robustness to "New" Data: Unlike purely personalized models, which see their accuracy plummet when OOD data appears, SplitGP remains stable because it knows when to "ask the server for help."

Key Results

  • Accuracy: On FMNIST, when 20% of the test data was out-of-distribution, SplitGP achieved ~91% accuracy, significantly outperforming purely personalized FL (~85%) and generalized FL (~83%).
  • Latency: SplitGP showed a massive reduction in inference time compared to running a full model at the client, especially in scenarios where the client's computing power ($P_C$) was low.
  • Communication Savings: Because the client only sends features to the server when it is "confused," the uplink data requirements are much lower than full-model offloading. For FMNIST, the system only needed to offload about 20% of samples to maintain top-tier performance.

Limitations and Future Work

  • Privacy Concerns: While SplitGP doesn't send raw data, it does send "features" (activations). The authors acknowledge that these could potentially leak information and suggest adding noise layers (Differential Privacy) as a countermeasure.
  • Fixed Split Points: The model is split at a pre-defined layer. Future research could investigate dynamic splitting, where the "cut" moves based on current network bandwidth or battery levels.
  • Hyperparameter Sensitivity: The performance relies on tuning the entropy threshold ($E_{th}$) and the aggregation weight ($\lambda$). Finding the "sweet spot" currently requires empirical testing.

Summary updated

BibTeX
@inproceedings{han2023splitgp,
  author = {Dong-Jun Han and Do-Yeon Kim and Minseok Choi and Christopher G. Brinton and Jaekyun Moon},
  title = {{SplitGP: Achieving Both Generalization and Personalization in Federated Learning}},
  booktitle = {INFOCOM},
  year = {2023},
  url = {https://openreview.net/forum?id=kUpsrI7dXyr},
}
Figure