Manuscript Offprint

arXiv:2608.27746

NormasTCU --- A Brazilian Portuguese IR Dataset and an Evaluation of LLM-as-a-Judge for Relevance Assessment

Leandro Carísio Fernandes, Marcus Vinícius Borela de Castro, Leandro dos Santos Ribeiro, Leonardo Augusto da Silva Pacheco, Edans Flávius de Oliveira Sandes

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

Abstract

Portuguese Information Retrieval (IR) lacks public datasets, and relevance assessment for specialized collections remains costly. While Large Language Models (LLMs) increasingly support relevance assessment, their reliability in non-English specialized domains remains unclear. We introduce NORMASTCU 1^{1}, a Brazilian Portuguese IR dataset with 14,469 legal documents, 46 queries, and 3,048 human judgments over 812 query-document pairs. Using NORMASTCU, we evaluated LLM-as-a-judge for relevance assessment by prompting three models with two prompt techniques to grade these pairs. We then compared the rankings of 15 IR systems derived from LLM-generated and human reference qrels. LLMs consistently showed a positive scoring bias (mean absolute error: 0.46–0.66 on a 0-2 scale). Furthermore, pair-level agreement with human judgments achieved only fair to moderate levels, with Cohen's κ\kappa ranging from 0.32 to 0.53. Despite this bias, LLM-generated judgments often yielded highly similar system rankings for nDCG@10 and MRR (observed Kendall's τ≥0.90\tau \geq 0.90, although the bootstrap confidence intervals did not always remain above this threshold), but were less reliable for P@10 and R@10. Notably, LLM-based rankings were sometimes more strongly correlated with the reference ranking than individual human annotations were. As a practical implication, our results suggest that LLMs could effectively support scalable relevance assessment in specialized Portuguese corpora when evaluated using nDCG or MRR (rank-aware metrics), but they should be avoided when relying on precision or recall.

Keywords: Brazilian Portuguese, Dataset, Information Retrieval, LLM-as-a-Judge, Qrels, Query Relevance Judgments, Legal Information Retrieval

1 Introduction

Information Retrieval (IR) systems are usually evaluated using offline test collections [1], which, under the Cranfield paradigm, consist of a document corpus, a set of queries (topics), and relevance judgments (qrels) for query-document pairs [2, 3]. Currently, most publicly available IR test collections are in English, which limits the evaluation of retrieval systems in other languages. In particular, Portuguese is highly relevant, as it is one of the world's most widely spoken languages 2^{2}.

Retrieval performance also depends on factors beyond language, such as the nature of the document collection. Domain-specific corpora introduce challenges that are not present in general-purpose datasets. Among these, the legal domain stands out as a key scenario. Legal professionals

1^{1}https://huggingface.co/datasets/LeandroRibeiro/NormasTCU

2^{2}https://en.wikipedia.org/wiki/List_of_languages_by_total_number_of_speakers rely on IR applications for case law retrieval and document analysis; moreover, legal search is essential for transparency, decision-making, and access to justice in public institutions. Adapting IR systems to this domain is non-trivial, as, unlike general web corpora, official legal documents tend to be highly structured and rely on specialized vocabulary and strict terminology [4–6]. Thus, properly evaluating these systems requires domain-specific test collections, which remain scarce in Portuguese.

Building a Cranfield-style collection is costly. Ideally, relevance would be assessed manually for the entire corpus by trained human assessors following detailed guidelines. In practice, exhaustive judging is rarely feasible today due to the volume of modern corpora. Therefore, most collections rely on assessing only a subset of documents. Even then, the process remains time-consuming [1,3][1, 3].

To mitigate these costs, alternatives to manual assessment are currently being investigated in the IR community. In this context, large language models (LLMs) have been used to evaluate complex tasks, a paradigm known as LLM-as-a-judge [7]. One such task is document relevance annotation, which offers a scalable solution by enabling the annotation of large document collections at substantially lower cost than manual assessment. Prior studies have shown that LLM-generated judgments introduce bias at the query-document pair level, usually assigning higher relevance scores than human annotators [8–11]. Nevertheless, when LLM-generated relevance judgments are used to evaluate IR systems, the resulting system rankings are often highly correlated with those obtained from human judgments [9, 12, 13]. That is, although LLMs may diverge from humans in absolute relevance scores, they frequently preserve the relative ordering of IR systems.

However, most publicly available IR test collections, and consequently most empirical evidence on the quality of LLM-generated annotations, are centered on English and on everyday language data. Since these models are predominantly trained on English-language data, their behavior in relevance assessment may vary across languages and domains [14][14], and the extent to which findings generalize beyond English remains an open question. Thus, evaluating the use of LLM annotators in other languages and domains is necessary to determine whether their performance remains consistent.

To address these gaps, this paper presents a two-fold contribution. First, we introduce NORMASTCU, a new Brazilian Portuguese IR test collection with 14,469 legal documents, 46 queries, and graded relevance judgments produced by four human annotators. The corpus consists of normative acts issued by the Brazilian Federal Court of Accounts, while the queries reflect real user search terms. We publicly released the corpus, queries, and relevance judgments (provided as aggregated qrels and anonymized individual annotations) to help address the scarcity of Portuguese IR resources in the legal domain.

Second, considering that NORMASTCU was built using human judgments, we conduct an experiment to assess how closely LLM-generated relevance annotations align with human judgments in Portuguese for ranking IR systems. We analyzed agreement between human and LLM assessments at two levels: (i) the query-document pair level, evaluating agreement and bias; and (ii) the system level, examining whether LLM-generated qrels preserve the ranking of IR systems obtained with aggregated human judgments. Unlike recent studies that typically rely on nDCG [Normalized Discounted Cumulative Gain, e.g., 9, 12, 15], we evaluated multiple metrics to investigate whether ranking consistency generalizes across them. We also compared rankings derived from LLM-generated qrels with those based on individual human annotators.

The experiment on the NORMASTCU dataset, using the prompts and models evaluated in this study, showed that LLMs tend to assign higher relevance scores than humans, i.e., there is a positive bias at the query-document pair level. Nevertheless, system rankings derived from LLM-generated qrels remained highly correlated with those obtained using aggregated human judgments when evaluated with nDCG@10 and MRR (Mean Reciprocal Rank) metrics, but not with P@10 (Precision) or R@10 (Recall). Notably, in many cases during the experiment, due to variability among human annotators, the correlation between LLM-based rankings and the aggregated human ranking was higher than the correlation between a single human annotator's ranking and the aggregated human ranking.

References (44)