arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.17330cs.LGcs.CL
收藏

LLM所使用的法律语言归因分析

Attribution analysis of legal language as used by LLM

Richard K. Belew

AI总结:

本文使用集成梯度归因技术对比分析法律LLM与通用BERT模型在法律数据集上的性能差异,发现分词器的差异化行为是导致模型表现不同的主要原因。

摘要:

目前已有三个专门为法律任务设计的公开可用LLM被实现,并表明在法律语料库上训练可以提高分类准确率,但原因和机制是什么?在此,我们使用两个公开可用的法律数据集,一个是更简单的“overruling”文本二元分类任务,另一个是更复杂的识别“holding”司法判决的多项选择任务。我们报告了对比法律LLM和通用BERT模型在这两个数据集上的实验。我们使用集成梯度归因技术来推断模型性能变化的“原因”,并根据每个模型使用的分词方式对其进行表征。我们发现,虽然所有模型都能正确分类casehold任务中的一些测试样本,但其他样本只能被某一个模型识别,归因分析可以用来突出其中的原因。我们发现模型分词器的差异化行为解释了大部分差异,并根据它们处理的法律语言分析了这些差异。对数据集文本生成的token进行频率分析,结合使用已知的“停用词”列表,可以识别出明确标志着法律主题的token。

英文摘要:

Three publicly-available LLM specifically designed for legal tasks have been implemented and shown that classification accuracy can benefit from training over legal corpora, but why and how? Here we use two publicly-available legal datasets, a simpler binary classification task of ``overruling'' texts, and a more elaborate multiple choice task identifying ``holding'' judicial decisions. We report on experiments contrasting the legal LLM and a generic BERT model for comparison, against both datasets. We use integrated gradient attribution techniques to impute ``causes'' of variation in the models' perfomance, and characterize them in terms of the tokenizations each use. We find that while all models can correctly classify some test examples from the casehold task, other examples can only be identified by only one, model, and attribution can be used to highlight the reasons for this. We find that differential behavior of the models' tokenizers accounts for most of the difference and analyze these differences in terms of the legal language they process. Frequency analysis of tokens generated by dataset texts, combined with use of known ``stop word'' lists, allow identification of tokens that are clear signifiers of legal topics.

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

↑