实现通用随机数:基于事件的哈希化用于因果有效的随机模型
Realizing Common Random Numbers: Event-Keyed Hashing for Causally Valid Stochastic Models
AI总结:
本文提出通过结合计数随机数生成器和事件标识符,解决ABMs中因果不一致问题,恢复稳定的事件索引结构。
摘要:
基于代理的模型(ABMs)被广泛用于通过配对的反事实模拟来估计因果治疗效应。一种标准的方差减少技术是通用随机数(CRNs),它通过在干预场景中共享相同的随机输入来耦合重复项。在实践中,CRNs是通过重用相同的基种子来实现的,但这依赖于一个关键假设:相同的抽样索引对应于不同场景中的相同建模事件。具有状态的伪随机数生成器(PRNGs)在干预改变模拟执行路径时会违反这一假设,因为任何控制流的变化都会改变所有下游事件的抽样索引。我们主张,这种执行路径依赖的抽样索引不仅是一种方差减少的干扰,而且代表了ABMs旨在编码的科学因果结构与由具有状态的PRNG实现诱导的程序级因果结构之间的根本不匹配。通过结构因果模型(SCMs)的视角来形式化这一点,我们展示了标准PRNG实践即使在机理规范方面是正确的,也会导致因果不一致的配对反事实比较。我们展示了通过将基于计数的随机数生成器(如Philox/Threefry)与事件标识符结合,可以将随机数生成与模拟执行顺序解耦,从而使随机抽样成为特定建模事件调用它们的明确函数,从而恢复SCMs所假设的稳定的事件索引外生结构。
英文摘要:
Agent-based models (ABMs) are widely used to estimate causal treatment effects via paired counterfactual simulation. A standard variance reduction technique is common random numbers (CRNs), which couples replicates across intervention scenarios by sharing the same random inputs. In practice, CRNs are implemented by reusing the same base seed, but this relies on a critical assumption: that the same draw index corresponds to the same modeled event across scenarios. Stateful pseudorandom number generators (PRNGs) violate this assumption whenever interventions alter the simulation's execution path, because any change in control flow shifts the draw index used for all downstream events. We argue that this execution-path-dependent draw indexing is not only a variance-reduction nuisance, but represents a fundamental mismatch between the scientific causal structure ABMs are intended to encode and the program-level causal structure induced by stateful PRNG implementations. Formalizing this through the lens of structural causal models (SCMs), we show that standard PRNG practices yield causally incoherent paired counterfactual comparisons even when the mechanistic specification is otherwise sound. We show that a remedy is to combine counter-based random number generators (e.g., Philox/Threefry) with event identifiers. This decouples random number generation from simulation execution order by making random draws explicit functions of the particular modeled event that called them, restoring the stable event-indexed exogenous structure assumed by SCMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。