mlsanityData to 7 Oct 2026

Towards Coding Social Science Datasets with Language Models

arXiv 2306.02177 ↗First posted 3 Jun 2023cs.AIcited by 10

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  6. 2018Deep contextualized word representationscited by 2,285
  7. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  8. 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 849
  9. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  10. 2022Out of One, Many: Using Language Models to Simulate Human Samplescited by 737
  11. 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
  12. 2023Can Large Language Models Transform Computational Social Science?cited by 245
4 more
  1. 2019Identifying and Reducing Gender Bias in Word-Level Language Modelscited by 214
  2. 2019Reducing Gender Bias in Word-Level Language Models with a Gender-Equalizing Loss Functioncited by 57
  3. 2023Stance Detection: A Practical Guide to Classifying Political Beliefs in Textcited by 20
  4. 2023Synthetically generated text for supervised text analysiscited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 3; 2024: 3; 2025: 3; 2026: 1.

10 papers.