Learning to Collaborate: Multi-Scenario Ranking via Multi-Agent Reinforcement Learning

Jun Feng, Heng Li, Minlie Huang, Shichen Liu, Wenwu Ou, Zhirong Wang, Xiaoyan Zhu

Abstract

In large-scale e-commerce platforms, users typically navigate through multiple ranking scenarios, such as moving from a global main search to a specific in-shop search. Traditionally, these scenarios are optimized independently, leading to sub-optimal global performance due to competition for user attention and information silos. This paper introduces Multi-Agent Recurrent Deterministic Policy Gradient (MA-RDPG), a framework that treats multi-scenario ranking as a fully cooperative multi-agent sequential decision problem. By utilizing a centralized critic for global reward optimization and a recurrent communication module for cross-scenario information sharing, MA-RDPG enables different ranking agents to collaborate. Experimental results on Taobao demonstrate a significant 4.54% increase in Gross Merchandise Volume (GMV), proving that collaborative ranking outperforms independent optimization.

Introduction: The Challenge of Multi-Scenario Ranking

Modern e-commerce platforms like Taobao or Amazon are composed of various interconnected "scenarios." A typical user journey might begin with a query in the main search bar, followed by a click on a specific item that leads the user into an in-shop search environment.

Historically, these ranking scenarios have been treated as independent silos. This "siloed" approach introduces two primary inefficiencies:

  1. Competitive Misalignment: When scenarios optimize for local metrics (like local Click-Through Rate), they may inadvertently harm the platform's global objectives. For instance, a main search agent might prioritize "click-baity" items that drive immediate traffic but result in poor conversion or high bounce rates once the user enters a shop.
  2. Information Fragmentation: Independent models lack access to the user's immediate historical context from other scenarios. An in-shop search agent, for example, might benefit significantly from knowing exactly what the user was looking for in the main search just seconds prior.
The collaborative multi-scenario ranking workflow where Main Search and In-shop Search agents interact through a shared replay buffer and the MA-RDPG framework.

To address these issues, the authors propose viewing the entire user journey as a cooperative game where multiple agents (ranking scenarios) work together to maximize the platform's total return.

Methodology: The MA-RDPG Framework

The proposed Multi-Agent Recurrent Deterministic Policy Gradient (MA-RDPG) framework is designed to facilitate coordination and information flow between ranking scenarios. The architecture is built upon three core components:

1. Private Actors (Scenario Agents)

Each ranking scenario is represented by a private actor. Unlike traditional Learning-to-Rank (L2R) models that output a score for each item, these actors output a continuous action vector. This vector represents the optimal weights for various ranking features, which are then used by the underlying ranking engine to sort items. This design allows MA-RDPG to be easily integrated into existing production systems.

2. Centralized Critic

To ensure cooperation, the framework employs a centralized critic during the training phase. While actors only see local observations, the critic has access to the actions and observations of all agents. It estimates the "global Q-value"—the expected future total rewards for the entire platform (e.g., total GMV). By training against this global signal, individual agents learn to take actions that benefit the whole system, even if it means sacrificing local short-term metrics.

3. Recurrent Communication Module

To break down information silos, a communication component based on Long Short-Term Memory (LSTM) networks is integrated into the framework. This module encodes the sequence of user interactions across different scenarios into a "message" vector. This message is passed from one agent to the next, providing the necessary context for sequential decision-making.

High-level architecture of the MA-RDPG framework, featuring private actors, a centralized critic, and a communication module.

Experimental Evaluation

The effectiveness of MA-RDPG was validated using real-world data and live traffic from Taobao, one of the world's largest e-commerce platforms.

  • Data Source: The model was trained on millions of user interaction logs, capturing the complex sequences of searches, clicks, and purchases.
  • Online A/B Testing: The primary metric for success was an online A/B test. The framework was deployed to handle 3% of Taobao's live traffic over a seven-day period, comparing its performance against standard L2R and empirical weighting baselines.

Key Insights and Results

The transition from independent optimization to collaborative multi-agent learning yielded several critical insights:

  • Significant GMV Growth: MA-RDPG achieved a 4.54% average increase in total GMV compared to the baseline. This is a substantial improvement for a platform of Taobao's scale.
  • Synergistic Gains: Unlike independent models where one scenario's gain often came at another's expense, MA-RDPG improved performance across the board. In-shop search saw a +2.57% boost, while main search improved by +5.43%.
  • Strategic Ranking: Qualitative analysis revealed that the model learned sophisticated strategies. For example, the main search agent began ranking higher-quality, branded items more prominently. While these items might have slightly lower initial click rates, they significantly increased the likelihood of a purchase once the user transitioned to the in-shop scenario.
  • Contextual Awareness: The LSTM-based communication allowed the system to maintain a "memory" of the user's intent, effectively turning a series of fragmented interactions into a coherent, optimized journey.

Conclusion and Future Directions

MA-RDPG demonstrates that treating different ranking scenarios as cooperative agents can unlock significant value in complex e-commerce ecosystems. By sharing a global reward signal and maintaining a communicative context, the framework overcomes the limitations of siloed optimization.

Future work will focus on scaling this approach to dozens of simultaneous scenarios and refining the reward functions to better balance diverse platform goals, such as user retention and long-term engagement. Additionally, exploring the application of this collaborative framework in other domains like news recommendation and advertising remains a promising avenue for research.

Summary updated

BibTeX
@inproceedings{feng2018learning,
  author = {Jun Feng and Heng Li and Minlie Huang and Shichen Liu and Wenwu Ou and Zhirong Wang and Xiaoyan Zhu},
  title = {{Learning to Collaborate: Multi-Scenario Ranking via Multi-Agent Reinforcement Learning}},
  booktitle = {The Web Conference},
  year = {2018},
  doi = {10.1145/3178876.3186165},
}
Figure