Hostname: page-component-74656f9884-c52kr Total loading time: 0 Render date: 2026-11-07T09:45:48.976Z Has data issue: false hasContentIssue false

Matching with Text Data: An Experimental Evaluation of Methods for Matching Documents and of Measuring Match Quality

Published online by Cambridge University Press:  17 March 2020

Reagan Mozer*
Affiliation:
Bentley University, Department of Mathematical Sciences, Waltham, MA 02452-4713, USA. Email: rmozer@bentley.edu
Luke Miratrix
Affiliation:
Harvard Graduate School of Education, Cambridge, MA 02138, USA. Email: luke_miratrix@gse.harvard.edu
Aaron Russell Kaufman
Affiliation:
Division of Social Science, New York University Abu Dhabi, Saadiyat Island, Abu Dhabi, United Arab Emirates. Email: aaronkaufman@nyu.edu
L. Jason Anastasopoulos
Affiliation:
University of Georgia, Department of Public Administration and Policy and Political Science, Athens, GA 30601, USA. Email: ljanastas@uga.edu
*
Rights & Permissions [Opens in a new window]

Abstract

Matching for causal inference is a well-studied problem, but standard methods fail when the units to match are text documents: the high-dimensional and rich nature of the data renders exact matching infeasible, causes propensity scores to produce incomparable matches, and makes assessing match quality difficult. In this paper, we characterize a framework for matching text documents that decomposes existing methods into (1) the choice of text representation and (2) the choice of distance metric. We investigate how different choices within this framework affect both the quantity and quality of matches identified through a systematic multifactor evaluation experiment using human subjects. Altogether, we evaluate over 100 unique text-matching methods along with 5 comparison methods taken from the literature. Our experimental results identify methods that generate matches with higher subjective match quality than current state-of-the-art techniques. We enhance the precision of these results by developing a predictive model to estimate the match quality of pairs of text documents as a function of our various distance scores. This model, which we find successfully mimics human judgment, also allows for approximate and unsupervised evaluation of new procedures in our context. We then employ the identified best method to illustrate the utility of text matching in two applications. First, we engage with a substantive debate in the study of media bias by using text matching to control for topic selection when comparing news articles from thirteen news sources. We then show how conditioning on text data leads to more precise causal inferences in an observational study examining the effects of a medical intervention.

Information

Type
Articles
Copyright
Copyright © The Author(s) 2020. Published by Cambridge University Press on behalf of the Society for Political Methodology.
Figure 0

Figure 1. Distance between documents and match quality based on the cosine distance measured over a TDM-based representation (top left) exhibit a stronger relationship than cosine distance measured over both a W2V-based representation (top center) and an STM-based representation (top right), and a much stronger relationship than the Mahalanobis distance measured over a TDM-based representation (bottom left), a W2V-based representation (bottom center), or an STM-based representation (bottom right).

Figure 1

Figure 2. Number of matches found versus average model-assisted match quality scores for each combination of matching methods. Gray points indicate procedures with extreme reduction in information (e.g., procedures that match on only stop words). Blue circles highlight procedures that use existing state-of-the-art methods for text matching. One procedure with many low-quality pairs is excluded from this plot.

Figure 2

Figure 3. Estimates of average favorability toward Democrats (blue) and Republicans (red) for each source both before and after matching.

Figure 3

Figure 4. Standardized differences in means with 95% confidence intervals between treatment and control groups on twenty-six numerical covariates and five text-based covariates (denoted by *) before matching (gray), after propensity score matching (red), and after text matching (blue).

Figure 4

Table 1. Survival rates for treatment and control groups and estimated treatment effects before and after propensity score matching (PSM) and text matching within propensity score calipers.

Supplementary material: File

Mozer et al. supplementary material

Mozer et al. supplementary material

Download Mozer et al. supplementary material(File)
File 1.4 MB