Isolated Causal Effects of Natural Language

Victoria Lin, Louis-Philippe Morency, Eli Ben-Michael · DOI

Introduction

In natural language processing, linguistic attributes are often "aliased" or highly correlated. For example, if "netspeak" appears to make product reviews more helpful, it is difficult to determine if the informal language itself is the cause, or if it is merely a proxy for high-energy, positive sentiment. Standard methods struggle to disentangle these factors, leading to Omitted Variable Bias (OVB). Because language is nearly infinitely high-dimensional, perfectly representing the "rest of the text" (non-focal context) is impossible. This paper introduces a formal framework to approximate this context and quantify the potential bias in causal conclusions.

Methodology: Decomposition and Robust Estimation

The proposed framework relies on three core pillars:

  1. Decomposition: Text $X$ is treated as a combination of focal language $a(X)$ (the intervention of interest) and non-focal language $a^c(X)$ (the surrounding context).
  2. Doubly Robust (DR) Estimation: To calculate the isolated effect, the authors employ a DR estimator that integrates an outcome model (predicting results from text) and importance weights (adjusting for context-attribute correlations). This approach ensures unbiased estimates if either the outcome or the weighting model is correctly specified.
  3. Sensitivity Metrics: Since context can only be approximated ($a^c_s(X)$), the framework introduces three diagnostic metrics:
  4. Fidelity ($\sigma^2$): Measures how well the context approximation explains the outcome.
  5. Overlap ($\nu^2$): Assesses how well the focal attribute is "mixed" within the context to ensure valid causal comparisons.
  6. Robustness Value (RV): A summary statistic indicating the amount of unobserved information required to reverse the estimated effect's sign.
Conceptual framework for approximating non-focal language context using various representations.

Key Insights: The Fidelity-Overlap Tradeoff

A significant finding is the inherent tradeoff between fidelity and overlap. High-dimensional embeddings (e.g., MPNet) provide excellent fidelity by capturing rich textual nuances, but their descriptive power often breaks overlap—the model can too easily predict the focal attribute from the context, making causal inference statistically untrustworthy.

The authors demonstrate that applying Singular Value Decomposition (SVD) to these high-dimensional embeddings can significantly improve overlap and robustness without substantial loss in fidelity. Additionally, SenteCon—a representation mapping embeddings back to interpretable lexicons—emerged as a robust middle ground, offering high robustness and estimates that closely matched clinical trial data.

Empirical Validation

The framework was validated using two datasets:

  • Amazon Reviews (Semi-synthetic): Using real text with synthetic "helpfulness" scores based on known linguistic categories allowed for "ground truth" recovery. As the dimensionality of context approximations increased, estimates converged toward the true causal values.
  • Semaglutide vs. Tirzepatide (SvT): Analyzing Reddit posts from weight-loss communities, the framework estimated the relative effectiveness of these drugs. The results were found to be consistent with clinical trial benchmarks.
Isolated causal effect estimates and sensitivity metrics for weight-loss medication in the SvT dataset.

Limitations and Future Directions

The framework assumes the focal attribute is a known, deterministic mapping (a "codebook function"). In practice, attributes might be latent, introducing further bias. Additionally, it assumes all confounding is captured within the text, which may not hold if external factors like user demographics are influential but unmentioned. Future work will explore learning representations that explicitly optimize the fidelity-overlap tradeoff for causal inference.

Summary updated

BibTeX
@inproceedings{lin2025isolated,
  author = {Victoria Lin and Louis-Philippe Morency and Eli Ben-Michael},
  title = {{Isolated Causal Effects of Natural Language}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Z0jnz149L1},
}
Figure