Reinforcement Learning-based Product Delivery Frequency Control

Yang Liu, Zhengxing Chen, Kittipat Virochsiri, Juan Wang, Jiahao Wu, Feng Liang

Abstract

This paper presents a personalized frequency control system deployed at Facebook that utilizes Deep Reinforcement Learning (RL) to manage notification delivery for billions of users. By formulating the problem as a Markov Decision Process and employing Deep Q-Networks (DQN), the system optimizes for long-term user value rather than immediate clicks. To ensure production stability and respect global delivery constraints, we introduce an "Effective Factor" (EF) mechanism governed by a PID controller. Experimental results demonstrate significant improvements in engagement metrics and delivery efficiency, with efficiency gains ranging from +5% to +19% across various notification types.

Introduction

In modern recommender systems, "frequency control"—deciding how often to send notifications or emails—is a delicate balancing act. Sending too few notifications results in lost user engagement, while sending too many triggers user fatigue, risks being marked as spam, and wastes significant infrastructure resources such as CPU and memory.

Traditional industrial approaches treat this as a constrained optimization problem, often focusing on short-term daily metrics. However, these methods fail to account for the sequential nature of user behavior. For instance, a single notification might not engage an inactive user today, but a strategic sequence of deliveries over a week might successfully re-engage them. This research argues that frequency control is fundamentally a sequential decision problem that requires optimizing for long-term value rather than immediate clicks.

Methodology

The authors formulate frequency control as a Markov Decision Process (MDP) and solve it using Deep Q-Networks (DQN).

MDP Formulation

The MDP is defined by:

  • State ($S$): Comprising user profiles and historical interaction data to capture the context of user behavior.
  • Action ($F$): A set of predefined delivery frequencies available to the system.
  • Reward ($R$): A linear combination of daily engagement metrics minus a penalty for delivery frequency to encourage resource efficiency.

Value Learning and System Control

A DQN is used to estimate the $Q$-value—the expected long-term accumulated reward—for specific (user, frequency) pairs. This allows the system to plan for future engagement. To bridge the gap between theoretical RL and production requirements, two key components were introduced:

  1. The Effective Factor (EF): To mitigate "jitter" in global delivery volume caused by daily data drift (e.g., weekend behavior), the EF acts as a tunable knob. It selects the minimum frequency required to achieve a specific percentage of the maximum possible $Q$-value gain.
  2. PID Control: A Proportional-Integral-Derivative (PID) controller is used to automate the system by dynamically adjusting the EF in real-time. If the actual global volume exceeds the target, the PID controller lowers the EF to reduce frequency, ensuring system stability.
System architecture of the RL-based frequency control system, featuring the DQN training loop, PID controller, and Effective Factor adjustment.

Experimental Setup

The study was conducted on Facebook's industrial-scale notification platforms, reaching billions of users across five different notification types, including email and mobile push. Training data was collected from a 0.5% user segment, resulting in millions of trajectories consisting of 30-day sequences of states, actions, and rewards. Online A/B tests were performed on 2-4% of total traffic, approximately 50 million users per notification type.

Results and Discussion

The RL-based approach outperformed existing human-crafted rule-based policies across all tested notification types. The system demonstrated a superior Efficiency Ratio (Daily Metrics / Delivery Volume), indicating that it doesn't just increase engagement, but increases engagement per notification sent.

Key Performance Metrics

  • Efficiency Gains: The efficiency ratio improved by +5% to +19% across different products.
  • Engagement Lift: Daily metrics saw significant increases, such as a +17.2% lift for one notification type, even while maintaining or reducing delivery volume.
  • Volume Reduction: In several cases, the model achieved higher engagement while actually decreasing delivery volume (e.g., -7.6% volume for notif_type2).
  • Stability: The PID-controlled Effective Factor successfully kept global delivery volume within a 10-20% fluctuation range, preventing system alerts and infrastructure strain.

User Cohort Sensitivity

The model learned distinct strategies for different user segments. For high-activity users, it significantly reduced delivery volume (-20.6%) while still increasing engagement metrics, effectively reducing "spam" for the most active users. This highlights the core insight of the research: RL can "invest" resources in a user today to reap engagement rewards days or weeks later.

Performance metrics across different user activity cohorts, showing significant delivery volume reduction for high-activity users while maintaining engagement gains.

Conclusion

By shifting from short-term optimization to a long-term RL framework, this system successfully balances user engagement with infrastructure efficiency. The combination of the Effective Factor and PID control provides a robust bridge, allowing a personalized RL model to respect global infrastructure limits and business targets. Future work will explore joint optimization where frequency control and content ranking are learned together in a single end-to-end RL framework.

Summary updated

BibTeX
@inproceedings{liu2021reinforcement,
  author = {Yang Liu and Zhengxing Chen and Kittipat Virochsiri and Juan Wang and Jiahao Wu and Feng Liang},
  title = {{Reinforcement Learning-based Product Delivery Frequency Control}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=cSX4uilKEb},
}
Figure