Tuning hyperparameters manually is time-consuming and error-prone at scale. PAI AutoML automates hyperparameter optimization (HPO) so you can find the best-performing model configuration faster, with less compute waste.
Concepts
Background information
In machine learning, hyperparameters are external parameters set before training begins. They remain fixed throughout the training run — unlike model parameters, which are continuously updated during learning.
HPO is the process of finding optimal hyperparameter values. For models with multiple hyperparameters, the hyperparameters form a multi-dimensional vector. HPO finds the specific vector value that yields optimal model performance — such as the minimum loss function value — across all possible value ranges.
For example, a model with two hyperparameters A and B — where A takes values a, b, or c and B takes values d or e — has six possible combinations. HPO identifies which combination yields the best model performance by training on each combination using the same dataset and comparing results.
HPO in AutoML
Real-world models typically have many hyperparameters of mixed types — integers and floating-point. Exhaustively evaluating every combination demands substantial compute. AutoML provides an automated HPO engine that efficiently searches the hyperparameter space on your behalf.
AutoML delivers:
Less manual effort: Automated search replaces hand-tuning, saving significant time and engineering effort.
Better model quality: Multiple PAI algorithms work together to locate optimal hyperparameter combinations quickly, producing more accurate models.
Lower compute cost: AutoML evaluates model performance during training and terminates unpromising trials early, so you get the best hyperparameters without evaluating every combination.
Flexible compute options: Run training jobs on either DLC or MaxCompute resources, whichever fits your infrastructure.
Use cases
AutoML applies to any machine learning task that requires hyperparameter tuning. Common scenarios include:
Binary classification — for example, determining whether a user is a paying user.
Regression — for example, estimating the payment amount a user makes within seven days.
Clustering — for example, determining the optimal number of store locations for a cosmetic brand in a city.
Recommendation — for example, fine-tuning ranking and retrieval models to improve Area Under Curve (AUC) metrics.
Deep learning — for example, improving accuracy on image or video multi-classification tasks.
Related topics
-
(Recommended) Describes how AutoML works and the relationship between experiments, trials, and training tasks. Read this before configuring your first experiment.
-
Describes how to create an experiment in the PAI console and configure key parameters.
-
Provides use cases for using AutoML to fine-tune hyperparameters.