Document Matching for Contradiction Detection in Low-Resource Legislative Texts With Self-Training and Augmentation Using Transformer Model

Detecting contradictions within low-resource legislative texts presents significant challenges due to limited labeled data, complex legal language, and the vast number of verses contained within legal documents. These contradictions can lead to legal ambiguities and disputes if not addressed effectively. To tackle this problem, this study proposes a comprehensive system that combines document matching with contradiction detection. Legal documents are first clustered based on contextual similarity, enabling a more targeted analysis of potentially contradictory verses. Among several clustering approaches tested, keyword similarity-based clustering using KeyBERT produced the highest MatchingScore of 0.6111. To overcome the scarcity of labeled data, we employed a multi-step strategy involving manual annotation, generative AI-based data augmentation, and self-training techniques. The contradiction detection model was developed using the XLM-RoBERTa architecture, trained on TPU V2 with a batch size of 64. The model achieved strong performance, with 0.978 recall, 0.9356 precision, 0.982 accuracy, and a 0.9566 F1-score, completing each epoch in 82 seconds. This integrated approach significantly reduces the complexity of contradiction detection in legislative documents while ensuring high accuracy and robustness.

Authors

Institutions

Publication Details

Journal
Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI)
Published
2025-07-14
DOI
https://doi.org/10.23887/janapati.v14i2.95954
Primary Topic
Advanced Text Analysis Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Document Matching for Contradiction Detection in Low-Resource Legislative Texts With Self-Training and Augmentation Using Transformer Model

Ilham Gurat Adillion, Diana Purwitasari, Dini Adni Navastara, Surya Abdillah et al.
Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI)
Advanced Text Analysis Techniques
article

Document Matching for Contradiction Detection in Low-Resource Legislative Texts With Self-Training and Augmentation Using Transformer Model

Ilham Gurat Adillion, Diana Purwitasari, Dini Adni Navastara, Surya Abdillah, Davian Benito
article en

Abstract

Detecting contradictions within low-resource legislative texts presents significant challenges due to limited labeled data, complex legal language, and the vast number of verses contained within legal documents. These contradictions can lead to legal ambiguities and disputes if not addressed effectively. To tackle this problem, this study proposes a comprehensive system that combines document matching with contradiction detection. Legal documents are first clustered based on contextual similarity, enabling a more targeted analysis of potentially contradictory verses. Among several clustering approaches tested, keyword similarity-based clustering using KeyBERT produced the highest MatchingScore of 0.6111. To overcome the scarcity of labeled data, we employed a multi-step strategy involving manual annotation, generative AI-based data augmentation, and self-training techniques. The contradiction detection model was developed using the XLM-RoBERTa architecture, trained on TPU V2 with a batch size of 64. The model achieved strong performance, with 0.978 recall, 0.9356 precision, 0.982 accuracy, and a 0.9566 F1-score, completing each epoch in 82 seconds. This integrated approach significantly reduces the complexity of contradiction detection in legislative documents while ensuring high accuracy and robustness.

Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI)Vol. 14(2)
Sepuluh Nopember Institute of Technology (ID)
Openalex Percentile: Top 91%
Advanced Text Analysis Techniques
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.