Lune

KDD2026Top-tier venue

Scalable Counterfactual Risk Estimation for Rare Events in Longitudinal Data

Xiaohui Yin, Avijit Mitra, Ying Zhou, Kun Chen, Hong Yu

Abstract

Estimating the causal effect of time-varying treatments on survival outcomes in large observational studies is computationally demanding, particularly when outcomes are rare. While g-formula–based methods such as the iterative conditional expectation (ICE) estimator provide a principled framework for longitudinal causal inference, they become computationally expensive, especially when bootstrap-based variance estimation is required. In addition, outcome rarity at each time point induces severe class imbalance, leading to instability and convergence issues in logistic regression and related models. To address these challenges, we propose a principled subsampling and reweighting strategy for longitudinal survival data that can be applied to a range of existing causal effect estimators in this setting, including the ICE estimator. The proposed method substantially reduces computational burden while preserving consistency and improving estimation stability in rare-outcome settings. We evaluate the method through simulations and validate it using a large-scale EHR cohort study on social and behavioral determinants of health (SBDH) and suicide risk, demonstrating its effectiveness for modeling rare outcomes in longitudinal data.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Nonuniform Negative Sampling and Log Odds Correction with Rare Events Data cites Logistic Regression for Massive Data with Rare Events
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on2

  1. Logistic Regression for Massive Data with Rare EventsHaiying WangICML 2020 · 29 citations
  2. Nonuniform Negative Sampling and Log Odds Correction with Rare Events DataHaiYing Wang, Aonan Zhang, Chong WangNeurIPS 2021 · 26 citations

Related papers

  1. Causal Identification for Complex Functional Longitudinal StudiesAndrew YingICLR 2025
  2. Estimating Average Causal Effects from Patient TrajectoriesDennis Frauen, Tobias Hatt, Valentyn Melnychuk, Stefan FeuerriegelAAAI 2023 · 34 citations
  3. Heterogeneous Treatment Effect in Time-to-Event Outcomes: Harnessing Censored Data with Recursively Imputed TreesTomer Meir, Uri Shalit, Malka GorfineICML 2025
  4. Stable Estimation of Heterogeneous Treatment EffectsAnpeng Wu, Kun Kuang, Ruoxuan Xiong, Bo Li et al.ICML 2023 · 31 citations
  5. Scale-invariant Optimal Sampling for Rare-events Data and Sparse ModelsJing Wang, HaiYing Wang, Hao ZhangNeurIPS 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines