arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.25422cs.CLcs.CY
收藏

在提示空间中导航:通过提示工程提高LLM对社会科学文本的分类

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

Erkan Gunes, Christoffer Florczak, Tevfik Murat Yildirim

AI总结:

本文通过系统变化提示工程的三个方面,探讨如何通过增加提示上下文提高LLM对社会科学文本的分类准确性,发现最小的上下文增加能显著提升性能,但过度增加反而可能降低准确性。

摘要:

近期在社会科学中使用大型语言模型(LLM)进行文本分类的发展表明,可以显著降低成本,而性能有时可以与现有计算方法相媲美。然而,当前测试中性能差异很大,因此我们探讨如何最大化性能。本文聚焦于提示上下文作为提高准确性的可能途径,系统地变化提示工程的三个方面:标签描述、指导性提示和少量示例。在两个不同的例子中,我们的测试表明,最小的提示上下文增加会带来最大的性能提升,而进一步增加上下文通常只会带来边际性能提升。令人担忧的是,增加提示上下文有时会降低准确性。此外,我们的测试表明模型、任务和批量大小之间存在显著异质性,强调了每个LLM编码任务都需要单独验证,而不是依赖通用规则。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑