以自適應臨近參數項之聯邦優化
Adaptive Federated Proximal Optimization
摘要
在聯邦學習之中,統計異質性之下的數量偏斜,以及系統異質性之下的計算速度 不同,導致了參與訓練的裝置進行了不同次數的迭代,最終會導致目標不一致性的產 生,目標不一致性在優化的過程中會導致最終存在一個無法消除的損失項。而加入臨 近參數項去減少目標不一致性之後,卻會會導致達到目標準確率需要更多的溝通回合。 而溝通的回合在聯邦是學習之中,卻是非常昂貴的,多次的溝通會大量地消耗裝置的 電量同時也會消耗掉裝置的溝通流量,近一步影響到裝置的參與意願。
本論文提出 AdaFedProx,自適應地調整臨近參數項,在減少目標不一致性的影 響,同時避免了加入臨近項所帶來更新緩慢的問題,以此減少達到目標準確率所需的 溝通回合數,最終達到節省溝通成本的目標。AdaFedProx 可以與目前最先進的聯邦優 化技術結合,諸如 FedNova。可以補足 FedNova 加入 proximal term 之後更新緩慢的問 題,近一步提升 FedNova 的表現。我們以實驗來呈現 AdaFedProx 表現的進步,從實驗 的結果可以驗證我們提出的假說,AdaFedProx 適用於統計異質性與系統異質性的情況。 在圖片分類的任務以及下一字符的預測任務上,AdaFedProx 達到目標準確度所需要的 溝通回合數我們在統計異質性的情況之下平均減少了 33.8%,在系統異質性之下平均省 下 33.7% 的溝通回合數。以 1.4 百萬的參數模型訓練一回合需要 3 分鐘的估計之下,我 們平均省下了約 12 個小時的訓練時間。在給定訓練回合數的情況之下,AdaFedProx 在 統計異質性的情況之下平均提升了 2.7%,在系統異質性之下平均提升了 3% 的準確率。
本論文提出 AdaFedProx,自適應地調整臨近參數項,在減少目標不一致性的影 響,同時避免了加入臨近項所帶來更新緩慢的問題,以此減少達到目標準確率所需的 溝通回合數,最終達到節省溝通成本的目標。AdaFedProx 可以與目前最先進的聯邦優 化技術結合,諸如 FedNova。可以補足 FedNova 加入 proximal term 之後更新緩慢的問 題,近一步提升 FedNova 的表現。我們以實驗來呈現 AdaFedProx 表現的進步,從實驗 的結果可以驗證我們提出的假說,AdaFedProx 適用於統計異質性與系統異質性的情況。 在圖片分類的任務以及下一字符的預測任務上,AdaFedProx 達到目標準確度所需要的 溝通回合數我們在統計異質性的情況之下平均減少了 33.8%,在系統異質性之下平均省 下 33.7% 的溝通回合數。以 1.4 百萬的參數模型訓練一回合需要 3 分鐘的估計之下,我 們平均省下了約 12 個小時的訓練時間。在給定訓練回合數的情況之下,AdaFedProx 在 統計異質性的情況之下平均提升了 2.7%,在系統異質性之下平均提升了 3% 的準確率。
In federated optimization, the quantity skew of statistical heterogeneity and the different computation speed of system heterogeneity lead to various local training iterations. Objective inconsistency, which causes a non-vanished error during the training process, happens under various local training iterations. Adding the proximal term in the objective function makes the model take more communication rounds to achieve target accuracy. However, communication rounds are expensive in federated learning. More communication costs more power to clients, which lowers the clients’ willingness to participate.
This thesis proposes a novel framework called, AdaFedProx, which adaptively adjust prox- imal term to mitigate the objective inconsistency and avoid slow model update in the same train- ing process, which saves the communication rounds to achieve target accuracy. AdaFedProx can also combine with current state-of-the-art methods of federated learning, such as FedNova. Un- der the image classification task and next text prediction task, we use experiments to demonstrate that AdaFedProx mitigates the objective inconsistency and avoids the slow model update in the same training process. Experiments results show that AdaFedProx is suited for both statistical and system heterogeneity. AdaFedProx save 33.8%, 33.7% in statistical and system heterogene- ity. Take 1.4 million parameters training in federated learning as an example; we save around 12 hours of training time. AdaFedProx also achieves higher accuracy with given communication rounds. AdaFedProx increases accuracy by 2.7%, 3% in statistical and system heterogeneity.
This thesis proposes a novel framework called, AdaFedProx, which adaptively adjust prox- imal term to mitigate the objective inconsistency and avoid slow model update in the same train- ing process, which saves the communication rounds to achieve target accuracy. AdaFedProx can also combine with current state-of-the-art methods of federated learning, such as FedNova. Un- der the image classification task and next text prediction task, we use experiments to demonstrate that AdaFedProx mitigates the objective inconsistency and avoids the slow model update in the same training process. Experiments results show that AdaFedProx is suited for both statistical and system heterogeneity. AdaFedProx save 33.8%, 33.7% in statistical and system heterogene- ity. Take 1.4 million parameters training in federated learning as an example; we save around 12 hours of training time. AdaFedProx also achieves higher accuracy with given communication rounds. AdaFedProx increases accuracy by 2.7%, 3% in statistical and system heterogeneity.