DeepMTL2R: A Library for Deep Multi-task Learning to Rank

Chaosheng Dong, Peiyao Xiao, Yijia Wang, Kaiyi JiarXiv 2026

TL;DR

DeepMTL2R is a new open-source, transformer-based framework designed for Multi-task Learning to Rank (MTL2R). It allows practitioners to simultaneously optimize multiple, often conflicting relevance signals (such as clicks, dwell time, and purchases) by combining a context-aware listwise architecture with 21 state-of-the-art multi-task optimization algorithms.

What Problem Does This Paper Address?

Traditional Learning to Rank (LTR) models are built to optimize a single objective, usually a single relevance score. However, real-world search and recommendation engines must balance a complex web of user behaviors—such as clicks, video streams, dwell time, and explicit ratings.

Multi-task Learning to Rank (MTL2R) addresses this multi-faceted reality, but existing approaches hit significant roadblocks. Conventional feed-forward neural networks struggle with long-tailed data distributions and fail to capture higher-order feature interactions. Crucially, they often score items in isolation, failing to capture the list-level context (how the relevance of one item depends on the other items displayed around it). DeepMTL2R was built to solve these scaling, context-dependency, and multi-objective optimization challenges in a unified library.

Methods

DeepMTL2R introduces a context-aware architecture based on Transformers. Instead of scoring items independently, the framework treats an entire list of items as a sequence of tokens. It projects item features through a shared fully connected layer and passes them into a Transformer encoder. This allows the self-attention mechanism to explicitly model long-range item dependencies and list-level context before generating task-specific ranking scores.

Figure 1: DeepMTL2R: Transformer-Based DNN in MTL2R

The library is highly modular, supporting 9 popular LTR loss functions and 21 different multi-task learning algorithms. These MTL algorithms are broadly categorized into two strategies:

  • Scalarization-based methods: These reduce vector-valued losses into a single surrogate objective via weighted combinations (e.g., Linear Scalarization, WeightedChebyshev).
  • Gradient-manipulation methods: These dynamically modify or project task gradients during training to mitigate conflicting objectives and stabilize optimization (e.g., MGDA, GradDrop, PCGrad, CAGrad, FAMO).
Figure 2: Structure of the DeepMTL2R library. We support 9 popular LTR losses and 21 MTL algorithms.

Datasets

The authors evaluated the framework using the MSLR-WEB30K dataset, a large-scale standard benchmark for information retrieval. To simulate a rich multi-task environment, they followed an established protocol that repurposes four existing features as auxiliary target labels alongside the primary relevance label:

  1. Query-URL Click Count
  2. URL Dwell Time
  3. Quality Score
  4. Quality Score 2

To prevent target leakage, these feature-derived labels were strictly removed from the model's input space during training.

Key Insights and Ideas

  • List-Level Context via Self-Attention: By treating ranking as a sequence-to-sequence problem within the Transformer encoder, the model learns shared representations that inherently understand item competition and context within a single query.
  • Clearer Pareto Fronts: The experiments revealed a stark difference in how algorithms explore trade-offs. Explicit Pareto-front-finding (PF) methods, such as WeightedChebyshev (WC), map out a highly distinct, well-distributed boundary of optimal trade-offs.
  • Compromise vs. Extremes: While PF methods map the entire boundary, non-PF gradient manipulation methods tend to concentrate their solutions tightly around a central compromise region. This gives engineers a clear choice: use PF methods if you need to dynamically shift deployment strategies based on changing business constraints, or use non-PF methods for a stable, middle-of-the-road blend.

Key Results

The authors conducted bi-objective experiments across 10 different label pairs from the modified MSLR-WEB30K dataset.

Qualitative and quantitative evaluations demonstrated that WeightedChebyshev (WC) and LOG_MGDA achieved the best overall multi-task performance balance. This balance was measured using $\Delta_m\%$, a metric tracking the average relative performance change of the multi-task model against single-task baselines.

Figure 4: Validation NDCG@30 for 6 MTL algorithms.

As shown in the validation NDCG@30 trade-off plot (Figure 4), the Pareto-front-finding methods successfully chart out the performance boundaries between conflicting tasks (such as Task 0 vs Task 135), providing a clear toolkit for deployment decision-making.

Limitations and Future Work

While DeepMTL2R provides a robust benchmarking foundation, the authors note several areas for improvement:

  • Scalability Constraints: As the number of tasks scales up significantly, the computational overhead of tracking and manipulating individual task gradients increases. The authors plan to explore parameter-efficient adaptation techniques (like lightweight task conditioning) to alleviate this.
  • Loss and Metric Expansion: Future versions aim to incorporate fairness constraints and support implicit user feedback loops.
  • Automated Optimization: The team intends to investigate automated reference-vector generation to make Pareto-front selection more hands-off for production engineers.

Summary updated

BibTeX
@misc{dong2026deepmtl,
  author = {Chaosheng Dong and Peiyao Xiao and Yijia Wang and Kaiyi Ji},
  title = {{DeepMTL2R: A Library for Deep Multi-task Learning to Rank}},
  year = {2026},
  eprint = {2602.14519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.14519},
}
Figure