首个越南语法律自然语言推理数据集,助力AI理解法律文本逻辑。
ViLegalNLI: Natural Language Inference for Vietnamese Legal Texts

- 用大模型生成假设并严格验证,构建高质量法律推理数据
- 包含4.2万组法律文本对,覆盖多领域真实推理场景
- 适合研究越南法律AI、法律文本理解与智能辅助决策者
本文提出ViLegalNLI,首个专为越南语法律领域设计的大规模自然语言推理(NLI)数据集。该数据集包含42,012对前提-假设样本,源自官方法规文件,标注二元推理标签(蕴含与非蕴含),涵盖多个法律领域,反映结构化逻辑、条件句及专业术语等真实法律推理特征。我们提出一种半自动数据生成框架,结合大语言模型进行可控假设生成,并引入消偏策略与跨模型验证以提升标注可靠性与法律一致性。数据集涵盖重述、逻辑蕴含及非法推理等多种推理模式,构成全面的越南语法律推理基准。在多语言模型、越南语专用预训练模型及指令微调大模型上进行实验,结果表明少样本大模型配置表现更优,且性能受假设长度、词汇重叠度与推理复杂度显著影响。跨领域评估揭示了法律推理在不同法律领域间泛化困难。总体而言,ViLegalNLI为越南语法律NLI奠定基础,支持未来法律推理、法条理解与可靠法律AI系统研究。数据集已公开供研究使用。
原文摘要 · Abstract (English)
In this article, we introduce ViLegalNLI, the first large-scale Vietnamese Natural Language Inference (NLI) dataset specifically constructed for the legal domain. The dataset consists of 42,012 premise-hypothesis pairs derived from official statutory documents and annotated with binary inference labels (Entailment and Non-entailment). It covers multiple legal domains and reflects realistic legal reasoning scenarios characterized by structured logic, conditional clauses, and domain-specific terminology. To construct ViLegalNLI, we propose a semi-automatic data generation framework that integrates large language models for controlled hypothesis generation and systematic quality validation procedures. The framework incorporates artifact mitigation strategies and cross-model validation to improve annotation reliability and ensure legal consistency. The resulting dataset captures diverse reasoning patterns, including paraphrasing, logical implication, and legally invalid inferences, thereby providing a comprehensive benchmark for Vietnamese legal inference tasks. We conduct extensive experiments on the ViLegalNLI using multilingual models, Vietnamese-specific pretrained language models, and instruction-tuned large language models. The results show that few-shot LLM configurations consistently achieve superior performance, while performance is significantly influenced by hypothesis length, lexical overlap, and reasoning complexity. Cross-domain evaluations further reveal the challenges of generalizing legal inference across distinct legal fields. Overall, ViLegalNLI establishes a foundational benchmark for Vietnamese legal NLI and supports future research in legal reasoning, statutory text understanding, and the development of reliable AI systems for legal analysis and decision support. The dataset is publicly available for research purposes.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。