Introduction
Legal Judgment Prediction (LJP) involves predicting case outcomes based on factual descriptions. While deep learning models have achieved high accuracy in this domain, they often function as "black boxes," lacking the transparency required for legal professional trust and ethical accountability. This paper introduces QAjudge, a framework designed to bridge the gap between performance and interpretability by mimicking the "Elemental Trial" process used by human judges.
Methodology: The QAjudge Framework
QAjudge operates on two fundamental legal principles: the Presumption of Innocence (assuming innocence unless incriminating elements are proven) and the Elemental Trial (basing judgments on specific factual elements).
The framework consists of three specialized sub-networks that interact in a reinforcement learning loop:
- Question Net (Policy Agent): Utilizes Deep Q-Learning (DQN) to strategically select the next binary question from a predefined set. It aims to identify diagnostic elements while minimizing the total number of questions.
- Answer Net (Fact Reader): A BERT-based model that extracts information from raw case facts to provide "Yes" or "No" answers to the Question Net's queries.
- Predict Net (Verdict Giver): A classifier (e.g., LightGBM or Random Forest) that produces the final judgment—including specific crimes and legal articles—based on the accumulated vector of answers.
By default, unasked questions are treated as "No," mathematically encoding the presumption of innocence into the model's logic.
Experimental Setup
The researchers evaluated QAjudge using three large-scale Chinese legal datasets: CJO (China Judgment Online), PKU (Peking University Law Online), and CAIL. To facilitate the "Elemental Trial" logic, the authors manually curated a resource of 29 legal elements mapped to 20 common crimes and 19 legal provisions. This allows the model to "know" which factual elements are required to prove a specific charge.
Results and Discussion
QAjudge demonstrates that interpretability does not necessitate a significant sacrifice in performance. The model achieved Macro-F1 scores between 93% and 94% on the CJO dataset, trailing state-of-the-art black-box models by only approximately 4%.
Efficiency and Interpretability
A key strength of QAjudge is its efficiency. As shown in the performance analysis, the model reaches peak performance by asking an average of only six questions. This strategic questioning creates a clear "audit trail," allowing legal professionals to verify the factual basis of a prediction. If a model errs, a lawyer can pinpoint exactly which factual element was incorrectly identified, making the system debuggable and transparent.
Bias Mitigation
By decoupling fact extraction from final judgment, QAjudge reduces the risk of the model relying on demographic biases or irrelevant text features. The final verdict is strictly a function of the proven factual elements, rather than latent patterns in the narrative description.
Conclusion and Future Work
QAjudge provides a viable path toward interpretable AI in the legal sector. While there is a minor "interpretability tax," the benefits of transparency and bias mitigation are substantial. Future research will focus on automatically extracting legal elements from statutes to improve scalability and refining the granularity of elements to capture more factual nuance.
Summary updated