Traffic control overview

Updated at:

Traffic control in PAI-Rec distributes impressions to selected items based on quantified control targets, such as the number of impressions or impression share. Create traffic control tasks to promote new content, surface high-quality content, and support monetization, all without disrupting the core recommendation logic.

Background

1. What is traffic control?

Traffic control builds a traffic distribution system that balances platform interests with long-term value by designing and optimizing algorithms, policies, and systems. Like macroeconomic regulation, traffic control is a "visible hand" that balances short-term and long-term gains. This balance supports a healthy platform ecosystem.

image

2. Why use traffic control?

Objective 1: Encourage creators to publish content and grow the content pool. The more impressions new content receives, the more motivated creators are to publish. This objective is measured by the publishing penetration rate (the share of users who publish content) and the average number of posts per user.

Objective 2: Identify high-quality content. Traffic control gives all new content enough impressions. The conversion data then shows how well the content performs. As a result, popular content does not dominate the recommendations.

Objective 3: Support monetization. Traffic control leverages merchants' premium resources at low cost, which creates a win for the platform, merchants, and users.

3. Benefits of traffic control

  • Effective support: Traffic control is a traffic intervention feature built on the PAI-Rec recommendation system architecture. It precisely boosts a selected item pool without disrupting the core recommendation logic.

  • Quantifiable results: Unlike traditional weighting, traffic control targets quantifiable metrics from an item pool, such as the number of impressions and impression share, making it easier to achieve specific promotional targets.

  • Easy to manage: Traffic control organizes traffic intervention into separate tasks for different business needs. This approach offers flexibility, as you can start or stop a task at any time.

  • Simple operation: Create a task and configure its control targets. The system then adjusts traffic distribution based on your configuration, with no need for continuous monitoring.

4. Scenarios and objectives

Traffic control consists of three parts: controlled items, traffic control tasks, and control targets. Combine them based on your business needs. A common application is a multi-level impression test for new items, which targets users who registered more than 30 days ago. Give each new item 100 impressions. Use the conversion data from those 100 impressions, such as clicks and comments, to decide the next step: give the item more impressions or stop giving it more.

Another typical application controls the impression share of a set of controlled items. For example, you can guarantee an impression share of 20% for the top 1,000 best-selling items.

5. Pipeline overview

Traffic control tasks run in two environments: staging and production. The pipeline differs between them. Both pipelines below use item impressions as the control target:

Staging: Validates that the entire pipeline runs correctly.

image

  1. Your client (such as an app) sends a request to the staging service of the recommendation engine.

  2. The engine configuration in the staging environment must include the DebugConf field. The engine service writes the item list returned by the API to a specified DataHub topic as pseudo-exposure.

  3. A Flink task consumes the specified topic, analyzes total impressions and the impressions of the control pool, and reports the data to the PAI-Rec platform.

  4. The engine service reads the data reported to the PAI-Rec platform and adjusts the current item list based on the parameters of the traffic control task and its control targets.

Production: Requires your tracking logs (behavior logs) as part of the pipeline.

image

  1. Your client (such as an app) sends a request to the production service of the recommendation engine.

  2. Your client receives the results from the recommendation engine and displays them to users.

  3. The real logs from your client, such as exposures, clicks, and playback duration, are cleansed, transformed, and written to a DataHub topic.

  4. A Flink task consumes the specified topic, analyzes total impressions and the impressions of the control pool, and reports the data to the PAI-Rec platform.

  5. The engine service reads the data reported to the PAI-Rec platform and adjusts the current item list based on the parameters of the traffic control task and its control targets. The position and count of some items in the control pool change. The recommendation results are then returned to your client.