arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.18729cs.AIcs.CLcs.HC
收藏

在实证法律研究中使用大语言模型支持主题分析

Using Large Language Models to Support Thematic Analysis in Empirical Legal Studies

Institute of State and Law of the Czech Academy of Sciences(捷克科学院国家与法律研究所);Institute of Criminal Law and Criminology, Leiden University(莱顿大学刑法与犯罪学研究所);Cyberjustice Laboratory, Université de Montréal(蒙特利尔大学网络司法实验室);School of Computer Science, Carnegie Mellon University(卡内基梅隆大学计算机科学学院)

Jakub Drápal, Hannes Westermann, Jaromir Savelka

AI总结:

本文提出法律专家与大语言模型协作的框架,用于主题分析的编码生成、主题搜索和分类,并在盗窃案件事实描述数据集上验证了 GPT-4 的有效性,为法律研究者整合 LLM 提供决策依据。

摘要:

主题分析及其他归纳编码变体是实证法律研究(ELS)中广泛使用的定性分析方法。我们提出了一个新颖的框架,促进法律专家与大语言模型(LLM)之间的有效协作,用于生成初始编码(主题分析的第二阶段)、搜索主题(第三阶段)以及根据主题对数据进行分类(以启动第四阶段)。我们运用该框架分析了一个数据集(n=785),该数据集包含来自刑事法院关于盗窃罪判决书中的事实描述。分析目标是发现典型盗窃行为的类别。我们的结果表明,该大语言模型,即 OpenAI 的 GPT-4,生成了合理的初始编码,并且能够根据专家反馈改进编码质量。结果还表明,该模型在根据主题对事实描述进行零样本分类方面表现良好。最后,由大语言模型自主发现的主题与法律专家得出的主题相当吻合。这些发现可供法律研究者利用,以指导他们在将大语言模型整合到主题分析以及其他归纳编码项目中的决策。

英文摘要:

Thematic analysis and other variants of inductive coding are widely used qualitative analytic methods within empirical legal studies (ELS). We propose a novel framework facilitating effective collaboration of a legal expert with a large language model (LLM) for generating initial codes (phase 2 of thematic analysis), searching for themes (phase 3), and classifying the data in terms of the themes (to kick-start phase 4). We employed the framework for an analysis of a dataset (n=785) of facts descriptions from criminal court opinions regarding thefts. The goal of the analysis was to discover classes of typical thefts. Our results show that the LLM, namely OpenAI's GPT-4, generated reasonable initial codes, and it was capable of improving the quality of the codes based on expert feedback. They also suggest that the model performed well in zero-shot classification of facts descriptions in terms of the themes. Finally, the themes autonomously discovered by the LLM appear to map fairly well to the themes arrived at by legal experts. These findings can be leveraged by legal researchers to guide their decisions in integrating LLMs into their thematic analyses, as well as other inductive coding projects.

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

↑