arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.06832cs.LGcs.AI
收藏

优化混合专家模型的鲁棒性与准确性:一种双模型方法

Optimizing Robustness and Accuracy in Mixture of Experts: A Dual-Model Approach

Illinois Institute of Technology(伊利诺伊理工学院);Drexel University(德雷塞尔大学)

Xu Zhang, Kaidi Xu, Ziqing Hu, Ren Wang

AI总结:

本文提出一种双模型策略,通过线性组合标准与鲁棒化MoE模型,并采用联合训练JTDMoE,在保持高自然准确率的同时增强对抗鲁棒性,实验验证了其有效性。

摘要:

混合专家模型(Mixture of Experts, MoE)在利用专门化专家网络处理复杂机器学习任务方面取得了显著成功。然而,它们对对抗性攻击的敏感性为在鲁棒性要求高的应用中的部署带来了关键挑战。本文探讨了一个关键问题:如何在保持较高自然准确率的同时,将鲁棒性融入MoE中。我们首先分析了MoE组件的脆弱性,发现专家网络比路由器更容易受到对抗性攻击。基于这一洞察,我们提出了一种有针对性的鲁棒训练技术,该技术整合了一种新颖的损失函数以增强MoE的对抗鲁棒性,仅需额外对一个专家进行鲁棒化处理,而不会影响训练或推理效率。在此基础上,我们引入了一种双模型策略,通过平滑参数将标准MoE模型与我们的鲁棒化MoE模型线性组合。这种方法允许对鲁棒性与准确性之间的权衡进行灵活控制。我们进一步提供了理论基础,为单个MoE和双模型推导了认证鲁棒性界限。为了突破鲁棒性和准确性的极限,我们提出了一种新颖的双模型联合训练策略JTDMoE。这种联合训练在鲁棒性和准确性方面均超越了单独训练模型所能达到的水平。在CIFAR-10和TinyImageNet数据集上使用ResNet18和Vision Transformer(ViT)架构的实验结果证明了我们提出方法的有效性。代码公开于https://github.com/TIML-Group/Robust-MoE-Dual-Model。

英文摘要:

Mixture of Experts (MoE) have shown remarkable success in leveraging specialized expert networks for complex machine learning tasks. However, their susceptibility to adversarial attacks presents a critical challenge for deployment in robust applications. This paper addresses the critical question of how to incorporate robustness into MoEs while maintaining high natural accuracy. We begin by analyzing the vulnerability of MoE components, finding that expert networks are notably more susceptible to adversarial attacks than the router. Based on this insight, we propose a targeted robust training technique that integrates a novel loss function to enhance the adversarial robustness of MoE, requiring only the robustification of one additional expert without compromising training or inference efficiency. Building on this, we introduce a dual-model strategy that linearly combines a standard MoE model with our robustified MoE model using a smoothing parameter. This approach allows for flexible control over the robustness-accuracy trade-off. We further provide theoretical foundations by deriving certified robustness bounds for both the single MoE and the dual-model. To push the boundaries of robustness and accuracy, we propose a novel joint training strategy JTDMoE for the dual-model. This joint training enhances both robustness and accuracy beyond what is achievable with separate models. Experimental results on CIFAR-10 and TinyImageNet datasets using ResNet18 and Vision Transformer (ViT) architectures demonstrate the effectiveness of our proposed methods. The code is publicly available at https://github.com/TIML-Group/Robust-MoE-Dual-Model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑