A legal AI evaluation framework that lawyers will trust
For companies4 min read
A legal AI evaluation framework needs three things: tasks that match real legal work, graders who practise in the right jurisdiction, and a check that every cited authority exists. Without those, a high score tells you little. This guide sets out a framework, using the way LegalBench was built as a reference point.
Every legal AI evaluation framework starts with tasks, not a score
Legal work is not one skill. Reading a clause for a particular obligation, deciding whether a fact pattern meets a rule and drafting a letter are different tasks with different failure modes. LegalBench takes this view. It is a collaboratively built benchmark of 162 tasks, designed and hand-crafted by legal professionals, covering six types of legal reasoning.
The authors also mapped common legal frameworks for describing reasoning onto the tasks, which gives lawyers and model developers shared vocabulary. Copy that idea. Before you grade anything, agree with your legal reviewers on the names of the tasks you care about, so that scores can be reported per task.
Sort tasks by how they can be graded
Some legal tasks have a clean answer a program can check. Others need a lawyer to read. Treat them differently, and say so in your framework.
| Task type | Example | How to grade |
|---|---|---|
| Classification | Does this clause limit liability? | Reference label, then spot check |
| Rule application | Do these facts meet the test? | Lawyer grades against a rubric |
| Extraction | List the notice periods in this contract | Match against a lawyer-built answer list |
| Drafting | Write a demand letter | Lawyer rubric: accuracy, tone, gaps |
| Research | Find authority for this point | Check every citation exists and says it |
Fix the jurisdiction in the framework
Law is local. A model can state a rule correctly for one country and apply it in another where it does not hold. State, in the framework, which jurisdictions and which areas of law each test covers, and recruit graders who practise there. A common-law contract question, for instance, may turn out differently under a different system.
Tell graders to mark an answer wrong if it relies on a rule from the wrong jurisdiction, even when the reasoning is sound. Track those cases as their own error type, since they point to a retrieval or prompting fix.
Make citation checking a separate line item
Do not let a fluent answer earn credit for authorities it invented. A study of legal hallucination in general-purpose LLMs found that, when asked specific, verifiable questions about randomly selected federal court cases, the models hallucinated at rates from 58% to 88%. The authors also found that models often failed to correct a user's false legal premise.
These numbers describe particular models and questions from 2024, so do not apply them to your system. They do show what to test. Include questions with a false premise, and require graders to look up each case, statute or regulation the model names.
Write the grading rubric with the lawyers
Ask two or three lawyers to write what a correct answer must contain for each test item. Typical lines are: states the governing rule, applies it to the stated facts, notes the main exception, flags missing facts and avoids overstating certainty. Score each line separately. Separate lines let you see that a model states the rule well and applies it badly, which a single mark would hide. Ask graders to add one sentence on the worst flaw in each answer, since those sentences are what your engineers will read first when deciding what to fix.
- Governing rule stated correctly for the named jurisdiction.
- Facts applied, not just restated.
- Authority cited exists and supports the point.
- Uncertainty and missing facts flagged.
- No advice beyond what the facts support.
Calibrate and sample
Have all graders mark the same ten answers first and compare. Differences usually come from vague rubric lines, which you then tighten. After that, double-grade a random fifth of the items and report how often graders agreed.
Report your results per task type and per jurisdiction. A single average hides the interesting finding, which is often that a model does well on classification and badly on research.
What to put in the final report
- The tasks and jurisdictions covered, and those not covered.
- Grader profiles: area of practice, jurisdiction, years in practice.
- Scores per task type, with the rubric lines behind them.
- Citation check results as their own table.
- Agreement between graders and how disputes were settled.
- Known limits, such as laws that changed after the test was written.
Curatrain vets lawyers with graded skill tests taken on camera, and companies approve each match from a shortlist through a secure link. Ask for lawyers from the jurisdiction your product serves, and start with a pilot if you are testing a rubric.