一句话:提出 MODA,一种激活驱动的模块化训练方法,使 DNN 模块化无需额外微调且大幅减少权重与重叠。
深度神经网络在适应需求变化时容易积累技术债并产生高昂的重训练成本,模块化有望提升其可复用性。现有训练中或训练后的分解方法存在权重重叠严重、模块精度损失、仅关注卷积层以及引入辅助掩码导致复杂度和训练时间增加等不足。本文提出 MODA,一种激活驱动的模块化训练方法:它通过直接调节网络层的激活输出,以类内亲和性、类间离散性和紧凑性三个模块化目标促进 DNN 的内在模块化。在三个知名 DNN 模型和五个不同规模数据集上的评估表明,与现有最优方法相比,MODA 训练时间减少 22%,生成的模块权重最多减少 24 倍、权重重叠最多减少 37 倍,同时无需额外微调即可保持原模型精度;在模块替换场景中,目标类精度平均提升 12%,且对其他类精度影响极小。
Deep Neural Networks (DNNs) tend to accrue technical debt and suffer from significant retraining costs when adapting to evolving requirements. Modularizing DNNs offers the promise of improving their reusability. Previous work has proposed techniques to decompose DNN models into modules both during and after training. However, these strategies yield several shortcomings, including significant weight overlaps and accuracy losses across modules, restricted focus on convolutional layers only, and added complexity and training time by introducing auxiliary masks to control modularity. In this work, we propose MODA, an activation-driven modular training approach. MODA promotes inherent modularity within a DNN model by directly regulating the activation outputs of its layers based on three modular objectives: intra-class affinity, inter-class dispersion, and compactness. MODA is evaluated using three well-known DNN models and five datasets with varying sizes. This evaluation indicates that, compared to the existing state-of-the-art, using MODA yields several advantages: (1) MODA accomplishes modularization with 22% less training time; (2) the resultant modules generated by MODA comprise up to 24x fewer weights and 37x less weight overlap while (3) preserving the original model’s accuracy without additional fine-tuning; in module replacement scenarios, (4) MODA improves the accuracy of a target class by 12% on average while ensuring minimal impact on the accuracy of other classes.