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

法律因素存在于大型语言模型(LLMs)的何处?

Where Do Legal Factors Live in LLMs?

University of Pittsburgh(匹兹堡大学)

Li Zhang, Kevin Ashley

AI总结:

本研究探究LLMs中法律因素的内部表征,以三个开源模型为对象,证实26个CATO因素可线性解码,定位了78个层-特征坐标,连接了法律符号抽象与模型内部表征。

摘要:

在基于案例的法律推理中,法律专业人员会识别新纠纷中具有法律意义的事实模式,并将其与已决案件的事实模式进行比较。在人工智能与法律领域,HYPO维度和CATO因素以符号形式表示这些模式,将从案例叙述中提炼的专家知识组织为明确、结构化、可解释且可审计的法律概念与关系,用于支持案例比较、法律论证及基于先例的推理。大型语言模型(LLMs)正越来越多地被用于法律任务,但其对法律知识的内部组织仍难以追踪。本研究调查LLMs是否形成与全部26个CATO因素相对应的内部表征,通过两个研究问题检验线性可解码性及使用稀疏自编码器的稀疏定位。实验涵盖三个开源模型:Qwen3-1.7B、Qwen3-8B和Gemma-2 2B,辅以跨模型比较及对受控自然语言段落的人工审计。结果显示,所有26个因素在三个模型中均具备线性可解码性,单特征稀疏读出覆盖完整因素目录,最佳层测试AUC介于0.86至1.00之间,5个选定特征接近全向量读出性能。本研究报告了78个模型特定的层-特征坐标,每个模型的每个因素对应一个坐标。综合来看,这些结果表明,处理法律叙述的LLMs的内部激活中可读取与专家定义的法律因素相对应的信息,通过定位这些读出,本研究将法律语言及HYPO、CATO的符号抽象与学习到的内部表征相连接。

英文摘要:

In case-based legal reasoning, legal professionals identify legally significant fact patterns in a new dispute and compare them with those of decided cases. In AI & Law, HYPO dimensions and CATO factors represent these patterns symbolically, organizing expert knowledge distilled from case narratives as explicit, structured, interpretable, and auditable legal concepts and relations that support case comparison, legal argument, and precedent-based reasoning. Large language models (LLMs) are increasingly used for legal tasks, yet their internal organization of legal knowledge remains difficult to trace. We investigate whether LLMs form internal representations corresponding to all 26 CATO factors. Two research questions examine linear decodability and sparse localization with sparse autoencoders. Experiments cover three open models, Qwen3-1.7B, Qwen3-8B, and Gemma-2 2B, supported by cross-model comparison and human audit of controlled natural-language passages. Results show that all 26 factors are linearly decodable in all three models. Single-feature sparse readouts cover the complete factor catalog, with best-layer test AUCs ranging from 0.86 to 1.00. Five selected features approach full-vector readout performance. We report 78 model-specific layer-feature coordinates, one for each factor in each model. Together, these results show that information corresponding to expert-defined legal factors can be read from the internal activations of LLMs processing legal narratives. By locating these readouts, our study connects legal language and the symbolic abstractions of HYPO and CATO to learned internal representations.

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

↑