In off-policy evaluation (OPE) and offline reinforcement learning, we aim to answer a counterfactual question: How would a new target policy $\pi_e$ perform, given historical data collected by a logging policy $\pi_b$?
The standard tool for answering this is Inverse Propensity Scoring (IPS). For a given context $x$ and action $a$, IPS scales the observed reward by an importance weight:
$$w = \frac{\pi_e(a|x)}{\pi_b(a|x)}$$
This works beautifully in small action spaces. However, when a system faces millions of possible actions—such as products on Amazon, videos on YouTube, or sentences generated by a large language model—standard IPS collapses. In these extreme action spaces, the logging policy's probability of choosing any single specific action $\pi_b(a|x)$ becomes infinitesimally small. When an action is rare in the logs, its propensity approaches zero, causing the importance weight to explode. This leads to extreme variance, making evaluation and policy optimization practically impossible.
To solve this problem, a powerful shared research direction has emerged: marginalized and abstracted importance sampling. Instead of calculating importance weights over unique, discrete action identifiers, these methods map, cluster, or factor the action space into a more compact representation. By computing propensities over these broader abstractions, the denominator stays well-behaved, stabilizing the estimator while allowing information to transfer between similar actions.
Smoothing Propensities via Action Embeddings
One way to prevent the variance explosion is to shift the importance weight calculation from discrete action identifiers to a continuous or structured embedding space.
In Off-Policy Evaluation for Large Action Spaces via Embeddings, Saito and Joachims introduce Marginalized Inverse Propensity Scoring (MIPS). The core intuition is that actions are rarely completely independent; they share underlying features (e.g., movie genres or product categories). By marginalizing the importance weights over an action embedding space rather than discrete IDs, MIPS allows similar actions to share data. If the logging policy chose an action highly similar to the target policy's choice, MIPS recognizes this overlap in the embedding space, maintaining low mean squared error where traditional methods fail.
Discrete IPS: Action 1 (ID: 9021) <-- Completely Distinct --> Action 2 (ID: 9022)
[Propensities collapse to near-zero]
Marginalized IPS: Action 1 (Sci-Fi, 2024) <--- Shared Embedding ---> Action 2 (Sci-Fi, 2023)
[Propensities aggregate over the shared feature space]
This concept is particularly vital when the action space is open-ended, such as natural language generation. In Prompt Optimization with Logged Bandit Data, Kiyohara et al. tackle the problem of optimizing LLM prompts using logged user feedback. Because the space of possible generated sentences is infinite, exact string matching is useless. The authors introduce Direct Sentence Off-policy Gradient (DSO), which replaces binary action matching with continuous similarity weights derived from output embeddings. This soft importance sampling approach mitigates data sparsity by smoothing the propensity calculation across semantically similar text outputs.
Aggregating Mass through Action Clustering
Rather than using continuous embeddings, another approach discretizes the action space into broader, high-level groups or clusters.
In Off-Policy Evaluation for Large Action Spaces via Conjunct Effect Modeling, Saito et al. demonstrate that performing importance weighting at the level of action clusters significantly reduces variance. Because a logging policy selects a broad cluster far more frequently than any single item within it, the cluster-level propensity $\pi_b(c|x)$ is substantially larger than $\pi_b(a|x)$. This prevents the denominator from dropping to near-zero, stabilizing the estimator over regions where data is abundant.
To leverage this stability for policy optimization, Saito et al. developed POTEC (POTEC: Off-Policy Contextual Bandits for Large Action Spaces via Policy Decomposition). POTEC splits the decision-making process into a two-stage policy decomposition:
- Cluster Selection: A low-variance, policy-based importance sampling approach determines the best high-level action cluster.
- Action Selection: A robust regression-based approach picks the specific action within that chosen cluster.
By isolating the importance weighting to the cluster level, POTEC ensures that the policy gradient remains stable and computationally tractable, even as the total number of actions grows into the millions.
A related strategy for managing this variance is to prune the action space entirely based on probability. In Learning from eXtreme Bandit Feedback, Lopez et al. show that restricting importance sampling to a high-probability subset of actions defined by the logging policy effectively tames variance. By ignoring the long tail of irrelevant, low-probability actions that contribute minimally to the expected reward, the estimator avoids extreme weight fluctuations.
Taming Combinatorial Spaces via Factorization
The variance crisis worsens exponentially in combinatorial settings, where an "action" consists of a subset of items (e.g., displaying a full outfit or a slate of recommendations). Calculating standard importance weights here requires computing the joint propensity of the entire subset, which suffers from an exponential curse of dimensionality.
To bypass this product of propensities, researchers look to factorize the action space. In Leveraging Factored Action Spaces for Off-Policy Evaluation, Rebello et al. propose breaking down complex, multi-dimensional actions into independent sub-actions. The authors integrate importance weighting with action space factorization to create a decomposed per-decision weighted importance sampling estimator. This structural decomposition provides complementary variance reduction, allowing for reliable OPE even under high policy divergence.
Similarly, Tanaka et al. address this in Effective Off-Policy Evaluation and Learning in Contextual Combinatorial Bandits. They introduce an estimator (OPCB) that decomposes rewards into main effects and residuals. Crucially, OPCB marginalizes importance weights over a subset of primary or influential actions rather than the full exponential action space. By avoiding the need to track the joint probabilities of every item in a combinatorial subset, marginalization isolates the evaluation to the components that matter most, successfully neutralizing the exponential variance explosion.
Summary
The core insight unifying these papers is that exact, discrete action matching is the enemy of large-scale off-policy learning. Whether by marginalizing over continuous embeddings, grouping actions into discrete clusters, or factorizing combinatorial choices into sub-actions, abstracting the action space changes the fundamental math of importance sampling. It aggregates probability mass in the denominator, keeping importance weights bounded, stable, and capable of generalizing across similar actions.
Key Foundational Work
Off-Policy Evaluation for Large Action Spaces via Embeddings (2022) — contributed 4 concept elements to this direction.
Learning from eXtreme Bandit Feedback (2021) — contributed 2 concept elements to this direction.