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

LEMUR:一种用于多语言法律嵌入模型检索鲁棒微调的语料库

LEMUR: A Corpus for Robust Fine-Tuning of Multilingual Law Embedding Models for Retrieval

Hub of Computing and Data Science (HCDS) University of Hamburg(计算与数据科学中心(HCDS)乌姆斯大学)

Narges Baba Ahmadi, Jan Strich, Martin Semmann, Chris Biemann

AI总结:

LEMUR通过构建多语言法律语料库并微调嵌入模型,提升了多语言法律检索的鲁棒性和准确性,尤其在低资源语言中表现显著。

摘要:

大型语言模型(LLMs)越来越多地被用于访问法律信息。然而,其在多语言法律环境中的部署受到不可靠检索和缺乏领域适应、开放嵌入模型的限制。特别是,现有的多语言法律语料库并非为语义检索而设计,且基于PDF的立法来源由于文本提取不完美而引入了大量噪声。为了解决这些挑战,我们介绍了LEMUR,这是一个大规模的多语言语料库,包含24953份官方EUR-Lex PDF文档,涵盖25种语言。我们通过测量词汇一致性来量化PDF到文本转换的保真度,使用词汇内容分数(LCS)。基于LEMUR,我们使用对比目标对三种最先进的多语言嵌入模型进行微调,分别在单语和双语设置中进行,反映了现实的法律检索场景。在低资源和高资源语言上的实验表明,法律领域微调在强基线相对下,始终提高了Top-k检索准确率,特别是对低资源语言有显著提升。跨语言评估显示,这些改进转移到未见过的语言,表明微调主要增强了语言无关、内容层面的法律表示,而不是语言特定的提示。我们发布了代码(GitHub Repository)和数据(Hugging Face Dataset)。\n

英文摘要:

Large language models (LLMs) are increasingly used to access legal information. Yet, their deployment in multilingual legal settings is constrained by unreliable retrieval and the lack of domain-adapted, open-embedding models. In particular, existing multilingual legal corpora are not designed for semantic retrieval, and PDF-based legislative sources introduce substantial noise due to imperfect text extraction. To address these challenges, we introduce LEMUR, a large-scale multilingual corpus of EU environmental legislation constructed from 24,953 official EUR-Lex PDF documents covering 25 languages. We quantify the fidelity of PDF-to-text conversion by measuring lexical consistency against authoritative HTML versions using the Lexical Content Score (LCS). Building on LEMUR, we fine-tune three state-of-the-art multilingual embedding models using contrastive objectives in both monolingual and bilingual settings, reflecting realistic legal-retrieval scenarios. Experiments across low- and high-resource languages demonstrate that legal-domain fine-tuning consistently improves Top-k retrieval accuracy relative to strong baselines, with particularly pronounced gains for low-resource languages. Cross-lingual evaluations show that these improvements transfer to unseen languages, indicating that fine-tuning primarily enhances language-independent, content-level legal representations rather than language-specific cues. We publish code\footnote{\href{https://github.com/nargesbh/eur_lex}{GitHub Repository}} and data\footnote{\href{https://huggingface.co/datasets/G4KMU/LEMUR}{Hugging Face Dataset}}.

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

↑