With the modern software and online platforms to collect massive amount of data, there is an increasing demand of applying causal inference methods at large scale when randomized experimentation is not viable. Weighting methods that directly incorporate covariate balancing have recently gained popularity for estimating causal effects in observational studies. These methods reduce the manual efforts required by researchers to iterate between propensity score modeling and balance checking until a satisfied covariate balance result. However, conventional solvers for determining weights lack the scalability to apply such methods on large scale datasets in companies like Snap Inc. To address the limitations and improve computational efficiency, in this paper we present scalable algorithms, DistEB and DistMS, for two balancing approaches: entropy balancing and MicroSynth. The solvers have linear time complexity and can be conveniently implemented in distributed computing frameworks such as Spark, Hive, etc. We study the properties of balancing approaches at different scales up to 1 million treated units and 487 covariates. We find that with larger sample size, both bias and variance in the causal effect estimation are significantly reduced. The results emphasize the importance of applying balancing approaches on large scale datasets. We combine the balancing approach with a synthetic control framework and deploy an end-to-end system for causal impact estimation at Snap Inc.
翻译:随着现代软件和在线平台收集海量数据的能力提升,当随机实验不可行时,大规模应用因果推断方法的需求日益增长。近年来,直接纳入协变量平衡的加权方法在观察性研究中用于估计因果效应时备受关注。这些方法减少了研究人员在倾向得分建模与平衡检验之间反复迭代以达到满意协变量平衡结果所需的手动工作。然而,传统用于确定权重的求解器缺乏可扩展性,无法在Snap Inc.等公司的大规模数据集上应用此类方法。为克服这些局限性并提升计算效率,本文针对两种平衡方法——熵平衡和MicroSynth——提出了可扩展算法DistEB和DistMS。这些求解器具有线性时间复杂度,并可在Spark、Hive等分布式计算框架中便捷实现。我们研究了平衡方法在不同规模(处理组样本量达100万、协变量达487个)下的特性。研究发现,随着样本量增大,因果效应估计中的偏差和方差均显著降低。这一结果强调了在大规模数据集上应用平衡方法的重要性。我们将平衡方法与合成控制框架相结合,在Snap Inc.内部署了一个端到端的因果影响评估系统。