LegalScore: Development of a Benchmark for Evaluating AI Models in Legal Career Exams in Brazil
Paper · 2025 · Roberto Caparroz, Marcelo Roitman, Beatriz G. Chow et al.
Summary
A system that can answer a question about law in Portuguese may still miss the Brazilian rule that decides the case. LegalScore tests that distinction using questions from Brazil’s bar exam, judicial exams, and competitions for prosecutors and federal tax auditors. The authors put 14 generative AI systems through the multiple-choice portions of these exams. They used the original questions, gave the systems a common instruction in Portuguese, and checked their choices against official answer keys. The result is a benchmark grounded in the knowledge that Brazilian institutions actually ask candidates to apply. It addresses a problem that broader evaluations of legal AI leave open.
LegalScore reports ordinary accuracy and also compares each system with the other systems taking the same exam. The authors combine those relative performances across editions of a competition, put the combined scores on a scale from 0 to 10, and use placements from the different competitions to produce an overall ranking. Claude Sonnet 3.5 led that ranking with 83 ranking points, followed by ChatGPT 4o with 72 and Gemini 1.5 Pro with 66. Sabiá-3, trained with material specific to Brazil, followed with 59. Its showing was especially strong in the labor prosecutor competition, where it finished just behind Claude Sonnet 3.5 in the combined standings.
Performance varied with the exam. Most systems reached the Brazilian Bar Association’s multiple-choice threshold on the editions studied. The judicial and prosecutor exams were generally harder to clear. The Federal Revenue Tax Auditor competition offered a different comparison. The authors report consolidated multiple-choice accuracy of 84% for Claude Sonnet 3.5 and 80% for ChatGPT 4o, both above the published 79,29% multiple-choice result of the leading open-competition candidate. The paper also describes recurring difficulties with case law, detailed regulations, and questions that depend on local legal context.
These comparisons cover the objective portions of the exams. Full qualification can require written answers, practical legal documents, oral examinations, or further selection. The authors see possible uses in exam preparation and question development, and they argue for better Brazilian training material. The study establishes how the tested systems answered particular sets of questions. The contribution of Brazilian training data remains a hypothesis, as does any advantage over human candidates across a complete selection process.
Deep dive: LegalScore: Development of a Benchmark for Evaluating AI Models in Legal Career Exams in Brazil
LegalScore compares AI performance on Brazilian bar and public career exams and shows how results vary by competition, subject, and difficulty. · about 31 minutes to read
The problem and its context
Why Brazilian career exams make a useful test
The paper starts with two features of Brazilian professional life. Law graduates can seek qualification for private practice through the Brazilian Bar Association, known as the OAB. They can also compete for public positions such as judge or prosecutor. The authors describe public service as attractive for its benefits, pay, and stability. The Brazilian Constitution gives competitive examination a central role in access to public employment. In that setting, an exam is an institutional decision about which candidates may advance. Its questions, official keys, and qualifying rules also give researchers a concrete way to compare answers.
Different institutions make different decisions with those exams. The OAB’s objective test screens candidates for a later practical and written assessment. The National Judiciary Exam, known as ENAM, certifies eligibility to compete for judicial positions. A federal judge selection process ranks and filters applicants for a particular competition. The Federal Revenue Tax Auditor exam has a broad syllabus that includes law alongside accounting, economics, and other quantitative and language subjects. A test suite built from these sources therefore contains several kinds of work, even when every answer is recorded as a choice from a list.
The questions also come with a reference that a general exercise may lack. An examining body has published an answer key, and in some cases there is a record of the scores that advanced candidates or of the highest candidate score. A researcher can ask whether a system selects the credited answer and can sometimes compare its raw performance with a consequential human score. These are separate comparisons. A keyed answer establishes that a response earned a point under the benchmark protocol. A qualifying score addresses whether the points would have been enough under a particular rule. A candidate’s eventual appointment or professional qualification can depend on stages beyond both.
Language and jurisdiction are intertwined
The authors frame one research question around a language gap. The systems they consider can respond in Portuguese, but the authors are concerned about the predominance of English in training and the representation of Brazil in that material. For legal questions, the issue reaches beyond vocabulary. A question may require a candidate to identify the relevant institution, distinguish nearby legal concepts, or know which rule or judicial interpretation governs a specific scenario. The paper points to regulations, regional laws, and case law as places where the details matter.
Language and legal coverage can affect the same answer. A system might understand the narrative in a hypothetical problem while missing the Brazilian rule that applies. It might recognize a legal term while overlooking a condition in the question that makes an otherwise plausible answer wrong. Conversely, an exam question with substantial domain vocabulary may still be tractable if it turns on a familiar rule. An accuracy score captures the outcome of those demands together. The paper’s interest in Brazilian data comes from asking which of those demands broad multilingual training is likely to leave underserved.
The authors also connect the evaluation to study and exam design. An assistant that selects an alternative and supplies an explanation could help a candidate work through practice questions. Exam organizers might use similar systems to help formulate or review items. Those uses motivate measuring the accuracy of answers in the first place. Explanation quality, educational benefit, and the quality of newly produced questions would each require their own evidence. The choice to begin with official multiple-choice questions gives the paper a tractable first assessment.
What earlier benchmarks could answer
The paper places LegalScore within a line of comparative evaluation in which a common task lets researchers examine differences among systems. A survey by Zhao and colleagues provides its background on systems that generate answers using knowledge acquired during training. The authors also cite work by Wolf and colleagues when introducing limits on how well a system’s responses can align with what is required. For LegalScore, the practical question is whether answers that may sound fluent and plausible actually conform to an exam’s demands. A Survey of Large Language Models · Fundamental Limitations of Alignment
Among general benchmarks, the paper discusses UBENCH for its focus on uncertainty in multiple-choice tasks. The authors highlight the difficulty of items whose ambiguity or complexity requires more interpretation. They also discuss SEED-Bench as an example of using multiple-choice questions to assess integration across kinds of input, including text and images. These examples show why the answer format alone says little about the skills an item demands. The same scoring rule can be applied to questions constructed to test quite different abilities.
The legal benchmarks reviewed in the paper are closer comparisons. LawBench assessed 51 systems across tasks that included assigning labels, extracting information, and generating content. LegalBench used tasks prepared by legal professionals to evaluate the reasoning of 20 systems. LegalScore borrows the idea of comparative evaluation in a specific domain. It obtains its tasks from Brazilian institutions, with the language and legal setting already built into the questions. The paper describes the English and Chinese settings of earlier benchmarks as grounds for conducting a separate Portuguese-language evaluation in Brazil.
There is a further question about the kinds of outputs such evaluations use. The paper cites research that questions how reliably multiple-choice performance represents capabilities expressed in longer answers. A candidate choosing among alternatives can use information present in the options. A candidate writing a legal document has to formulate the argument, supply the facts and rules that matter, and express the result in an acceptable form. LegalScore takes advantage of the common grading reference in objective exams while treating written questions as a separate phase of research. Can Multiple-choice Questions Really Be Useful?
The method, step by step
Select the systems and the exams
The benchmark starts with two selections. The authors choose publicly available systems that can accept prompts and answer questions in Portuguese. The selection reflects versions available in October 2024 and includes proprietary offerings, systems the paper describes as open source, and two Brazilian offerings that the authors selected for their use of Portuguese material and information about Brazil. Those two are Maritaca AI’s Sabiá-3 and WideLabs’ Amazônia AI. The research team evaluates the systems as offered. It does not train a new system as part of LegalScore.
The authors choose exams for their relevance to Brazilian law practice or public careers, the prominence of the competitions, and the difficulty of the questions. The sample covers the OAB, ENAM, regional federal judge selections, the Federal Public Prosecutor competition, the Labor Public Prosecutor competition, and the Federal Revenue Tax Auditor competition. The categories give different views of exam performance. The OAB provides repeated editions of a common professional exam. The auditor competition tests a broader mixture of subject matter. The judiciary and prosecutor exams ask more specialized questions in their respective areas.
The paper generally favors recent exams because legislation and judicial interpretations can change. It makes an exception for the federal prosecutor competition by choosing its two latest editions. For the bar exam, the main comparison lists OAB 32 through OAB 41, and the methods describe the selected editions as running from June 2021 through July 2024. The next edition, OAB 42, was excluded because its official results were unavailable when the authors made the selection. The exam source matters here. A completed test gives questions to ask, but the benchmark also needs an authoritative grading reference.
From official exam questions to the LegalScore ranking
The steps in order.
Build a record for each question
The team takes exam material from the websites of examining bodies including FGV, FCC, and CESPE/Cebraspe. The researchers organize the material in spreadsheets that include the questions, the official keys, the assigned difficulty, and the answers given by each system. The paper presents competition results and many subject and difficulty breakdowns in its annexes. The resulting evaluation data come from the decisions the researchers record for these exams. There is no separate training split involved in producing the answer predictions.
Difficulty comes from QConcursos, a site where users can try exam questions. The researchers use the share of those respondents who answered an item correctly. An item with fewer than 50% correct responses goes into the difficult group, and an item with 50% or more goes into the easy group. This convention gives each label a meaning tied to observed human answers. Someone reading a result for difficult items should understand it as performance on questions that fewer than half of the participating site users got right. The label says nothing by itself about how many lines of reasoning an item requires or why the respondents missed it.
The paper also follows the exam treatment of annulled questions. An annulment can occur when a question is considered unanswerable or there is an error in the key. If the examining body awarded credit to candidates, the researchers awarded credit to the tested systems regardless of the alternative they selected. Accordingly, credited accuracy is the appropriate quantity for comparisons that retain the exam’s grading convention. A point on an annulled item carries little information about the answer the system actually gave. The rule applies uniformly within the exam, which is useful when comparing totals.
Ask each question under a common protocol
A team of nine researchers ran the tests from October to the beginning of December 2024. They submitted one complete question at a time, retaining its original wording and alternatives. The common Portuguese instruction asked the system to answer as a candidate in a competitive examination, select the single correct choice, and give a percentage expressing its confidence. Many responses also explained the chosen alternative and discussed the others. The marked choice supplied the input for objective grading.
The authors describe the protocol as zero-shot. In this study, that means the researchers did not give demonstrations of solved questions or train the systems on examples for the experiment. The instruction specifies what answer to produce, and the exam item supplies the problem to solve. The approach has a clear benefit for interpretation. The resulting scores describe what the publicly accessible systems did with this instruction and these questions, without improvement from a supplied set of demonstrations. Prior exposure to an exam through ordinary training is a separate issue. The paper cites Kojima and colleagues as background for the zero-shot approach. Zero-shot reasoning
The full instruction was repeated for every question. The team opened fresh chats for specific tests, and the authors intended the repeated instruction to reduce differences in how well the systems retained it across a conversation. Repeating it ensured that the answer format and candidate role were stated again with each item. The protocol describes question-by-question submission and fresh chats for tests. It does not establish that every item was answered in a conversation containing only that item.
The researchers used official interfaces where possible. They also used Poe to access offerings such as Claude Sonnet 3.5 and Llama 3.1 405B, and direct chat on LM Arena for Grok-2 and Nemotron 340B. In some cases an official interface and an intermediary were used during the same evaluation effort. This choice let the team reach the selected offerings using available interfaces. It also makes the score a result for the tested version as delivered under those access conditions.
Resolve incomplete answers and assign credit
Some responses failed to choose an alternative, and some gave multiple choices. In those cases the team supplemented the instruction to require an explicit selection. The paper reports that Gemini 1.5 Pro frequently needed a follow-up. The authors suggest that it may have interpreted some hypothetical cases as requests for help with real legal problems. The paper describes that explanation as a possibility. The observable behavior is that the initial interaction did not always return a choice in the requested format.
The authors say they retained the first answer when a question had to be resubmitted or the instruction had to be completed, including when confidence was missing. This makes a difference for questions that already have a scorable choice. A later prompt seeking the missing confidence value should leave the original choice in place. For replies containing no unique choice, the paper describes the follow-up it used to obtain one, though its account does not fully specify how every such case entered the final data. Both the common starting prompt and the corrective interaction are part of the documented procedure.
The authors refer to the requested confidence as an index or interval. In the response records they describe, it was commonly a single percentage, and sometimes a verbal label such as high, medium, or low. It expresses the answering system’s stated confidence in its choice. The official key supplies the correctness decision, and the subsequent scoring formulas use the credited answers. A percentage volunteered with a response has a different origin from a statistical interval estimated from observed exam performance. The paper’s principal ranking comes from accuracy.
Most of the public examinations offered five alternatives per item, and the OAB offered four. A single selection can represent several decisions. In an item asking which sequence of statements is true or false, the credited choice depends on judging the constituent statements and matching their order to an option. A question set up that way still contributes one keyed result. The benchmark can capture whether the entire conclusion matches the key, while the score does not separately credit a correct judgment about an individual statement.
Convert raw answers to comparable scores
The paper first works in the most direct unit, the number of credited answers. It arranges exam results so that rows identify evaluated systems and columns identify exam editions. Each count is converted to an accuracy percentage using the length of the exam. The OAB example uses a denominator of 80.
Percentage = (Total Hits / 80) × 100
Percentage is the accuracy on an OAB edition. Total Hits is the number of answers credited for that system on that edition. The divisor 80 is the number of questions in the edition. The slash denotes division, and multiplication by 100 expresses the resulting fraction as a percentage. The paper uses the same approach for other exam families, with the denominator appropriate to the test.
This conversion addresses exam length. A percentage places a longer and a shorter test in the same unit. The authors then address another difference. A given accuracy can put a system well ahead of the group on one edition and close to its peers on another. LegalScore captures that relative standing by standardizing the percentages within each test.
Z = (X − μ) / σ
Z is the standardized score for one system on one test. X is that system’s percentage of credited answers on the test. μ is the mean of the percentages for all the evaluated systems taking the same test. σ is the standard deviation of those percentages, which measures their spread. The subtraction gives the distance from the group mean, and the division expresses it in units of that spread.
An above-average result gives a positive standardized score. A below-average result gives a negative one. An edition on which the tested systems cluster closely gives a raw percentage gap more influence than an edition with widely dispersed scores, assuming the same size of raw gap. The resulting score is therefore meaningful with reference to the other systems and to the particular exam edition. Human practice responses determine the easy and difficult labels. They do not determine the mean or spread used in this calculation.
The authors add the standardized scores across editions of an exam family to obtain what they call the General Performance Index. A system can build a strong index through consistently high relative performance, or through especially strong showings in some editions that offset weaker ones elsewhere. Because the authors sum standardized results, the total is distinct from accuracy across all the questions pooled together. Each edition enters as a standardized exam result. The paper applies this procedure to the competitions in the study.
The authors then rescale each competition’s index so the lowest and highest observed results anchor a common display scale.
Score = ((X − Xmin) / (Xmax − Xmin)) × 10
Score is the normalized result for the competition. In this formula, X is the system’s General Performance Index, whereas it meant an accuracy percentage in the preceding formula. Xmin and Xmax are the smallest and largest General Performance Index values in the comparison. The numerator measures the system’s distance from the lowest index. The denominator gives the span between the two extremes. The multiplier 10 sets the upper endpoint, and the lowest index maps to 0.
A normalized score of 10 identifies the best result in the evaluated group for that competition. It can occur on a competition in which objective accuracy is modest, since the scale uses the observed leader as its anchor. The same logic applies at 0, which identifies the bottom of the comparison even when that system answered many questions correctly. The authors intend to recalculate the standardization and normalization as the benchmark adds new systems and tests. Both the reference group and the exams matter when interpreting the value across updates.
The overall ranking uses a separate procedure. The system ranked first in a competition earns 14 points, the second earns 13, and the award decreases through the remaining places. The authors add these points across competitions. This makes placement the unit of the final ranking. Once the order has been determined, the size of a lead in accuracy or normalized score does not increase the point award. A narrow first place has the same value in the final ranking as a wider first place. Raw accuracy, the General Performance Index, the normalized score, and final ranking points consequently answer different questions about the same exam responses.
Experiments and results
What the comparisons use as a reference
The experiments use objective questions from actual competitions, with multiple editions where available. The primary comparison is among the 14 systems under the shared prompting and grading procedure. Within that group, the inclusion of older general-purpose offerings, newer proprietary ones, and Brazilian offerings gives the reader contrasting reference points. ChatGPT 3.5 Turbo provides a useful lower end of the observed standings. Sabiá-3 and Amazônia AI address the authors’ interest in local training. Published exam thresholds, cutoff scores, and leading candidate results supply human reference points where the paper has them.
Accuracy is the share of credited questions, either across the exam or within a subject or difficulty group. For the official cutoffs, the relevant comparison is in the exam’s own units. Ranking points describe performance against the other tested systems across competition categories. Neither a normalized competition score nor a final ranking total can be read directly as a candidate score. The experiments become much easier to interpret once the reference for each number is clear.
Overall ranking
Claude Sonnet 3.5 led the final classification with 83 ranking points. ChatGPT 4o had 72 and Gemini 1.5 Pro had 66. Sabiá-3 followed with 59, ahead of Llama 3.1 405B with 57. Grok-2 received 54 and Nemotron 340B received 49. Amazônia AI earned 48. The table places Perplexity AI at 40 and Mistral Large-2 at 33, with ChatGPT 3.5 Turbo at the bottom of the classification with 10. These values represent the authors’ aggregation of contest placements.
Overall ranking points across the LegalScore competitions
Claude Sonnet leads the combined ranking, with Sabiá close behind the leading proprietary offerings.
The numbers
| System or setting | ranking points |
|---|---|
| Claude Sonnet 3.5 (this paper) | 83 |
| ChatGPT 4o | 72 |
| Gemini 1.5 Pro | 66 |
| Sabiá-3 | 59 |
| Llama 3.1 405B | 57 |
| Grok-2 | 54 |
| Nemotron 340B | 49 |
| Amazônia AI | 48 |
| ChatGPT 3.5 Turbo | 10 |
The strongest overall result came from a proprietary system, and the next two positions also went to proprietary offerings. Sabiá-3’s placement makes the picture more varied. It was competitive across the selected exams and did particularly well in some specialized competitions. Amazônia AI also had stronger and weaker settings. The overall order gives a broad view of that performance. The exam results show where the order holds and where another system leads.
Brazilian Bar Association
The objective OAB test has 80 questions. Its published first-stage threshold is 50%, or 40 credited answers. In the paper’s combined OAB results, Claude Sonnet 3.5 has a General Performance Index of 14,66 and the top normalized result of 10. ChatGPT 4o follows with an index of 13,25 and a normalized result of 9,53. Gemini 1.5 Pro comes next with 7,04 on the normalized scale. Sabiá-3 receives 6,29, and Amazônia AI receives 5,64.
Individual editions show what that comparison means in ordinary exam terms. On OAB 40, the annex records 68 credited answers for each of Claude Sonnet 3.5 and ChatGPT 4o, with 85% total accuracy for each. Sabiá-3 earned 62 credited answers and a reported total accuracy of 78%. Amazônia AI obtained 47 credited answers, reported as 59%. On OAB 39, ChatGPT 4o had 68 credited answers and 85% total accuracy, while Claude Sonnet 3.5 had 66 credited answers and a reported 83%. The combined OAB ranking thus accommodates editions with ties and editions where the two leading systems trade places.
Most scores were high enough to meet the objective threshold, but the paper gives inconsistent accounts of the exceptions. The discussion names ChatGPT 3.5 Turbo on OAB 37 and Sabiá-3 on OAB 32. The annex supports the Sabiá-3 example with 37 correct and 46% total accuracy. For ChatGPT 3.5 Turbo it gives 58% on OAB 37 and 43% on OAB 38. It also lists Reka Core 67B at 46% on OAB 34. The broad pattern of frequent first-stage qualification is clearer than the discussion’s account of which runs fell short.
The paper mentions that around 15% of human candidates ultimately pass the OAB. This places the objective results beside a stringent professional assessment, but the human figure includes a later stage. Candidates must also produce written responses and a practical legal document. The published OAB information the authors use gives approval outcomes, and the paper explains that the organizers do not publish a ranking of individual candidates. The reported objective results give grounds for statements about the sampled first-stage questions.
Federal judge selections
The federal judge study covers TRF-3 2022, TRF-4 2022, and TRF-1 2023. The appendix describes each objective exam as containing 100 questions. The questions are distributed across subject blocks, and the selection rules include conditions on block performance. Published candidate cutoffs can depend on the competition and category. An overall number of credited answers represents one part of the screening decision.
ChatGPT 4o led the combined federal judge comparison with a General Performance Index of 4,76 and a normalized result of 10. Claude Sonnet 3.5 followed with 4,15 and a normalized result of 9,24. Gemini 1.5 Pro and Llama 3.1 405B had normalized results of 7,15 and 6,96. Amazônia AI received 4,87 and Sabiá-3 received 4,21 on that same scale.
The strongest raw performances varied by edition. In TRF-3 2022, both the main results and the annex give 76 correct answers for ChatGPT 4o and 53 for Claude Sonnet 3.5. In TRF-4 2022, Claude Sonnet 3.5 led with 76 correct, and ChatGPT 4o had 67. The annex gives 71 points as the general-category cutoff in TRF-4. Claude’s objective total sits above that overall cutoff, while the block requirements still matter for any claim about advancement.
Some TRF-1 results differ between the main comparison and the annex. The main comparison gives 66 correct for Claude Sonnet 3.5 and 62 for ChatGPT 4o. The annex gives 67 and 63, respectively. The annex values also appear as percentages in its test breakdown. Both accounts give Claude the higher result on that edition, while the published combined index favors ChatGPT 4o across the family. The exact edition totals depend on which account is being read.
Federal Public Prosecutor
The Federal Public Prosecutor competition has a broad legal syllabus divided into subject groups. The annex describes an objective exam of 120 questions and a longer selection process that includes written and oral examinations and credentials assessment. The study compares the 29th and 30th competitions. The annex dates the former to 2017 and the latter to 2022. The methodology gives 2021 for the more recent competition, so the dates should be read with that discrepancy in mind.
In the main results table, Claude Sonnet 3.5 earned 92 credited answers in both competitions. The same table lists 88 and 70 for Gemini 1.5 Pro, and 79 and 77 for Sabiá-3. Claude led the combined comparison with a General Performance Index of 3,8 and a normalized score of 10. Gemini had a normalized score of 6,92 and Sabiá-3 had 6,89. ChatGPT 4o’s normalized result was 5,28. These figures identify a legal competition in which Sabiá-3 placed near the top while some systems that outranked it overall finished lower.
The annex shows how much the human comparison can vary across editions. The best reported human result was 70.83% of the maximum in the 29th competition and 93.33% in the 30th. In the latter, the annex gives a general-category cutoff average of 70.83 points and presents separate thresholds for other categories. The official figures are organized around subject-group averages and candidate categories. Those details matter when comparing an AI total with the official selection record. A normalized LegalScore can describe the relative performance of the tested systems even when a claim about human placement needs more information.
National Judiciary Exam
ENAM uses an eligibility threshold for judicial careers. The annex gives 70% as the general requirement and 50% for the Black and Indigenous candidates it describes under the lower threshold. Both studied editions use 80 objective questions. The annex’s closing comparison gives credited counts for each edition. Claude Sonnet 3.5 earned 61 correct answers on ENAM 1 and 64 on ENAM 2. ChatGPT 4o went from 46 correct to 62. Gemini 1.5 Pro went from 48 to 58, and Amazônia AI went from 44 to 50. Sabiá-3 moved in the other direction, from 51 correct to 23.
Credited answers on the ENAM 2 objective exam
Claude Sonnet leads the edition, with ChatGPT and Gemini also among the strongest performers.
The numbers
| System or setting | credited answers |
|---|---|
| Claude Sonnet 3.5 (this paper) | 64 |
| ChatGPT 4o | 62 |
| Gemini 1.5 Pro | 58 |
| Llama 3.1 405B | 54 |
| Amazônia AI | 50 |
| ChatGPT 3.5 Turbo | 33 |
| Sabiá-3 | 23 |
The authors describe Claude Sonnet 3.5, ChatGPT 4o, and Gemini 1.5 Pro as meeting the general requirement on ENAM 2. Their prose gives 80%, 78%, and 71% accuracy, respectively, while the ENAM 2 table gives 73% for Gemini. The first edition has a more consequential discrepancy. Its prose says that none of the systems met the requirement and gives Claude Sonnet 3.5 a leading accuracy of 61%. The edition table gives Claude 76% total accuracy, and the annex’s closing comparison gives 61 correct answers. The ENAM normalized table also reproduces the federal judge table’s values and order. The chart therefore uses the explicit ENAM 2 credited counts, and the first edition’s pass claim cannot be stated unambiguously from the paper.
Federal Revenue Tax Auditor
The auditor competition differs from the strictly legal selections. The sampled competition was held in 2023 and used 140 objective questions over morning and afternoon papers. The questions include Portuguese and foreign-language comprehension, quantitative reasoning, economics, accounting, and public finance, along with law and legislation. The range of subjects offers an opportunity to see how strengths elsewhere affect a result in a competition with substantial legal content.
Claude Sonnet 3.5 led with 84% consolidated objective accuracy. ChatGPT 4o achieved 80%. Perplexity AI and Grok-2 each had 75%, and Gemini 1.5 Pro and Sabiá-3 each had 74%. ChatGPT 3.5 Turbo had 46%. The normalized auditor result put Claude Sonnet 3.5 at 10 and ChatGPT 4o at 8,95. Perplexity AI and Grok-2 each had 7,63 on that relative scale.
Consolidated accuracy on the Federal Revenue Tax Auditor objective exams
Claude Sonnet and ChatGPT lead a field with several closely grouped results below them.
The numbers
| System or setting | accuracy % |
|---|---|
| Claude Sonnet 3.5 (this paper) | 84 |
| ChatGPT 4o | 80 |
| Perplexity AI | 75 |
| Grok-2 | 75 |
| Gemini 1.5 Pro | 74 |
| Sabiá-3 | 74 |
| Amazônia AI | 67 |
| ChatGPT 3.5 Turbo | 46 |
The annex gives the open-competition cutoff as 93 points, or 66,43% of the available objective points. It reports the leading open-competition candidate at 111 points, or 79,29%. It also gives separate cutoffs of 86 points for Black candidates and 85 points for candidates with disabilities. The authors compare the two leading systems favorably with the top human objective score. That is a comparison on the portion of the process for which the study produced answers. The competition also uses discursive exams, and final selection depends on ranking within available places.
The two papers give a further comparison. The morning and afternoon overall accuracies reported for ChatGPT 4o are 83% and 77%, respectively. For Claude Sonnet 3.5 they are 88% and 80%. For Sabiá-3 they are 81% and 63%. These are test-session results from the same competition. They help locate changes in performance that the consolidated figure conceals. The authors also describe strong performance on language and several mathematical questions, with more difficulty on extended accounting problems and on public finance questions involving Brazilian rules.
Labor Public Prosecutor
The labor prosecutor results cover the 22nd and 23rd competitions. In the main comparison, Claude Sonnet 3.5 earned 63 and 66 credited answers, respectively. Sabiá-3 recorded 59 and 65, and Amazônia AI recorded 44 and 60. ChatGPT 4o earned 50 and 58. Across the two editions, Claude leads with a General Performance Index of 3,26 and a normalized result of 10. Sabiá-3 is second with an index of 2,73 and a normalized result of 9,22. Nemotron 340B follows at 7,06 and ChatGPT 4o at 6,79.
The result shows that overall rank is an incomplete guide to a specialized competition. Sabiá-3 was near the leader in each edition and outscored ChatGPT 4o in both main-table totals. Amazônia AI performed much better in the later edition than in the earlier one according to those same totals. In the later edition’s tabulated results it earned 60% overall accuracy, while Sabiá-3 earned 65% and Claude Sonnet 3.5 earned 66%. The appendix’s narrative gives a different set of overall percentages for some systems, including 64% for Claude. The combined ranking and the main credited counts give a consistent account of the leading placements, even though the narrative and the tables disagree on some exact values.
For this competition, the paper says the actual cutoff scores for the 23rd selection were unavailable. Minimum eligibility rules and caps on advancement appear in the appendix. Without the realized cutoff, the stronger comparison is the relative performance of the tested systems on the same questions. As with the federal judge competitions, the objective paper is one stage of a process that also asks candidates for written, practical, and oral work.
What the ablations show
The paper reports no formal ablation in which the researchers remove or change one component and rerun the evaluation, but it compares answers by difficulty, subject, exam edition, and the systems’ reported training orientation.
Difficulty based on human answers predicts some, but not all, outcomes
The most direct comparison groups questions according to the QConcursos difficulty label and examines each system’s accuracy on the two sets. On OAB 39, ChatGPT 4o achieved 89% accuracy on easy questions and 69% on difficult questions. Claude Sonnet 3.5 achieved 85% and 69%, respectively. ChatGPT o1-mini had 70% accuracy on easy questions and 25% on difficult questions. The split shows that similar changes in the mix of questions could affect different systems quite differently. It also shows that the leading results on difficult items can be tied even when the full-exam order is clear.
The consolidated auditor exam shows a similar broad pattern. Claude Sonnet 3.5 is reported at 89% accuracy on easy items and 77% on difficult ones. ChatGPT 4o is reported at 93% and 61%. Sabiá-3 has 79% and 63%. ChatGPT 4o’s score on the easy set was higher than Claude’s, while Claude had the higher difficult-set and overall scores. That is a more precise description of the result than saying that Claude was strongest on every part of the exam.
The relationship can reverse on a particular exam. On the afternoon auditor paper, the annex reports 79% easy-item accuracy and 81% difficult-item accuracy for Claude Sonnet 3.5. In TRF-4 2022, Amazônia AI had 44% on easy questions and 55% on difficult questions. The TRF-1 annex gives Claude Sonnet 3.5 67% in each of the two groups. The label reflects what a group of human practice respondents found difficult. It does not impose an ordering on the tested systems. The observed reversals are informative because they identify settings in which the systems’ pattern of success departs from the human practice labels.
An exam can contain a different mix of legal subjects in its easy and difficult sets. Within a subject, the questions can also differ in length, the specificity of the rule, and the kinds of alternatives offered. The comparisons demonstrate differences between the items in those sets as they were administered. They leave open how much of the difference comes from difficulty in a more general sense and how much comes from the composition of the sets.
Subject breakdowns show where totals conceal weaknesses
In the labor prosecutor analysis, the authors report average accuracies across the tested systems of 64.29% in Environmental Labor Law, 62.05% in International Law, and 57.14% in Social Security Law. The reported averages for Collective Labor Law, Civil Law, and Civil Procedure are 30.36%, 32.14%, and 35.16%. These are subject results in the labor prosecutor material. The differences reveal why a single overall score can give a misleading impression of uniform ability across the syllabus.
The authors associate some of the stronger results with subject matter that may be better represented internationally. They connect some of the weaker results to the need for particular Brazilian legal knowledge. Those interpretations fit the kinds of errors they describe. The paper also reports strong performance in specialized labor procedure questions for Claude Sonnet 3.5, which reached 100% on that subject in the reported analysis. This concrete result qualifies any simple rule that increasing legal specificity always reduces accuracy. A specialized set can favor a system, and the accuracy describes the items in that set.
The auditor analysis supplies a different kind of subject contrast. The authors say the systems generally handled language interpretation and many mathematical items well, but had trouble with accounting problems that required a sequence of calculations. They also point to questions in public finance that depend on Brazilian law. This comparison adds texture to the overall auditor performance. A high result can coexist with errors on both locally specific legal material and extended quantitative work. The paper does not manipulate either the length of a calculation or the degree of local specificity while keeping the other item features fixed.
Local training is associated with some strong results
Sabiá-3 and Amazônia AI are included specifically because their training incorporates Portuguese material and information about Brazil. Their performances provide a comparison with products selected primarily as general-purpose multilingual offerings. Sabiá-3’s strongest evidence comes from concrete placements. It finished fourth overall, placed close to Gemini 1.5 Pro in the federal prosecutor index, and followed Claude Sonnet 3.5 in the labor prosecutor index. It ranked lower in the combined federal judge results. Amazônia AI’s normalized result in the federal judge competition exceeded Sabiá-3’s, while Sabiá-3 had the stronger overall ranking.
The differences between products extend beyond training orientation. The paper says the Brazilian developers did not make their system sizes or training datasets available in the detail the authors wanted, and the authors describe their estimates of size as assumptions. The experiment does not pair an otherwise identical system trained with and without Brazilian material. Differences in size, version, training, and serving interfaces can all accompany the differences in score. The comparison establishes that Brazilian offerings were competitive in some settings. It supports investigating the role of local data without assigning a numerical effect to that data.
The authors also observe instances in which many systems chose the same incorrect alternative. Their interpretation is that common training material may leave common gaps. A shared error establishes agreement about the wrong choice. It can focus attention on a question that deserves a closer look, but several explanations are compatible with the same observation. The wording of a question and the plausibility of a distractor are shared across the tests as well. The paper’s data support the existence of patterned errors more directly than they support an inference about which training sources produced those errors.
Limitations
Limits the authors identify
Brazilian law changes over time. The authors identify legislative amendments and changes in case law as reasons to prefer recent examinations. An official answer may reflect the law or interpretation at the time the question was set. A system answering later may have encountered a different version of that rule. The official key remains the appropriate reference for how the historical exam awarded credit. Agreement with that key cannot separately establish command of the current legal position. The exception for the older federal prosecutor edition preserves coverage of that competition at the cost of a wider interval between the exams sampled.
Another stated limit is possible training exposure. The authors single out Sabiá-3 in connection with the OAB and ENAM, which they believe may have been represented in its training. Zero-shot prompting describes what the research team supplied at test time. A published exam can already have entered a training or development process. Because the study cannot rule that out, an accurate answer could reflect generalizable legal knowledge, familiarity with the particular exam material, or both. The paper gives no item-by-item account of which questions had previously been seen.
The authors also make the scope of the first phase explicit. They grade multiple-choice answers and reserve written questions for a later phase. The distinction has different consequences across the sampled institutions. OAB qualification involves a practical document and written questions. Federal judge selection includes practical judgment writing and further stages. Prosecutor competitions include written and oral assessments. Even when an objective score exceeds an official cutoff, the benchmark observes only the performance it actually tested.
The paper discusses using AI to help candidates study and using it to help organizers create and review questions. It also raises possible question leakage in the latter setting. These are proposed applications and concerns, drawn from the kinds of responses the authors observed. The study does not track candidate learning over time or ask a panel to grade AI-written exam questions. Reading the proposed applications as hypotheses keeps them tied to the evidence that motivated them.
Limits that follow from the setup
The first concerns the relationship between correctness and explanation. An official key allows a clear decision about the final choice. It cannot establish whether an accompanying explanation cites the appropriate authority, states the rule accurately, or covers all the facts that matter. The reverse is possible too. A response may apply some of the right principles and still choose the wrong option. LegalScore gives an objective account of credited choices while leaving the quality of the underlying explanation mostly outside the reported metric. This matters most for proposed uses that depend on a student trusting the explanation, instead of checking the letter alone.
Stated confidence likewise measures what the system says about an answer. To establish calibration, one would need to compare reported confidence with the observed frequency of correct answers at that level. The paper describes collecting responses with numeric and verbal confidence but does not give that comparison as a main result. As a result, a reader can learn that confidence was requested, while the performance figures mainly tell how often systems matched the key. The precision of the normalized ranking does not supply evidence about the reliability of those confidence reports.
The interfaces and follow-up prompts affect what was measured. Using the same initial wording makes the systems’ tasks more comparable. The use of provider sites and intermediaries means that interface conditions varied. Clarifying prompts also occurred after different kinds of initial replies. The paper does not report a comparison that holds the system fixed and changes only the interface, or a breakdown showing how frequently corrective prompting affected scorable outcomes. The experiment therefore documents a practical evaluation protocol without isolating the contribution of the interface or the follow-up.
There are several limits to the human comparisons. QConcursos users supply question difficulty labels, and the official exams supply thresholds or scores for actual candidates. These sources represent different activities. A practice response on a website serves to group items, while a competitive score is the result of sitting an exam under its own rules. The tested systems received questions in individual prompt interactions. The paper does not establish an equivalent time budget or a complete simulation of candidate conditions. Comparisons with human scores are clearest when they specify the objective test, the relevant category, and the exact quantity being compared.
The point system also makes the benchmark sensitive to what is selected. The sample is deliberately assembled from important and relatively recent competitions. It represents those choices in the legal and professional context the authors wanted to study. Other exams, alternative prompt formulations, or written tasks could produce a different ordering. Within a competition, standardization depends on the mean and spread for the evaluated group. Min–max normalization then depends on the extremes, and the final points depend on the number and ordering of systems. The authors’ proposed recalculation for future additions will reflect a changed comparison. A change in rank over time would need to be interpreted alongside the raw results and the composition of the benchmark.
Finally, parts of the numerical reporting disagree. The ENAM pass narrative conflicts with the ENAM 1 table, and the displayed ENAM normalized standings duplicate the federal judge standings. Some other annex totals and main-table totals differ, including those for TRF-1. The paper’s OAB appendix also describes the range in prose as the 33rd through the 41st edition, while the comparison and individual analyses include OAB 32. These differences affect particular qualification claims and make some components of the final ranking harder to audit. They leave the named overall standings as the authors’ reported results, and they make the directly identified exam, table, and metric especially important whenever the paper gives competing values.
What came after
No subsequent study is identified that extends or independently evaluates LegalScore. The paper itself describes a next phase that would apply the evaluation to discursive questions from the same competitions. That would bring written legal work into the comparison and address an important gap between choosing an official answer and producing a response that an examiner can assess for substance and form.
The authors also describe updating the index as new systems and exam editions become available, and suggest that researchers in other countries could build analogous assessments around their own institutions and legal material. Those are directions proposed in the paper. The documented result remains the comparison of objective performance on the selected Brazilian exams.
Cite
Cite as Roberto Caparroz, Marcelo Roitman, Beatriz G. Chow, Caroline Giusti, Larissa Torhacs, Pedro A. Sola, Joao H. M. Diogo, Luiza Balby, Carolina D. L. Vasconcelos, Leonardo R. Caparroz and Albano P. Franco. 2025. LegalScore: Development of a Benchmark for Evaluating AI Models in Legal Career Exams in Brazil. arXiv:2502.08652.
@misc{caparroz2025legalscore,
title = {{LegalScore: Development of a Benchmark for Evaluating AI Models in Legal Career Exams in Brazil}},
author = {Roberto Caparroz, Marcelo Roitman, Beatriz G. Chow, Caroline Giusti, Larissa Torhacs, Pedro A. Sola, Joao H. M. Diogo, Luiza Balby, Carolina D. L. Vasconcelos, Leonardo R. Caparroz and Albano P. Franco},
year = {2025},
doi = {10.48550/arxiv.2502.08652},
eprint = {2502.08652},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2502.08652}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/caparroz-2025-legalscore-development-benchmark-evaluating-ai/