FedDebug:面向联邦学习应用的系统化调试方法
FedDebug: Systematic Debugging for Federated Learning Applications
AI总结:
FedDebug 通过记录回放仿真和基于神经元激活的差分测试,实现联邦学习训练过程的交互式细粒度调试与无测试数据的自动故障客户端定位,显著提升调试效率。
摘要:
在联邦学习(FL)中,客户端独立训练本地模型,并将其共享给中央聚合器以构建全局模型。由于无法访问客户端数据且采用协作训练方式,FL 对具有数据隐私顾虑的应用(如医学影像)具有吸引力。然而,这些 FL 特性也给调试带来了前所未有的挑战。当全局模型性能下降时,确定导致问题的训练轮次和客户端是一个主要痛点。开发人员只能通过对客户端子集进行试错式调试,希望提高全局模型的准确率,或让后续 FL 轮次重新调整模型,这些做法既耗时又成本高昂。\n我们设计了一个系统化的故障定位框架 FedDebug,在两个方面推动了 FL 调试的发展。首先,FedDebug 通过利用记录与回放技术构建一个模拟真实 FL 过程的仿真环境,实现了对 FL 实时协作训练的交互式调试。FedDebug 的断点功能可以帮助检查 FL 状态(轮次、客户端和全局模型),并在不同轮次和客户端模型之间无缝切换,从而实现细粒度的逐步检查。其次,FedDebug 无需任何测试数据和标签即可自动识别导致全局模型性能下降的客户端——而测试数据和标签对现有调试技术来说都是必不可少的。FedDebug 的优势来源于将差分测试与神经元激活相结合,以确定偏离正常行为的客户端。FedDebug 在查找单个故障客户端时达到 100% 的准确率,在查找多个故障客户端时达到 90.3% 的准确率。FedDebug 的交互式调试在训练期间仅产生 1.2% 的开销,而定位一个故障客户端仅需一轮训练时间的 2.1%。
英文摘要:
In Federated Learning (FL), clients independently train local models and share them with a central aggregator to build a global model. Impermissibility to access clients' data and collaborative training make FL appealing for applications with data-privacy concerns, such as medical imaging. However, these FL characteristics pose unprecedented challenges for debugging. When a global model's performance deteriorates, identifying the responsible rounds and clients is a major pain point. Developers resort to trial-and-error debugging with subsets of clients, hoping to increase the global model's accuracy or let future FL rounds retune the model, which are time-consuming and costly. We design a systematic fault localization framework, FedDebug, that advances the FL debugging on two novel fronts. First, FedDebug enables interactive debugging of realtime collaborative training in FL by leveraging record and replay techniques to construct a simulation that mirrors live FL. FedDebug's breakpoint can help inspect an FL state (round, client, and global model) and move between rounds and clients' models seamlessly, enabling a fine-grained step-by-step inspection. Second, FedDebug automatically identifies the client(s) responsible for lowering the global model's performance without any testing data and labels--both are essential for existing debugging techniques. FedDebug's strengths come from adapting differential testing in conjunction with neuron activations to determine the client(s) deviating from normal behavior. FedDebug achieves 100% accuracy in finding a single faulty client and 90.3% accuracy in finding multiple faulty clients. FedDebug's interactive debugging incurs 1.2% overhead during training, while it localizes a faulty client in only 2.1% of a round's training time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。