mlsanityData to 14 Oct 2026

Navigating the Prompt Space: Improving LLM Classification of Social Science Texts Through Prompt Engineering

arXiv 2603.25422 ↗First posted 26 Mar 2026cs.CL cs.CYcited by 0

Not on the map. Why?

Abstract (arXiv)

Recent developments in text classification using Large Language Models (LLMs) in the social sciences suggest that costs can be cut significantly, while performance can sometimes rival existing computational methods. However, with a wide variance in performance in current tests, we move to the question of how to maximize performance. In this paper, we focus on prompt context as a possible avenue for increasing accuracy by systematically varying three aspects of prompt engineering: label descriptions, instructional nudges, and few shot examples. Across two different examples, our tests illustrate that a minimal increase in prompt context yields the highest increase in performance, while further increases in context only tend to yield marginal performance increases thereafter. Alarmingly, increasing prompt context sometimes decreases accuracy. Furthermore, our tests suggest substantial heterogeneity across models, tasks, and batch size, underlining the need for individual validation of each LLM coding task rather than reliance on general rules.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 5 of its 22 references that are in the map. First posted on arXiv 26 Mar 2026.

Builds on

5 of 22 references.

References · 5

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
  3. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
  4. 2025Understanding and Mitigating Numerical Sources of Nondeterminism in LLM Inferencecited by 53
  5. 2025Introducing HALC: A general pipeline for the systematic and reliable construction of prompts for automated coding with LLMs in the computational social sciencescited by 2

Built on by

Not cited yet.