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

使用LLM进行可扩展的定性编码:思维链推理在某些诠释学任务中匹配人类表现

Scalable Qualitative Coding with LLMs: Chain-of-Thought Reasoning Matches Human Performance in Some Hermeneutic Tasks

Center for Complex Networks and Systems Research(复杂网络与系统研究中心);Luddy School of Informatics, Computer Science, and Engineering(勒迪信息学、计算机科学与工程学院);Department of Sociology(社会学系);Indiana University(印第安纳大学)

Zackary Okun Dunivin

AI总结:

研究探索LLM在定性编码中的表现,发现GPT-4结合思维链推理能匹配人类水平,并提供了适配传统编码簿的最佳实践。

摘要:

定性编码(或内容分析)从文本中提取意义,以辨别跨语料库的定量模式。最近,大型语言模型(LLMs)解释能力的提升为自动化编码过程(将类别标签应用于文本)提供了可能,从而使人类研究者能专注于更具创造性的研究方面,同时将这些解释性任务交由AI处理。我们的案例研究包含一组社会历史编码,针对代表人文研究的密集段落长度的文本段落。我们表明,GPT-4能够进行与人类等效的解释,而GPT-3.5则不能。与人类推导的黄金标准相比,GPT-4在9个编码中的3个提供了出色的编码员间信度(Cohen's $κ\geq 0.79$),并在9个编码中的8个提供了实质性的信度($κ\geq 0.6$)。相比之下,GPT-3.5在所有编码上的表现均大幅不足($mean(κ) = 0.34$;$max(κ) = 0.55$)。重要的是,我们发现当提示LLM给出证明其编码决策的理由(思维链推理)时,编码保真度会显著提高。我们展示了这些及其他发现,并附上一套将传统编码簿适配于LLM的最佳实践。我们的结果表明,对于某些编码簿,最先进的LLMs已能熟练进行大规模内容分析。此外,它们表明下一代模型很可能会使AI编码成为大多数编码簿的可行选项。

英文摘要:

Qualitative coding, or content analysis, extracts meaning from text to discern quantitative patterns across a corpus of texts. Recently, advances in the interpretive abilities of large language models (LLMs) offer potential for automating the coding process (applying category labels to texts), thereby enabling human researchers to concentrate on more creative research aspects, while delegating these interpretive tasks to AI. Our case study comprises a set of socio-historical codes on dense, paragraph-long passages representative of a humanistic study. We show that GPT-4 is capable of human-equivalent interpretations, whereas GPT-3.5 is not. Compared to our human-derived gold standard, GPT-4 delivers excellent intercoder reliability (Cohen's $κ\geq 0.79$) for 3 of 9 codes, and substantial reliability ($κ\geq 0.6$) for 8 of 9 codes. In contrast, GPT-3.5 greatly underperforms for all codes ($mean(κ) = 0.34$; $max(κ) = 0.55$). Importantly, we find that coding fidelity improves considerably when the LLM is prompted to give rationale justifying its coding decisions (chain-of-thought reasoning). We present these and other findings along with a set of best practices for adapting traditional codebooks for LLMs. Our results indicate that for certain codebooks, state-of-the-art LLMs are already adept at large-scale content analysis. Furthermore, they suggest the next generation of models will likely render AI coding a viable option for a majority of codebooks.

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

↑