ModelCI-e: Enabling Continual Learning in Deep Learning Serving Systems

Yizheng Huang, Huaizheng Zhang, Yonggang Wen, Peng Sun, Nguyen Binh Duong TaarXiv 2021 · OpenReview

Abstract

MLOps is about taking experimental ML models to production, i.e., serving the models to actual users. Unfortunately, existing ML serving systems do not adequately handle the dynamic environments in which online data diverges from offline training data, resulting in tedious model updating and deployment works. This paper implements a lightweight MLOps plugin, termed ModelCI-e (continuous integration and evolution), to address the issue. Specifically, it embraces continual learning (CL) and ML deployment techniques, providing end-to-end supports for model updating and validation without serving engine customization. ModelCI-e includes 1) a model factory that allows CL researchers to prototype and benchmark CL models with ease, 2) a CL backend to automate and orchestrate the model updating efficiently, and 3) a web interface for an ML team to manage CL service collaboratively. Our preliminary results demonstrate the usability of ModelCI-e, and indicate that eliminating the interference between model updating and inference workloads is crucial for higher system efficiency.

Introduction

In real-world deployments, deep learning (DL) models often face the challenge of concept drift, where production data diverges from the initial training set. This leads to "stale" models that degrade in performance over time. Currently, updating these models is a manual, labor-intensive process requiring tight coordination between research and DevOps teams. While individual tools exist for monitoring or specific continual learning (CL) algorithms, there is a distinct lack of integrated systems that manage the full lifecycle—from drift detection to automated retraining and safe re-deployment—within standard serving frameworks like TensorFlow Serving or Triton.

Methodology: The ModelCI-e Architecture

To bridge this gap, we propose ModelCI-e (Continuous Integration and Evolution), a lightweight plugin designed to integrate with existing serving systems. The architecture, illustrated in Figure 1, is built upon four pillars:

  1. Model Factory: Provides a sandbox for prototyping CL models using high-level templates and a library of CL-specific loss functions (e.g., Elastic Weight Consolidation).
  2. CL Server: Acts as the system's orchestrator. It features a Drift Detector to monitor performance and a Collector to gather new data from an in-memory Redis cache for retraining.
  3. CL Envelope: Automates the retraining process, utilizing a "Scenario Switch" to distinguish between learning new classes (NC) or new instances (NI).
  4. Evaluator: Validates updated models through service-level checks (e.g., A/B testing) to prevent catastrophic forgetting before deployment.
The ModelCI-e plugin architecture and its integration with the model serving lifecycle.

The system was evaluated using the CORe50 dataset for continuous object recognition (ResNet50) and the IMDB Review dataset for text classification (BERT).

Key Results and System Interference

ModelCI-e successfully demonstrates a "no human involved" update loop, automating model replacement based on drift thresholds. However, a critical finding is the significant resource contention between training and inference workloads when sharing GPU resources.

As shown in Figure 3, concurrent retraining jobs can severely impact production service levels. For instance, training a Faster R-CNN model alongside active inference increased the 95th percentile tail latency by over 3x. Conversely, the inference workload also hindered training efficiency, increasing the time per epoch by a factor of 1.31 to 2.74 across various model structures.

Impact of concurrent training and inference on (a) inference latency and (b) training slowdown.

Conclusion and Future Work

While ModelCI-e effectively automates the CL workflow and improves collaboration through its unified dashboard, resource management remains a challenge. Future work focuses on developing a Deep Reinforcement Learning (DRL) based scheduling algorithm to intelligently orchestrate retraining tasks. This aims to maximize GPU utilization while strictly adhering to Service Level Objectives (SLOs) for inference latency.

Summary updated

Abstract

MLOps is about taking experimental ML models to production, i.e., serving the models to actual users. Unfortunately, existing ML serving systems do not adequately handle the dynamic environments in which online data diverges from offline training data, resulting in tedious model updating and deployment works. This paper implements a lightweight MLOps plugin, termed ModelCI-e (continuous integration and evolution), to address the issue. Specifically, it embraces continual learning (CL) and ML deployment techniques, providing end-to-end supports for model updating and validation without serving engine customization. ModelCI-e includes 1) a model factory that allows CL researchers to prototype and benchmark CL models with ease, 2) a CL backend to automate and orchestrate the model updating efficiently, and 3) a web interface for an ML team to manage CL service collaboratively. Our preliminary results demonstrate the usability of ModelCI-e, and indicate that eliminating the interference between model updating and inference workloads is crucial for higher system efficiency.
BibTeX
@misc{huang2021modelci,
  author = {Yizheng Huang and Huaizheng Zhang and Yonggang Wen and Peng Sun and Nguyen Binh Duong Ta},
  title = {{ModelCI-e: Enabling Continual Learning in Deep Learning Serving Systems}},
  year = {2021},
  eprint = {2106.03122},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.03122},
}
Figure