Causal Effects of Linguistic Properties

Reid Pryzant, Dallas Card, Dan Jurafsky, Victor Veitch, Dhanya Sridhar
10/24/2020
cs.CLcs.AI

Official code: rpryzant/causal-text (74 stars, Python, last commit 2022-05-03).

Abstract

We consider the problem of using observational data to estimate the causal effects of linguistic properties. For example, does writing a complaint politely lead to a faster response time?

Show full abstract

How much will a positive product review increase sales? This paper addresses two technical challenges related to the problem before developing a practical method. First, we formalize the causal quantity of interest as the effect of a writer's intent, and establish the assumptions necessary to identify this from observational data. Second, in practice, we only have access to noisy proxies for the linguistic properties of interest -- e.g., predictions from classifiers and lexicons. We propose an estimator for this setting and prove that its bias is bounded when we perform an adjustment for the text. Based on these results, we introduce TextCause, an algorithm for estimating causal effects of linguistic properties. The method leverages (1) distant supervision to improve the quality of noisy proxies, and (2) a pre-trained language model (BERT) to adjust for the text. We show that the proposed method outperforms related approaches when estimating the effect of Amazon review sentiment on semi-simulated sales figures. Finally, we present an applied case study investigating the effects of complaint politeness on bureaucratic response times.

View on arXivView PDF

Code Implementations(1)

Package for computing causal effects of text (as treatment)

7411Python, ShellOct 19, 20204 years ago

Similar Papers

Cite this paper

@article{pryzant2020causal,
  title  = {Causal Effects of Linguistic Properties},
  author = {Reid Pryzant and Dallas Card and Dan Jurafsky and Victor Veitch and Dhanya Sridhar},
  year   = {2020},
  eprint = {2010.12919},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.12919}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.12919.svg)](https://codeofpaper.com/paper/2010.12919)

Discussion