No More Tuning: Prioritized Multi-Task Learning with Lagrangian Differential Multiplier Methods

Zhengxing Cheng, Yuheng Huang, Zhixuan Zhang, Dan Ou, Qingwen Liu

TL;DR

The No More Tuning (NMT) framework eliminates the tedious manual balancing of loss weights in multi-task learning (MTL) by treating task prioritization as a constrained optimization problem. By leveraging Lagrangian Differential Multiplier Methods, NMT ensures that high-priority objectives are maximized first and then strictly maintained while secondary tasks are optimized, reducing hyperparameter tuning complexity from exponential to linear.

What Problem Does This Paper Address?

In modern recommendation and search systems, models must juggle multiple objectives simultaneously—for example, maximizing relevance while also encouraging clicks and purchases. Traditionally, researchers handle this using a weighted sum of losses ($L = \alpha_1 L_1 + \alpha_2 L_2 + ...$).

However, this approach has two major flaws:

  1. Exponential Complexity: Finding the right $\alpha$ weights requires grid searching. As the number of tasks ($m$) grows, the number of combinations to test explodes ($O(p^m)$), making it nearly impossible to validate in industrial settings requiring expensive A/B tests.
  2. Task Interference: Optimizing for a secondary task (like click-through rate) often inadvertently degrades the primary task (like search relevance).

The authors seek a way to prioritize tasks automatically, ensuring that secondary goals never compromise the "must-have" performance of the primary goal.

Methods

The core idea of NMT is to move away from "balancing" and toward constrained optimization. Instead of a single combined loss, the authors propose a step-wise sequence:

  1. Primary Optimization: Optimize the highest-priority task ($f_1$) to find its optimal parameters $\theta^*$.
  2. Constrained Refinement: Optimize the next task ($f_2$) while treating the performance of $f_1$ as a hard inequality constraint: $f_1(\theta) \leq f_1(\theta^*)$.
  3. Iteration: Repeat this for $m$ tasks, where each new task is optimized subject to maintaining the performance of all higher-priority tasks.

To solve this, they use Lagrangian Multipliers. They convert the constrained problem into an unconstrained one by adding a penalty term: $$L = f_k(\theta) + \sum \lambda_j (f_j(\theta) - f_j(\theta^*))$$ The model parameters ($\theta$) are updated via gradient descent to minimize the loss, while the multipliers ($\lambda$) are updated via gradient ascent to ensure the constraints are met.

Figure 1: Optimization trajectories. Traditional MTL (black) compromises between tasks, while NMT (red) hits the primary objective's peak and then refines secondary tasks along that boundary.

Datasets

The authors validated NMT on both public benchmarks and a massive industrial system:

  • Public Datasets:
    • TikTok: Objectives include "Finish" and "Like."
    • QK-Video: Objectives include "Click" and "Like."
  • Industrial Application:
    • Taobao Search: A large-scale ranking system where the priorities are Order Volume (highest), GMV, and Relevance (lowest).

Key Insights and Ideas

  • Linear Scaling: By optimizing tasks sequentially, NMT reduces the tuning search space from exponential ($O(p^m)$) to linear ($O(m)$). This is a game-changer for industrial pipelines where A/B testing is the bottleneck.
  • Boundary-Pushing Performance: NMT doesn't just find a "middle ground." As shown in Figure 2, NMT-optimized models (stars) often outperform the entire Pareto frontier of models tuned with traditional manual weights.
  • Automatic Balancing: The Lagrangian multiplier $\lambda$ acts as an automated, dynamic weight. If the primary task starts to degrade, $\lambda$ increases to pull the model back toward the constraint.
Figure 2: AUC performance. The stars (NMT) consistently sit above and to the right of the trade-off curves generated by manual weight tuning.

Key Results

  • Public Benchmarks: NMT improved the primary "Like" AUC across all tested architectures (Shared-Bottom, MMoE, PLE) on TikTok and QK-Video without significantly harming secondary metrics.
  • Taobao Search A/B Test: In a real-world deployment, NMT achieved a +0.26% increase in Order Volume and +0.72% in Relevance. In contrast, traditional manual weight adjustment actually caused a 0.35% drop in Order Volume when trying to improve relevance.
  • Stability: Training visualizations (Figure 3) show that $\lambda$ successfully converges, keeping the primary task loss stable near its optimal point while the secondary task loss steadily decreases.
Figure 3: Training dynamics. (a) shows the multiplier $\lambda$ adjusting, (b) shows the primary task loss staying near zero (optimal), and (c) shows the secondary task loss successfully decreasing.

Limitations and Future Work

  • Sequential Dependency: The method requires a sequential training process. If the primary task is poorly defined or the initial $\theta^*$ is a bad local minimum, subsequent tasks will suffer.
  • Strict Constraints: The paper assumes we want to maintain the primary task's peak performance. In some scenarios, a small, controlled trade-off in the primary task might yield massive gains in secondary tasks; NMT’s current formulation doesn't explicitly focus on finding those specific "sweet spots" unless the tolerance parameter $r_i$ is manually tuned.
  • Non-Convexity: While the authors provide a theoretical proof for strong duality in non-convex settings under specific assumptions (Lipschitz continuity and small parameter changes), the behavior in highly chaotic loss landscapes remains an area for further empirical study.

Summary updated

BibTeX
@inproceedings{cheng2025no,
  author = {Zhengxing Cheng and Yuheng Huang and Zhixuan Zhang and Dan Ou and Qingwen Liu},
  title = {{No More Tuning: Prioritized Multi-Task Learning with Lagrangian Differential Multiplier Methods}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33255},
}
Figure