Abstract
NSML (Naver Smart Machine Learning) is an end-to-end Machine Learning as a Service (MLaaS) platform designed to streamline the transition from local experimentation to enterprise-scale production. By automating environment setup, optimizing GPU cluster scheduling, and providing integrated visualization tools, NSML allows researchers to focus on model architecture rather than infrastructure management. This paper details the system's architecture, its locality-aware scheduling, and its performance in real-world internal competitions.
Introduction
Modern deep learning workflows face significant friction in two primary areas: dependency management and resource collaboration. Setting up environments with specific versions of CUDA, cuDNN, and frameworks is error-prone and time-consuming. Furthermore, managing shared private GPU clusters without robust scheduling leads to resource fragmentation and reproducibility issues. NSML addresses these by providing a "full-stack" layer that manages the project lifecycle on private computing clusters, bridging the gap between hardware and mathematical frameworks.
System Architecture and Methods
NSML is a modular system that abstracts hardware using Docker containers, ensuring perfect reproducibility across different researchers and sessions.
The platform introduces several technical innovations to optimize cluster performance:
- Locality-Aware Scheduling: This minimizes data transfer time by prioritizing nodes where required datasets or container images already reside.
- Resource Defragmentation: The scheduler intelligently packs jobs to maintain large contiguous blocks of GPUs for heavy-duty tasks, preventing the cluster from becoming fragmented.
- Hybrid Interface: Users interact with the system via a Command Line Interface (CLI) for power-user tasks and a Web UI for monitoring and analysis.
- Automated Workflow: The system handles the entire sequence from request validation to environment preparation and job execution.
Experimental Validation
NSML was validated using both standard benchmarks and real-world internal competitions to ensure stability and performance.
- Benchmarks: The platform successfully achieved performance parity with state-of-the-art results, reaching 99.2% on MNIST and 76.44% on CIFAR-100.
- Real-World Applications: The system was battle-tested in internal competitions involving NLP (sentiment analysis, question similarity), Computer Vision (document rotation prediction), and Mobile Interaction (typo correction).
Insights on Visualization and Collaboration
A key finding from the platform's deployment was that integrated visualization tools directly improved cluster efficiency. When users were given visibility into their GPU utilization, they optimized their implementations, leading to a ~10% increase in high-utilization sessions.
Furthermore, the platform introduced a "Fork" workflow—similar to Git for code—allowing researchers to clone a colleague's exact training session (including code, data, and environment) and modify hyperparameters. This drastically lowered the barrier to collaborative experimentation and result reproduction.
Conclusion
NSML demonstrates that a well-integrated MLaaS platform can maintain high GPU utilization (averaging over 70%) while significantly improving researcher productivity. Future work will address dataset versioning, support for more complex media types in visualizations, and enhanced distributed learning across multiple nodes for massive datasets.
Summary updated