Few-Shot Upsampling for Protest Size Detection

Andrew Halterman, Benjamin J. Radford
5/24/2021
cs.CLcs.LG
transformer-attention

Official code: benradford/few-shot-upsampling-for-protest-size-detection (1 star, Jupyter Notebook, MIT, last commit 2021-08-03).

Abstract

We propose a new task and dataset for a common problem in social science research: "upsampling" coarse document labels to fine-grained labels or spans. We pose the problem in a question answering format, with the answers providing the fine-grained labels.

Show full abstract

We provide a benchmark dataset and baselines on a socially impactful task: identifying the exact crowd size at protests and demonstrations in the United States given only order-of-magnitude information about protest attendance, a very small sample of fine-grained examples, and English-language news text. We evaluate several baseline models, including zero-shot results from rule-based and question-answering models, few-shot models fine-tuned on a small set of documents, and weakly supervised models using a larger set of coarsely-labeled documents. We find that our rule-based model initially outperforms a zero-shot pre-trained transformer language model but that further fine-tuning on a very small subset of 25 examples substantially improves out-of-sample performance. We also demonstrate a method for fine-tuning the transformer span on only the coarse labels that performs similarly to our rule-based approach. This work will contribute to social scientists' ability to generate data to understand the causes and successes of collective action.

View on arXivView PDF

Code Implementations(1)

MIT
10Jupyter Notebook, PythonMay 20, 20215 years agoMIT

Similar Papers

Cite this paper

@article{halterman2021fewshot,
  title  = {Few-Shot Upsampling for Protest Size Detection},
  author = {Andrew Halterman and Benjamin J. Radford},
  year   = {2021},
  eprint = {2105.11260},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.11260}
}

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/2105.11260.svg)](https://codeofpaper.com/paper/2105.11260)

Discussion