arXiv(opens in a new tab)cs.IROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.18622

Structural Segmentation for Brazilian Legal Document Retrieval

Leandro Carísio Fernandes, João Alberto de Oliveira Lima, Hudson de Martim, Eduardo Seiti de Oliveira, Roberto Lotufo, Jayr Pereira

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Long legal documents are often represented as single retrieval units, which can dilute relevant content and limit retrieval effectiveness. This study investigates structural segmentation as a document representation strategy to improve Brazilian legal document retrieval. Using the hierarchical structure of legal acts, we represent each document as a collection of chunks. We evaluate four representation strategies: a multi-layered hierarchy representation and three simplified versions based on core chunks (articles and non-normative document components), with varying contextual details. We test these strategies on two publicly available Brazilian legal datasets containing normative acts and legislative proposals, using both lexical and dense retrieval models. Results show that structural segmentation improves dense retrieval compared with whole-document indexing, despite substantially increasing the number of indexed units. However, it does not consistently benefit lexical retrieval. Finally, we find that full hierarchy representation is not necessary: core chunks enriched with document metadata yield comparable or better results.

Keywords: legal information retrieval, document segmentation, dense retrieval, Brazilian legal acts

1 Introduction

Recent advances in information retrieval (IR) have increasingly used dense vector representations. Unlike traditional lexical approaches, dense retrieval represents queries and documents as vectors, allowing semantic matching beyond exact word matches. However, long documents remain challenging to represent [1, 2]. A single vector may provide a broad and imprecise representation of a document containing multiple topics, making relevant content harder to distinguish from unrelated information. One approach to this problem is to represent documents using smaller retrieval units, allowing the retriever to identify specific portions of a document that are relevant to a query.

This problem is relevant in legal information retrieval (legal IR), which applies IR techniques to legal documents. Legal documents differ from general-purpose text in several ways. They are often long, contain domain-specific terminology, and are highly structured, with relationships between their content and their organizational structure [3]. Relevant information in a legal document may be concentrated in a single provision or section, while the remainder of the document may address different topics. Treating the whole document as a single retrieval unit can therefore result in an overly broad representation in which relevant information is diluted by unrelated content [4].

The structure of legal documents provides an opportunity to address this problem. Structural components can be indexed separately, allowing retrieval models to match queries against more focused portions of the document. At the same time, smaller units may lose information needed to interpret their content. The choice of retrieval unit therefore involves a trade-off between representing localized information and preserving the context in which that information occurs. Legal documents are suitable for studying this trade-off because their structural organization is explicitly defined [5].

Brazilian legal documents provide a useful setting for this investigation. Legislative proposals, laws, and other normative acts follow formal drafting rules that organize their content into explicit structural units [6, 7]. These units include articles and their subdivisions, as well as higher-level components such as sections and chapters. They provide natural boundaries for document segmentation, enabling retrieval representations based on the structure of legal acts.

The Brazilian legal retrieval context also presents challenges for current retrieval approaches. A recent benchmark of five Brazilian legal datasets showed that lexical retrieval models remained competitive with and, in some cases, outperformed dense retrieval models [8]. The largest gaps occurred on NormasTCU and Ulysses-RFCorpus, two collections of highly structured legal documents [9, 10].

In this paper, we investigate structural segmentation of Brazilian legal acts for document retrieval. We represent each document as a set of structural chunks and evaluate different representation strategies. During retrieval, the model matches queries with individual chunks, and the resulting scores are mapped back to the original documents for document-level ranking. We evaluate these strategies on NormasTCU and Ulysses-RFCorpus using both lexical and dense retrieval models.

References (23)