Prompt selection matters: enhancing text annotations for social sciences with large language models
Open Access
- 11 July 2025
- journal article
- research article
- Published by Springer Nature in Journal of Computational Social Science
- Vol. 8 (3) , 1-20
Abstract
Large Language Models have recently been applied to text annotation tasks from social sciences, equating or surpassing the performance of human workers at a fraction of the cost. However, very few inquiries in the social sciences have been made of the impact of prompt selection on labelling accuracy. In this study, we show that performance greatly varies between prompts, and we apply the method of automatic prompt optimization to systematically craft high quality prompts. We also provide the community with a simple, browser-based implementation of the method at https://prompt-ultra.github.io/.Keywords
All Related Versions
Funding Information
- Université Paris-Saclay
This publication has 34 references indexed in Scilit:
- Magic of Prompt Engineering2024
- Assessing the potential of GPT-4 to perpetuate racial and gender biases in health care: a model evaluation studyThe Lancet Digital Health, 2023
- Summary of ChatGPT-Related research and perspective towards the future of large language modelsMeta-Radiology, 2023
- More human than human: measuring ChatGPT political biasPublic Choice, 2023
- ChatGPT outperforms crowd workers for text-annotation tasksProceedings of the National Academy of Sciences, 2023
- ‘Super-Unsupervised’ Classification for Labelling Text: Online Political Hostility as an IllustrationBritish Journal of Political Science, 2023
- Using Language Models for Classifying the Party Affiliation of Political Texts2022
- Quantifying and alleviating political bias in language modelsArtificial Intelligence, 2022
- Confidence interval for micro-averaged F1 and macro-averaged F1 scoresApplied Intelligence, 2021
- Analysis of Political Sentiment Orientations on TwitterProcedia Computer Science, 2020