Own Weights

Contract clause extraction with a trained model

Contract clause extraction with a trained model: pull exact clause text from commercial contracts at volume, tested on your own documents before you switch.

Updated

Clause extraction means pulling the exact text of specific clauses out of a contract. A trained model reads the contract, finds the passage for each clause type you care about, such as governing law, termination, indemnity or assignment, and returns it word for word. If the clause is not there, it returns nothing rather than inventing one.

What the output has to look like

The model should return spans, not summaries. For each clause type, the useful result is the quoted text, its section number and the document it came from. A reviewer can check that quote against the source in seconds. A paraphrase can sound right and still drop a qualifier or change a number, and that error is hard to catch across thousands of files.

Good output has three properties. It picks the right passage for each clause type. It copies the characters exactly from the source. It returns an empty answer when the clause is absent. A model can pass on one of these and fail on another, so test all three on your own contracts.

How the model was tested

On CUAD, a public set of 510 commercial contracts with clause answers marked by lawyers, our Accuracy model scored 0.717 on exact-quote matching, against 0.635 for Claude Opus. Scoring used 5-fold cross-validation, so every contract was scored by a model that never trained on it. See the full results.

Where clauses hide

The hard part is rarely the obvious clause. Termination often sits in a general section while its notice period sits in a schedule. A limitation of liability section may say the cap is “set out in Exhibit B,” and an extractor that reads only the main body returns the sentence without the number. Amendments change a clause without repeating it, so the current term lives in the amendment while the base agreement says something else.

Here is a worked example. A supplier agreement says: “Either party may terminate this Agreement for convenience on ninety (90) days’ written notice to the other party.” The useful extraction is that exact sentence with its section number, because the notice period is the field a renewal calendar needs. An output of “termination for convenience is permitted” has lost the number the business has to act on.

For a procurement or legal operations team, a practical clause set might include governing law, termination for convenience, auto-renewal and its opt-out window, the liability cap, indemnity scope, assignment and change of control, exclusivity, non-solicitation and payment terms. Each one should feed a decision. Renewals with an opt-out window due next quarter need a calendar entry. A change of control clause that gives the other side a walk-away right needs a legal review before a deal closes. A cap below the value of the contract needs a flag.

Mistakes that inflate the score

  • Splitting by chunk. If pages from one contract land in both training and test, the model has seen that contract’s wording. Split by contract, so no contract appears on both sides.
  • Averaging away the hard clauses. Governing law is usually in a predictable place. Score the buried clauses, such as caps and schedules, as their own group, or a high average hides the failures that matter.
  • Accepting near matches. A quote that runs into the next section heading is not an exact span, and a reader will notice. Decide before you score whether boundaries must match exactly or within a sentence, and write that rule down.
  • Forgetting scanned copies. OCR can turn “shall not” into “shall” or “5%” into “5 %”. Test a sample of scanned files separately and count OCR damage as a failure.
  • Scoring base agreements alone. Score each contract together with its amendments, or the test asks for a clause the business no longer has.

A public exam is one fixed set of contracts. Your counterparties, templates and clause wording will differ, so run the comparison on your own sample before you decide anything. The output is a research aid for a lawyer. It is not legal advice, and a person still signs off on each decision.

Trade-offs to weigh

A model trained for one clause set is consistent and cheap to run on every new contract. Adding a clause means another training run, so keep the clause list stable between runs. A general model accepts a new clause from a prompt on the same day, but each call resends the contract and the instructions, and its output format can drift when someone edits the prompt.

Empty answers matter as much as correct ones. A model forced to answer every question produces quotes that look right and are not. Requiring an empty answer when a clause is absent makes gaps visible, which is what a review queue needs. Track the empty-answer rate on its own.

Speed and accuracy pull in different directions. An overnight batch that nobody reads line by line can favor throughput. A queue where a lawyer reads every extraction favors whichever model makes fewer errors on the clauses that person acts on.

A checklist before you switch

  1. List the clause types, and write down the decision each one feeds. Drop any clause that no one acts on.
  2. Pull the sample from the real contract folder, not a clean export. Include scans, amendments and the odd template from another business unit.
  3. Split by contract, fix the random seed and record it. Run the whole pipeline on 5 contracts before running the full set.
  4. Label the gold quotes using the boundary rule you wrote down before scoring.
  5. Score your current model on the same held-out contracts. Record the score, the cost per document and the empty-answer rate.
  6. Switch only if the new model beats the current one on the clauses you act on, not just on the average.

Own Weights is at ownweights.com. We build the test from your own contracts, train for your clause set, and serve the result in your cloud account or on-prem, so you keep the weights and control who can reach them.

For the surrounding work, read AI contract review at volume for the review side, Getting exact text out of documents with an LLM for scoring exact quotes, and Why cross-validation matters when testing a model for how the test is split.

Book a call below and we will look at the clause task you want to move. We start with the free audit, then decide together whether a test on your own documents is worth running.

Questions

What is contract clause extraction?

It is the task of finding specific clauses in a contract and returning the exact text of each one. The model reads the document and marks the passage that answers each question, such as the termination notice period. Because the output is copied from the contract, a reviewer can check it against the source in seconds.

Can an open-weight model extract clauses as accurately as Claude?

On the public CUAD exam, a model we fine-tuned scored higher than Claude Opus and Claude Haiku on exact-quote scoring. That result comes from one public dataset with one kind of task. Run the same comparison on a sample of your own contracts before you decide anything.

How much does it cost to extract clauses from 1,000 contracts?

On the CUAD exam, our Accuracy tier cost $4.50 per 1,000 documents, while Claude Opus cost $154.49 at list price. Your own bill depends on contract length, how many clauses you ask for, and how many calls you make per document. Measure those on a sample before you budget for the full set.