arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.07182cs.AIcs.CLcs.LG
收藏

基于Transformer的自然语言处理方法分析法律法院文书之间的相似性

Analysing similarities between legal court documents using natural language processing approaches based on Transformers

TRT5 - Regional Labour Court of the 5th Region(第五地区地区劳工法院);SENAI CIMATEC University Center(SENAI CIMATEC大学中心);Surrey Institute for People-Centred AI(萨里以人为本人工智能研究所);University of Surrey(萨里大学)

Raphael Souza de Oliveira, Erick Giovani Sperandio Nascimento

AI总结:

本研究利用六种基于Transformer的NLP模型(如BERT、GPT-2和RoBERTa)分析巴西法律文书相似性,通过微调210,000个诉讼并基于嵌入聚类评估,发现RoBERTa模型表现最佳,且方法可推广至其他语言。

摘要:

人工智能(AI)的最新进展已在自然语言处理(NLP)领域解决复杂问题方面取得了显著成果,成为协助法律领域快速解决司法程序的重要工具。在此背景下,本研究针对在推理组中检测司法文书之间相似度的问题,将六种基于Transformer架构的NLP技术应用于巴西司法系统的法律诉讼案例研究。基于Transformer的NLP模型,即BERT、GPT-2和RoBERTa,使用巴西葡萄牙语的通用语料库进行预训练,随后使用210,000个法律诉讼进行微调并专门针对法律领域进行优化。每个法律文书的向量表示基于其嵌入计算,用于对诉讼进行聚类,通过计算组内元素到其质心的余弦距离来评估每个模型的质量。我们注意到,与以往的传统NLP技术相比,基于Transformer的模型表现出更优的性能,其中专门针对巴西葡萄牙语优化的RoBERTa模型取得了最佳结果。该方法也可应用于不同语言的其他案例研究,从而有可能推进NLP应用于法律领域的现有技术水平。

英文摘要:

Recent advances in Artificial Intelligence (AI) have leveraged promising results in solving complex problems in the area of Natural Language Processing (NLP), being an important tool to help in the expeditious resolution of judicial proceedings in the legal area. In this context, this work targets the problem of detecting the degree of similarity between judicial documents that can be achieved in the inference group, by applying six NLP techniques based on the transformers architecture to a case study of legal proceedings in the Brazilian judicial system. The NLP transformer-based models, namely BERT, GPT-2 and RoBERTa, were pre-trained using a general purpose corpora of the Brazilian Portuguese language, and then were fine-tuned and specialised for the legal sector using 210,000 legal proceedings. Vector representations of each legal document were calculated based on their embeddings, which were used to cluster the lawsuits, calculating the quality of each model based on the cosine of the distance between the elements of the group to its centroid. We noticed that models based on transformers presented better performance when compared to previous traditional NLP techniques, with the RoBERTa model specialised for the Brazilian Portuguese language presenting the best results. This methodology can be also applied to other case studies for different languages, making it possible to advance in the current state of the art in the area of NLP applied to the legal sector.

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

↑