arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.13205cs.IRcs.CLcs.LG
收藏

用于日本法律文本检索的自适应两阶段微调LLMs

Adaptive Two-Phase Finetuning LLMs for Japanese Legal Text Retrieval

VJ Technologies(VJ科技公司);AJ Technologies(AJ科技公司);University of Information Technology(信息科技大学);Vietnam National University(越南国家大学)

Quang Hoang Trung, Nguyen Van Hoang Phuc, Le Trung Hoang, Quang Huu Hieu, Vo Nguyen Le Duy

AI总结:

针对日本法律文本检索研究有限的问题,提出自适应两阶段微调LLMs流程并构建新数据集,实验证明其在日语及英语MS MARCO数据集上均超越基线。

摘要:

文本检索(TR)涉及从大型语料库中查找和检索与用户查询相关的文本内容,在法律文件检索等实际场景中具有广泛应用。尽管现有研究多聚焦于英文,但针对日语语境的研究十分有限。本文引入了一个专为日本法律语境设计的新数据集,并提出了一种针对该领域定制的新型两阶段流程。在第一阶段,模型学习对全局语境的广泛理解,增强其对多样化查询的泛化能力和适应能力。在第二阶段,对模型进行微调以处理法律场景特有的复杂查询。我们进行了大量实验,证明本方法的优越性能超越了现有基线。此外,该流程在英语语境中也证明有效,在MS MARCO数据集上超越了可比基线。我们已在GitHub上公开代码,并可通过HuggingFace访问模型检查点。

英文摘要:

Text Retrieval (TR) involves finding and retrieving text-based content relevant to a user's query from a large repository, with applications in real-world scenarios such as legal document retrieval. While most existing studies focus on English, limited work addresses Japanese contexts. In this paper, we introduce a new dataset specifically designed for Japanese legal contexts and propose a novel two-phase pipeline tailored to this domain. In the first phase, the model learns a broad understanding of global contexts, enhancing its generalization and adaptability to diverse queries. In the second phase, the model is fine-tuned to address complex queries specific to legal scenarios. Extensive experiments are conducted to demonstrate the superior performance of our method, which outperforms existing baselines. Furthermore, our pipeline proves effective in English contexts, surpassing comparable baselines on the MS MARCO dataset. We have made our code publicly available on GitHub, and the model checkpoints are accessible via HuggingFace.

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

↑