SMLT: A Serverless Framework for Scalable and Adaptive Machine Learning Design and Training

Ahsan Ali, Syed Zawad, Paarijaat Aditya, Istemi Ekin Akkus, Ruichuan Chen, Feng YanarXiv 2022 · DOI

Introduction

Training modern machine learning (ML) models is a moving target. Workflows like Neural Architecture Search (NAS) and dynamic batching mean that resource demands change constantly during a single training run. Traditionally, engineers use Infrastructure-as-a-Service (IaaS) like AWS EC2, which requires manual, expert-level configuration of VM types and counts. This often leads to "over-provisioning"—paying for expensive resources that sit idle—or "under-provisioning," which slows down training.

SMLT is the first fully automated serverless framework designed to handle the heavy lifting of modern ML training. By combining a lightweight Bayesian optimizer with a novel hierarchical synchronization strategy, it overcomes traditional serverless limitations to deliver up to 8x faster training speeds and 3x lower costs compared to state-of-the-art VM-based and serverless systems.

The Serverless Challenge

Serverless computing (Function-as-a-Service) offers a "pay-as-you-go" alternative, but it has been historically poor for ML training due to three primary quirks: statelessness, execution limits (often 15 minutes), and communication bottlenecks.

In standard serverless setups, communication time actually increases as you add more workers because of storage contention. As shown in the evaluation of BERT-Small, while adding workers reduces computation time per node, the overhead of downloading model updates begins to dominate the total iteration time as the cluster scales.

Figure 3: Computation vs. communication trade-offs and breakdown for BERT-Small. As worker count increases, communication overhead (primarily download time) becomes the dominant factor.

Methods and Innovations

SMLT treats serverless functions as transient workers managed by an intelligent "End Client." Key innovations include:

  • Adaptive Scheduling & Bayesian Optimization: Instead of manual configuration, SMLT uses a lightweight Bayesian optimizer to find the "sweet spot" of memory size and worker count based on user goals, such as finishing within a specific budget.
  • Hierarchical Model Synchronization: To avoid the massive overhead of every worker talking to a central storage point, SMLT implements a sharding approach. Workers are grouped to aggregate local "shards" of gradients before updating a global parameter store.
  • Hybrid Storage: SMLT uses a two-tier system: Object Storage (S3) for infrequent tasks like loading code, and In-Memory Key-Value Stores (Redis) for high-frequency gradient synchronization.
  • Fault Tolerance: A dedicated Task Scheduler monitors progress. If a worker hits the 15-minute execution limit, the scheduler automatically restarts it from the last checkpoint, making the platform limits invisible to the user.

Key Results

The researchers evaluated SMLT using industry-standard models including ResNet-50 for Computer Vision and BERT for Natural Language Processing.

  • Speed and Cost: SMLT achieved up to an 8x reduction in total training time compared to existing serverless frameworks like Siren and Cirrus, and a 3x reduction in monetary costs compared to VM-based MLaaS platforms.
  • Scalability: Unlike previous serverless attempts that only worked for simple models (like MNIST), SMLT successfully trained large-scale models with billions of parameters.
  • Efficiency in Exploration: The authors found that the cost of finding the right VM configuration can consume up to 60% of a total budget in traditional setups. SMLT’s serverless approach makes this exploration nearly free by automating resource mapping.

Conclusion

SMLT demonstrates that serverless architectures can be highly effective for large-scale ML training when coupled with intelligent scheduling and hierarchical communication. While currently bound by CPU compute speeds due to the lack of serverless GPUs on major platforms, the framework's architectural benefits are designed to translate directly to GPU-enabled serverless functions as they become available.

Summary updated

BibTeX
@misc{ali2022smlt,
  author = {Ahsan Ali and Syed Zawad and Paarijaat Aditya and Istemi Ekin Akkus and Ruichuan Chen and Feng Yan},
  title = {{SMLT: A Serverless Framework for Scalable and Adaptive Machine Learning Design and Training}},
  year = {2022},
  eprint = {2205.01853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.01853},
}
Figure