Hostname: page-component-74656f9884-npj9w Total loading time: 0 Render date: 2026-11-07T19:34:59.974Z Has data issue: false hasContentIssue false

Active Learning Approaches for Labeling Text: Review and Assessment of the Performance of Active Learning Approaches

Published online by Cambridge University Press:  21 April 2020

Blake Miller*
Affiliation:
Department of Methodology, London School of Economics and Political Science, Columbia House, Houghton Street, London WC2A 2AE, UK. Email: b.a.miller@lse.ac.uk
Fridolin Linder
Affiliation:
Department of Political Science, Social Media and Political Participation Lab, New York University, 431 19 West 4th Street, New York, NY 10012, USA. Email: fridolin.linder@nyu.edu
Walter R. Mebane Jr.
Affiliation:
Professor, Department of Political Science and Department of Statistics, University of Michigan, Haven Hall, Ann Arbor, MI 48109-1045, USA. Email: wmebane@umich.edu
Rights & Permissions [Opens in a new window]

Abstract

Supervised machine learning methods are increasingly employed in political science. Such models require costly manual labeling of documents. In this paper, we introduce active learning, a framework in which data to be labeled by human coders are not chosen at random but rather targeted in such a way that the required amount of data to train a machine learning model can be minimized. We study the benefits of active learning using text data examples. We perform simulation studies that illustrate conditions where active learning can reduce the cost of labeling text data. We perform these simulations on three corpora that vary in size, document length, and domain. We find that in cases where the document class of interest is not balanced, researchers can label a fraction of the documents one would need using random sampling (or “passive” learning) to achieve equally performing classifiers. We further investigate how varying levels of intercoder reliability affect the active learning procedures and find that even with low reliability, active learning performs more efficiently than does random sampling.

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. From left to right, top to bottom, the first five panels visualize the uncertainty sampling algorithm. Circles represent queries of unlabeled observations. Once an expert has labeled the data, they are represented by plus symbols for the positive class and minus symbols for the negative class. The last panel shows the true labels of all labeled observations.

Figure 1

Figure 2. Design of the simulation study. In each iteration of the algorithm model tuning parameters and text feature sets are selected via cross-validation on the training data available from previous iterations. The best performing classification model is then evaluated on a held-out test dataset.

Figure 2

Figure 3. F1-score for experiments. The panel columns correspond to the datasets and the rows to the different levels of class imbalance. Dots represent single replications of the experiment and smoothed lines are fits (and standard errors) of a generalized additive model.

Figure 3

Table 1. Number of training samples required to reach an F1-score of 0.1 for active and passive learning.

Figure 4

Figure 4. Performance by number of labeled examples for classifiers trained with active and passive learning (with class balance 0.01). Dots represent the average classifier performance across replications. Dot size is proportional to the average number of positively labeled observations in the training sample across replications.

Figure 5

Figure 5. Active learning and passive learning performance on the Twitter dataset with different levels of simulated intercoder reliability.

Figure 6

Figure 6. Comparison of generalization error (in terms of F1-score) in training and test set for active learning with margin querying strategy. Results are from the Twitter dataset.

Supplementary material: File

Miller et al. supplementary material

Miller et al. supplementary material

Download Miller et al. supplementary material(File)
File 1.7 MB