paperbot · PL 论文追踪

全部论文 待读 收藏

P2 On decomposing a deep neural network into modules

论将深度神经网络分解为模块
FSE Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2020匹配度 2/10 · 该论文讨论将多分类 DNN 分解为可复用模块,属于机器学习与软件模块化/程序语言边缘交叉,但未涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析等用户核心方向。引用 35 inbox
Rangeet Pan, Hridesh Rajan
crossref: 2026-09-12

AI 速览

一句话:提出把多分类 DNN 分解为可复用、可替换的模块,无需重训即可组合出新模型。

深度学习模型通常被当作单体组件:要增删某类识别逻辑或替换部分逻辑,必须修改训练样本并重新训练整个 DNN。本文主张像分解单体软件代码那样把 DNN 分解为 DNN 模块,并提出面向多分类问题的 DNN 分解方法。作者在 MNIST、EMNIST、FMNIST、KMNIST 四个经典任务上评估,表明分解后的模块可用于复用并组合成不同 DNN,也可在无需重新训练的情况下将一个 DNN 模块替换为另一个。由模块组合得到的 DNN 在测试准确率上至少不差于传统单体 DNN。

问题
深度学习模型缺乏模块化:模型整体作为单体,修改其识别逻辑需要调整训练样本并重新训练整个 DNN。
方法
提出将多分类 DNN 分解为 DNN 模块的方法,使模块可复用、可组合,并可在不重新训练的情况下替换。
评估
在 MNIST、EMNIST、FMNIST、KMNIST 四个经典多分类任务上验证,组合出的 DNN 的测试准确率至少不逊于传统单体 DNN。
原文摘要(Abstract)

Deep learning is being incorporated in many modern software systems. Deep learning approaches train a deep neural network (DNN) model using training examples, and then use the DNN model for prediction. While the structure of a DNN model as layers is observable, the model is treated in its entirety as a monolithic component. To change the logic implemented by the model, e.g. to add/remove logic that recognizes inputs belonging to a certain class, or to replace the logic with an alternative, the training examples need to be changed and the DNN needs to be retrained using the new set of examples. We argue that decomposing a DNN into DNN modules— akin to decomposing a monolithic software code into modules—can bring the benefits of modularity to deep learning. In this work, we develop a methodology for decomposing DNNs for multi-class problems into DNN modules. For four canonical problems, namely MNIST, EMNIST, FMNIST, and KMNIST, we demonstrate that such decomposition enables reuse of DNN modules to create different DNNs, enables replacement of one DNN module in a DNN with another without needing to retrain. The DNN models formed by composing DNN modules are at least as good as traditional monolithic DNNs in terms of test accuracy for our problems.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot5848,
  title = {On decomposing a deep neural network into modules},
  author = {Rangeet Pan and Hridesh Rajan},
  booktitle = {FSE},
  year = {2020},
  doi = {10.1145/3368089.3409668}
}