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

小型模型能否对法律文件进行推理?一项比较研究

Can Small Models Reason About Legal Documents? A Comparative Study

Independent Researcher(独立研究员)

Snehit Vaddi

AI总结:

本文通过测试九种模型在三个法律基准上的表现,发现3B参数的混合专家模型在法律持有识别上优于GPT-4o-mini,且提示策略影响显著,few-shot提示效果最佳。

摘要:

大型语言模型在法律应用中展现出潜力,但部署前沿模型存在成本、延迟和数据隐私问题。我们评估了子10B参数模型作为实用替代方案的能力,通过五个提示策略在三个法律基准上测试九种模型。405次实验表明,3B参数的混合专家模型在平均准确性上与GPT-4o-mini相当,在法律持有识别上更优,且模型架构和训练质量比参数数量更重要。9B参数模型整体表现最差。链式思维提示策略任务依赖性强,提升合同蕴含但降低多项选择法律推理。few-shot提示策略效果最一致。BM25和密集检索在RAG中表现相似,表明瓶颈在于语言模型对检索上下文的利用而非检索质量。所有实验通过云推理API进行,总成本62美元,证明严格的LLM评估无需专用GPU基础设施。

英文摘要:

Large language models show promise for legal applications, but deploying frontier models raises concerns about cost, latency, and data privacy. We evaluate whether sub-10B parameter models can serve as practical alternatives by testing nine models across three legal benchmarks (ContractNLI, CaseHOLD, and ECtHR) using five prompting strategies (direct, chain-of-thought, few-shot, BM25 RAG, and dense RAG). Across 405 experiments with three random seeds per configuration, we find that a Mixture-of-Experts model activating only 3B parameters matches GPT-4o-mini in mean accuracy while surpassing it on legal holding identification, and that architecture and training quality matter more than raw parameter count. Our largest model (9B parameters) performs worst overall. Chain-of-thought prompting proves sharply task-dependent, improving contract entailment but degrading multiple-choice legal reasoning, while few-shot prompting emerges as the most consistently effective strategy. Comparing BM25 and dense retrieval for RAG, we find near-identical results, suggesting the bottleneck lies in the language model's utilization of retrieved context rather than retrieval quality. All experiments were conducted via cloud inference APIs at a total cost of $62, demonstrating that rigorous LLM evaluation is accessible without dedicated GPU infrastructure.

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

↑