TL;DR
This paper tackles the challenge of hyperparameter optimization (HO) when labeled data is scarce, a common issue in real-world machine learning. They propose using Bayesian model selection, which avoids the need for a separate validation set, by efficiently approximating the Hessian log-determinant, a computationally intensive component. Their method shows promise for improving performance in semi-supervised learning and learning from noisy labels.
What Problem Does This Paper Address?
Optimizing hyperparameters is crucial for getting the best performance out of machine learning models. Traditionally, this involves splitting the dataset into training and validation sets, using the validation set to evaluate different hyperparameter configurations. However, when labeled data is limited (e.g., in semi-supervised learning or when dealing with noisy labels), this approach becomes problematic. Reducing the training data to create a validation set can hurt the model's primary task performance. The paper addresses this dilemma by proposing a method that bypasses the need for a validation set altogether.
Methods
The core of the paper's contribution lies in enabling Bayesian model selection for hyperparameter optimization without a validation set. Bayesian model selection aims to maximize the marginal likelihood (ML) of the data given the hyperparameters. A key component of calculating ML is the log-determinant of the Hessian of the model's parameters. For deep neural networks, computing this exactly is computationally prohibitive due to the large number of parameters.
The authors explore and compare several efficient methods for approximating this Hessian log-determinant:
- Diagonal Approximation: Approximating the Hessian with a diagonal matrix.
- K-FAC (Kronecker-Factored Approximate Curvature): A popular method that approximates the Fisher Information Matrix (FIM) using a Kronecker product structure.
- Chebyshev Polynomial Approximation: Using Chebyshev polynomials to estimate the log-determinant.
- Stochastic Lanczos Quadrature (SLQ): A stochastic method that uses matrix-vector products to estimate the log-determinant.
They then demonstrate how these approximations can be used within a gradient-based optimization framework to tune hyperparameters, particularly those that influence loss functions (like regularization coefficients).
Datasets
The paper uses the following datasets for experiments:
- MNIST: Used for comparing log-determinant estimators on small neural networks.
- CIFAR-10 and CIFAR-100: Used for evaluating the proposed hyperparameter optimization method in semi-supervised learning and learning from noisy labels scenarios.
Key Insights and Ideas
- Bayesian Model Selection as a Validation-Free HO Tool: The paper convincingly shows that Bayesian model selection, when computationally feasible, can serve as a powerful alternative to traditional validation-based HO, especially in low-data regimes.
- Efficient Log-Determinant Estimation is Key: The practical applicability of Bayesian model selection hinges on efficient approximations of the Hessian log-determinant. The paper provides a valuable comparison of several such methods.
- Diagonal and SLQ Shine: For approximating the log-determinant of the Generalized Gauss-Newton (GGN) matrix, the diagonal approximation and Stochastic Lanczos Quadrature (SLQ) emerged as strong contenders, offering good accuracy with manageable computational cost.
- Hyperparameters Directly Affecting Loss are Prime Candidates: The proposed method is most directly applicable to hyperparameters that act as coefficients in loss functions (e.g., regularization strength).
Key Results
- Effective HO in Low-Data Scenarios: The proposed gradient-based HO using Bayesian model selection achieved performance improvements in both semi-supervised learning (FixMatch on CIFAR-10) and learning from noisy labels (Generalized Cross Entropy on CIFAR-10/100) compared to baselines using default hyperparameters.
- SLQ (LLO) Outperforms: In semi-supervised learning, SLQ with a "Last Layer Only" (LLO) approximation achieved a 2.5% improvement on CIFAR-10 with only 250 labeled data.
- Diag and SLQ are Good Approximators: For small networks, the diagonal approximation and SLQ (with m=8) were found to closely approximate the exact log-determinant of the GGN matrix.
- K-FAC and Chebyshev Less Suitable: These methods were found to be less appropriate for estimating the GGN matrix's log-determinant in their experiments.
Limitations and Future Work
- Applicability to Loss-Dependent Hyperparameters: The method is most directly applicable to hyperparameters that directly influence the loss function. The authors suggest that other hyperparameters (like learning rate or architecture choices) might be convertible or handled through other means.
- Computational Cost: While approximations are used, computing the log-determinant can still be computationally intensive, especially for very large networks. The LLO approach is proposed to mitigate this.
- Numerical Instability: The paper notes that full SLQ can sometimes suffer from numerical instability.
- Future Work: The authors believe their approach is widely applicable and could be extended to hyperparameter optimization for neural network architectures. They also suggest exploring other types of hyperparameters and more complex models.
Summary updated