Research Article

Large Model Semantic Parsing of Court Records with Bias Calibration Benchmark for Restorative Justice

Cunhui Li*
Faculty of Law, The University of New South Wales, Sydney, Australia

* Corresponding author: [email protected]

Abstract

Restorative justice requires algorithms that are simultaneously accurate, explainable, and fair in reconstructing facts and repairing relationships, yet domestic court records exhibit cross-domain heterogeneity, weakly explicit procedural cues, and proxy signals for sensitive attributes, leaving current legal NLP with gaps in event-chain integrity, structural verifiability, and subgroup bias control. To address these challenges, an ontology-driven approach centered on constrained structural decoding and explicit structural validation under an “events–roles–measures–outcomes” schema is proposed, augmented with statute/analogous-case retrieval to stabilize cross-domain parsing, and coupled with an RJ-BCB evaluation–calibration loop comprising counterfactual generation, cost-sensitive reweighting, and groupwise/temperature recalibration, executed and reproduced on domestic public and compliant corpora from 2019–2024. Results show consistent improvements over strong baselines: Slot-F1 rises to 88.9 (+4.7), Span-F1 to 86.3 (+4.6), Graph-F1 to 82.4 (+5.9), and Structural Validity Rate (SVR) to 96.7 (+7.6); under attribute-visible/attribute-hidden protocols, Conditional Opportunity Gap (COG) drops to 2.1%/1.8%, Equalized Odds Difference (EOD) to 2.9%/2.5%, and Counterfactual Invariance Score (CIS) increases to 0.91/0.90, with intergroup calibration error markedly reduced. The significance lies in the synergy between structural constraints and retrieval evidence, which jointly enhances parsing coverage and structural correctness, while the calibration loop effectively compresses disparities driven by non-causal sensitive attributes. The framework provides a measurable, calibratable, and verifiable technical pathway for evidence-chain presentation and recommendation review in restorative-justice settings, and establishes methodological and tooling foundations for compliant deployment and continuous auditing of judicial AI.

Keywords: Semantic Parsing; Legal NLP; Large Language Models; Bias Calibration; Restorative Justice
Published: December 18, 2025
DOI: 10.54254/2755-2721/2026.30609
Volume: ACE Vol.189
pp. 83-88
Download PDF

References

  1. Chalkidis, Ilias, et al. "LexGLUE: A benchmark dataset for legal language understanding in English." Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2022.
  2. Guha, Neel, et al. "Legalbench: A collaboratively built benchmark for measuring legal reasoning in large language models." Advances in neural information processing systems 36 (2023): 44123-44279.
  3. Niklaus, Joel, et al. "Multilegalpile: A 689gb multilingual legal corpus." Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2024.
  4. Niklaus, J., Matoshi, V., Rani, P., Galassi, A., Stürmer, M., & Chalkidis, I. (2023). Lextreme: A multi-lingual and multi-task benchmark for the legal domain. arXiv preprint arXiv: 2301.13126.
  5. Louis, Antoine, and Gerasimos Spanakis. "A statutory article retrieval dataset in French." Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2022.
  6. Rabelo, Juliano, et al. "Overview and discussion of the competition on legal information extraction/entailment (COLIEE) 2021." The Review of Socionetwork Strategies 16.1 (2022): 111-133.
  7. Silva Filho, Telmo, et al. "Classifier calibration: a survey on how to assess and improve predicted class probabilities." Machine Learning 112.9 (2023): 3211-3260.
  8. Jiang, Zhengping, Anqi Liu, and Benjamnin Van Durme. "Addressing the binning problem in calibration assessment through scalar annotations." Transactions of the Association for Computational Linguistics 12 (2024): 120-136.
  9. Ulmer, Dennis, et al. "Calibrating large language models using their generations only." Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2024.
  10. Hansen, Dutch, et al. "When is multicalibration post-processing necessary?." Advances in Neural Information Processing Systems 37 (2024): 38383-38455.
  11. Perez-Lebel, Alexandre, Marine Le Morvan, and Gaël Varoquaux. "Beyond calibration: estimating the grouping loss of modern neural networks." arXiv preprint arXiv: 2210.16315 (2022).