The Insight-Inference Loop: Efficient Text Classification via Natural Language Inference and Threshold-Tuning
Modern computational text classification methods have brought social scientists tantalizingly close to the goal of unlocking vast insights buried in text data—from centuries of historical documents to streams of social media posts. Yet three barriers still stand in the way: the tedious labor of manual text annotation, the technical complexity that keeps these tools out of reach for many researchers, and, perhaps most critically, the challenge of bridging the gap between sophisticated algorithms and the deep theoretical understanding social scientists have already developed about human interactions, social structures, and institutions. To counter these limitations, we propose an approach to large-scale text analysis that requires substantially less human-labeled data, and no machine learning expertise, and efficiently integrates the social scientist into critical steps in the workflow. This approach, which allows the detection of statements in text, relies on large language models pre-trained for natural language inference, and a “few-shot” threshold-tuning algorithm rooted in active learning principles. We describe and showcase our approach by analyzing tweets collected during the 2020 U.S. presidential election campaign, and benchmark it against various computational approaches across three datasets.
Authors
- Grégory Renard (ORCID: https://orcid.org/0009-0002-1848-7972)
- Björn Roß (ORCID: https://orcid.org/0000-0003-2717-3705)
- David J. Harding (ORCID: https://orcid.org/0000-0002-2121-0790)
- Marion Fourcade (ORCID: https://orcid.org/0000-0002-4821-9031)
- Sandrine Chausson (ORCID: https://orcid.org/0009-0005-4415-4962)
Institutions
- University of California, Berkeley (US)
- University of Edinburgh (GB)
Publication Details
- Journal
- Sociological Methods & Research
- Published
- 2025-04-18
- DOI
- https://doi.org/10.1177/00491241251326819
- Primary Topic
- Computational and Text Analysis Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Social Science Research Council
- UK Research and Innovation