在自动化定性编码中的自我反思:通过二次LLM批评提升文本标注
Self-reflection in Automated Qualitative Coding: Improving Text Annotation through Secondary LLM Critique
AI总结:
通过二次LLM批评提升文本标注精度,减少错误率并提高分类器性能。
摘要:
大型语言模型(LLMs)允许对大规模数据集进行复杂的定性编码,但零次和少次射分类器即使在仔细验证提示的情况下,也可能产生无法接受的数量错误。我们提出了一种简单、可推广的两阶段工作流程:一个LLM应用一个由人类设计、适应LLM的代码本;一个二次LLM批评者通过重新阅读源文本以及第一模型的推理过程,对每个正标签进行自我反思,并作出最终决定。我们在六个定性代码上评估了这种方法,超过3000封高内容电子邮件来自Apache软件基金会项目评估讨论。我们的人工审计发现,360个正标签注释中,第一阶段LLM的误报率在8%至54%之间,尽管测试中的F1分数为0.74和1.00。随后通过第二阶段自我反思重新编码所有第一阶段注释,使F1分数提高了0.04至0.25,使两个表现特别差的代码分别从0.52和0.55提升到0.69和0.79。我们的手动评估识别出两个反复出现的错误类别:误解(违反代码定义)和元讨论(关于项目评估标准的辩论被误认为是决策依据)。针对观察到的失败模式的代码特定批评条款在测试和改进过程中特别有效,复制了LLM解释在第一阶段的代码本适应过程。我们解释了在第一阶段LLM注释中优先考虑召回与二次批评相结合,如何实现以精确度为主的、计算轻量级的控制。在人类指导和验证下,自我反思可以融入现有的LLM辅助注释流程中,以减少噪声并可能挽救不可用的分类器。
英文摘要:
Large language models (LLMs) allow for sophisticated qualitative coding of large datasets, but zero- and few-shot classifiers can produce an intolerable number of errors, even with careful, validated prompting. We present a simple, generalizable two-stage workflow: an LLM applies a human-designed, LLM-adapted codebook; a secondary LLM critic performs self-reflection on each positive label by re-reading the source text alongside the first model's rationale and issuing a final decision. We evaluate this approach on six qualitative codes over 3,000 high-content emails from Apache Software Foundation project evaluation discussions. Our human-derived audit of 360 positive annotations (60 passages by six codes) found that the first-line LLM had a false-positive rate of 8% to 54%, despite F1 scores of 0.74 and 1.00 in testing. Subsequent recoding of all stage-one annotations via a second self-reflection stage improved F1 by 0.04 to 0.25, bringing two especially poor performing codes up to 0.69 and 0.79 from 0.52 and 0.55 respectively. Our manual evaluation identified two recurrent error classes: misinterpretation (violations of code definitions) and meta-discussion (debate about a project evaluation criterion mistaken for its use as a decision justification). Code-specific critic clauses addressing observed failure modes were especially effective with testing and refinement, replicating the codebook-adaption process for LLM interpretation in stage-one. We explain how favoring recall in first-line LLM annotation combined with secondary critique delivers precision-first, compute-light control. With human guidance and validation, self-reflection slots into existing LLM-assisted annotation pipelines to reduce noise and potentially salvage unusable classifiers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。