Evaluating Contract-Review Systems
A representative evaluation set is built from real-world examples that reflect the mix of work a system will actually face.
Deciding Whether a System Really Works
Imagine you have built a system that reads incoming documents and flags the parts that need attention. Before anyone relies on it, you need an honest answer to a simple question: does it actually do the job? Answering that question requires a set of test cases, and the quality of your answer depends almost entirely on which test cases you chose. This article is about choosing them well.
The working example is a contract-review system, but the reasoning applies to any system whose output must be checked against real work. As you read, keep one question in mind: if you were the person responsible for accepting the system, what would you need to see in a test set before you trusted the results?
Where the Contract-Review System Comes From
The contract-review deployment in the source was built for a mid-market commercial real estate firm. The system was meant to read inbound vendor contracts, identify clauses that departed from the customer's standard playbook, and produce a redline memo. The practical purpose was that a general counsel who used to spend about an hour on a review should be able to finish it in ten minutes.
This goal explains why the test cases matter so much. The system is only useful if it performs well on the documents the firm actually handles, so the test cases have to resemble those documents. A test set built from some other kind of document would tell the firm very little about its own work.
Why Real Examples Beat Invented Ones
A representative evaluation set is built from real-world examples that reflect the mix of work a system will actually face.
The word representative carries most of the weight in that definition. A set that is large but made up only of easy or unusual cases will report misleading performance. The aim is not simply to have many test cases. The aim is a set whose mix of cases matches the mix the system will meet in practice.
In the source, this was achieved by having the person who would be affected by the system's output select the documents, rather than having an outside party guess at what typical work looks like. An invented example reflects the imagination of whoever wrote it. A real example reflects the actual traffic, including the messy cases that a guesser would be unlikely to think of.
Composition of the Source's Evaluation Set
The evaluation set in the source was assembled quickly, in the first three days of the validation work. The deputy general counsel pulled forty-two real contracts from the six months before the project began. The contracts were not all alike, and the set was divided into three groups. Each group carries a different level of difficulty, so a single overall score is not the whole story.
Read the three groups together and the set's design becomes clear. Twelve straightforward NDAs had been signed without any changes, so they test whether the system can recognize unremarkable work without flagging problems that do not exist. Twenty-three vendor service agreements needed redlines on between two and seven clauses, which is the bulk of ordinary work. Seven complex landlord-tenant agreements each had redlines on more than ten clauses, and at least one issue in each had required outside counsel.
Reading the composition of the set
Why would a single overall score from the forty-two contracts be misleading on its own?
- 1Identify the groups
The set has 12 simple NDAs, 23 vendor service agreements, and 7 complex landlord-tenant agreements. These add up to 42.
- 2Compare the difficulty
The NDAs need few or no changes, the vendor agreements need redlines on 2 to 7 clauses, and the landlord-tenant agreements need redlines on more than 10 clauses. The work ranges from easy to demanding.
- 3Consider a blended score
A strong overall result could come mostly from the 12 easy NDAs, hiding weak performance on the 7 complex agreements. Keeping the groups separate lets you ask how the system behaves on simple work and on demanding work independently.
The composition shows which kinds of work the score reflects. Without it, the overall number cannot be interpreted.
Success Metric Versus Validation Threshold
Three ideas appear in this part of the course, and they are easy to confuse because they all concern measurement. The evaluation set is the material being tested. A success metric is a quantifiable measure of how well the system is doing its job. A validation threshold is the specific target the metric must reach before the system is considered acceptable.
In the contract-review case, the customer's success metric was the number of attorney review minutes spent per contract. The validation threshold attached a target to that metric: a sixty percent reduction in those minutes, with no missed redlines on the cases the firm cared most about. The threshold therefore combines a measured reduction with a second condition about accuracy.
| Aspect | Success metric | Validation threshold |
|---|---|---|
| Question it answers | What is measured? | What result counts as success? |
| Contract-review example | Attorney review minutes per contract | Sixty percent reduction, with no missed redlines on priority cases |
| Role in acceptance | Supplies the number that gets measured | States how that number must change, plus any extra requirement |
| Can it decide acceptance alone? | No. A reader who knows only the metric cannot tell whether the system passed | Yes, once the metric is known. It defines exactly what passing means |
The metric and the threshold do different jobs
What do you think happens?
Could the system satisfy the time goal and still fail the validation threshold?
Reveal answer
Yes
The threshold also contains an accuracy condition about missed redlines. A system could cut review minutes by the target amount but skip important changes, and it would still fail the threshold.
Applying the Metric and Threshold to the Set
Once the set and the threshold are fixed, judging the system is a sequence of steps. The flowchart below follows that sequence from running the system on the evaluation set through to the pass or fail decision. Trace the path from the top and notice that the decision depends on both conditions, not only on the time measurement.
Applying the threshold to one review
The general counsel's review used to take about an hour. Suppose the new system finishes a review in ten minutes with no missed redlines on priority cases. Does it meet the validation threshold?
- 1Measure the reduction
The review went from about 60 minutes to 10 minutes, a drop of about 50 minutes. That is a reduction of roughly 83 percent, which is more than the required sixty percent.
- 2Check the accuracy condition
The threshold also requires no missed redlines on the cases the firm cares most about. The example states there were none, so this condition is satisfied.
- 3Apply both conditions
The threshold requires both the reduction and the accuracy condition. Both hold, so this review passes.
This single review passes. Acceptance of the system, though, must be judged across the whole evaluation set, not from one review.
The same steps apply to the full set. The metric is computed for each of the forty-two contracts and the threshold is checked against the results, with the composition reported alongside. Because the three groups differ in difficulty, the results should be read group by group as well as in total.
Mistakes When Building and Reading Evaluation Sets
Common mistake Building the set from invented examples
What it looks likeWriting a handful of tidy, clearly worded test contracts that the team imagined.
Why it failsAn invented set reflects what the writer expects, not the mix of work the system will actually face.
Do this insteadDraw the cases from real documents, and have the people who do the work help select them.
Common mistake Using a set that is large but lopsided
What it looks likeTesting on many easy NDAs and few complex landlord-tenant agreements.
Why it failsA large set made of easy or unusual cases reports misleading performance.
Do this insteadCheck that the mix of case types matches the mix found in practice.
Common mistake Reporting a score without the composition
What it looks likeStating that the system passed without saying how many contracts were simple and how many were complex.
Why it failsA blended score can hide weak results on the demanding group.
Do this insteadReport the composition alongside every result.
Common mistake Treating the metric as the threshold
What it looks likeSaying the system succeeded because review minutes went down.
Why it failsThe metric says what is measured. The threshold says what result counts as success, including the accuracy condition.
Do this insteadCheck the measured number against the full threshold, including the accuracy requirement.
Practice on a Different Domain
The reasoning carries over to other systems. Imagine a system that sorts customer support emails into categories such as billing, technical fault, and account access. If you assembled a test set made only of short, clearly worded emails, the system could score well and still fail on the long, rambling messages that real customers often send.
Design a small evaluation set for the support-email sorter. Describe where the emails should come from, which mix of lengths and clarity levels you would include, and what success metric and validation threshold you would use. Explain how a result of 'the sorter passed' would be reported so that a reader can interpret it.
Hints
- Start by asking where real support traffic comes from, not where you imagine it comes from.
- Think about whether the metric is a single number or whether the threshold needs a second condition, such as an accuracy requirement.
- A good report states the composition of the set next to the result.
Key Takeaways
- A representative evaluation set is built from real-world examples that reflect the mix of work a system will actually face, which is why invented examples are a weak basis for judging a system.
- The source's forty-two contracts were divided into simple NDAs, vendor service agreements, and complex landlord-tenant agreements, so results can be read across difficulty levels.
- A success metric names the quantity being measured, while a validation threshold states the target that must be reached and may include accuracy conditions. The contract-review threshold combined a sixty percent reduction in review minutes with no missed redlines on priority cases.
- Applying a metric and threshold means running the system on the set, computing the measure, and checking every condition in the threshold. Results should always be reported alongside the set's composition.