NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Direct Inference of Effect of Treatment (DIET) for a Cookieless World

Shiv Shankar, Ritwik Sinha, Saayan Mitra, Moumita Sinha, Madalina FiterauAISTATS 2023

Abstract

Brands use cookies and device identifiers to link different web visits to the same consumer. However, with increasing demands for privacy, these identifiers are about to be phased out, making identity fragmentation a permanent feature of the online world. Assessing treatment effects via randomized experiments (A/B testing) in such a scenario is challenging because identity fragmentation causes a) users to receive hybrid/mixed treatments, and b) hides the causal link between the historical treatments and the outcome. In this work, we address the problem of estimating treatment effects when a lack of identification leads to incomplete knowledge of historical treatments. We develop a new method called DIET, which can adjust for users being exposed to mixed treatments without the entire history of treatments being available. Our method takes inspiration from the Cox model, and uses a proportional outcome approach under which we prove that one can obtain consistent estimates of treatment effects even under identity fragmentation. Our experiments, on one simulated and two real datasets, show that our method leads to up to 20% reduction in error and 25% reduction in bias over the naive estimate.

Introduction

In the traditional digital landscape, cookies and persistent identifiers allowed brands to maintain a cohesive view of user journeys. This visibility made A/B testing straightforward: researchers could accurately link past exposures to current behaviors. However, the transition to a "cookieless world"—driven by privacy regulations like GDPR and browser-level restrictions—has introduced significant "identity fragmentation."

A single user may now appear as multiple distinct entities across different devices or sessions. This fragmentation leads to Fragmentation Bias, where standard causal inference tools fail because they cannot account for "mixed" treatment histories. For instance, a user might see an advertisement on a mobile device (Treatment A) but complete a purchase on a desktop (where they appear as a new user and might see Treatment B). Standard "last-click" attribution or session-based analysis misses the cumulative impact of the entire journey.

Methodology: The DIET Framework

To address these challenges, we introduce Direct Inference of Effect of Treatment (DIET). The core innovation of DIET is the use of a proportional outcome model, inspired by the Cox Proportional Hazards model.

The Proportional Outcome Model

DIET assumes that the relationship between a "direct effect" (the immediate response to a treatment) and a "cumulative effect" (the total response over time) can be modeled as a functional ratio, denoted as $\Lambda$. This proportionality allows the model to infer global treatment effects even when historical data is incomplete.

Estimation Procedure

  1. Learning from the Trackable Subset: DIET leverages the small percentage of users who remain trackable (e.g., logged-in users) to estimate the ratio $\Lambda$ between immediate and cumulative effects.
  2. Inference for Fragmented Data: Once $\Lambda$ is learned, it is applied to the broader, fragmented dataset. DIET "corrects" the observed marginal effects of anonymous users, effectively reconstructing the global treatment effect that would have been observed with full identity linkage.
Estimation of the proportional ratio $\Lambda$ across different risk models and treatment scenarios.

Unlike "session stitching" techniques, which rely on heuristic guesses and lack formal guarantees, DIET provides a statistically grounded approach that remains data-efficient even as privacy constraints tighten.

Experimental Evaluation

We evaluated DIET across three diverse environments:

  • Synthetic Simulation: A controlled setup with 50,000 users over 10 time steps to verify mathematical consistency.
  • YooChoose (E-commerce): Real-world click-stream logs where varying levels of cookie deletion were simulated to test privacy robustness.
  • MIMIC-III (Healthcare): ICU patient records where "fragmentation" occurs as patients move between clinical settings, with different drug regimens serving as treatments.

Key Results and Discussion

DIET demonstrates significant improvements in both accuracy and stability compared to existing methods.

Robustness to Privacy and Data Scarcity

As the percentage of trackable users decreases, traditional longitudinal models like LTMLE (Longitudinal Targeted Maximum Likelihood Estimation) often fail because they require complete histories. In contrast, DIET remains remarkably stable, outperforming both LTMLE and heuristic stitching methods when history is scarce.

Bias comparison across different methods as the percentage of trackable users varies.

Performance Gains

  • Error and Bias Reduction: In e-commerce simulations, DIET reduced estimation error by up to 20% and bias by up to 25% compared to naive "last-click" estimates.
  • Healthcare Application: In the MIMIC-III dataset, DIET successfully corrected biases in marginal estimates for critical clinical outcomes like white blood cell counts and hemoglobin levels.

Causal Insights

The success of DIET suggests that identity fragmentation should be treated as a causal inference problem—specifically, a form of "interference" where past treatments influence current outcomes. By focusing on the population-level relationship between direct and cumulative effects ($\Lambda$), DIET avoids the pitfalls of trying to perfectly reconstruct individual user journeys.

Conclusion and Future Work

DIET offers a principled alternative to heuristic stitching in a privacy-first world. Its primary limitation is the reliance on a multiplicative proportionality assumption. While effective for many marketing and clinical use cases, future research could explore more flexible functional forms for non-linear or threshold-based treatment effects. Additionally, integrating DIET with deep learning-based causal estimators presents promising avenues for further development.

Summary updated

BibTeX
@inproceedings{shankar2023direct,
  author = {Shiv Shankar and Ritwik Sinha and Saayan Mitra and Moumita Sinha and Madalina Fiterau},
  title = {{Direct Inference of Effect of Treatment (DIET) for a Cookieless World}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=q2IiTMZVtg},
}

Loading related content...

Figure