Learning Action Embeddings for Off-Policy Evaluation

Matej Cief, Jacek Golebiowski, Philipp Schmidt, Ziawasch Abedjan, Artur Bekasov

TL;DR

This paper introduces a method to learn action embeddings directly from logged data to improve Off-Policy Evaluation (OPE) in large action spaces. By using the intermediate outputs of a trained reward model as embeddings for Marginalized Inverse Propensity Scoring (MIPS), the authors create a robust estimator that combines the low bias of importance sampling with the low variance of model-based methods.

What Problem Does This Paper Address?

Off-Policy Evaluation (OPE) is the "holy grail" for recommendation systems and search engines: it allows researchers to estimate how a new policy (e.g., a new ranking algorithm) would perform using only historical data, without the risk or cost of a live A/B test.

However, standard OPE methods like Inverse Propensity Scoring (IPS) break down when the number of possible actions is huge. In these "large action spaces," most actions are rarely seen in the logs. This leads to extremely high variance in the estimates—essentially, the math becomes too "noisy" to be useful. A recent solution called Marginalized IPS (MIPS) reduces this noise by grouping similar actions using embeddings. The catch? MIPS usually requires practitioners to hand-craft these embeddings (like manually tagging items by brand or price), which is difficult, subjective, and often incomplete.

Methods

The authors propose Learned MIPS, which automates the creation of these embeddings. Instead of relying on human intuition, they train a reward model to predict the outcome (e.g., a click) based on the context and action.

As shown in Figure 1, the core idea is to treat the weights of a simple linear layer (or the latent representations in a neural network) as the action embeddings.

The model architecture used to learn action embeddings.

The process follows three steps:

  1. Learn: Train a reward model on logged data. The "action identity" is passed through a linear layer to produce a vector.
  2. Extract: Use the output of that linear layer as the action's embedding.
  3. Evaluate: Plug these learned embeddings into the MIPS estimator to calculate the value of the new policy.

The authors explore three variants:

  • OneHot: Learning embeddings from scratch using only action IDs.
  • FineTune: Refining existing, hand-crafted embeddings.
  • Combined: Using both raw IDs and hand-crafted features.

Datasets

The researchers evaluated their approach using:

  • Synthetic Data: A controlled environment where the "ground truth" is known. They varied the number of actions (up to 2,000) and the amount of training data to see how the estimators scaled.
  • Real-World Fashion Data: A dataset from a large e-commerce platform containing 240 actions (fashion items) with 4-dimensional pre-defined embeddings (price, brand, category). This data was collected during a real A/B test, providing a rigorous benchmark.

Key Insights and Ideas

  • Robustness to Misspecification: Surprisingly, the reward model doesn't need to be perfect. Even if a linear model fails to capture the complex, non-linear reality of user behavior, the embeddings it learns in the process are still highly effective for MIPS.
  • Bridging the Gap: The paper provides a theoretical link showing that Learned MIPS can be interpreted as a "kernelized" version of the Direct Method (DM). It effectively uses the reward signal to smooth out the variance of IPS.
  • Filling the Gaps: Learned embeddings are particularly powerful when hand-crafted features are incomplete. If a human forgets to include "color" as a feature, the reward model can often infer its importance from the data and bake it into the learned embedding.

Key Results

In synthetic tests, Learned MIPS demonstrated remarkable stability. As the action space grew from 50 to 1,000 actions, the error of the Direct Method (DM) exploded, while Learned MIPS remained consistently accurate.

Mean squared error (MSE) comparison on synthetic data.

On real-world fashion data, the results were equally compelling:

  • Learned MIPS methods outperformed standard IPS in approximately 75% of experimental runs.
  • It consistently beat other competitive baselines, including Doubly Robust (DR) estimators and MIPS using only hand-crafted features.

Limitations and Future Work

The authors note that while complex neural networks can be used to learn embeddings, they sometimes introduce too much expressivity, which can actually increase variance—the very problem they are trying to solve. Finding the "sweet spot" of model complexity is an ongoing challenge.

Future research directions include:

  • Applying this method to Learning-to-Rank (LTR), where the "action" is an entire list of items rather than a single product.
  • Exploring generative classifiers to better estimate the action distribution over embeddings.
  • Developing automated ways to choose between the "OneHot," "FineTune," and "Combined" variants based on the specific dataset.

Summary updated

BibTeX
@inproceedings{cief2024learning,
  author = {Matej Cief and Jacek Golebiowski and Philipp Schmidt and Ziawasch Abedjan and Artur Bekasov},
  title = {{Learning Action Embeddings for Off-Policy Evaluation}},
  booktitle = {ECIR},
  year = {2024},
  doi = {10.1007/978-3-031-56027-9\_7},
}
Figure