Trustworthy Contracts AI: Explainable Multi-Label NLP with Legal-BERT, T5, and SHAP

Legal contract analysis remains a time-intensive manual process despite advances in natural language processing. This paper presents an end-to-end explainable AI framework for contract analytics that combines multi-label clause detection with Legal-BERT, abstractive summarization via T5, and layered interpretability using SHAP, LIME, and attention visualization to generate lawyer-readable rationales. Trained and evaluated on the Contract Understanding Atticus Dataset (CUAD) comprising 510 contracts across 41 clause types, the system addresses long-document constraints and severe class imbalance through sliding-window inference and weighted losses. Experimental results demonstrate strong multi-label performance with F1-micro of 0.8924 and low Hamming loss of 0.0023, alongside competitive ROUGE scores for summarization (ROUGE-1: 0.6054). Beyond offline metrics, a containerized web application demonstrates practical deployment viability. The framework's transparent attributions over legally salient spans significantly improve practitioner trust and decision support in high-stakes legal NLP applications, advancing responsible AI adoption in legal technology.

Authors

Publication Details

Journal
International Journal of Intelligent Systems and Data Science
Published
2026-10-31
DOI
https://doi.org/10.67231/3hpg6643
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Trustworthy Contracts AI: Explainable Multi-Label NLP with Legal-BERT, T5, and SHAP

Mafaz Mohammed Nadherssa
International Journal of Intelligent Systems and Data Science
Artificial Intelligence in Law
article

Trustworthy Contracts AI: Explainable Multi-Label NLP with Legal-BERT, T5, and SHAP

Mafaz Mohammed Nadherssa
article en

Abstract

Legal contract analysis remains a time-intensive manual process despite advances in natural language processing. This paper presents an end-to-end explainable AI framework for contract analytics that combines multi-label clause detection with Legal-BERT, abstractive summarization via T5, and layered interpretability using SHAP, LIME, and attention visualization to generate lawyer-readable rationales. Trained and evaluated on the Contract Understanding Atticus Dataset (CUAD) comprising 510 contracts across 41 clause types, the system addresses long-document constraints and severe class imbalance through sliding-window inference and weighted losses. Experimental results demonstrate strong multi-label performance with F1-micro of 0.8924 and low Hamming loss of 0.0023, alongside competitive ROUGE scores for summarization (ROUGE-1: 0.6054). Beyond offline metrics, a containerized web application demonstrates practical deployment viability. The framework's transparent attributions over legally salient spans significantly improve practitioner trust and decision support in high-stakes legal NLP applications, advancing responsible AI adoption in legal technology.

International Journal of Intelligent Systems and Data ScienceVol. 1(6)
Openalex Percentile: Top 3%
Artificial Intelligence in Law
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon