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

NeMo:一种用于分解DNN模型的神经元级边训练边模块化方法

NeMo: A Neuron-Level Modularizing-While-Training Approach for Decomposing DNN Models

State Key Laboratory of Complex \& Critical Software Environment, Beihang University Beijing China;Peng Cheng Laboratory Shenzhen China;National University of Singapore Singapore;Beihang University Beijing China;Hangzhou Innovation Institute of Beihang University Hangzhou China;State Key Laboratory of Complex \& Critical Software Environment, Beihang University;Peng Cheng Laboratory;National University of Singapore;Beihang University;Hangzhou Innovation Institute of Beihang University

Xiaohan Bi, Binhang Qi, Hailong Sun, Xiang Gao, Yue Yu, Xiaojun Liang

AI总结:

针对现有边训练边模块化方法难以处理大规模Transformer模型的问题,本文提出神经元级方法NeMo,通过对比学习和复合损失函数实现可扩展的DNN模块化,实验显示模块准确率平均提升1.72%、规模缩减58.10%。

摘要:

随着深度神经网络(DNN)模型越来越多地融入现代软件系统,高昂的构建成本已成为一项重大挑战。模型复用已被广泛用于降低训练成本,但不加区分地复用整个模型可能会带来显著的推理开销。因此,DNN模块化受到关注,它通过分解DNN模型来实现模块复用。新兴的边训练边模块化(MwT)范式将模块化融入训练过程,优于训练后模块化方法。然而,现有的MwT方法主要针对卷积核级别的小规模CNN模型,难以应对多样化的DNN和大规模模型,尤其是基于Transformer的模型。为解决这些局限性,我们提出NeMo,一种可扩展且可泛化的MwT方法。NeMo在神经元级别运行——这是所有DNN共有的基本组成部分——确保其适用于Transformer及各种架构。我们设计了一种基于对比学习的模块化训练方法,并采用有效的复合损失函数,使其能够扩展到大规模模型。在两个分类数据集上对两个基于Transformer的模型和四个CNN模型进行的综合实验表明,NeMo优于最先进的MwT方法。结果显示,模块分类准确率平均提升1.72%,模块规模平均缩减58.10%,证明了其在CNN和大规模基于Transformer的模型上的有效性。一项针对开源项目的案例研究表明,NeMo在实际场景中具有潜在优势,为可扩展且可泛化的DNN模块化提供了一种有前景的方法。

英文摘要:

With the growing incorporation of deep neural network (DNN) models into modern software systems, the prohibitive construction costs have become a significant challenge. Model reuse has been widely applied to reduce training costs, but indiscriminately reusing entire models may incur significant inference overhead. Consequently, DNN modularization has gained attention, enabling module reuse by decomposing DNN models. The emerging modularizing-while-training (MwT) paradigm, which incorporates modularization into training, outperforms modularizing-after-training approaches. However, existing MwT methods focus on small-scale CNN models at the convolutional kernel level and struggle with diverse DNNs and large-scale models, particularly Transformer-based models. To address these limitations, we propose NeMo, a scalable and generalizable MwT approach. NeMo operates at the neuron level fundamental component common to all DNNs-ensuring applicability to Transformers and various architectures. We design a contrastive learning-based modular training method with an effective composite loss function, enabling scalability to large-scale models. Comprehensive experiments on two Transformer-based models and four CNN models across two classification datasets demonstrate NeMo's superiority over state-of-the-art MwT methods. Results show average gains of 1.72% in module classification accuracy and 58.10% reduction in module size, demonstrating efficacy across both CNN and large-scale Transformer-based models. A case study on open-source projects shows NeMo's potential benefits in practical scenarios, offering a promising approach for scalable and generalizable DNN modularization.

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

↑