Entire Space Counterfactual Learning for Reliable Content Recommendations

Hao Wang, Zhichao Chen, Zhaoran Liu, Haozhe Li, Degui Yang, Xinggao Liu, Haoxuan Li

TL;DR

Standard multi-task recommendation models suffer from systematic overestimation and ignore the causal link between a user clicking an item and actually converting (purchasing) it. This paper introduces $\text{ESCM}^2$ (Entire Space Counterfactual Multitask Model), a framework that elegantly combines multi-task learning with counterfactual risk regularizers to deliver mathematically unbiased and highly accurate post-click conversion rate estimations.

What Problem Does This Paper Address?

In modern recommender systems, understanding user behavior typically follows a sequential trajectory: Exposure $\rightarrow$ Click $\rightarrow$ Conversion. While predicting the Click-Through Rate (CTR) is a well-studied problem, predicting the post-click Conversion Rate (CVR) is notoriously difficult due to two classic challenges:

  1. Data Sparsity: Only a tiny fraction of exposed items get clicked, leaving very few positive samples to train a CVR model.
  2. Sample Selection Bias: CVR models are traditionally trained only on the subset of items that users clicked (the click space), but during deployment, they must evaluate all candidate items (the entire exposure space).
Overview of the CVR estimation spaces and the transition from exposure to conversion.

To solve this, the industry standard has been the Entire Space Multitask Model (ESMM), which trains across the entire exposure space by optimizing click-through-and-conversion rate (CTCVR) and CTR simultaneously.

However, the authors point out two fatal flaws in ESMM:

  • Intrinsic Estimation Bias (IEB): ESMM mathematically overestimates the true CVR.
  • False Independence Prior (FIP): ESMM treats clicks and conversions as conditionally independent, completely ignoring the causal link that a conversion requires a click.

Methods

The authors introduce $\text{ESCM}^2$, a model-agnostic framework that injects counterfactual regularizers directly into the multi-task learning architecture to eliminate bias while preserving ESMM's ability to handle sparse data.

They propose two main variants based on causal inference techniques:

  • $\text{ESCM}^2$-IPS: Utilizes an Inverse Propensity Score regularizer. It re-weights clicked samples based on their click probability (CTR), effectively correcting the distribution shift between the training (clicked) space and inference (exposed) space.
  • $\text{ESCM}^2$-DR: A Doubly Robust variant. Because IPS can suffer from high variance when click probabilities are extremely low, the DR variant introduces an error imputation arm to estimate CVR errors outside the click space, providing a lower-variance, more stable training signal.
Fig. 4. The core architecture of ESCM2, where the ESCM2-IPS involves two arms for CTR and CVR estimation; the ESCM2-DR involves an additional arm for imputation error estimation. The breaker indicates the path where the gradients are truncated. D and O denote respective exposure and click space.

A key engineering trick in both architectures is gradient truncation (indicated by the red slashes in the diagram). The authors stop the gradient flow from the regularizer back into the CTR prediction arm. This prevents the CVR optimization objective from degrading the model's CTR performance—a common issue known as the "seesaw effect" in multi-task learning.

Datasets

The framework was evaluated on both public benchmarks and massive real-world production datasets:

  • Industry Dataset: Collected from Alipay's recommendation logs over 90 days, containing over 61 million training samples.
  • Ali-CPP Dataset: A large-scale public e-commerce dataset provided by Alibaba, containing roughly 33 million training samples, used to ensure reproducibility.
  • Coat, Music, and KuaiRec: Three smaller public datasets specifically used to test the model's versatility on an adjacent task: unbiased rating prediction.

Key Insights and Ideas

  • Framing CVR via Do-Calculus: Instead of treating CVR as a simple conditional probability, the authors redefine it as a causal estimand: $P(\text{conversion} \mid do(\text{click} = 1))$. This explicitly models the counterfactual question: "What would be the likelihood of conversion if we forced the user to click this item?"
  • Mathematical Proof of ESMM's Bias: The paper provides the first formal proof (Theorem 1) demonstrating that ESMM's task decomposition inherently forces CVR estimates to be higher than actual values.
  • The Power of Multi-Task + Causal Fusion: Historically, multi-task learning handled data sparsity well but ignored bias, while causal methods handled bias well but ignored sparsity (by only training on clicked data). $\text{ESCM}^2$ proves that these two paradigms can be synthesized to solve both problems simultaneously.

Key Results

Offline Performance

On both the Industry and Ali-CPP datasets, $\text{ESCM}^2$ variants significantly outperformed ESMM and other competitive debiasing baselines (like MTL-IPS and MTL-DR) across standard ranking metrics, including AUC, F1-score, and Kolmogorov-Smirnov (KS) statistics. Furthermore, $\text{ESCM}^2$-DR successfully reduced the lower-bound CVR estimation bias by up to 58.58% on the industrial dataset.

Online A/B Tests

The model was deployed live on Alipay for real-world user traffic across three major scenarios:

  • Scenario 1 (Insurance Recommendations): Over 6 days with 2.2 million unique users, $\text{ESCM}^2$ achieved a 10.85% increase in total premium, a 2.84% increase in order quantity, and a 5.64% boost in CVR compared to ESMM.
  • Scenario 3 (Wufu Campaign): In a massive festival campaign, the model achieved a staggering 40.55% increase in order quantity and a 12.69% rise in premium.

Limitations and Future Work

The primary limitation of this work is its reliance on a strict, linear sequential user behavior chain (Exposure $\rightarrow$ Click $\rightarrow$ Conversion). In reality, industrial user journeys are web-like and complex; users might add items to a cart, save them to favorites, or interact across multiple sessions before converting.

While some models attempt to decompose these complex paths, they still suffer from the same underlying estimation biases identified here. The authors note that extending counterfactual regularization to these more intricate, graph-based user behavior dependencies is a promising and necessary direction for future research.

Summary updated

Abstract

Post-click conversion rate (CVR) estimation is a fundamental task in developing effective recommender systems, yet it faces challenges from data sparsity and sample selection bias. To handle both challenges, the entire space multitask models are employed to decompose the user behavior track into a sequence of exposure $\rightarrow$ click $\rightarrow$ conversion, constructing surrogate learning tasks for CVR estimation. However, these methods suffer from two significant defects: (1) intrinsic estimation bias (IEB), where the CVR estimates are higher than the actual values; (2) false independence prior (FIP), where the causal relationship between clicks and subsequent conversions is potentially overlooked. To overcome these limitations, we develop a model-agnostic framework, namely Entire Space Counterfactual Multitask Model (ESCM$^2$), which incorporates a counterfactual risk minimizer within the ESMM framework to regularize CVR estimation. Experiments conducted on large-scale industrial recommendation datasets and an online industrial recommendation service demonstrate that ESCM$^2$ effectively mitigates IEB and FIP defects and substantially enhances recommendation performance.
BibTeX
@article{wang2025entire,
  author = {Hao Wang and Zhichao Chen and Zhaoran Liu and Haozhe Li and Degui Yang and Xinggao Liu and Haoxuan Li},
  title = {{Entire Space Counterfactual Learning for Reliable Content Recommendations}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2025},
  doi = {10.1109/tifs.2024.3516584},
}
Figure