Evaluating Shallow and Deep Learning Strategies for Legal Text Classification of Clauses in Non-Disclosure Agreements

Abstract A non-disclosure agreement (NDA) is a legal contract between at least two business parties that restricts the disclosure of confidential and sensitive information. As part of the NDA document negotiation and review workflows, there is a need to identify, extract and track clauses to ensure they comply with the companies’ policies. The legal Natural Language Processing (NLP) landscape is rapidly evolving and offers a range of technologies and Machine Learning tools, such as text classification, that enable users to automate various key stages of the contract life cycle, thus easing the administrative burden. The proposed system was developed to classify individual clauses within an NDA contract. Automated legal text classification is challenging due to the high dimensionality of a word-based feature space. Additionally, corporate privacy concerns have limited the availability of publicly accessible legal corpora. To leverage the power of deep learning neural architectures, pre-trained word embeddings have attempted to resolve these issues by reusing an input feature space trained on a large, general-purpose dataset, and then fine-tuning it to adapt to a downstream classification task on a smaller annotated legal dataset. In this paper, we evaluate several shallow and deep supervised learning strategies for the classification of 26 individual mutually exclusive clause classes within an NDA contract. The impact of using pre-trained word embeddings on a small legal NDA contract dataset is also evaluated. The shallow SVM and XGBoost classification methods outperform the deep learning long short-term memory neural network (LSTM) approach in a small imbalanced dataset, even when supported by pre-trained embeddings. The potential of using novel transfer learning techniques that allow reuse of legal-domain specific NLP models and feature representation schemes is explored.

Authors

Institutions

Publication Details

Journal
SN Computer Science
Published
2025-08-29
DOI
https://doi.org/10.1007/s42979-025-04300-x
Citations
1
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
8.52
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evaluating Shallow and Deep Learning Strategies for Legal Text Classification of Clauses in Non-Disclosure Agreements

Kevin Curran, Niall McCarroll, Eoin O’Connell, Eugene McNamee et al.
1 citations
SN Computer Science
Artificial Intelligence in Law
8.52
article

Evaluating Shallow and Deep Learning Strategies for Legal Text Classification of Clauses in Non-Disclosure Agreements

Kevin Curran, Niall McCarroll, Eoin O’Connell, Eugene McNamee, Philip McShane, Muskaan Singh, A. J. Brammer, Angela Clist
article en
1 citations

Abstract

Abstract A non-disclosure agreement (NDA) is a legal contract between at least two business parties that restricts the disclosure of confidential and sensitive information. As part of the NDA document negotiation and review workflows, there is a need to identify, extract and track clauses to ensure they comply with the companies’ policies. The legal Natural Language Processing (NLP) landscape is rapidly evolving and offers a range of technologies and Machine Learning tools, such as text classification, that enable users to automate various key stages of the contract life cycle, thus easing the administrative burden. The proposed system was developed to classify individual clauses within an NDA contract. Automated legal text classification is challenging due to the high dimensionality of a word-based feature space. Additionally, corporate privacy concerns have limited the availability of publicly accessible legal corpora. To leverage the power of deep learning neural architectures, pre-trained word embeddings have attempted to resolve these issues by reusing an input feature space trained on a large, general-purpose dataset, and then fine-tuning it to adapt to a downstream classification task on a smaller annotated legal dataset. In this paper, we evaluate several shallow and deep supervised learning strategies for the classification of 26 individual mutually exclusive clause classes within an NDA contract. The impact of using pre-trained word embeddings on a small legal NDA contract dataset is also evaluated. The shallow SVM and XGBoost classification methods outperform the deep learning long short-term memory neural network (LSTM) approach in a small imbalanced dataset, even when supported by pre-trained embeddings. The potential of using novel transfer learning techniques that allow reuse of legal-domain specific NLP models and feature representation schemes is explored.

SN Computer ScienceVol. 6(7)
University of Ulster (GB), OGT Amenity (Ireland) (IE)
Openalex Percentile: Top 3%
Artificial Intelligence in Law
8.52
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.