You Only Train Once
Not on the map. Why?
Abstract (arXiv)
The title of this paper is perhaps an overclaim. Of course, the process of creating and optimizing a learned model inevitably involves multiple training runs which potentially feature different architectural designs, input and output encodings, and losses. However, our method, You Only Train Once (YOTO), indeed contributes to limiting training to one shot for the latter aspect of losses selection and weighting. We achieve this by automatically optimizing loss weight hyperparameters of learned models in one shot via standard gradient-based optimization, treating these hyperparameters as regular parameters of the networks and learning them. To this end, we leverage the differentiability of the composite loss formulation which is widely used for optimizing multiple empirical losses simultaneously and model it as a novel layer which is parameterized with a softmax operation that satisfies the inherent positivity constraints on loss hyperparameters while avoiding degenerate empirical gradients. We complete our joint end-to-end optimization scheme by defining a novel regularization loss on the learned hyperparameters, which models a uniformity prior among the employed losses while ensuring boundedness of the identified optima. We evidence the efficacy of YOTO in jointly optimizing loss hyperparameters and regular model parameters in one shot by comparing it to the commonly used brute-force grid search across state-of-the-art networks solving two key problems in computer vision, i.e. 3D estimation and semantic segmentation, and showing that it consistently outperforms the best grid-search model on unseen test data. Code will be made publicly available.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 51 of its 77 references that are in the map. First posted on arXiv 4 Jun 2025.
Builds on
51 of 77 references.
References · 51
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2017Mask R-CNNcited by 7,277
- 20233D Gaussian Splatting for Real-Time Radiance Field Renderingcited by 6,226
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,859
- 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,527
- 2019nuScenes: A multimodal dataset for autonomous drivingcited by 4,523
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,241
38 more
- 2017ScanNet: Richly-annotated 3D Reconstructions of Indoor Scenescited by 3,117
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2015Fast R-CNNcited by 2,933
- 2019Scalability in Perception for Autonomous Driving: Waymo Open Datasetcited by 2,451
- 2018DARTS: Differentiable Architecture Searchcited by 1,798
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2014Depth Map Prediction from a Single Image using a Multi-Scale Deep Networkcited by 1,274
- 2023Argoverse 2: Next Generation Datasets for Self-Driving Perception and Forecastingcited by 707
- 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 699
- 2019Meta-Learning with Implicit Gradientscited by 525
- 2018BOHB: Robust and Efficient Hyperparameter Optimization at Scalecited by 470
- 2018Bilevel Programming for Hyperparameter Optimization and Meta-Learningcited by 405
- 2024UniDepth: Universal Monocular Metric Depth Estimationcited by 382
- 2017Population Based Training of Neural Networkscited by 367
- 2015Gradient-based Hyperparameter Optimization through Reversible Learningcited by 360
- 2019Searching for A Robust Neural Architecture in Four GPU Hourscited by 260
- 2020A Comprehensive Survey of Neural Architecture Search: Challenges and Solutionscited by 254
- 2017Forward and Reverse Gradient-Based Hyperparameter Optimizationcited by 234
- 2016Hyperparameter optimization with approximate gradientcited by 233
- 2015Non-stochastic Best Arm Identification and Hyperparameter Optimizationcited by 221
- 2018A System for Massively Parallel Hyperparameter Tuningcited by 202
- 2019Understanding and Robustifying Differentiable Architecture Searchcited by 178
- 2020On the Iteration Complexity of Hypergradient Computationcited by 155
- 2016Fast Bayesian Optimization of Machine Learning Hyperparameters on Large Datasetscited by 132
- 2014Bayesian Optimization with Unknown Constraintscited by 109
- 2017Constrained Bayesian Optimization with Noisy Experimentscited by 104
- 2014Freeze-Thaw Bayesian Optimizationcited by 90
- 2015Predictive Entropy Search for Multi-objective Bayesian Optimizationcited by 88
- 2020Max-value Entropy Search for Multi-Objective Bayesian Optimization with Constraintscited by 81
- 2019NAS evaluation is frustratingly hardcited by 70
- 2018Reviving and Improving Recurrent Back-Propagationcited by 69
- 2020EcoNAS: Finding Proxies for Economical Neural Architecture Searchcited by 61
- 2020Random Hypervolume Scalarizations for Provable Multi-Objective Black Box Optimizationcited by 60
- 2016CMA-ES for Hyperparameter Optimization of Deep Neural Networkscited by 48
- 2018Towards Automated Deep Learning: Efficient Joint Neural Architecture and Hyperparameter Searchcited by 38
- 2020Small Data, Big Decisions: Model Selection in the Small-Data Regimecited by 23
- 2019Constrained Bayesian Optimization with Max-Value Entropy Searchcited by 20
- 2021Bag of Baselines for Multi-objective Joint Neural Architecture Search and Hyperparameter Optimizationcited by 19
50 most cited of 51 All 51 (JSON)
Built on by
Not cited yet.