[Paper Review] MLtuner: System Support for Automatic Machine Learning Tuning
MLtuner is a system that automatically tunes critical machine learning training hyperparameters—such as learning rate, batch size, and data staleness—using efficient snapshotting, branching, and optimization-guided trial-and-error during execution. It achieves state-of-the-art performance, outperforming existing auto-tuning methods by over an order of magnitude in speed and demonstrating robust convergence even with suboptimal initial settings across diverse ML workloads including image and video classification.
MLtuner automatically tunes settings for training tunables (such as the learning rate, the momentum, the mini-batch size, and the data staleness bound) that have a significant impact on large-scale machine learning (ML) performance. Traditionally, these tunables are set manually, which is unsurprisingly error-prone and difficult to do without extensive domain knowledge. MLtuner uses efficient snapshotting, branching, and optimization-guided online trial-and-error to find good initial settings as well as to re-tune settings during execution. Experiments show that MLtuner can robustly find and re-tune tunable settings for a variety of ML applications, including image classification (for 3 models and 2 datasets), video classification, and matrix factorization. Compared to state-of-the-art ML auto-tuning approaches, MLtuner is more robust for large problems and over an order of magnitude faster.
Motivation & Objective
- To address the manual, error-prone, and expertise-intensive process of tuning machine learning hyperparameters such as learning rate and batch size.
- To reduce the 'black art' of hyperparameter tuning by enabling automatic, online, and adaptive configuration during training.
- To improve training efficiency and convergence quality without incurring the high runtime overheads of prior auto-tuning approaches.
- To ensure robustness across diverse models, datasets, and hardware configurations, including large-scale problems.
Proposed method
- MLtuner integrates with existing training systems to perform rapid, online trial-and-error using short-duration trials to assess convergence rates.
- It employs efficient system-level mechanisms—snapshotting and branching—to maintain and switch between multiple training configurations with minimal overhead.
- The system uses optimization-guided search (e.g., Bayesian optimization via HyperOpt) to explore the hyperparameter space and identify promising settings.
- MLtuner dynamically re-tunes hyperparameters during training when convergence slows, adapting to changing conditions and improving long-term performance.
- It supports multiple tunables simultaneously, scaling to larger search spaces without modifying the underlying training framework.
- The system automatically determines optimal initial settings and can recover from poor initial choices through continuous re-tuning.
Experimental results
Research questions
- RQ1Can automatic hyperparameter tuning be performed efficiently and robustly during actual training, without requiring extensive offline tuning or expert knowledge?
- RQ2How does MLtuner’s online, adaptive tuning strategy compare to state-of-the-art hyperparameter optimization methods in terms of speed and convergence quality?
- RQ3To what extent can MLtuner recover from suboptimal initial hyperparameter settings through runtime re-tuning?
- RQ4How does MLtuner scale to larger hyperparameter search spaces involving multiple interdependent tunables?
- RQ5Does MLtuner achieve performance comparable to expert-tuned configurations across diverse ML models and datasets?
Key findings
- MLtuner achieved higher validation accuracy than manually tuned settings for Inception-BN (71.4% vs. 69.8%) and GoogLeNet (66.2% vs. 64.4%) on ImageNet.
- For the Cifar10 benchmark, MLtuner achieved expert-level accuracy with only 5× the training time of expert-tuned settings, demonstrating effective overhead amortization.
- MLtuner outperformed state-of-the-art auto-tuning methods like Spearmint and Hyperband by over an order of magnitude in training speed on large-scale problems.
- Even when initialized with randomly selected suboptimal settings, MLtuner successfully converged to high-accuracy models through runtime re-tuning, proving robustness.
- With 8 tunables (double the original 4), MLtuner maintained convergence to the same accuracy level, with tuning time increasing by only ~2×, showing scalability.
- The coefficient of variation (CoV) for convergence time across 10 runs was 0.22, indicating consistent performance despite stochasticity in initialization and floating-point operations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.