使用生成式模型及用戶選擇於具有非獨立同分布資料之聯邦學習

Using Generative Model and Client Selection for Federated Learning with Non-IID Data

檔案

日期

2024

類型

語言

英文

摘要

聯邦學習 (Federated Learning) 可在保障用戶數據隱私和安全的前提下進行協同模型訓練。聯邦學習允許多個用戶在用戶端訓練本地模型,並將更新的模型發送至中央伺服器,中央伺服器再將這些更新整合,以提升全局模型的性能。目前的聯邦學習研究多假設數據分布為獨立同分布 (independent and identically distributed, IID),然而實際應用中,數據通常是非獨立同分布 (non-IID)。因此,本篇論文將探討當數據為非獨立同分布的情況下,如何提升聯邦學習的效能。考慮到不同用戶的數據量和數據類型的差異,我們提出了兩種方法。首先,我們採用了條件生成對抗網路 (Conditional Generative Adversarial Network, CGAN),針對用戶特定的資料類別進行數據增強。條件生成對抗網路可以生成更多具有多樣性的數據樣本,從而提升模型的辨識能力,將辨識度從原本的 89.30%,提升到 89.41%,不僅提高模型在非獨立同分布情況下的表現,還能加快收斂速度,使模型訓練更有效率。此外,我們還提出了一種創新的用戶選擇機制,透過選擇貢獻度較大的用戶參與訓練,實現模型的快速收斂,接著隨機選取用戶並採用平等聚合的方式完成模型更新,以提升模型泛化能力及穩定性。在 MNIST 數據集中,FedCS 的模型辨識度達到 90.38%,優於 FedAvg 的 89.30% 和FedFA 的 90.32%,模型收斂速度也從 FedAvg 的 150 回合和 FedFA 的 60 回合,提升到 FedCS 的 25 回合。在 FEMNIST 資料集中,FedCS 的圖片辨識度是 75.15%,優於FedAvg 的 73.18% 和 FedFA 的 73.49%,針對模型收斂,FedFA 解決了傳統 FedAvg 中常見的收斂波動問題,而 FedCS 不僅可以穩定損失函數,還可以在最初 20 輪聚合期間加速模型的收斂,從而實現更高效的訓練。
Federated learning is a machine learning approach that resolves privacy and security concerns associated with centralized data training. With federated learning, clients cooperatively train the global model without sharing their local data, ensuring clients' privacy while achieving global model optimization. Most existing researches focus on the scenario with independent and identically distributed (IID) data, while real-world applications often involve non-IID data, i.e., there are variations in data volume and category across different clients. In this thesis, we propose two approaches to address the non-IID data problem in federated learning. Firstly, we propose to employ conditional generative adversarial networks (CGANs) to augment data specific to client categories. A diverse set of data samples are generated using CGANs to enhance the model's recognition capabilities. This approach improves the model’s recognition accuracy from 89.30% to 89.41% in the scenario with non-IID data and accelerates convergence, making the training process more efficient. Additionally, we propose a novel client selection mechanism to improve the model's generalization and stability. The proposed client selection method firstly selects clients with higher contributions to participate in the training. After all clients have been selected once, we randomly select clients and aggregate them with equal weights to update the model. This approach achieves a recognition accuracy of 90.38% on the MNIST dataset, outperforming both FedAvg's 89.30% and FedFA's 90.32%. In terms of convergence speed, the proposed FedCS converges in 25 rounds, whereas FedAvg requires 150 rounds to converge, and FedFA takes 60 rounds to reach convergence. For the FEMNIST dataset, the proposed FedCS achieves a recognition accuracy of 75.15%, surpassing both FedAvg's 73.18% and FedFA's 73.49%. While FedFA addresses the convergence fluctuations commonly seen with traditional FedAvg, FedCS stabilizes the loss function and accelerates the model’s convergence during the initial 20 rounds of aggregation, leading to more efficient training.

所屬典藏

電信工程研究所
顯示完整詮釋資料 統計資料

引用此條目

Lee, T.-H. (2024). Using Generative Model and Client Selection for Federated Learning with Non-IID Data. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/4399

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/4399