Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

When Losses Align: Gradient-Based Composite Loss Weighting for Efficient Pretraining

About

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.

Ivan Karpukhin, Andrey Savchenko• 2026

Related benchmarks

TaskDatasetResultRank
Event Type PredictionTaobao
Accuracy (ACC)70.78
13
Event sequence classificationChurn
Accuracy85.07
6
Event sequence classificationAgePred
Accuracy64.18
6
Event sequence classificationAlfabattle
Accuracy80.93
6
Event sequence classificationMIMIC-III
Accuracy91.69
6
Showing 5 of 5 rows

Other info

Follow for update