JEC-QA: A Legal-Domain Question Answering Dataset

Haoxi Zhong, Chaojun Xiao, Cunchao Tu, Tianyang Zhang, Zhiyuan Liu, Maosong Sun

Introduction

Legal Question Answering (LQA) represents a high-stakes frontier for Artificial Intelligence. Unlike general-domain QA, legal tasks require extreme precision, the interpretation of complex statutes, and the application of abstract laws to intricate real-world scenarios. Researchers from Tsinghua University have introduced JEC-QA, the largest legal-domain dataset to date, derived from the National Judicial Examination of China (NJEC). This exam is notoriously difficult, with only a 10% annual pass rate among human candidates.

Current NLP models often rely on surface-level semantic matching, which is insufficient for the legal domain. LQA is characterized by two primary hurdles:

  1. Data Scarcity: Previous LQA datasets were significantly smaller, limiting the effectiveness of deep learning approaches.
  2. Reasoning Complexity: Determining whether an action constitutes "theft" or "embezzlement" requires sophisticated logic and multi-step interpretation of statutory definitions.
An example of multi-hop reasoning in JEC-QA, where multiple legal provisions must be synthesized to determine the correct charge.

Dataset Composition and Methodology

JEC-QA consists of 26,365 multiple-choice questions from the Chinese Bar Exam (2009–2017). The dataset is categorized into two main types:

  • Knowledge-Driven (KD): Focuses on the understanding of specific legal concepts and provisions.
  • Case-Analysis (CA): Requires applying the law to specific, often complex, factual scenarios.

To support these questions, the researchers provided a structured knowledge base including the official NJEC counseling book and thousands of legal provisions.

Reasoning Taxonomy

The authors categorized the questions into five distinct reasoning types to better understand model performance, as shown in the table below. Notably, Case-Analysis questions are heavily weighted toward complex multi-hop reasoning.

Taxonomy of reasoning types in JEC-QA and their distribution across Knowledge-Driven (KD) and Case-Analysis (CA) questions.

Key Insights and Results

The evaluation of state-of-the-art models on JEC-QA reveals a significant "reasoning gap" between AI and humans:

  • Model Performance: The best-performing neural model (Multi-Matching) achieved an accuracy of only 28.63%. Even BERT, a leader in general NLP, struggled at 22.51%.
  • Human Benchmarks: "Unskilled" humans (without legal training but with access to search tools) achieved 64.21%, while legal professionals reached 81.12%.

The results highlight that while models are relatively competent at retrieval for KD questions, they fail significantly on CA questions, where over 66% of tasks require multi-hop reasoning. Furthermore, models show notable weakness in numerical logic, a common requirement in legal sentencing and responsibility assessments.

Conclusion and Future Directions

JEC-QA demonstrates that simply increasing the amount of retrieved context does not necessarily improve performance; models often become "confused" by irrelevant information in long reasoning chains. Future research must focus on:

  • Integrating structured legal knowledge (ontologies or logic trees) directly into neural architectures.
  • Enhancing multi-step reasoning capabilities to handle complex case analyses.
  • Moving beyond keyword patterns toward a deeper "understanding" of legal principles.

The JEC-QA dataset is available at http://jecqa.thunlp.org/.

Summary updated

BibTeX
@inproceedings{zhong2020jec,
  author = {Haoxi Zhong and Chaojun Xiao and Cunchao Tu and Tianyang Zhang and Zhiyuan Liu and Maosong Sun},
  title = {{JEC-QA: A Legal-Domain Question Answering Dataset}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6519},
}
Figure