Lune

ICSE2023顶会

Decomposing a Recurrent Neural Network into Modules for Enabling Reusability and Replacement

Sayem Mohammad Imtiaz, Fraol Batole, Astha Singh, Rangeet Pan, Breno Dantas Cruz, Hridesh Rajan

摘要

Can we take a recurrent neural network (RNN) trained to translate between languages and augment it to support a new natural language without retraining the model from scratch? Can we fix the faulty behavior of the RNN by replacing portions associated with the faulty behavior? Recent works on decomposing a fully connected neural network (FCNN) and convolutional neural network (CNN) into modules have shown the value of engineering deep models in this manner, which is standard in traditional SE but foreign for deep learning models. However, prior works focus on the image-based multi-class classification problems and cannot be applied to RNN due to (a) different layer structures, (b) loop structures, (c) different types of input-output architectures, and (d) usage of both non-linear and logistic activation functions. In this work, we propose the first approach to decompose an RNN into modules. We study different types of RNNs, i.e., Vanilla, LSTM, and GRU. Further, we show how such RNN modules can be reused and replaced in various scenarios. We evaluate our approach against 5 canonical datasets (i.e., Math QA, Brown Corpus, Wiki-toxicity, Cline OOS, and Tatoeba) and 4 model variants for each dataset. We found that decomposing a trained model has a small cost (Accuracy: -0.6%, BLEU score: +0.10%). Also, the decomposed modules can be reused and replaced without needing to retrain.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Decomposing Convolutional Neural Networks into Reusable and Replaceable Modules 引用了 On decomposing a deep neural network into modules
  • Design by Contract for Deep Learning APIs 引用了 Decomposing Convolutional Neural Networks into Reusable and Replaceable Modules
  • Design by Contract for Deep Learning APIs 引用了 On decomposing a deep neural network into modules
  • BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural Networks 引用了 On decomposing a deep neural network into modules
  • Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deployment 引用了 Decomposing Convolutional Neural Networks into Reusable and Replaceable Modules
  • Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deployment 引用了 Design by Contract for Deep Learning APIs
  • Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in Deployment 引用了 On decomposing a deep neural network into modules
  • DNN Modularization via Activation-Driven Training 引用了 Decomposing Convolutional Neural Networks into Reusable and Replaceable Modules
  • DNN Modularization via Activation-Driven Training 引用了 On decomposing a deep neural network into modules
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Design by Contract for Deep Learning APIsShibbir Ahmed, Sayem Mohammad Imtiaz, Syeda Khairunnesa Samantha, Breno Dantas Cruz 等FSE 2023 · 10 次引用
  2. Inferring Data Preconditions from Deep Learning Models for Trustworthy Prediction in DeploymentShibbir Ahmed, Hongyang Gao, Hridesh RajanICSE 2024 · 3 次引用
  3. DNN Modularization via Activation-Driven TrainingTuan Ngo, Abid Hassan, Saad Shafiq, Nenad MedvidovićICSE 2026 · 2 次引用
  4. BDefects4NN: A Backdoor Defect Database for Controlled Localization Studies in Neural NetworksYisong Xiao, Aishan Liu, Xinwei Zhang, Tianyuan Zhang 等ICSE 2025

它引用的 Paper4

  1. Traceability Transformed: Generating more Accurate Links with Pre-Trained BERT ModelsJinfeng Lin, Yalin Liu, Qingkai Zeng, Meng Jiang 等ICSE 2021 · 124 次引用
  2. On decomposing a deep neural network into modulesRangeet Pan, Hridesh RajanFSE 2020 · 38 次引用
  3. Automating the removal of obsolete TODO commentsZhipeng Gao, Xin Xia, David Lo, John C. Grundy 等FSE 2021 · 34 次引用
  4. Decomposing Convolutional Neural Networks into Reusable and Replaceable ModulesRangeet Pan, Hridesh RajanICSE 2022 · 30 次引用

相关 Paper

  1. Patching Weak Convolutional Neural Network Models through Modularization and CompositionBinhang Qi, Hailong Sun, Xiang Gao, Hongyu ZhangASE 2022 · 13 次引用
  2. Modularizing while Training: A New Paradigm for Modularizing DNN ModelsBinhang Qi, Hailong Sun, Hongyu Zhang, Ruobing Zhao 等ICSE 2024 · 3 次引用
  3. AUTOTRAINER: An Automatic DNN Training Problem Detection and Repair SystemXiaoyu Zhang, Juan Zhai, Shiqing Ma, Chao ShenICSE 2021 · 62 次引用
  4. Recyclable Tuning for Continual Pre-trainingYujia Qin, Cheng Qian, Xu Han, Yankai Lin 等ACL Findings 2023 · 4 次引用
  5. TRADER: trace divergence analysis and embedding regulation for debugging recurrent neural networksGuanhong Tao, Shiqing Ma, Yingqi Liu, Qiuling Xu 等ICSE 2020 · 14 次引用
黄昏的海面,两侧是细线勾勒的悬崖