Edge-cloud Collaborative Learning with Federated and Centralized Features

Zexi Li, Qunwei Li, Yi Zhou, Wenliang Zhong, Guannan Zhang, Chao Wu · DOI

Abstract

Federated learning (FL) is a popular way of edge computing that doesn't compromise users' privacy. Current FL paradigms assume that data only resides on the edge, while cloud servers only perform model averaging. However, in real-life situations such as recommender systems, the cloud server has the ability to store historical and interactive features. In this paper, our proposed Edge-Cloud Collaborative Knowledge Transfer Framework (ECCT) bridges the gap between the edge and cloud, enabling bi-directional knowledge transfer between both, sharing feature embeddings and prediction logits. ECCT consolidates various benefits, including enhancing personalization, enabling model heterogeneity, tolerating training asynchronization, and relieving communication burdens. Extensive experiments on public and industrial datasets demonstrate ECCT's effectiveness and potential for use in academia and industry.

Introduction

Standard Federated Learning (FL) operates under the assumption that all training data is localized on edge devices, with the cloud server serving merely as a central orchestrator for model weight aggregation. While this preserves privacy, it overlooks a critical reality in industrial applications like Recommender Systems (RS): the cloud is rarely "empty." Cloud servers often house massive volumes of centralized features—such as global item categories and historical interaction logs—that are too large to transmit to edge devices. Conversely, edge devices hold sensitive, real-time federated features (e.g., user demographics and immediate clickstreams) that cannot be uploaded to the cloud due to privacy constraints.

This "feature gap" limits the effectiveness of traditional FL. Moving cloud data to the edge is prohibited by storage and bandwidth limits, while moving edge data to the cloud violates privacy. The Edge-Cloud Collaborative Knowledge Transfer (ECCT) framework addresses this by enabling a collaborative training loop where the cloud and edge models learn from each other without exchanging raw data.

The ECCT Framework

ECCT breaks the traditional FL paradigm by facilitating bi-directional knowledge transfer. Instead of aggregating model weights, the framework enables the exchange of feature embeddings and prediction logits.

Bi-directional Knowledge Transfer

The core of ECCT lies in its ability to share compact representations. Feature embeddings provide a dense summary of the data's characteristics, while prediction logits represent the model's final decision or "opinion." By sharing these, a large, resource-rich cloud model (trained on historical data) and smaller, localized edge models (trained on private data) can mutually enhance their predictive power.

Optimization and Distillation

To manage this collaboration, ECCT employs several key techniques:

  • Alternating Minimization (AM): The system optimizes cloud and edge models iteratively. During cloud training, edge embeddings are treated as fixed inputs, and vice versa, ensuring stable convergence.
  • Knowledge Distillation (KD): Using Kullback-Leibler Divergence, the models are trained to "mimic" each other’s outputs. This allows the edge model to benefit from the "wisdom" of the larger cloud architecture.
  • Buffered Transfer: To mitigate the "straggler" problem—where network latency or device performance causes asynchronous updates—ECCT uses a buffer to accumulate embeddings, making the system robust to real-world connectivity issues.
  • Filtered KD: To ensure high-quality learning, the framework can be configured to only transfer knowledge from samples that the model predicted correctly, preventing the spread of "misinformation" between the cloud and edge.

Experimental Evaluation

The framework was validated across three distinct datasets: CIFAR-10 (synthetically split to simulate federated and centralized features), Avazu (a public click-through rate dataset), and IndustryData (a massive real-world dataset from the Alipay app involving 500,000 samples across 2,000 devices).

Performance and Robustness

On the CIFAR-10 dataset, ECCT achieved an accuracy of 82.46% in IID settings, significantly outperforming traditional FedAvg (59.75%) and the logit-only FedGKT (67.90%). In industrial applications on Alipay's data, ECCT reached a CVR (Conversion Rate) AUC of 0.8754, compared to 0.8145 for FedAvg.

A critical finding was ECCT's resilience to network instability. In simulations of real-world delays, ECCT's performance degradation was minimal (0.7% to 5.3%), whereas FedAvg saw drops as high as 18.8%. Furthermore, by transferring embeddings and logits rather than full model parameters, ECCT significantly reduces the communication burden on mobile devices.

Key Insights

  • The Importance of Embeddings: In Recommender Systems, transferring only logits (often a single value in binary classification) is insufficient. High-dimensional embeddings are essential for capturing the complexity of user-item interactions.
  • Model Heterogeneity: Since ECCT relies on exchanging embeddings and logits rather than weights, it supports heterogeneous architectures. Different devices can run models of varying sizes (e.g., ResNet-8 vs. ResNet-56) based on their local hardware capabilities.

Conclusion and Future Work

ECCT presents a viable path for integrating centralized and federated features in edge-cloud environments. While it offers significant performance gains, future research must address the privacy-utility trade-off inherent in embedding transfers. While safer than raw data, embeddings can still be vulnerable to inversion attacks; implementing Differential Privacy (DP) without sacrificing accuracy remains a priority. Additionally, exploring dynamic inference strategies and scaling the buffered transfer mechanism to millions of devices will be crucial for global-scale deployment.

Summary updated

BibTeX
@inproceedings{li2023edge,
  author = {Zexi Li and Qunwei Li and Yi Zhou and Wenliang Zhong and Guannan Zhang and Chao Wu},
  title = {{Edge-cloud Collaborative Learning with Federated and Centralized Features}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591976},
}
Figure