RNN Decomposition
A modularization technique for decomposing trained RNNs into reusable and replaceable behavioral components.
This project studies whether trained recurrent neural networks can be decomposed into modules after training. The goal is to make learned behavior reusable and replaceable without retraining the entire model from scratch.
Trained RNNs are typically treated as monolithic artifacts, so reusing or replacing a learned behavior often requires retraining the full network.
The method identifies module boundaries inside a trained RNN and decomposes the model into units that capture distinct learned behaviors for reuse or replacement.
The evaluation used 5 canonical datasets and 4 model variants per dataset. Decomposition changed accuracy by -0.6% and BLEU by +0.10%; reuse changed accuracy by -2.38% and BLEU by +4.40%; replacement changed accuracy by -7.16% and BLEU by +0.98%.
Post-training modularity gives neural systems a maintainability path closer to software systems, where localized components can be reused or replaced independently.
Full approach and results are in the paper (Imtiaz et al., 2023).