Skip to main content
QUICK REVIEW

[Paper Review] Neural Network Retraining for Model Serving

Diego Klabjan, Xiaofeng Zhu|arXiv (Cornell University)|Apr 29, 2020
Domain Adaptation and Few-Shot LearningComputer Science18 references6 citations
TL;DR

This paper proposes a novel incremental retraining framework for neural network model serving that mitigates catastrophic forgetting and improves efficiency using multi-armed bandits (MAB) for dynamic data sampling and a new regularization term to preserve important neurons and synapses. The method achieves superior performance with reduced computational cost by selectively retraining key weights and replaying influential old data batches.

ABSTRACT

We propose incremental (re)training of a neural network model to cope with a continuous flow of new data in inference during model serving. As such, this is a life-long learning process. We address two challenges of life-long retraining: catastrophic forgetting and efficient retraining. If we combine all past and new data it can easily become intractable to retrain the neural network model. On the other hand, if the model is retrained using only new data, it can easily suffer catastrophic forgetting and thus it is paramount to strike the right balance. Moreover, if we retrain all weights of the model every time new data is collected, retraining tends to require too many computing resources. To solve these two issues, we propose a novel retraining model that can select important samples and important weights utilizing multi-armed bandits. To further address forgetting, we propose a new regularization term focusing on synapse and neuron importance. We analyze multiple datasets to document the outcome of the proposed retraining methods. Various experiments demonstrate that our retraining methodologies mitigate the catastrophic forgetting problem while boosting model performance.

Motivation & Objective

  • To address catastrophic forgetting in continual neural network retraining during model serving.
  • To reduce retraining computational cost by dynamically selecting only influential old data and key weights for retraining.
  • To improve model generalization and accuracy through a novel regularization term that preserves neuron and synapse importance.
  • To develop an efficient, scalable retraining framework that maintains model performance over time with limited memory and compute.
  • To integrate MAB-based sampling and dynamic weight optimization into a unified, generic retraining pipeline for CNNs, MLPs, and RNNs.

Proposed method

  • Uses a multi-armed bandit (MAB) algorithm to select mini-batches of old data based on loss decrease or weight magnitude change as rewards.
  • Applies MAB to select clusters of weights for optimization, where each cluster is treated as an arm and reward is based on loss reduction or weight update magnitude.
  • Introduces a new regularization term that encourages weight updates only when neuron representations remain stable, reducing forgetting.
  • Employs K-means clustering on weight changes across epochs to group important weights into clusters for selective retraining.
  • Combines MAB-based memory replay with the new regularization term to balance learning from new data and retention of old knowledge.
  • Uses epoch-based pre-training followed by MAB-driven fine-tuning to warm up weights before selective optimization.

Experimental results

Research questions

  • RQ1How can we efficiently retrain a neural network with new data while minimizing catastrophic forgetting?
  • RQ2Can MAB-based sampling of old data improve retraining efficiency and model accuracy compared to random or fixed replay strategies?
  • RQ3Does dynamic weight clustering and selective optimization reduce computational cost without sacrificing performance?
  • RQ4How does the proposed regularization term based on neuron and synapse importance affect model stability and generalization?
  • RQ5Can the MAB-based retraining framework be robust and effective across diverse architectures (CNN, MLP, RNN) and datasets?

Key findings

  • The MAB-based memory replay method achieved a mean accuracy of 0.8511 on the SEA dataset with a standard deviation of only 0.0005 across 10 random seeds, demonstrating high robustness.
  • The combination of batch normalization, clustering, and MAB improved test accuracy on CIFAR-10-E by 1.49% over baseline BN and by 1.12% over Clustering+MAB alone.
  • On the MNIST-A dataset, BN+Clustering+MAB achieved 99.14% accuracy, outperforming BN alone (98.88%) and Clustering+MAB (99.09%).
  • The method improved model generalization by 4.9% on average across six datasets when comparing Clustering+MAB to BN alone, with gains up to 16.0% on certain datasets.
  • The optimal number of weight clusters for MAB was found to be k=3, as it yielded the highest validation accuracy on the SEA dataset.
  • The MAB-based retraining session showed balanced selection of weight clusters, with each cluster selected approximately equally over time, indicating stable exploration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.