arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.10747cs.CL
收藏

代码本LLM:评估LLM作为政治科学概念测量工具

Codebook LLMs: Evaluating LLMs as Measurement Tools for Political Science Concepts

Michigan State University(密歇根州立大学);Williams College(威廉姆斯学院)

Andrew Halterman, Katherine A. Keith

AI总结:

本文评估LLM作为政治科学概念测量工具的有效性,提出五阶段框架,通过代码本和预训练LLM验证其测量准确性,并展示通过监督指令微调提升性能的成果。

摘要:

代码本——用于操作化概念和规定标注程序的文档——被几乎所有社会科学家用于编码政治文本。为了自动编码这些文本,研究者越来越多地使用生成式大语言模型(LLM)。然而,目前缺乏关于“现成”LLM是否忠实遵循现实世界代码本操作化并准确测量复杂政治构念的实证证据。为此,我们收集并整理了三个现实世界的政治科学代码本——涵盖抗议事件、政治暴力和宣言——以及它们的非结构化文本和人类标签。我们还提出一个五阶段框架用于代码本-LLM测量:为人类和LLM准备代码本、测试LLM在代码本上的基本能力、评估零样本测量准确性(即现成性能)、分析错误,并进一步(参数高效)监督训练LLM。我们使用我们的三个代码本数据集和几种预训练的7-120亿参数开源LLM,对这一框架进行了实证演示。我们发现当前开源LLM在零样本遵循代码本方面存在局限,但监督指令微调可以显著提高性能。我们不建议特定“最佳”LLM,而是贡献了代码本数据集、评估框架以及指导应用研究者实施自己代码本-LLM测量项目的指南。

英文摘要:

Codebooks -- documents that operationalize concepts and outline annotation procedures -- are used almost universally by social scientists when coding political texts. To code these texts automatically, researchers are increasing turning to generative large language models (LLMs). However, there is limited empirical evidence on whether "off-the-shelf" LLMs faithfully follow real-world codebook operationalizations and measure complex political constructs with sufficient accuracy. To address this, we gather and curate three real-world political science codebooks -- covering protest events, political violence and manifestos -- along with their unstructured texts and human labels. We also propose a five-stage framework for codebook-LLM measurement: preparing a codebook for both humans and LLMs, testing LLMs' basic capabilities on a codebook, evaluating zero-shot measurement accuracy (i.e. off-the-shelf performance), analyzing errors, and further (parameter-efficient) supervised training of LLMs. We provide an empirical demonstration of this framework using our three codebook datasets and several pretrained 7-12 billion open-weight LLMs. We find current open-weight LLMs have limitations in following codebooks zero-shot, but that supervised instruction tuning can substantially improve performance. Rather than suggesting the "best" LLM, our contribution lies in our codebook datasets, evaluation framework, and guidance for applied researchers who wish to implement their own codebook-LLM measurement projects.

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

↑