Saved in:
Bibliographic Details
Main Authors: Canaverde, Beatriz, Pires, Telmo Pessoa, Ribeiro, Leonor Melo, Martins, André F. T.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.16357
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913703300956160
author Canaverde, Beatriz
Pires, Telmo Pessoa
Ribeiro, Leonor Melo
Martins, André F. T.
author_facet Canaverde, Beatriz
Pires, Telmo Pessoa
Ribeiro, Leonor Melo
Martins, André F. T.
contents The recent application of LLMs to the legal field has spurred the creation of benchmarks across various jurisdictions and languages. However, no benchmark has yet been specifically designed for the Portuguese legal system. In this work, we present LegalBench.PT, the first comprehensive legal benchmark covering key areas of Portuguese law. To develop LegalBench.PT, we first collect long-form questions and answers from real law exams, and then use GPT-4o to convert them into multiple-choice, true/false, and matching formats. Once generated, the questions are filtered and processed to improve the quality of the dataset. To ensure accuracy and relevance, we validate our approach by having a legal professional review a sample of the generated questions. Although the questions are synthetically generated, we show that their basis in human-created exams and our rigorous filtering and processing methods applied result in a reliable benchmark for assessing LLMs' legal knowledge and reasoning abilities. Finally, we evaluate the performance of leading LLMs on LegalBench.PT and investigate potential biases in GPT-4o's responses. We also assess the performance of Portuguese lawyers on a sample of questions to establish a baseline for model comparison and validate the benchmark.
format Preprint
id arxiv_https___arxiv_org_abs_2502_16357
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LegalBench.PT: A Benchmark for Portuguese Law
Canaverde, Beatriz
Pires, Telmo Pessoa
Ribeiro, Leonor Melo
Martins, André F. T.
Computation and Language
The recent application of LLMs to the legal field has spurred the creation of benchmarks across various jurisdictions and languages. However, no benchmark has yet been specifically designed for the Portuguese legal system. In this work, we present LegalBench.PT, the first comprehensive legal benchmark covering key areas of Portuguese law. To develop LegalBench.PT, we first collect long-form questions and answers from real law exams, and then use GPT-4o to convert them into multiple-choice, true/false, and matching formats. Once generated, the questions are filtered and processed to improve the quality of the dataset. To ensure accuracy and relevance, we validate our approach by having a legal professional review a sample of the generated questions. Although the questions are synthetically generated, we show that their basis in human-created exams and our rigorous filtering and processing methods applied result in a reliable benchmark for assessing LLMs' legal knowledge and reasoning abilities. Finally, we evaluate the performance of leading LLMs on LegalBench.PT and investigate potential biases in GPT-4o's responses. We also assess the performance of Portuguese lawyers on a sample of questions to establish a baseline for model comparison and validate the benchmark.
title LegalBench.PT: A Benchmark for Portuguese Law
topic Computation and Language
url https://arxiv.org/abs/2502.16357