Non-Linear Counterfactual Aggregate Optimization

Benjamin Heymann, Otmane SakhiarXiv 2025 · DOI

Introduction

In the domains of Recommender Systems and digital advertising, Offline Policy Optimization (OPO) is the standard for predicting the performance of new AI models using historical data. Traditionally, these methods focus on maximizing the expected reward (e.g., click-through rate). However, real-world business success often depends on aggregate, non-linear goals. For instance, a product team might prioritize the probability of success—ensuring an A/B test has a high likelihood of exceeding a specific uplift threshold—rather than just a marginal increase in the mean reward.

Standard tools like Inverse Propensity Scoring (IPS) struggle with these non-linear criteria. When thresholds or risk-aversion functions are introduced, the optimization landscape becomes non-differentiable and prone to extreme variance, making high-stakes deployments risky.

Methodology: The Gaussian Approximation

The authors propose a framework called Non-Linear Counterfactual Aggregate Optimization to address these challenges. The core innovation lies in leveraging the Central Limit Theorem (CLT). Since a total outcome is the sum of many small, independent user interactions, the aggregate performance behaves like a Gaussian (Normal) distribution.

By treating the aggregate outcome as a Gaussian, the authors can calculate the expectation of non-linear functions (like a hard "pass/fail" threshold for an A/B test). This effectively "smooths" the objective, making it differentiable and optimizable via gradient descent. The resulting algorithm estimates the mean and variance of a policy's performance and iteratively shifts the "Gaussian bell curve" toward the desired success threshold.

Distribution of aggregated empirical outcomes $H(\pi)$ for various policies. The proposed methods (green and yellow) successfully shift the distribution toward higher outcomes compared to the logging and IPS baselines.

Key Insights: Risk Aversion and Policy Hedging

This approach introduces two critical properties for industrial applications:

  1. Inherent Risk Aversion: By optimizing for a threshold (e.g., "at least 10% revenue growth"), the algorithm naturally avoids high-variance actions that might lead to total failure, even if those actions have a high theoretical average.
  2. Policy Hedging: Unlike standard IPS, which often converges to a deterministic "winner-take-all" policy, this method encourages diversity. The resulting policies have higher entropy, spreading "bets" across multiple reliable actions to ensure a stable aggregate result.
  3. Stability over Confidence: While naive IPS can be over-confident and suffer from massive variance, the proposed method provides a more robust estimate of the actual distribution of outcomes.

Experimental Results

The researchers validated their approach using a synthetic multi-armed bandit simulation with 1,000 possible actions and skewed behavior data to mimic real-world data sparsity. They compared their method against standard IPS and Logarithmic Smoothing (LS).

Performance metrics and success probabilities for different optimization methods across various uplift thresholds.

As shown in the results table, the proposed method achieved a 99% success rate in exceeding a 10% uplift, whereas the IPS baseline only succeeded 69% of the time. Most importantly, the proposed method had a 0% probability of resulting in a negative outcome, providing a significant safety advantage over the 31% failure rate observed with IPS.

Conclusion

Non-Linear Counterfactual Aggregate Optimization offers a scalable, risk-aware alternative to traditional mean-centric OPO. By utilizing the CLT to smooth aggregate objectives, it allows engineers to optimize directly for the metrics that matter most to business stakeholders: reliability and the probability of success. Future work will explore multidimensional goals, such as balancing revenue against latency constraints, and further formalize the theoretical convergence rates of the algorithm.

Summary updated

BibTeX
@misc{heymann2025non,
  author = {Benjamin Heymann and Otmane Sakhi},
  title = {{Non-Linear Counterfactual Aggregate Optimization}},
  year = {2025},
  eprint = {2509.03438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03438},
}
Figure