Benchmarking Vietnamese Legal Knowledge of Large Language Models

Dong Nguyen Tien, Nguyen Anh Minh, Thanh Dat Hoang, Nguyen Tuan Ngoc, Quang Minh Dao Xuan, Phan Phi Hai, Nguyen Thi Ngoc Anh, Binh Vu, Dung D. LeNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Most legal AI benchmarks are built for English common law—where judges rely on past court cases—leaving out civil law systems that govern over 60% of the world. VietLegal introduces a 10,450-sample benchmark for Vietnamese law, structured around Bloom’s taxonomy to test everything from basic legal recall to multi-step reasoning and ethics. Testing 23 LLMs reveals a striking pattern: while giant proprietary models ace foundational tasks, smaller, domain-adapted Vietnamese models often beat them on complex legal reasoning—yet all models still struggle with legal conflicts and recent statutory updates.

What Problem Does This Paper Address?

If you ask an LLM a legal question in English, you’re testing it on common law, which revolves around judicial precedent and case-by-case reasoning. But most of the world—including Vietnam—operates under civil law, where authority comes from dense, hierarchical statutes (broken down into Articles, Clauses, and Points) that are frequently amended, consolidated, or replaced.

Existing legal NLP benchmarks (like LexGLUE or LegalBench) largely ignore this structure, and Vietnamese—a low-resource language with intricate cross-referencing between statutes—has lacked a standardized way to evaluate whether LLMs can actually reason about the law rather than just regurgitate surface-level text.

Methods

The authors designed VietLegal around Bloom’s taxonomy, organizing 22 realistic legal-assistant tasks into five progressively harder cognitive levels:

  1. Recognition & Recall: Identifying legal entities, topics, definitions, articles, and hierarchical/temporal relationships.
  2. Understanding & Structuring: Extracting legal relationships, building knowledge graphs, verifying judgments, and understanding user intent.
  3. Reasoning & Inference: Predicting applicable articles from short queries, predicting court decisions, multi-article reasoning, detecting statutory conflicts, and estimating penalties.
  4. Interpretation & Generation: Summarizing long legal texts, generating structured IRAC (Issue–Rule–Application–Conclusion) reasoning, and writing objective legal opinions.
  5. Ethics, Fairness & Bias: Detecting bias, protecting privacy/PII, assessing ethical consistency, and spotting unfair contracts.
Figure 1: VietLegal data pipeline. Data are collected from Vietnamese legal sources, preprocessed, stored in a database, and used to build an information retrieval tool for legal experts. The final dataset is obtained through manual annotation.

To build the dataset, the team collected ~55,000 currently effective Vietnamese legal documents and law firm Q&A posts, parsed them into a Legal Corpus Database and a Knowledge Graph Database, and anonymized all personal data. Junior legal experts annotated the samples using blind cross-verification (92.39% initial agreement, Cohen’s $\kappa = 0.89$), with senior lawyers adjudicating disputes. An independent panel of three senior legal experts validated the taxonomy itself, achieving 97.0% exact agreement ($\kappa = 0.97$).

They evaluated 23 LLMs—spanning proprietary models (GPT-4o, Claude Sonnet 4.5, Gemini 2.5 Flash), open-source multilingual models (Qwen2.5, Llama-3.1, Gemma-2), and domain-adapted Vietnamese models (CMC-Legal-32B, Qwen3-4b-legal-pretrain)—under zero-shot and few-shot settings, with and without Chain-of-Thought (CoT) reasoning.

Datasets

  • VietLegal (Newly Introduced): 10,450 expert-annotated, cross-validated samples across 22 tasks, using Multiple-Choice (MCQ), Multi-Label Classification (MLC), Binary Classification (BC), Named Entity Recognition (NER), and Generation formats.
  • Contamination Check: Auditing 1,000 stratified samples against web search, Vietnamese legal portals, and Common Crawl showed only 1.8% potential overlap—all due to standard statutory templates, with zero contamination in reasoning or generation tasks.

Key Insights and Ideas

  • Domain adaptation beats raw parameter scale: Smaller, legally pretrained models punch way above their weight. The 4B-parameter Qwen3-4b-legal-pretrain achieved the best open-source score on article prediction (43.83%), outperforming general models up to 18× larger.
  • Proprietary models lose their edge on hard reasoning: While Claude Sonnet 4.5 and GPT-4o dominate Levels 1–2, domain-adapted CMC-Legal-32B outperformed GPT-4o on 6 of 10 high-level tasks (Levels 3–5, excluding conflict detection).
  • Systematic failure in Conflict Detection (Task 3.4): Nearly half the models (10 of 23) scored 0.00 Y-F1, blindly predicting "no conflict" on every pair. Meanwhile, CMC-Legal-32B swung to the opposite extreme, over-detecting conflicts almost everywhere.
  • Explicit reasoning can hurt: On Level 2 (Understanding & Structuring), zero-shot CoT prompting actually degraded performance and increased variance compared to few-shot prompting without explicit reasoning.
  • "Recency blindness": Models consistently failed on questions involving newly enacted 2024–2025 laws, defaulting to outdated legislation.

Key Results

  • Foundational Tasks (Levels 1–2): Top models reached 81–86% accuracy on topic classification (Qwen2.5-32B-Instruct: 85.50%) and up to 87.81% on judgment verification (Claude Sonnet 4.5). However, all 23 models scored below 28% on Legal Schema Recall (Task 1.5), struggling with amendments and document hierarchies.
  • Reasoning & Inference (Level 3): Claude Sonnet 4.5 led article prediction (59.83%), multi-article reasoning (79.10%), and penalty estimation (69.36%). CMC-Legal-32B achieved state-of-the-art on court decision prediction (90.67%, beating GPT-4o by 6.17 points).
  • Generation & Ethics (Levels 4–5): Generation ROUGE-L scores were moderate (0.33–0.50), with CMC-Legal-32B leading IRAC judicial reasoning (0.4213 ROUGE-L) and unfair contract detection (73.50%, beating GPT-4o by 15.39 points). Bias detection (Task 5.1) remained a bottleneck across the board (15–58%, with Qwen2.5-14B highest at 57.79%).

Limitations and Future Work

Even the strongest LLMs struggle with cross-document normative reasoning, tracking temporal validity across recent amendments, and avoiding fabricated citations in IRAC generation. Future work will need to focus on grounding models in up-to-date statutory knowledge graphs, fixing conflict-detection biases, and adapting VietLegal’s civil-law framework to other underrepresented jurisdictions.

Summary updated

BibTeX
@inproceedings{tien2026benchmarking,
  author = {Dong Nguyen Tien and Nguyen Anh Minh and Thanh Dat Hoang and Nguyen Tuan Ngoc and Quang Minh Dao Xuan and Phan Phi Hai and Nguyen Thi Ngoc Anh and Binh Vu and Dung D. Le},
  title = {{Benchmarking Vietnamese Legal Knowledge of Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=clrKAP4Tdj},
}
Figure