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:
- Recognition & Recall: Identifying legal entities, topics, definitions, articles, and hierarchical/temporal relationships.
- Understanding & Structuring: Extracting legal relationships, building knowledge graphs, verifying judgments, and understanding user intent.
- Reasoning & Inference: Predicting applicable articles from short queries, predicting court decisions, multi-article reasoning, detecting statutory conflicts, and estimating penalties.
- Interpretation & Generation: Summarizing long legal texts, generating structured IRAC (Issue–Rule–Application–Conclusion) reasoning, and writing objective legal opinions.
- Ethics, Fairness & Bias: Detecting bias, protecting privacy/PII, assessing ethical consistency, and spotting unfair contracts.
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-pretrainachieved 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.5andGPT-4odominate Levels 1–2, domain-adaptedCMC-Legal-32BoutperformedGPT-4oon 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-32Bswung 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.5led article prediction (59.83%), multi-article reasoning (79.10%), and penalty estimation (69.36%).CMC-Legal-32Bachieved state-of-the-art on court decision prediction (90.67%, beatingGPT-4oby 6.17 points). - Generation & Ethics (Levels 4–5): Generation ROUGE-L scores were moderate (0.33–0.50), with
CMC-Legal-32Bleading IRAC judicial reasoning (0.4213 ROUGE-L) and unfair contract detection (73.50%, beatingGPT-4oby 15.39 points). Bias detection (Task 5.1) remained a bottleneck across the board (15–58%, withQwen2.5-14Bhighest 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