{"id":874518,"date":"2022-09-01T00:35:03","date_gmt":"2022-09-01T07:35:03","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/?post_type=msr-blog-post&p=874518"},"modified":"2022-09-01T00:39:34","modified_gmt":"2022-09-01T07:39:34","slug":"fedx-unsupervised-federated-learning-with-cross-knowledge-distillation","status":"publish","type":"msr-blog-post","link":"https:\/\/www.microsoft.com\/en-us\/research\/articles\/fedx-unsupervised-federated-learning-with-cross-knowledge-distillation\/","title":{"rendered":"FedX: Unsupervised Federated Learning with Cross Knowledge Distillation"},"content":{"rendered":"\n

Federated learning is a new collaborative learning method that involves multiple decentralized edge devices to build a privacy-preserving shared data model without exchanging locally bound data. This technique is critical to many real-world scenarios where privacy is an issue, such as when personal data is stored on mobile devices or when patient records in hospital networks cannot be shared with central servers.<\/p>\n\n\n\n

Unsupervised learning is becoming essential in federated systems because data labels are typically scarce in practical scenarios. The fact that clients must rely on locally defined pretext tasks without ground-truth labels also adds to the complexity of the problem. For this problem, Zhang et al. proposed FedCA, a model that uses local data features and external datasets to reduce representation inconsistency [1]. Wu et al. proposed FCL that exchanges encrypted local data features for privacy and employs a neighborhood matching approach to manage decentralized client data [2]. However, these methods raise new privacy concerns because of explicit data sharing.<\/p>\n\n\n\n

\"diagram\"
Figure 1. FedX, the proposed unsupervised federated learning method, has two main loss designs. Contrastive loss and relational loss allow the model to learn semantic information from local data while also regularizing bias by distilling knowledge from the global model.<\/em><\/figcaption><\/figure>\n\n\n\n

Researchers from the Institute for Basic Science and the KAIST School of Computing (Meeyoung Cha, Sundong Kim, Sungwon Han, and Sungwon Park) collaborated with researchers from Microsoft Research Asia’s Social Computing Group (Xing Xie, Fangzhao Wu, and Chuhan Wu) to propose FedX, a new advance in unsupervised federated learning that learns semantic representation from local data and refines the central server’s knowledge through knowledge distillation. Figure 1 depicts its main design components: contrastive loss and relational loss. FedX extends the FedAvg [3] baseline model’s local updating processes in each client by redesigning loss objectives and distilling knowledge locally (i.e., local knowledge distillation) and globally (i.e., global knowledge distillation).<\/p>\n\n\n\n

Local knowledge distillation maximizes the embedding similarity between two views of the same data instance, while minimizing that of other instances (i.e., local contrastive loss). The design of soft labeling further reduces the contrastive loss by introducing similarities between an anchor and randomly selected instances called relationship vectors [4]. Researchers minimized the distance between two different relationship vectors to transfer structural knowledge and achieve fast training speed (i.e., local relational loss). Global knowledge distillation uses the global model’s sample representation as an alternative view near the local model’s embedding. Concurrent optimization teaches the model semantics while regularizing data bias. These goals require no extra communication or computation.<\/p>\n\n\n\n

\"graphical
Figure 2. Comparison of the performance of two self-supervised learning models (FedSimCLR [5] and FedBYOL [6]) and their FedX-enhanced versions across communication rounds. FedEx improves model performance on all three benchmark datasets and with increasing communication rounds.<\/em><\/figcaption><\/figure>\n\n\n\n
\"chart,
Figure 3. Embedding analysis of baseline and FedX-enhanced models on CIFAR-10 comparing the feature angle difference.<\/em><\/figcaption><\/figure>\n\n\n\n

The experiments conducted by researchers confirm the need for both local and global knowledge distillation. It is also demonstrated that FedX can be used to improve existing algorithms (see Figure 2). FedX-enhanced models reported a lower angle difference between the local and global embeddings (see Figure 3-a), indicating that the local model can distill the refined knowledge of the global model. FedX-enhanced models also have larger inter-class angles, demonstrating better class discrimination (see Figure 3-b). The paper “FedX: Unsupervised Federated Learning with Cross Knowledge Distillation” will be presented at the 2022 European Conference on Computer Vision (ECCV).<\/p>\n\n\n\n

Paper link: https:\/\/arxiv.org\/abs\/2207.09158 (opens in new tab)<\/span><\/a><\/p>\n\n\n\n

[1] Zhang, Fengda, et al. \u201cFederated unsupervised representation learning.\u201d, ArXiv Preprint, 2020.<\/p>\n\n\n\n

[2] Wu, Yawen, et al. \u201cFederated Contrastive Representation Learning with Feature Fusion and Neighborhood Matching.\u201d, OpenReview, 2021.<\/p>\n\n\n\n

[3] McMahan, Brendan, et al. \u201cCommunication-efficient learning of deep networks from decentralized data.\u201d Artificial intelligence and statistics, 2017.<\/p>\n\n\n\n

[4] Tejankar, A, et al. \u201cISD: Self-supervised learning by iterative similarity distillation.\u201d, ICCV, 2021<\/p>\n\n\n\n

[5] Chen, T, et al.  \u201cA simple framework for contrastive learning of visual representations\u201d, ICML, 2020.<\/p>\n\n\n\n

[6] Grill, Jean-Bastien, et al. \u201cBootstrap your own latent-a new approach to self-supervised learning.\u201d, NeurIPS, 2020.<\/p>\n","protected":false},"excerpt":{"rendered":"

Federated learning is a new collaborative learning method that involves multiple decentralized edge devices to build a privacy-preserving shared data model without exchanging locally bound data. This technique is critical to many real-world scenarios where privacy is an issue, such as when personal data is stored on mobile devices or when patient records in hospital […]<\/p>\n","protected":false},"author":34512,"featured_media":874530,"template":"","meta":{"msr-url-field":"","msr-podcast-episode":"","msrModifiedDate":"","msrModifiedDateEnabled":false,"ep_exclude_from_search":false,"msr-content-parent":199560,"footnotes":""},"research-area":[],"msr-locale":[268875],"class_list":["post-874518","msr-blog-post","type-msr-blog-post","status-publish","has-post-thumbnail","hentry","msr-locale-en_us"],"msr_assoc_parent":{"id":199560,"type":"lab"},"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post\/874518"}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/types\/msr-blog-post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/users\/34512"}],"version-history":[{"count":5,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post\/874518\/revisions"}],"predecessor-version":[{"id":874548,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-blog-post\/874518\/revisions\/874548"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media\/874530"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media?parent=874518"}],"wp:term":[{"taxonomy":"msr-research-area","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/research-area?post=874518"},{"taxonomy":"msr-locale","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-locale?post=874518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}