Personalized Binomial DAGs Learning with Network Structured Covariates

Boxin Zhao, Weishi Wang, Dingyuan Zhu, Ziqi Liu, Dong Wang, Zhiqiang Zhang, Jun Zhou, Mladen KolararXiv 2024

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:

  1. Heterogeneity: A teenager and a retiree likely have different motivations for moving from a news site to a shopping site.
  2. 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

Abstract

The causal dependence in data is often characterized by Directed Acyclic Graphical (DAG) models, widely used in many areas. Causal discovery aims to recover the DAG structure using observational data. This paper focuses on causal discovery with multi-variate count data. We are motivated by real-world web visit data, recording individual user visits to multiple websites. Building a causal diagram can help understand user behavior in transitioning between websites, inspiring operational strategy. A challenge in modeling is user heterogeneity, as users with different backgrounds exhibit varied behaviors. Additionally, social network connections can result in similar behaviors among friends. We introduce personalized Binomial DAG models to address heterogeneity and network dependency between observations, which are common in real-world applications. To learn the proposed DAG model, we develop an algorithm that embeds the network structure into a dimension-reduced covariate, learns each node's neighborhood to reduce the DAG search space, and explores the variance-mean relation to determine the ordering. Simulations show our algorithm outperforms state-of-the-art competitors in heterogeneous data. We demonstrate its practical usefulness on a real-world web visit dataset.
BibTeX
@misc{zhao2024personalized,
  author = {Boxin Zhao and Weishi Wang and Dingyuan Zhu and Ziqi Liu and Dong Wang and Zhiqiang Zhang and Jun Zhou and Mladen Kolar},
  title = {{Personalized Binomial DAGs Learning with Network Structured Covariates}},
  year = {2024},
  eprint = {2406.06829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.06829},
}
Figure