Abstract

While machine coding of data has dramatically advanced in recent years, the literature raises significant concerns about validation of LLM classification showing, for example, that reliability varies greatly by prompt and temperature tuning, across subject areas and tasks—especially in “zero-shot” applications. This paper contributes to the discussion of validation in several different ways. To test the relative performance of supervised and semi-supervised algorithms when coding political data, we compare three models’ performances to each other over multiple iterations for each model and to trained expert coding of data. We also examine changes in performance resulting from prompt engineering and pre-processing of source data. To ameliorate concerns regarding LLM’s pre-training on test data, we assess performance by updating an existing dataset beyond what is publicly available. Overall, we find that only GPT-4 approaches trained expert coders when coding contexts familiar to human coders and codes more consistently across contexts. We conclude by discussing some benefits and drawbacks of machine coding moving forward.

Details

Title
Coding with the machines: machine-assisted coding of rare event data
Author
Henry David Overos 1   VIAFID ORCID Logo  ; Hlatky, Roman 2   VIAFID ORCID Logo  ; Pathak, Ojashwi 1   VIAFID ORCID Logo  ; Goers, Harriet 1   VIAFID ORCID Logo  ; Gouws-Dewar, Jordan 1   VIAFID ORCID Logo  ; Smith, Katy 3 ; Chew, Keith Padraic 4   VIAFID ORCID Logo  ; Birnir, Jóhanna K 1   VIAFID ORCID Logo  ; Liu, Amy H 3   VIAFID ORCID Logo 

 Government and Politics, University of Maryland at College Park , College Park, MD , USA 
 Political Science, University of North Texas , Denton, TX , USA 
 Government, University of Texas at Austin , Austin, TX , USA 
 School of Politics and Global Studies, Arizona State University , Tempe, AZ , USA 
Publication year
2024
Publication date
May 2024
Publisher
Oxford University Press
e-ISSN
27526542
Source type
Scholarly Journal
Language of publication
English
ProQuest document ID
3191897058
Copyright
© The Author(s) 2024. Published by Oxford University Press on behalf of National Academy of Sciences. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.