构建首个泰国法律问答基准,评估大模型在税法与金融法中的表现。
NitiBench: A Comprehensive Study of LLM Framework Capabilities for Thai Legal Question Answering
- 设计分章节切块与跨引用机制提升法律文本检索效果。
- 长上下文大模型仍不及RAG系统在复杂法律问题上的表现。
- 适用于泰国法律NLP研究者,支持公平评估与可复现实验。
大型语言模型在法律领域的应用潜力巨大,但泰国法律问答系统因缺乏标准化评估基准和法律结构复杂而面临挑战。本文提出NitiBench基准,包含两个数据集:覆盖一般金融法的NitiBench-CCL,以及包含真实税法案例、需高级法律推理的NitiBench-Tax。我们评估了检索增强生成(RAG)与长上下文大模型方法,回答三个关键问题:领域特定组件(如分章节切块与跨引用)的影响、不同检索器与大模型的性能对比,以及长上下文大模型作为RAG替代方案的可行性。结果表明,分章节切块显著提升检索与端到端性能,现有检索器在复杂查询上表现不佳,长上下文大模型仍逊于RAG系统。为实现公平评估,我们提出定制化多标签检索指标,并采用大模型作为裁判检测覆盖与矛盾。研究揭示当前泰国法律NLP方案的局限性,为后续研究奠定基础。代码与数据集已公开。
原文摘要 · Abstract (English)
The application of large language models (LLMs) in the legal domain holds significant potential for information retrieval and question answering, yet Thai legal QA systems face challenges due to a lack of standardized evaluation benchmarks and the complexity of Thai legal structures. This paper introduces NitiBench, a benchmark comprising two datasets: the NitiBench-CCL, covering general Thai financial law, and the NitiBench-Tax, which includes real-world tax law cases requiring advanced legal reasoning. We evaluate retrieval-augmented generation (RAG) and long-context LLM-based approaches to address three key research questions: the impact of domain-specific components like section-based chunking and cross-referencing, the comparative performance of different retrievers and LLMs, and the viability of long-context LLMs as an alternative to RAG. Our results show that section-based chunking significantly improves retrieval and end-to-end performance, current retrievers struggle with complex queries, and long-context LLMs still underperform RAG-based systems in Thai legal QA. To support fair evaluation, we propose tailored multi-label retrieval metrics and the use of an LLM-as-judge for coverage and contradiction detection method. These findings highlight the limitations of current Thai legal NLP solutions and provide a foundation for future research in the field. We also open-sourced our codes and dataset to available publicly.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。