Prompt Design Matters for Computational Social Science Tasks but in Unpredictable Ways

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Atreja, Shubham, Ashkinaze, Joshua, Li, Lingyao, Mendelsohn, Julia, Hemphill, Libby
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912452149510144
author Atreja, Shubham
Ashkinaze, Joshua
Li, Lingyao
Mendelsohn, Julia
Hemphill, Libby
author_facet Atreja, Shubham
Ashkinaze, Joshua
Li, Lingyao
Mendelsohn, Julia
Hemphill, Libby
contents Manually annotating data for computational social science tasks can be costly, time-consuming, and emotionally draining. While recent work suggests that LLMs can perform such annotation tasks in zero-shot settings, little is known about how prompt design impacts LLMs' compliance and accuracy. We conduct a large-scale multi-prompt experiment to test how model selection (ChatGPT, PaLM2, and Falcon7b) and prompt design features (definition inclusion, output type, explanation, and prompt length) impact the compliance and accuracy of LLM-generated annotations on four CSS tasks (toxicity, sentiment, rumor stance, and news frames). Our results show that LLM compliance and accuracy are highly prompt-dependent. For instance, prompting for numerical scores instead of labels reduces all LLMs' compliance and accuracy. The overall best prompting setup is task-dependent, and minor prompt changes can cause large changes in the distribution of generated labels. By showing that prompt design significantly impacts the quality and distribution of LLM-generated annotations, this work serves as both a warning and practical guide for researchers and practitioners.
format Preprint
id arxiv_https___arxiv_org_abs_2406_11980
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Prompt Design Matters for Computational Social Science Tasks but in Unpredictable Ways
Atreja, Shubham
Ashkinaze, Joshua
Li, Lingyao
Mendelsohn, Julia
Hemphill, Libby
Artificial Intelligence
Computers and Society
Manually annotating data for computational social science tasks can be costly, time-consuming, and emotionally draining. While recent work suggests that LLMs can perform such annotation tasks in zero-shot settings, little is known about how prompt design impacts LLMs' compliance and accuracy. We conduct a large-scale multi-prompt experiment to test how model selection (ChatGPT, PaLM2, and Falcon7b) and prompt design features (definition inclusion, output type, explanation, and prompt length) impact the compliance and accuracy of LLM-generated annotations on four CSS tasks (toxicity, sentiment, rumor stance, and news frames). Our results show that LLM compliance and accuracy are highly prompt-dependent. For instance, prompting for numerical scores instead of labels reduces all LLMs' compliance and accuracy. The overall best prompting setup is task-dependent, and minor prompt changes can cause large changes in the distribution of generated labels. By showing that prompt design significantly impacts the quality and distribution of LLM-generated annotations, this work serves as both a warning and practical guide for researchers and practitioners.
title Prompt Design Matters for Computational Social Science Tasks but in Unpredictable Ways
topic Artificial Intelligence
Computers and Society
url https://arxiv.org/abs/2406.11980