NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimizing Recall or Relevance? A Multi-Task Multi-Head Approach for Item-to-Item Retrieval in Recommendation

Jiang Zhang, Sumit Kumar, Wei Chang, Yubo Wang, Feng Zhang, Weize Mao, Hanchao Yu, Aashu Singh, Min Li, Qifan Wang · DOI

TL;DR

This paper introduces MTMH, a novel multi-task, multi-head approach for item-to-item (I2I) recommendation retrieval. MTMH effectively balances the crucial but often conflicting goals of recommending items that are both highly engaging (recall) and semantically relevant, leading to significant improvements in both offline metrics and online user experience.

What Problem Does This Paper Address?

Modern recommendation systems heavily rely on item-to-item (I2I) retrieval, where a user's previously interacted item (the "trigger item") is used to find similar or related items. The dominant approach in industry has been to train these models using "co-engagement" data – items that users interact with in close succession. While this method excels at maximizing recall (finding items that are likely to be engaged with), it often overlooks semantic relevance. This can lead to recommendations that are stuck in short-term trends, potentially hindering long-term user engagement, content diversity, and the discovery of new interests. The core challenge is that semantically relevant items don't always have high co-engagement rates, creating a fundamental trade-off that existing models struggle to resolve.

Methods

MTMH tackles this trade-off with two key innovations:

  1. Multi-Task Learning Loss: Instead of optimizing solely for co-engagement (recall), MTMH employs a combined loss function. This loss includes:
  2. Co-engagement Loss: A standard InfoNCE loss to pull embeddings of co-engaged items closer.
  3. Semantic Relevance Loss: This loss uses knowledge distillation from a pre-trained content encoder. It aligns the learned item embeddings with embeddings derived from item content (text, images, etc.), ensuring that semantic meaning is preserved. The multi-task loss is a weighted sum of these two, allowing for a principled optimization of both objectives.

  4. Multi-Head Retrieval Architecture: MTMH uses two distinct "heads" for retrieval:

  5. Engagement Head: Trained solely on the co-engagement loss, this head focuses on finding highly engaging items.
  6. Relevance Head: Trained on the multi-task loss, this head aims to find semantically relevant items. During serving, candidates from both heads are merged, allowing MTMH to leverage the strengths of each. A "quota-based merging" strategy allows for flexible adjustment of the recall-relevance balance at runtime without retraining.

Datasets

The paper primarily uses proprietary data from a commercial platform serving billions of users for both training and evaluation. No new benchmarks are introduced.

Key Insights and Ideas

  • The Recall-Relevance Dichotomy is Real: The preliminary study clearly demonstrates that models optimized for co-engagement excel at recall but suffer in semantic relevance, while content-based models are strong on relevance but weak on recall. This highlights the inherent tension.
  • Multi-task Learning is Necessary, But Not Sufficient: While multi-task learning helps, simply combining losses doesn't automatically solve the problem. The paper shows that a single-head multi-task model still struggles to achieve the best of both worlds.
  • Multi-Head Architecture is Key for Serving: The multi-head design, with separate heads for engagement and relevance, is crucial for achieving high performance at serving time. By merging candidates from both, MTMH can offer items that are both highly engaging and semantically rich.
  • Serving-Time Flexibility is Powerful: The ability to adjust the "quota" for merging candidates from the engagement and relevance heads at serving time is a significant advantage. This allows for dynamic tuning of the recommendation strategy based on real-time needs without costly retraining.
  • Faster Convergence for Fresh Content: MTMH's approach, which incorporates content semantics, leads to faster convergence of embeddings for new items, improving the delivery of fresh content.

Key Results

  • Offline Performance: MTMH achieved significant improvements over state-of-the-art baselines, increasing recall by up to 14.4% and semantic relevance by up to 56.6%.
  • Online A/B Testing: Live deployment on a commercial platform showed positive impacts on:
  • Consumption Metrics: A 0.05% increase in Daily Active Users (DAU) and a 0.22% increase in daily time spent.
  • User Experience Metrics: A 0.31% increase in distinct item views (indicating diversity), a 0.25% increase in fresh content percentage, a 0.33% increase in novel interest discovery rate, and a 0.14% increase in user interest recall.

Limitations and Future Work

  • Hyperparameter Tuning: The paper notes that the weight of the relevance loss ($w_r$) and the merging quota ($\alpha$) are important hyperparameters that require careful tuning. While $w_r=0.5$ and $\alpha=50$ were found to be good defaults, optimal values might vary.
  • Computational Cost: While MTMH aims to be efficient, the use of a pre-trained content encoder and multi-head architecture likely introduces some computational overhead compared to simpler models. The paper mentions that large foundation models can face practical deployment challenges due to high runtime cost, and MTMH's approach of distilling knowledge aims to mitigate this.
  • Future Work: The authors suggest that the flexible trade-off mechanism provided by the serving-time parameter $\alpha$ opens avenues for further research into adaptive recommendation strategies. The ability to dynamically adjust recall vs. relevance based on user context or platform goals is a promising direction.

Summary updated

BibTeX
@inproceedings{zhang2025optimizing,
  author = {Jiang Zhang and Sumit Kumar and Wei Chang and Yubo Wang and Feng Zhang and Weize Mao and Hanchao Yu and Aashu Singh and Min Li and Qifan Wang},
  title = {{Optimizing Recall or Relevance? A Multi-Task Multi-Head Approach for Item-to-Item Retrieval in Recommendation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  doi = {10.1145/3711896.3737255},
}
Figure