AlignedHPO: Efficient Surrogate-Guided Loss Hyperparameter Optimization
Ivan Karpukhin, Andrey Savchenko
Abstract
Modern deep learning losses involve multiple hyperparameters, such as weights, scales, and margins, typically tuned manually or through expensive black-box optimization despite their differentiability. We propose AlignedHPO, an efficient framework for tuning differentiable loss hyperparameters using gradient alignment and surrogate validation objectives. Our method employs Jacobian-vector products to reduce hypergradient computation time and memory, while differentiable metric surrogates guide optimization toward task-specific evaluation criteria. We address gradient magnitude ambiguity and stochastic instability through normalized alignment and gradient smoothing. Experiments with generalized Focal Loss and ArcFace demonstrate effective adaptation across long-tailed classification and open-set face recognition. AlignedHPO achieves competitive or improved performance compared to implicit differentiation, with nearly 12x faster hypergradient computation. These results highlight the potential of efficient surrogate-guided loss hyperparameter optimization.
Create a lesson
Related papers
Minimax-Optimal Small-Loss Regret in Online Convex Optimization and Applications to Contextual Search and Online Inverse Optimization
Shared title terminology · Shinsaku Sakaue
Loss-Guided Tsetlin Machines: Making the Learning Objective Explicit
Shared title terminology · Mayur Shende, Runar Helin, Ole-Christoffer Granmo et al.
Federated Learning of Car Aerodynamics Surrogates with Spectral Optimizers
Shared title terminology · Arman Bolatov, Nikolay Spitsyn, Daniil Medyakov et al.
Variance-Optimal Counterfactual Policy Design for Sample-Efficient Online A/B Testing
Shared title terminology · Shashank Gupta, Subhadeep Maji
Efficient VLA Reinforcement Learning via Subchunk Rollouts in Latent World Models
Shared title terminology · Nan Tang, Han-Tao Zhang, Jing-Cheng Pang et al.
Turnout: Adaptive Attention Switching for Efficient Reasoning
Shared title terminology · Anna Kuzina, Mart van Baalen, Paul N. Whatmough et al.