Abstract
Causal discovery aims to recover Directed Acyclic Graphical (DAG) models from observational data to understand the underlying mechanisms of complex systems. In many real-world scenarios, such as web visit logs, data is characterized by multivariate counts where observations are neither independent nor identically distributed. This paper introduces personalized Binomial DAG models to account for user heterogeneity and social network dependencies. By integrating graph neural networks with statistical smoothing and overdispersion analysis, the proposed framework recovers causal structures that adapt to individual user characteristics and social contexts.
Introduction
Causal discovery—the process of identifying "what causes what" from raw data—is a cornerstone of modern data science. However, most existing methods rely on the assumption that every data point is independent and identically distributed (i.i.d.). In the real world, especially when analyzing human behavior on the web, users are diverse (heterogeneous) and heavily influenced by their social circles (network-dependent).
When these factors are ignored, standard algorithms produce "blurry" or incorrect causal models. This paper addresses these challenges by focusing on multivariate count data (e.g., the number of times a user visits specific websites) and introducing a framework for learning "Personalized Binomial DAGs."
The Challenge: Heterogeneity and Network Dependency
Standard causal models often assume that every individual follows the same transition logic. In reality, two primary factors complicate this:
- Heterogeneity: A teenager and a retiree likely have different motivations for moving from a news site to a shopping site.
- Network Dependency: Friends or colleagues often exhibit similar browsing patterns because they share interests or information.
To model this accurately, the researchers assume that while all users might share the same "skeleton" of a causal graph (the same possible arrows), the strength of those relationships (the weights) varies smoothly based on the user’s features and social position.
Methodology
The authors propose a four-step algorithm that bridges the gap between deep learning and statistical inference:
1. Node Embedding
Complex user features and social network positions are compressed into a low-dimensional "covariate vector." The framework supports both linear approaches (using eigen-decomposition) and nonlinear approaches (using Graph Auto-Encoders or GAEs) to capture the essence of a user's social and demographic context.
2. Neighborhood Estimation
To avoid searching the entire space of possible causal links, the model uses penalized kernel smoothing. This identifies a "neighborhood" for each variable by giving more weight to users who are "close" to each other in the embedding space, allowing the model to adapt to local variations in behavior.
3. Determining the Causal Order
Causal models require a direction (e.g., A causes B). The authors extend the "overdispersion score"—a technique that examines the relationship between mean and variance in count data—to work in a heterogeneous environment. In Binomial data, the variance is tied to the mean in a specific way; by analyzing how the data "wobbles," the algorithm can mathematically deduce which variable is the "parent" and which is the "child."
4. DAG Recovery
Finally, the estimated order and neighborhoods are used to reconstruct the full directed graph through a penalized estimation procedure.
Empirical Evaluation
Simulation Results
In synthetic tests, the proposed method significantly outperformed state-of-the-art competitors like the Quadratic Variance Function (QVF) algorithm. While QVF struggled as data became more heterogeneous, this new algorithm's accuracy improved consistently as the sample size increased, even in complex nonlinear setups.
Real-World Application: Alipay Web Visits
The researchers applied their model to a dataset of 6,000 users and their visits to 17 different Alipay sub-sites during the COVID-19 pandemic. The model successfully mapped out the logic of pandemic life in China, identifying a strong causal chain: City Service → Transport Pay → Green Code. This reflects a logical user journey: users accessed city services to find bus routes, paid their fare, and were then required to show their health status ("Green Code") to board.
Conclusion and Future Work
This research provides a robust framework for causal discovery in non-i.i.d. count data. While the current implementation is specifically tuned for Binomial distributions and faces some computational hurdles with very large-scale networks, it represents a significant step toward personalized causal modeling. Future work aims to extend this math to other count distributions, such as Poisson, and to develop more rigorous mathematical proofs for the algorithm's consistency.
Summary updated