When Losses Align: Gradient-Based Composite Loss Weighting for Efficient Pretraining
Not on the map. Why?
Abstract (arXiv)
Modern deep models are often pretrained on large-scale data with missing labels using composite objectives, where the relative weights of multiple loss terms act as hyperparameters. Tuning these weights with random search or Bayesian optimization is computationally expensive, as it requires many independent training runs. To address this, we propose a gradient-based bilevel method that learns pretraining loss weights online by aligning the composite pretraining gradient with a downstream objective. By exploiting the structure of the loss, the method avoids the multiple backward passes typically required by truncated backpropagation through the full model, reducing the overhead of hyperparameter tuning to approximately 30% above a single training run. We evaluate the approach on event-sequence modeling and self-supervised computer vision, where it matches or improves upon carefully tuned baselines while substantially reducing the cost of hyperparameter tuning compared to random or Bayesian search.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 34 references that are in the map. First posted on arXiv 8 May 2026.
Builds on
28 of 34 references.
References · 28
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
- 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,345
- 2020Gradient Surgery for Multi-Task Learningcited by 1,210
- 2017GradNorm: Gradient Normalization for Adaptive Loss Balancing in Deep Multitask Networkscited by 816
- 2018Multi-Task Learning as Multi-Objective Optimizationcited by 809
- 2018End-to-End Multi-Task Learning with Attentioncited by 533
- 2017Large Batch Training of Convolutional Networkscited by 529
- 2018Bilevel Programming for Hyperparameter Optimization and Meta-Learningcited by 403
- 2015Gradient-based Hyperparameter Optimization through Reversible Learningcited by 357
16 more
- 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 324
- 2019Optimizing Millions of Hyperparameters by Implicit Differentiationcited by 303
- 2018Truncated Back-propagation for Bilevel Optimizationcited by 187
- 2021Solo-learn: A Library of Self-supervised Methods for Visual Representation Learningcited by 116
- 2018Adapting Auxiliary Losses Using Gradient Similaritycited by 98
- 2020Tabular Transformers for Modeling Multivariate Time Seriescited by 77
- 2015Scalable Gradient-Based Tuning of Continuous Regularization Hyperparameterscited by 71
- 2023Independent Component Alignment for Multi-Task Learningcited by 69
- 2020CoLES: Contrastive Learning for Event Sequences with Self-Supervisioncited by 32
- 2024Jacobian Descent for Multi-Objective Optimizationcited by 18
- 2023All4One: Symbiotic Neighbour Contrastive Learning via Self-Attention and Redundancy Reductioncited by 11
- 2016DrMAD: Distilling Reverse-Mode Automatic Differentiation for Optimizing Hyperparameters of Deep Neural Networkscited by 9
- 2025LDC-MTL: Balancing Multi-Task Learning through Scalable Loss Discrepancy Controlcited by 7
- 2023Sample-Level Weighting for Multi-Task Learning with Auxiliary Taskscited by 6
- 2025HT-Transformer: Event Sequences Classification by Accumulating Prefix Information with History Tokenscited by 3
- 2024Unprejudiced Training Auxiliary Tasks Makes Primary Better: A Multi-Task Learning Perspectivecited by 1
Built on by
Not cited yet.