Own Weights

AI for procurement

AI for procurement: how a trained model reads supplier contracts, POs and invoices at volume, tests on your data, and runs in your own cloud or on-prem.

Updated

Part of: AI for customs and logistics

AI for procurement means running a language model over the paperwork a purchasing team handles every day: supplier contracts, purchase orders, quotes, receipts and invoices. The model is asked for specific fields and for the exact sentence each one came from, such as a renewal date, a notice period or a unit price. A general model can do this with a long prompt. A model trained on that one job is often more consistent across suppliers, and it is easier to check, because each answer is either right against the source text or wrong.

Where procurement teams use AI

Most procurement work is finding things in text. A buyer needs to know when each supplier agreement renews, how many days of notice end it, whether prices can rise on an annual escalator, and whether the liability cap is tied to fees paid or fixed. Those questions repeat across hundreds of agreements written by different suppliers’ lawyers, so the wording changes while the question stays the same. That is the work an extraction model handles well.

The first three places this shows up:

  • Contract register clean-up. Turning a folder of PDFs into one dated table of active agreements, with renewal and notice deadlines in their own columns.
  • Purchase order matching. Checking that the unit price, currency and quantity on a PO agree with the signed quote it cites.
  • Invoice exceptions. Flagging an invoice whose tax rate or payment terms do not match the agreement behind it. Invoice matching has its own guide: AI invoice processing and accounts payable.

A worked example: one master services agreement

Take a 40-page master services agreement with a later amendment. The register needs eight fields: effective date, term, renewal type, notice window, termination for convenience, price escalator, liability cap and governing law. For each one the output should carry three things: the value, the sentence it came from, and the page. For the notice window, a good output reads “90 days before end of current term” with the quoted sentence and page 14, and the buyer can put the deadline on a calendar.

Two details cause most of the errors on this document. First, the amendment changes the notice window in one paragraph, so a model that reads only the base agreement reports the wrong deadline. Feed the amendment and the base agreement together, and write the order of precedence into your test. Second, many agreements say nothing about some fields, such as a liability cap or a price escalator. The correct answer there is “not found”. A model that guesses a value does more harm than one that returns nothing, so route every “not found” to a person.

How to measure accuracy on procurement paperwork

Accuracy on this job means the extracted value matches the source text. A model that finds the right clause but quotes the wrong sentence has failed, because the buyer will act on the quote. Build your test from agreements your buyers and lawyers have already marked up, and score exact matches, including correct “not found” answers.

Split the test by supplier or contract family, never by page. Supplier templates repeat their wording, so a split that leaves one template in both training and test flatters the score. Keep the held-out set out of every training run. Run the whole pipeline on five agreements first, reading each output by hand, before you run the full set.

A public benchmark shows what training for one task does. CUAD is a public set of 510 commercial contracts with answers marked by lawyers. Scored with 5-fold cross-validation, our Accuracy model, fine-tuned for this exam, reached 0.717 on exact clause quotes, where 1.0 is perfect, against 0.635 for Claude Opus given one prompt and no task training. The exam is not a procurement product, so use the full results as one input and build your own test before you decide.

Where the model runs and what it sees

Procurement files carry unit prices, supplier bank details and internal approval limits, so decide three things before a pilot: who can read the outputs, where logs and extracted fields are stored, and how long source files are kept after extraction. Many teams also remove bank details and personal contact fields before extraction, because the model does not need them to find a renewal date. Masking a field is simpler than securing a field nobody uses.

There is a trade-off. A model running in your own cloud account keeps files inside your environment, but your team owns its upkeep and monitoring. A hosted API removes that work and sends the files to someone else’s systems. Own Weights serves the trained model in your own cloud account or on-prem, and you own the weights, so the model runs under your access controls, logging and retention rules. We do not promise compliance with any certification on your behalf. Your security and legal reviewers still decide what your policies require. For the wider question, see LLM data privacy and AI vendor lock-in.

Common mistakes and a checklist

Mistakes that show up again and again:

  • Testing only on clean, recent templates. Real paperwork includes scanned copies, redlines and attachments.
  • Scoring answers that sound right instead of matching the source sentence.
  • Ignoring amendments, side letters and order-of-precedence clauses.
  • Letting a missing field default to a guess instead of “not found”.
  • Comparing vendors on price per token when your documents differ widely in length. Finance will want the cost per document, so start that conversation with AI for finance.

Checklist before a pilot:

  1. List the fields that drive a decision, such as notice deadlines, price caps and liability limits. Drop the rest.
  2. Collect a sample that includes old templates, scanned copies and amended agreements.
  3. Mark each answer with its value, page and quoted sentence.
  4. Split the test by supplier or contract family.
  5. Count “not found” as a correct answer when the source is silent.
  6. Run five files end to end, read every output, then scale up.
  7. Send any clause above a value your finance team sets to a person.
  8. Re-test when a supplier changes its template or you change the model.

If your buyers are sending agreements and invoices to a frontier API today, the next step is a free audit. We map your AI spend by task from your code and invoices, then build a test from your own documents. Use the Book a free audit button on this page to start a call.

Questions

What is the best AI for procurement teams?

The best model is the one that scores highest on your own supplier contracts and purchase orders, at a price you can repeat every month. Run your current model and any alternative on the same marked-up test set before you switch. A higher score on a public benchmark does not settle the question for your paperwork.

Can AI find renewal and termination dates in supplier contracts?

Yes, a model can be trained to find renewal dates, notice periods and termination clauses and quote the text they come from. Accuracy depends on the test you build from your own agreements, since templates and wording vary by supplier. Keep a person in the loop to review the flagged clauses.

How much does AI for procurement cost per document?

Cost depends on document length, the model you choose and how often you run it. Price each option on a sample of your own agreements, measured per document, and check the current pricing page of any vendor you consider, since rates change.