Abstract
Causal inference from observational social media data is often hampered by latent confounding. While NLP models are increasingly used to extract confounders from text, evaluating their effectiveness is difficult due to the lack of ground truth. This paper introduces a semi-synthetic evaluation framework that injects controlled signals into real-world text histories. Our evaluation reveals that common methods often disagree and fail basic sanity checks, highlighting the need for principled benchmarks in text-based causal inference.
Introduction
In social media research, determining causal relationships—such as whether online therapy reduces suicide risk—is challenging due to confounding variables like underlying mental health states. Researchers often turn to Natural Language Processing (NLP) to extract these confounders from user post histories. However, without ground truth causal effects, it is impossible to verify if these models are accurate or merely capturing spurious correlations. This paper addresses this "evaluation gap" by providing a principled way to test these models against known causal effects.
The Causal Framework
Causal DAG showing the relationship between latent confounders, text history (X), treatment (T), and outcome (Y). Source, p. 1
The core challenge is illustrated in Figure 1. A latent confounder (e.g., a user's underlying state or "class") influences both the treatment assignment ($T$) and the observed outcome ($Y$), while also manifesting in the user's text history ($X$). To achieve unbiased causal inference, researchers must use $X$ to effectively adjust for the confounding effect of the latent variable.
Experimental Methodology
The authors propose a semi-synthetic pipeline using Reddit (8,000 users) and Twitter (8,000 users) data. They inject synthetic posts related to specific life events (e.g., sickness, social isolation) to "assign" treatments and outcomes. This creates a controlled environment where the true Average Treatment Effect (ATE) is known.
They evaluate a standard causal inference pipeline consisting of:
- Text Representations: 1-grams, bigrams, LDA, and SHERBERT (cauSal HiERarchical variant of BERT).
- Propensity Score Models: Logistic Regression and Simple Neural Networks.
- ATE Estimators: Inverse Probability of Treatment Weighting (IPTW), Stratification, and Matching.
Key Results and Discussion
Empirical results comparing treatment prediction accuracy and ATE estimation across different models and experiments. Source, p. 3
The evaluation framework reveals several critical insights (Figure 2):
- The Disagreement Problem: Different popular methods yield wildly different ATE estimates on the same data. Without a benchmark, researchers cannot determine which result is correct.
- Accuracy ≠ Causal Validity: A model that is highly accurate at predicting treatment (high propensity score accuracy) often produces worse causal estimates. This occurs because highly distinct treated and untreated groups can violate the "common support" assumption required for valid inference.
- Model Trade-offs: While the Transformer-based SHERBERT excels at complex linguistic tasks, it struggles with "signal intensity" (counting specific keywords) compared to simpler n-gram models.
- Placebo Failures: In "Placebo Tests" where the true causal effect was zero, 8 out of 9 tested methods falsely reported a significant effect. This suggests many published social media studies might be finding effects that do not exist.
Conclusion
This work demonstrates that the choice of text representation (e.g., BERT vs. Bigrams) has a significantly larger impact on the final result than the choice of estimator (e.g., IPTW vs. Matching). The proposed framework provides a necessary sanity check for researchers using text for causal adjustment, moving beyond theoretical proofs to empirical validation in complex, real-world data environments.
Summary updated