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

DuoFormer: Parallel Shared and Task-Specific Modeling for Industrial Multi-Task Recommendation

Xiangming Li, Shijie Zhu, Kai Zhang, Bencheng Yan, Chuan Yu, Jian XuarXiv 2026

TL;DR

When scaling up giant recommender systems that predict multiple user behaviors at once (like clicks, likes, and purchases), engineers usually make a shared foundational network bigger and slap task-specific heads on at the very end. This paper introduces DuoFormer, an architecture that runs task-specific specialization in parallel with shared feature learning from layer one. By using clever attention masks and lightweight adapters, it achieves steeper scaling laws and real-world revenue boosts without blowing up compute budgets.

What Problem Does This Paper Address?

Modern web platforms rely on multi-task recommendation models to simultaneously optimize for different goals—say, whether you'll click an ad, add the item to your cart, or actually buy it without returning it later. Inspired by Large Language Models (LLMs), researchers have started scaling these recommenders up.

However, current scaling follows a sequential paradigm: raw features pass through a massive, shared encoder first, and only split into task-specific branches right before the finish line. This creates two bottlenecks:

  1. Task-agnostic early interactions: Because task specialization happens so late, early layers mush features together into a single abstracted view, making it hard for individual tasks to later tease apart subtle, task-specific nuances.
  2. Coarse task representations: Each task is usually represented by a single token or "tower," forcing complex, multi-faceted user motivations into one narrow bottleneck.
Figure 1: Comparison of conventional sequential paradigm and our proposed parallel paradigm.

Simply giving every task its own giant network from the start would fix this, but it would multiply server costs and latency beyond industrial limits. The challenge is running fine-grained task modeling alongside shared learning from the earliest layers without duplicating heavy computation.

Methods

DuoFormer replaces the sequential pipeline with a parallel dual-channel backbone built on standard Transformer-style tokenization (converting user history and item attributes into uniform tokens). Inside each DuoFormer block, four novel mechanisms work together:

  • Hub–Facet Task Hierarchy: Instead of a single token per task, each task gets one hub token (the coordinator) and multiple facet tokens (specialized sub-views that hunt for different behavioral factors).
  • Role-Aware Masked Attention: All feature, hub, and facet tokens live in one unified self-attention module, governed by a strict traffic-control mask. Shared features only attend to each other (keeping the foundation clean). Facets query shared features and talk to their own task's hub. Crucially, cross-task gossip is restricted strictly to hub-to-hub connections, preventing task-private details from leaking and muddying other tasks.
Figure 2: The overall framework of the proposed DuoFormer.
  • Low-Rank Task-Specific Channel: Because the same feature (e.g., item price) means different things to different tasks (clicking vs. buying), DuoFormer uses gated low-rank matrices—similar in spirit to LoRA—to add lightweight, task-specific tweaks ($\Delta K, \Delta V$) to the shared attention keys and values when facets retrieve features.
  • Consensus–Disagreement Gradient Routing (CDGR): During training, tasks often pull shared features in opposite directions. CDGR tracks exponential moving averages of task gradients. When tasks agree on how to update a feature, gradients flow normally. When they clash, CDGR dampens the gradient going into the shared channel and amplifies the gradient going into the task-specific low-rank adapters—adding zero inference cost.

Datasets

The authors evaluate DuoFormer on a massive, proprietary industrial dataset from Taobao’s search advertising platform, comprising roughly 17 billion user–item interaction samples collected over one month. No new public benchmarks are introduced.

Key Insights and Ideas

  • Naive early specialization works, but costs a fortune: When the authors modified existing baselines (RankMixer, TokenMixer) to do task modeling from layer one, accuracy jumped—proving early specialization matters—but training FLOPs exploded by 5.6× to 6.7×. DuoFormer captures those accuracy gains while reusing shared compute.
  • Boundaries make better neighbors: In ablation studies, allowing facet tokens from different tasks to talk directly degraded performance compared to routing communication strictly through consolidated hub tokens. Sharing high-level summaries helps; sharing raw, granular views causes interference.
  • Gradient conflicts are a routing signal, not just noise: Traditional multi-task optimization tries to compromises on conflicting gradients. DuoFormer realizes that gradient disagreement is actually a signal to route learning away from shared weights and into task-specific adapters.

Key Results

  • Offline Accuracy & Efficiency: DuoFormer outperforms 10 baselines (including MMoE, PLE, Wukong, RankMixer, and OneRank) across four core conversion-rate tasks, hitting the highest average AUC (0.8755). Compared to OneRank—another model attempting early task interaction—DuoFormer achieves better accuracy while requiring 77.4% fewer FLOPs (2.42 vs. 10.72 TFLOPs) at a similar parameter count (~49M).
  • Steeper Scaling Laws: Scaling from 50M to 200M parameters, DuoFormer shows steeper AUC gains than strong scalable baselines like RankMixer and UniFormer.
  • Live Production Impact: In a 7-day online A/B test on Taobao's live search traffic, DuoFormer lifted Conversion Rate (CVR) by 1.40%, Gross Merchandise Value (GMV) by 1.41%, and add-to-cart rates by 1.87%.

Limitations and Future Work

Not discussed in the paper. (Note: Pages 1–9 provided conclude right as the Appendix begins, and the main text contains no explicit limitations or future work section.)

Summary updated

BibTeX
@misc{li2026duoformer,
  author = {Xiangming Li and Shijie Zhu and Kai Zhang and Bencheng Yan and Chuan Yu and Jian Xu},
  title = {{DuoFormer: Parallel Shared and Task-Specific Modeling for Industrial Multi-Task Recommendation}},
  year = {2026},
  eprint = {2611.35395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35395},
}
Figure