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

利用LLM迈向人类水平的文本编码:公共政策文件中父亲角色的案例

Towards Human-Level Text Coding with LLMs: The Case of Fatherhood Roles in Public Policy Documents

Bocconi University(博科尼大学);University of Gothenburg(哥德堡大学)

Lorenzo Lupo, Oscar Magnusson, Dirk Hovy, Elin Naurin, Lena Wängnerud

AI总结:

本研究评估了GPT等LLM在政治学文本编码任务中的表现,提出优化工作流程,发现提供详细编码手册时LLM可达甚至超越人类水平,且更快速、低成本、易扩展。

摘要:

GPT-3.5和GPT-4等大型语言模型(LLM)的最新进展有望以更少的编程实现更好的自动化结果,为政治学中的文本分析开辟了新机遇。在本研究中,我们在三个原始编码任务上评估了LLM,这些任务涉及政治学环境中遇到的典型复杂性:非英语语言、法律和政治术语,以及基于抽象构念的复杂标签。在本文中,我们提出了一个实用的工作流程来优化模型和提示的选择。我们发现,最佳的提示策略是向LLM提供详细的编码手册,就像提供给人类编码员的那样。在这种设置下,LLM可以与人类标注者一样好,甚至可能更好,同时速度更快,成本大幅降低,并且更容易扩展到大量文本。我们还比较了GPT和流行的开源LLM,讨论了模型选择中的权衡。我们的软件允许LLM轻松用作标注器,并已公开可用:https://github.com/lorelupo/pappa。

英文摘要:

Recent advances in large language models (LLMs) like GPT-3.5 and GPT-4 promise automation with better results and less programming, opening up new opportunities for text analysis in political science. In this study, we evaluate LLMs on three original coding tasks involving typical complexities encountered in political science settings: a non-English language, legal and political jargon, and complex labels based on abstract constructs. Along the paper, we propose a practical workflow to optimize the choice of the model and the prompt. We find that the best prompting strategy consists of providing the LLMs with a detailed codebook, as the one provided to human coders. In this setting, an LLM can be as good as or possibly better than a human annotator while being much faster, considerably cheaper, and much easier to scale to large amounts of text. We also provide a comparison of GPT and popular open-source LLMs, discussing the trade-offs in the model's choice. Our software allows LLMs to be easily used as annotators and is publicly available: https://github.com/lorelupo/pappa.

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

↑