mlsanityData to 7 Oct 2026

Prompt Stability Scoring for Text Annotation with Large Language Models

arXiv 2407.02039 ↗First posted 2 Jul 2024cs.CLcited by 13

Not on the map. Why?

Abstract (arXiv)

Researchers are increasingly using language models (LMs) for text annotation. These approaches rely only on a prompt telling the model to return a given output according to a set of instructions. The reproducibility of LM outputs may nonetheless be vulnerable to small changes in the prompt design. This calls into question the replicability of classification routines. To tackle this problem, researchers have typically tested a variety of semantically similar prompts to determine what we call ``prompt stability." These approaches remain ad-hoc and task specific. In this article, we propose a general framework for diagnosing prompt stability by adapting traditional approaches to intra- and inter-coder reliability scoring. We call the resulting metric the Prompt Stability Score (PSS) and provide a Python package textttpromptstability for its estimation. Using six different datasets and twelve outcomes, we classify ~3.1m rows of data and ~300m input tokens to: a) diagnose when prompt stability is low; and b) demonstrate the functionality of the package. We conclude by providing best practice recommendations for applied researchers.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 25 of its 50 references that are in the map. First posted on arXiv 2 Jul 2024.

Builds on

25 of 50 references.

References · 25

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  3. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  5. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  6. 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
  7. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
  8. 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
  9. 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 849
  10. 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 788
  11. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
  12. 2022Out of One, Many: Using Language Models to Simulate Human Samplescited by 737
13 more
  1. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
  2. 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
  3. 2021True Few-Shot Learning with Language Modelscited by 343
  4. 2022News Summarization and Evaluation in the Era of GPT-3cited by 324
  5. 2023Can Large Language Models Transform Computational Social Science?cited by 245
  6. 2023Large Language Model Guided Tree-of-Thoughtcited by 218
  7. 2021Generated Knowledge Prompting for Commonsense Reasoningcited by 213
  8. 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
  9. 2023Quantifying Uncertainty in Answers from any Language Model and Enhancing their Trustworthinesscited by 121
  10. 2023ChatGPT-4 Outperforms Experts and Crowd Workers in Annotating Political Twitter Messages with Zero-Shot Learningcited by 97
  11. 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 71
  12. 2023Testing the Reliability of ChatGPT for Text Annotation and Classification: A Cautionary Remarkcited by 54
  13. 2024Prompt Exploration with Prompt Regressioncited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 4; 2026: 7.

13 papers.

Sort:

By area: