Contradiction Detection in Brazilian Legislative Bills: A Limited Labeled Data Study
- 8 September 2026
- conference paper
- Published by Sociedade Brasileira de Computação
- p. 89-96
Abstract
Identifying contradictory legislative bills is essential for ensuring consistency in Brazilian legal frameworks, yet it remains a manual and hard-to-scale task. In this work, we study automatic contradiction detection under limited labeled data. We use a dataset of 106 contradictory bill pairs curated by domain specialists and investigate two strategies: (i) supervised learning with synthetic data generation and (ii) zero-shot and few-shot classification using generative large language models (LLMs). Results show that few-shot LLMs perform strongly and outperform the supervised approach based on synthetic data. Although the small dataset limits generalization, our findings highlight the challenges of synthetic data in legal domains and the potential of LLMs for low-data scenarios.Keywords
This publication has 9 references indexed in Scilit:
- Automatic Detection of Contradictions in Legal Texts: A Computational Linguistic ApproachProcedia Computer Science, 2026
- From ANVISA leaflets to extended interoperability with global health databases: some pitfalls and success stories2025
- Document Matching for Contradiction Detection in Low-Resource Legislative Texts With Self-Training and Augmentation Using Transformer ModelJurnal Nasional Pendidikan Teknik Informatika (JANAPATI), 2025
- GovBERT-BR: A BERT-Based Language Model for Brazilian Portuguese Governmental Data2025
- RoBERTaLexPT: um modelo RoBERTa jurídico pré-treinado com deduplicação para língua PortuguesaLinguamática, 2024
- Evaluating Domain-adapted Language Models for Governmental Text Classification Tasks in Portuguese2024
- JurisBERT: A New Approach that Converts a Classification Corpus into an STS One2023
- BERTimbau: Pretrained BERT Models for Brazilian Portuguese2020
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding2019