LIVE · Thursday 3 December

Best Model for Procurement Spend Classification: No UNSPSC Benchmark Names One, So Test on New Items

No published benchmark compares LLMs, fine-tuned encoders and option scorers on the same UNSPSC data. The best evidence says that reused mappings and leak-free tests decide more than the model does.

By Thomas10 min read

No published benchmark compares large language models, fine-tuned encoders and option scorers on the same UNSPSC procurement data, so no model can fairly be named the best for spend classification. The strongest evidence, a September 2026 study of 1.26 million US state purchase lines, shows that random test splits inflate accuracy and that reusing approved mappings did more than any model. The practical answer is a cascade. Reuse your approved mappings first, then compare a fine-tuned encoder, a prompted LLM such as Claude Sonnet 5.5 with retrieved examples, and an option scorer on purchases that your system has never seen.

Published accuracy figures for spend classification come from different tasks and cannot be ranked

Three studies are cited most often when people ask which model classifies spend best, and each one measures something different.

REI Systems reported in July 2023 that a fine-tuned BERT model reached 97% test accuracy on about 91,000 federal IT procurement records. Its baselines were far behind: a 1D-CNN scored 79%, a random forest 55%, XGBoost 52% and KNN 28%. The task, however, was sorting IT spending into 43 TBM Sub-Towers for one federal client. That is a much smaller label set than UNSPSC, and the white paper does not clearly state how the test set was split or which BERT variant was used.

The ATLAS benchmark from Watershed, presented at a NeurIPS 2024 workshop, tested Claude 3.5 Sonnet on 10,000 synthetic spend items labelled with 294 Bureau of Economic Analysis codes for carbon accounting. Prompted alone, the model reached 40.6% top-1 accuracy. With 50 retrieved examples in the prompt, it reached 57.3%, against 48.5% for logistic regression. The authors note that their train and test data may be more similar than real data would be.

Harshit Gupta's preprint, "Spend Classification Without Leakage," submitted to arXiv on September 21, 2026, is the only one of the three that works with real procurement lines coded in UNSPSC. Its abstract states the problem directly: published results rely on private data and undocumented protocols, so they cannot be compared, and no public benchmark exists.

Taken together, these figures support two narrow conclusions. Retrieved examples helped an LLM on one synthetic task, and a fine-tuned encoder did well on one stable IT taxonomy. Neither figure transfers to detailed UNSPSC coding of a company's own purchase lines.

Random train-test splits inflate accuracy because about 60% of test lines repeat training text

Organisations buy the same items again and again, so the same item descriptions appear many times in their purchase records. When those records are shuffled into training and test sets at random, the test set fills up with descriptions that the model has already seen with their correct codes.

Gupta measured this on two corpora. Under random splits, 60.7% of test rows in one corpus and 61.2% in the other had matching item text in the training data. On California commodity codes, the best classical baseline, a complement naive Bayes model, scored 56.0% on repeated descriptions and only 31.9% on new ones. A fine-tuned DistilBERT model showed the same pattern, at 54.0% on repeated text and 29.6% on new text.

The paper tests four ways of splitting the data so that this effect can be seen:

  • A random split shuffles rows and leaks repeated descriptions by design.
  • A grouped split keeps every copy of a normalised description on one side, which removes the leak.
  • A temporal split trains on earlier periods and tests on later ones, as a deployed system would face.
  • A supplier split holds out whole suppliers, which tests purchases from vendors that the model has never seen.

The leaky split did more than inflate scores. On the Washington corpus it made a nearest-neighbour lookup and DistilBERT look tied, at 87.46% and 87.12%. All three leak-free splits put DistilBERT ahead by 2.26 to 3.56 points. A vendor accuracy figure that does not say how its test set was split cannot be used to choose a model.

UNSPSC depth and label conflicts set a ceiling that differs for every dataset

UNSPSC has four levels, each written as two digits: Segment, Family, Class and Commodity. The California data in Gupta's study uses 56 segments but 13,399 commodity codes, so a model that is right at the top level can still be wrong at the level that a buyer needs. For the complement naive Bayes model on a leak-free split, accuracy fell from 63.4% at Segment to 40.8% at Commodity.

The labels themselves also limit what any model can reach. In the California data, 47.6% of rows at Commodity level share their exact text with rows that carry a different code. As a result, no text-only classifier can score above 79.4% at Commodity on that corpus. On the Washington corpus, which uses full marketplace product titles, the same ceiling is 98.4%. Gupta concludes that accuracy figures do not compare across datasets. The labels in both corpora were assigned by buyers in daily work, not reviewed by experts, and the paper does not state which UNSPSC version they follow.

Approved mappings did more than any model in the one documented deployment

The same preprint describes a deployed product that applied these lessons to 920,927 purchase lines at three pilot organisations. The product moved from a text-only classifier to a fixed cascade in which the model is consulted last. Coverage rose from roughly half of all lines to between 98.3% and 99.3%, mostly through matches against each organisation's own prior coding and parts masters. About 12,000 lines were deliberately left uncoded.

The lines left for the model were harder to code. In one month, reviewers accepted 351 of 1,084 model suggestions without changes, which is 32.4%. That rate sits close to the benchmark's accuracy on new descriptions, at 31.9% and 34.8%. These deployment figures are self-reported, the author founded the product, and the reviewed month was not a random sample.

The lesson for a buyer is that the cheapest and most accurate classifier for repeat purchases is often a lookup table of decisions that people have already approved. The model choice matters for the remaining lines, which are new descriptions, new suppliers and unclear entries.

Four kinds of model can code the lines that approved mappings miss, at different costs for training and shortlists

Four kinds of model can classify the lines that approved mappings miss. Each one turns the line description, supplier, general ledger account and purchase order context into a prediction in a different way.

  1. A classical text model, such as naive Bayes or a nearest-neighbour search over word counts, is cheap to train and run. It does well on repeated descriptions and poorly on new ones.
  2. A fine-tuned encoder, such as BERT or DistilBERT, learns from your labelled history. It led the leak-free splits on the Washington corpus, but it did not close the gap on new California descriptions.
  3. A prompted LLM with retrieved examples receives the line together with similar approved lines and the definitions of candidate codes. Anthropic released Claude Sonnet 5.5 on September 28, 2026, describing it as a "faster, lower-cost complement" to Opus 5.5. That positioning says nothing about procurement accuracy. Gupta's study tested no LLM, and the paper describes doing so across 1.26 million lines as a cost question.
  4. An option scorer ranks a supplied list of valid codes and returns a probability for each one, so it cannot invent a code.

Parsec's TOD is one option scorer of this kind. It takes text and task state as input and ranks a supplied list of allowed options, and Parsec prices it at $0.30 per 1,000 decisions. The public release is a set of LoRA adapters on Google's Gemma 4 12B model, licensed Apache-2.0, while the base weights stay under Gemma 4 terms. Its repository reports testing with up to 300 options, far fewer than the 13,399 California commodity codes, so a retrieval step must first produce a shortlist. No procurement or UNSPSC evaluation of TOD has been published, and results for the frozen release should not be assumed for a version tuned on a customer's own decisions.

The shortlist problem applies to LLMs as well. A prompt cannot sensibly list thousands of commodity codes, so most designs retrieve a few dozen candidates first. If the correct code is missing from the shortlist, no model can choose it. Shortlist recall therefore needs its own measurement, separate from the accuracy of the final choice. Claude's structured outputs can restrict the answer to an enum of the shortlisted IDs, and Anthropic's docs describe this as producing "schema-compliant responses through constrained decoding."

A fair comparison gives every model the same fields, the same valid codes and untouched test data

Nobody has yet published a comparison of approved mappings, a classical baseline, a fine-tuned encoder, a version-pinned LLM with and without retrieved examples, and frozen and tuned TOD on the same UNSPSC splits. Gupta's harness is a practical starting point, because its code is MIT licensed, its California data has no public-use restrictions, and it has a path for bringing your own corpus.

A comparison that a buyer can trust should follow these rules:

  1. State where the data comes from, whether it may be published, which fields each line has, who reviewed the labels, the UNSPSC version and depth, the languages and the class distribution.
  2. Split the data by grouped description, by time and by supplier, audit the retrieval corpus for test items, and report repeated items, new descriptions and new suppliers separately.
  3. Give every model the same description, supplier, general ledger and purchase order fields, and the same list of valid codes.
  4. Report accuracy at each UNSPSC level, macro-averaged accuracy, spend-weighted error, calibration and the share of lines that can be coded automatically at your required precision.
  5. Count latency and total cost, including retrieval, serving, review and correction, and keep the size of each training set explicit.
  6. Publish the prompts, configurations, split logic and pinned model versions, including negative results, and fix the final test set before any tuning begins.

Spend weighting needs care. Gupta found that the spend-weighted ceiling on the California data reflected the amount field more than the labels, because a few large lines dominated the total.

A cascade also needs a rule for lines that it cannot code. Descriptions such as "misc supplies" should go to a person rather than receive a confident guess. A predicted category is an input to spend analysis, and it does not approve or change any purchase.

The right choice depends on how much labelled history and how much new spend you have

Until a shared benchmark exists, the evidence supports a choice by situation:

  • If most of your lines are repeat purchases, build the approved-mapping table first, because it covered most lines in the documented deployment.
  • If you have a large, reliably labelled history and a stable taxonomy, fine-tune an encoder and test it on grouped, temporal and supplier splits.
  • If you have little labelled history and varied descriptions, start with a prompted LLM, retrieved examples and a constrained list of valid codes.
  • If you already maintain a shortlist of valid codes per line, an option scorer such as TOD is worth including in the test, with its shortlist recall reported separately.
  • If new suppliers are common, weight the supplier split most heavily, because it gave the lowest scores in Gupta's California results.

Training a model earns its cost only when it beats an unmodified model with retrieved examples on your new items by enough to reduce review work.

Review time, not model fees, sets the cost of a spend classifier

The cost of model calls is small next to the cost of people checking the results. Consider a sample workload with these assumptions:

  • 100,000 purchase lines a month.
  • 60% of lines matched by approved mappings, an assumed share that echoes the 60% repeat rate in Gupta's data.
  • 40,000 lines sent to a model, each using 2,500 input tokens and 20 output tokens.
  • Half of the model's lines routed to review, at 30 seconds each.

At Anthropic's list prices, Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens. The 40,000 lines use 100 million input tokens and 0.8 million output tokens, so the monthly cost is about $208, or $104 through the Batch API's 50% discount. Claude Haiku 5.5, at $0.10 and $0.50, costs about $10.40. Claude Opus 5.5, at $4 and $20, costs about $416. Retrieval adds its own cost for building the shortlist and the examples.

The review queue costs far more. Routing 20,000 lines a month to review at 30 seconds each takes about 167 hours of staff time. A model that codes more lines automatically at your required precision cuts that figure, and that saving is worth more than any difference in token prices. How much automatic coverage each model reaches at a fixed precision on UNSPSC has not been measured.

Sources

More in Research

All Research →