Reinforcement Learning in Pinterest Ads – DRL-PUT in action!

DRL-PUT replaces Pinterest's hand-tuned ad ranking weights with a policy network picking utility weights per request; A/B tests show CTR up 9.7%, LC-CTR up 7.7%.

Przeczytaj ten artykuł po polsku

Can the effectiveness of an advertising system be improved by almost 10% simply by tuning the weights in the ranking function more intelligently?
It turns out the answer is yes – and that’s exactly what the paper Deep Reinforcement Learning for Ranking Utility Tuning in the Ad Recommender System at Pinterest (arXiv:2509.05292) is about.

Traditionally, ad ranking relies on a utility function – a linear combination of multiple model predictions, such as CTR (click-through rate), conversion probability, or other business metrics.
The problem? The weights of these predictors were historically tuned manually by engineers. This approach:

  • offers simplicity and transparency,
  • but is inefficient, inflexible, and lacks personalization.

Pinterest introduces a new approach: DRL-PUT (Deep Reinforcement Learning for Personalized Utility Tuning).


The Idea in Brief

The system frames the task of choosing utility weights as a reinforcement learning (RL) problem:

  • the state represents the ad request context (user, session, ad features),
  • the action is the selection of appropriate weights or hyperparameters for ranking,
  • the reward reflects business goals such as CTR, LC-CTR, or composite objectives.

This way, instead of manually tuning weights, the model learns how to adaptively select the best ranking strategy for each user and situation.


DRL-PUT Architecture

The approach is based on policy learning, not value estimation of .

1. State Representation

The state includes:

  • user features,
  • session context (time, device type),
  • ad request characteristics.

Effectively, a high-dimensional feature vector fed into a neural network.

2. Policy Network

The model is a deep neural network policy , which directly predicts the utility weights.
Instead of learning the value of each action, it immediately chooses an action.

  • Input: state representation ,
  • Output: weight vector that defines the ranking function: where are predictors (CTR, conversion, long-click probability, etc.).

3. Reward

Pinterest experimented with different reward definitions:

  • CTR,
  • LC-CTR (long click-through rate),
  • combined business metrics.

The reward is derived offline from online logs, avoiding the need for costly live training.

4. Training

The method applies direct policy learning:

  • instead of estimating (which is unstable and data-intensive),
  • the model optimizes the policy directly, minimizing a loss linked to expected rewards.

Results

A/B testing in Pinterest’s production ad system showed:

  • CTR increased by 9.7%,
  • LC-CTR increased by 7.7%,
  • compared to manually tuned utility functions.

In an industry where even a fraction of a percent matters, this is a major improvement.


Why It Works

  1. Personalization – different users and contexts get different utility weights.
  2. Adaptability – the system adjusts to seasonal changes and new ad campaigns.
  3. Automation – engineers no longer need to manually tune parameters.

Math Behind the Scenes

The task is modeled as a Markov Decision Process (MDP):

  • – state (user/context features),
  • – action (utility weights),
  • – reward (CTR/LC-CTR),
  • – policy.

The objective is to maximize expected reward:

Policy gradient update:


Conclusion

This work shows that:

  • reinforcement learning can be applied successfully to large-scale ad systems,
  • DRL-PUT outperforms manual tuning,
  • real-time personalization and adaptability are possible at production scale.

It’s a strong example of how theory meets practice: RL moving from research papers into billion-dollar business applications.


Related articles

Comments

Comments are moderated before they appear.

  • Loading comments…