Multi-agent Legal Text De-identification Using TRPO and Transformer-based Language Models

Safeguarding sensitive data in legal documents is essential for ensuring privacy, regulatory compliance, and secure information exchange. This paper introduces a legal text de-identification framework that targets five gaps in earlier research: low sample efficiency, insufficient focus on sensitive tokens, class imbalance, limited generalizability, and difficult hyperparameter tuning. Our approach employs a dual-agent architecture based on an enhanced trust region policy optimization (TRPO) algorithm. The enhanced TRPO adds an entropy-based regularization (ER) term to the advantage function. It also aggregates outcomes across multiple steps to improve stability and policy robustness. The first agent serves as an active learning (AL) module that selectively identifies the most informative unlabeled samples, reducing reliance on extensive labeled corpora. These prioritized samples are then processed by a second agent responsible for anonymization. The anonymization pipeline integrates local interpretable model-agnostic explanations (LIME) to evaluate and rank token-level importance. Complementary reward mechanisms address class imbalance and strengthen recognition of underrepresented entities. To enhance semantic representation, word embeddings are derived from a generative pre-trained transformer (GPT) model. To enrich the training data, a relational generative adversarial network framework, enhanced with gradient signal exclusion (RelGANGE), is used for online data augmentation. To increase sample diversity, the generator in RelGANGE ignores gradients from samples that receive high discriminator weights. Hyperparameter tuning is performed using a Homotopy-based optimization strategy to refine system performance. Evaluation of the Tribunal Arbitral du Basket-ball (TAB) and European Court of Human Rights (ECtHR) benchmark datasets yields F-measures of 92.414% and 92.637% across the reported settings. These results demonstrate practical value. The combined use of ER-TRPO, AL, LIME, GPT, RelGANGE, and Homotopy enables effective legal text de-identification.

Authors

Institutions

Publication Details

Journal
International Journal of Computational Intelligence Systems
Published
2026-08-25
DOI
https://doi.org/10.1007/s44196-026-01539-x
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Multi-agent Legal Text De-identification Using TRPO and Transformer-based Language Models

Siamak Pedrammehr, Roohallah Alizadehsani, Liu Yang, Shankui Chen et al.
International Journal of Computational Intelligence Systems
Topic Modeling
article

Multi-agent Legal Text De-identification Using TRPO and Transformer-based Language Models

Siamak Pedrammehr, Roohallah Alizadehsani, Liu Yang, Shankui Chen, Kexing Lin
article en

Abstract

Safeguarding sensitive data in legal documents is essential for ensuring privacy, regulatory compliance, and secure information exchange. This paper introduces a legal text de-identification framework that targets five gaps in earlier research: low sample efficiency, insufficient focus on sensitive tokens, class imbalance, limited generalizability, and difficult hyperparameter tuning. Our approach employs a dual-agent architecture based on an enhanced trust region policy optimization (TRPO) algorithm. The enhanced TRPO adds an entropy-based regularization (ER) term to the advantage function. It also aggregates outcomes across multiple steps to improve stability and policy robustness. The first agent serves as an active learning (AL) module that selectively identifies the most informative unlabeled samples, reducing reliance on extensive labeled corpora. These prioritized samples are then processed by a second agent responsible for anonymization. The anonymization pipeline integrates local interpretable model-agnostic explanations (LIME) to evaluate and rank token-level importance. Complementary reward mechanisms address class imbalance and strengthen recognition of underrepresented entities. To enhance semantic representation, word embeddings are derived from a generative pre-trained transformer (GPT) model. To enrich the training data, a relational generative adversarial network framework, enhanced with gradient signal exclusion (RelGANGE), is used for online data augmentation. To increase sample diversity, the generator in RelGANGE ignores gradients from samples that receive high discriminator weights. Hyperparameter tuning is performed using a Homotopy-based optimization strategy to refine system performance. Evaluation of the Tribunal Arbitral du Basket-ball (TAB) and European Court of Human Rights (ECtHR) benchmark datasets yields F-measures of 92.414% and 92.637% across the reported settings. These results demonstrate practical value. The combined use of ER-TRPO, AL, LIME, GPT, RelGANGE, and Homotopy enables effective legal text de-identification.

International Journal of Computational Intelligence Systems
Deakin University (AU), Chulalongkorn University (TH), Guangxi Special Equipment Inspection Institute (CN), Tabriz Islamic Arts University (IR)
Reduced inequalities
Openalex Percentile: Top 7%
Topic Modeling
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.