Salvato in:
Dettagli Bibliografici
Autori principali: Gunes, Erkan, Florczak, Christoffer, Yildirim, Tevfik Murat
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:https://arxiv.org/abs/2603.25422
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917363036717056
author Gunes, Erkan
Florczak, Christoffer
Yildirim, Tevfik Murat
author_facet Gunes, Erkan
Florczak, Christoffer
Yildirim, Tevfik Murat
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_25422
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Navigating the Prompt Space: Improving LLM Classification of Social Science Texts Through Prompt Engineering
Gunes, Erkan
Florczak, Christoffer
Yildirim, Tevfik Murat
Computation and Language
Computers and Society
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.
title Navigating the Prompt Space: Improving LLM Classification of Social Science Texts Through Prompt Engineering
topic Computation and Language
Computers and Society
url https://arxiv.org/abs/2603.25422