Learning List-wise Representation in Reinforcement Learning for Ads Allocation with Multiple Auxiliary Tasks

Ze Wang, Guogang Liao, Xiaowen Shi, Xiaoxu Wu, Chuheng Zhang, Yongkang Wang, Xingxing Wang, Dong Wang

TL;DR

Allocating ads on e-commerce feeds using list-wise reinforcement learning (RL) captures the complex interactions between items on a screen but suffers from a massive, hard-to-learn state-action space. This paper introduces a novel RL framework that leverages three domain-specific auxiliary tasks—reconstruction, prediction, and contrastive learning—to drastically improve list-wise representation learning. Tested on Meituan's food delivery platform, the approach significantly boosts both platform revenue and user experience in online and offline environments.

What Problem Does This Paper Address?

In modern e-commerce and news feeds, platforms must blend advertisements with organic items seamlessly. Striking the right balance is tricky: more ads can increase ad revenue but degrade the user experience, leading to fewer orders and lower long-term platform service fees.

To optimize this layout, recent approaches use Reinforcement Learning (RL) to model ads allocation as a Markov Decision Process (MDP). While early methods made point-wise decisions (evaluating one item slot at a time), state-of-the-art methods use list-wise allocation, which optimizes the arrangement of an entire screen at once.

Figure 1: Structure of an ads allocation system. In ads allo- cation system, it takes the ranked ads and ranked organic items as input and outputs the allocated result.

However, list-wise allocation introduces a major challenge: the curse of dimensionality. With millions of candidate items and multiple slots per screen, the space of possible state-action pairs is astronomically large. This sparsity makes it incredibly difficult for an RL agent to learn generalizable representations, resulting in poor sample efficiency and suboptimal performance.

Methods

The authors propose a unified RL framework consisting of a base agent enhanced by three novel, domain-specific auxiliary tasks designed to accelerate list-wise representation learning.

Figure 2: Our method consists of a base agent and three different types of auxiliary tasks. The base agent takes a state infor- mation and an action as input and outputs the Q-value. Three different types of auxiliary tasks are designed to accelerate the base agent training. Best view in color.

1. Base Agent

The base agent processes sparse features (user profile, context, and item sequences) through an embedding layer and a target attention network to generate individual item representations. Based on the agent's action (the layout of ads vs. organic items), these representations are concatenated into a single list-wise representation vector ($\mathbf{e}^{\text{list}}$), which is then used to predict Q-values.

2. Reconstruction-based Auxiliary Task (RAT)

E-commerce users care deeply about specific item attributes like delivery fees, active promotions, or brand status. RAT forces the network to decode $\mathbf{e}^{\text{list}}$ and reconstruct these key binary features for every slot. This prevents vital domain information from being lost during representation compression.

3. Prediction-based Auxiliary Task (PAT)

To combat sparse rewards, PAT introduces immediate supervised signals from user feedback. It forces the representation layer to simultaneously predict two multi-task targets:

  • The click-through rate (CTR) for each slot.
  • The probability that a user will pull down/scroll to the next page (which governs MDP state transitions).

4. Contrastive-Learning-based Auxiliary Task (CLAT)

CLAT helps the model distinguish between similar and distinct state-action pairs. The authors introduce a clever way to construct positive samples based on user behavior: if a user only scrolls down to the 7th slot on a page, any items placed below the 7th slot had zero impact on their decision. Therefore, the authors create a positive pair by replacing those unexposed items with random items, asserting that the semantic representation of the state-action pair should remain virtually unchanged.

Figure 3: An instance of constructing positive sample for contrastive learning.

Datasets

The model was evaluated using a massive, real-world dataset collected from a random exploratory policy on the Meituan food delivery platform in March 2021.

  • Requests: 12,729,509
  • Users: 2,000,420
  • Ads: 385,383
  • Organic Items: 726,587

Key Insights and Ideas

  • Prior Domain Knowledge Anchors Representations: Generic auxiliary tasks often fail in e-commerce because they don't prioritize what actually drives user behavior. Forcing the model to reconstruct user-critical features (like delivery fees) ensures the latent space remains aligned with human decision-making.
  • Exploiting Scroll Depth for Free Data Augmentation: The realization that "unexposed items below the scroll cutoff are noise" provides an elegant, mathematically sound method for generating positive contrastive samples without needing manual data labeling or risky online exploration.

Key Results

The authors evaluated their framework against several competitive baselines, including hierarchical RL (HRL-Rec), joint optimization networks (DEAR), and standard list-wise models (CrossDQN), alongside variants using generic auxiliary tasks (DSAE, UNREAL, RCRL).

Offline Evaluation

When built on top of CrossDQN, the proposed method outperformed all baselines across both revenue and user experience metrics:

  • Ad Revenue ($R^{\text{ad}}$): Improved by 2.38% over the best baseline.
  • Platform Service Fees ($R^{\text{fee}}$): Improved by 1.81%.
  • Order Ratio ($R^{\text{cxr}}$): Improved by 1.31%.
  • User Experience Score ($R^{\text{ex}}$): Improved by 0.73%.

Ablation studies confirmed that removing any of the three auxiliary tasks (RAT, PAT, or CLAT) led to a noticeable drop in performance, proving that all three components contribute uniquely to representation learning.

Online A/B Test

In a live deployment on Meituan spanning two consecutive weeks, the framework achieved even stronger gains over the production baseline, increasing ad revenue by 2.92%, service fees by 1.91%, orders by 2.21%, and user experience scores by 1.13%.

Limitations and Future Work

Despite its success, the authors note a couple of limitations that pave the way for future research:

  1. Manual Hyperparameter Tuning: The framework currently relies on fixed, grid-searched weights ($\alpha_1, \alpha_2, \alpha_3$) to balance the losses of the main task and the three auxiliary tasks. Automatically and dynamically balancing these tasks remains an open challenge.
  2. Offline-to-Online Distribution Shift: Because the model is trained entirely on offline logs before deployment, it is susceptible to standard offline RL challenges like distribution shift, which the authors plan to address in future iterations.

Summary updated

BibTeX
@inproceedings{wang2022learning,
  author = {Ze Wang and Guogang Liao and Xiaowen Shi and Xiaoxu Wu and Chuheng Zhang and Yongkang Wang and Xingxing Wang and Dong Wang},
  title = {{Learning List-wise Representation in Reinforcement Learning for Ads Allocation with Multiple Auxiliary Tasks}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  url = {https://openreview.net/forum?id=ZEjod1662fC},
}
Figure