arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.03818cs.CL
收藏

改善人机编码对齐:心理学构念识别中提示工程的实证评估

Empirical Prompt Engineering for Construct Identification with Large Language Models

Department of Educational Psychology, Neag School of Education, University of Connecticut(教育心理学系,教育学院,康涅狄格大学);Department of Psychological Sciences, College of Liberal Arts and Sciences, University of Connecticut(心理学系,文理学院,康涅狄格大学)

Kylie L. Anglin, Stephanie Milan, Brittney Hernandez, Claudia Ventura

AI总结:

本研究提出一个实证框架,通过提示工程优化大语言模型在心理学文本中识别构念的性能。实验评估五种提示策略,发现构念定义和任务框架最关键,结合代码簿引导和自动提示工程的少样本方法最接近专家判断。

摘要:

由于其架构和庞大的预训练数据,大语言模型(LLMs)表现出强大的文本分类性能。然而,LLM的输出——这里指分配给文本的类别——在很大程度上取决于提示的措辞。尽管关于提示工程的文献正在扩展,但很少有研究关注分类任务,更少有研究涉及心理学等领域,在这些领域中,构念具有精确的、理论驱动的定义,而这些定义可能未在预训练数据中得到充分体现。我们提出了一个实证框架,通过提示工程优化LLM在文本中识别构念的性能。我们实验评估了五种提示策略——代码簿引导的实证提示选择、自动提示工程、角色提示、思维链推理和解释性提示——采用零样本和少样本分类。我们发现,角色、思维链和解释并不能完全解决因措辞不当的提示而导致的性能损失。相反,提示中最有影响力的特征是构念定义、任务框架,以及在较小程度上提供的示例。在三个构念和两个模型中,与专家判断最一致的分类来自结合代码簿引导的实证提示选择和自动提示工程的少样本提示。基于我们的发现,我们建议研究人员生成并评估尽可能多的提示变体,无论是人工编写的、自动生成的,或者理想情况下两者兼有,并根据训练数据集中的实证性能选择提示和示例,在保留集中验证最终方法。该程序提供了一种实用、系统且理论驱动的方法,用于在需要与专家判断对齐的环境中优化LLM提示。

英文摘要:

Due to their architecture and vast pre-training data, large language models (LLMs) demonstrate strong performance on text classification tasks. However, LLM classifications are highly responsive to prompt wording, particularly, as we show, in domains like psychology, where constructs are often latent, complex, and theory driven. Here, we present and evaluate a systematic framework for improving psychological construct identification through prompt engineering. We combinatorially generate prompts by appending random selections of multiple variants of construct definitions, task instructions, coding guidance, and examples. Empirically selecting the highest performing of these combinations in a training dataset substantially improves alignment between LLM and human classifications. In contrast, prompting techniques such as personas, chain-of-thought reasoning, and explanations provide smaller and less consistent improvements. This finding holds across multiple models and constructs. Overall, the approach we describe offers a practical, systematic, and theory-aware method for increasing the alignment between human and LLM classifications in settings where validity is critical.

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

↑