Towards Coding Social Science Datasets with Language Models
Not on the map. Why?
Abstract (arXiv)
Researchers often rely on humans to code (label, annotate, etc.) large sets of texts. This kind of human coding forms an important part of social science research, yet the coding process is both resource intensive and highly variable from application to application. In some cases, efforts to automate this process have achieved human-level accuracies, but to achieve this, these attempts frequently rely on thousands of hand-labeled training examples, which makes them inapplicable to small-scale research studies and costly for large ones. Recent advances in a specific kind of artificial intelligence tool - language models (LMs) - provide a solution to this problem. Work in computer science makes it clear that LMs are able to classify text, without the cost (in financial terms and human effort) of alternative methods. To demonstrate the possibilities of LMs in this area of political science, we use GPT-3, one of the most advanced LMs, as a synthetic coder and compare it to human coders. We find that GPT-3 can match the performance of typical human coders and offers benefits over other machine learning methods of coding text. We find this across a variety of domains using very different coding procedures. This provides exciting evidence that language models can serve as a critical advance in the coding of open-ended texts in a variety of applications.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 16 of its 57 references that are in the map. First posted on arXiv 3 Jun 2023.
Builds on
16 of 57 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2018Deep contextualized word representationscited by 2,285
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 849
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2022Out of One, Many: Using Language Models to Simulate Human Samplescited by 737
- 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
- 2023Can Large Language Models Transform Computational Social Science?cited by 245
4 more
- 2019Identifying and Reducing Gender Bias in Word-Level Language Modelscited by 214
- 2019Reducing Gender Bias in Word-Level Language Models with a Gender-Equalizing Loss Functioncited by 57
- 2023Stance Detection: A Practical Guide to Classifying Political Beliefs in Textcited by 20
- 2023Synthetically generated text for supervised text analysiscited by 10
Built on by
Citing papers per year: 2023: 3; 2024: 3; 2025: 3; 2026: 1.
10 papers.
- 2023Value Kaleidoscope: Engaging AI with Pluralistic Human Values, Rights, and Dutiescited by 97
- 2023Value FULCRA: Mapping Large Language Models to the Multidimensional Spectrum of Basic Human Valuescited by 49
- 2023Machine-assisted quantitizing designs: augmenting humanities and social sciences with artificial intelligencecited by 13
- 2024Vox Populi, Vox AI? Using Language Models to Estimate German Public Opinioncited by 13
- 2024Political DEBATE: Efficient Zero-shot and Few-shot Classifiers for Political Textcited by 7
- 2024OATH-Frames: Characterizing Online Attitudes Towards Homelessness with LLM Assistantscited by 6
- 2025Arti-"fickle" Intelligence: Using LLMs as a Tool for Inference in the Political and Social Sciencescited by 1
- 2025How Persuasive is Your Context?cited by 1
- 2025LLM Analysis of 150+ years of German Parliamentary Debates on Migration Reveals Shift from Post-War Solidarity to Anti-Solidarity in the Last Decadecited by 0
- 2026Supercharging Agenda Setting Research: The ParlaCAP Dataset of 28 European Parliaments and a Scalable Multilingual LLM-Based Classificationcited by 0
- 2026Supercharging Agenda Setting Research: The ParlaCAP Dataset of 28 European Parliaments and a Scalable Multilingual LLM-Based Classification18 Feb 2026
- 2025How Persuasive is Your Context?22 Sep 2025
- 2025LLM Analysis of 150+ years of German Parliamentary Debates on Migration Reveals Shift from Post-War Solidarity to Anti-Solidarity in the Last Decade8 Sep 2025
- 2025Arti-"fickle" Intelligence: Using LLMs as a Tool for Inference in the Political and Social Sciences4 Apr 2025
- 2024Political DEBATE: Efficient Zero-shot and Few-shot Classifiers for Political Text3 Sep 2024
- 2024Vox Populi, Vox AI? Using Language Models to Estimate German Public Opinion11 Jul 2024
- 2024OATH-Frames: Characterizing Online Attitudes Towards Homelessness with LLM Assistants21 Jun 2024
- 2023Value FULCRA: Mapping Large Language Models to the Multidimensional Spectrum of Basic Human Values15 Nov 2023
- 2023Machine-assisted quantitizing designs: augmenting humanities and social sciences with artificial intelligence24 Sep 2023
- 2023Value Kaleidoscope: Engaging AI with Pluralistic Human Values, Rights, and Duties2 Sep 2023