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

大型语言模型在定性数据分析中对安全特定评论的处理失败

LLMs for Qualitative Data Analysis Fail on Security-specificComments in Human Experiments

University of Trento(特伦托大学);Vrije Universiteit Amsterdam(阿姆斯特丹自由大学)

Maria Camporese, Fabio Massacci, Yuanjun Gong

AI总结:

本文研究了大型语言模型在自动标注技术安全评论中的有效性,发现尽管模型在某些情况下表现提升,但无法可靠替代人工标注。

摘要:

[背景:] 对人类实验中自由文本辩护进行主题分析能提供重要的定性见解。然而,由于可靠注释需要多个领域专家,这成本较高。大型语言模型(LLMs)似乎成为替代人类注释者的理想候选。[问题:] 编码安全特定方面(提及的代码标识符、提及的代码行数、提及的安全关键词)可能需要比情感分类更深入的上下文理解。[目标:] 探索LLMs是否能作为自动化注释者来标注人类受试者对漏洞代码片段的评论。[方法:] 我们在LiveBench上提示四个表现最佳的LLMs,以检测人类受试者在分析漏洞代码片段时的评论中提及的九种安全相关代码。输出与人工注释者进行比较,使用Cohen's Kappa(机会校正准确性)。我们测试了不同提示,模仿注释最佳实践,包括新兴代码、详细代码本和示例,以及冲突示例。[负面结果:] 只有在使用详细代码描述时才观察到显著改进;然而,这些改进在不同代码上并不一致,不足以可靠替代人工注释者。[局限:] 需要更多研究,使用更多LLMs和注释任务。

英文摘要:

[Background:] Thematic analysis of free-text justifications in human experiments provides significant qualitative insights. Yet, it is costly because reliable annotations require multiple domain experts. Large language models (LLMs) seem ideal candidates to replace human annotators. [Problem:] Coding security-specific aspects (code identifiers mentioned, lines-of-code mentioned, security keywords mentioned) may require deeper contextual understanding than sentiment classification. [Objective:] Explore whether LLMs can act as automated annotators for technical security comments by human subjects. [Method:] We prompt four top-performing LLMs on LiveBench to detect nine security-relevant codes in free-text comments by human subjects analyzing vulnerable code snippets. Outputs are compared to human annotators using Cohen's Kappa (chance-corrected accuracy). We test different prompts mimicking annotation best practices, including emerging codes, detailed codebooks with examples, and conflicting examples. [Negative Results:] We observed marked improvements only when using detailed code descriptions; however, these improvements are not uniform across codes and are insufficient to reliably replace a human annotator. [Limitations:] Additional studies with more LLMs and annotation tasks are needed.

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

↑