Research note
Small, fast models came close to a frontier model at workflow extraction, and compiled rules can take a cheap first pass
A small, fast model scored 59% against reference labels where a frontier model scored 56%, on 100 real business emails. Compiled rules ran 1,340x faster.
Workflow extraction means reading a piece of operational work, such as a business email, and working out which process it belongs to and which step that process is at. It is the first thing you need before you can measure how work actually flows. It is also expensive if every message goes to the largest model available.
We tested whether it has to. Across two benchmarks in 2026, small, fast models came within the noise of a frontier model on picking the step, and trailed it on a harder structured task. Separately, an earlier prototype turned what a model had already labelled into fast deterministic rules. It ran about 1,340 times faster, at a real cost in accuracy. If you run this kind of analysis, test the small tier first and keep a bigger model behind it for the cases it cannot settle.
The short version
- On 100 real business emails, a small fast model (Claude Haiku 4.5) matched the reference labels 59% of the time. The frontier model (Claude Opus 4.8) scored 56% against the same labels.
- Two open-weight models that ran on a laptop, Qwen3-14B and gpt-oss-20B, scored 55% and 56%, inside the noise of that result.
- On a harder task (step, sentiment and "is this stalled"), the gap opened. Haiku agreed with Opus 83% of the time; the best open-weight model reached 71%.
- Compiled rules classified a message in about 0.6 ms against roughly 800 ms for a model call, but scored 31.2% on held-out data. They are a first pass, not a replacement.
- Model rankings went stale within months. Re-test on your own data before you choose.
How we tested it
The data was real business email from an operational team, each message labelled with one of about a dozen workflow steps. The labels themselves came from an earlier Claude run, so they are noisy. Because of that, the main score is agreement with a reference model (Claude Opus 4.8): how often a cheaper model gives the same answer the frontier model gives.
Every model got the same prompt and the same items, in the same order. There were two tasks:
- Fast task: pick one step for an email.
- Structured task: return the step, the sentiment and whether the work looks blocked, as JSON.
The June 2026 run compared 12 hosted model configurations on 25 fast and 15 structured items. These included Claude Haiku 4.5, Sonnet 4.6 and Opus 4.8; GPT-5.4, GPT-5.4 mini and GPT-5.5; and several Gemini 3.x models. The October 2026 run raised the sample to 100 and 50 and added open-weight models served locally on an Apple M4 Pro laptop with 48 GB of memory. It also ran a public process-mining benchmark, BPI Challenge 2019, where the true case ids are known.
Compiled rules work differently. A model labels a set of messages once. A compiler then turns the recurring patterns in those labels into three tiers: exact text patterns, domain keywords, and a word-statistics classifier (TF-IDF) as a fallback. New messages go through the rules with no model call. We trained on 75% of the labelled messages and scored on the held-out 25%.
What we found
Small models kept up on the simple task. In June, Gemini 3.1 Flash-Lite agreed with Opus 80% of the time on the fast task. It answered in 684 ms against 16.4 seconds for Opus. On the structured task, the small tier agreed with Opus 80% to 87% of the time; the best mid-size model, Sonnet 4.6, reached 93%. A larger "pro" model, Gemini 3.1 Pro preview, scored 84%, the same as Flash-Lite, at about 10.5 seconds per call against 643 ms.
Open-weight models tied on the fast task, not the structured one. In October, at 100 items, Haiku, gpt-oss-20B and Qwen3-14B were within about 4 points of each other against the labels. The standard error at this size is about 5 points. On the structured task, every open-weight model trailed Haiku, and almost all of the gap was the step field: 46% to 52% for the open models against 68% for Haiku. Sentiment and the blocked flag were close. Re-running at temperature 0 left the ordering unchanged (Haiku 85%, best open model 73%).
On the public benchmark, the small models were at the ceiling. Asked to link 544 BPI Challenge 2019 events back into their 81 cases without seeing the case ids, Qwen3-14B scored an F1 of 1.000, Haiku 0.999 and gpt-oss-20B 0.997. Qwen3-14B returned valid JSON on all 470 of its structured calls.
Compiled rules were very fast and much less accurate. The rules handled about 6 million messages an hour against about 4,500 for model calls. Held-out accuracy was 31.2%. The exact-pattern tier fired on 13% of messages and was right 45% of the time when it did. The fallback tier carried 72% of messages at 31%. Steps with distinctive wording did best, with an F1 score of 50% for the clearest one. A step with only 8 training examples scored 0%. For rough comparison, on a test split built the same way, Haiku scored 53% and Qwen3-14B 52% on 100 held-out items.
The practical reading: let the rules settle the messages they are confident about, and send the rest to a small model. That hybrid was designed but not measured, so we give no figure for it.
What this does not show
- Small samples. The June run used 25 and 15 items. The October run used 100 and 50, where differences under about 8 points are noise.
- Noisy labels. The frontier model itself matched the labels only 56% to 72% of the time, depending on the run. "Agreement with Opus" measures similarity to one strong model, not truth.
- One dataset, one domain, single messages. The private tests used email from one operational team and classified one message at a time, not whole threads.
- No cost figures. The sources measured accuracy and latency, not price. "Cheap" here means the small or open-weight tier, not a measured dollar figure.
- Laptop latencies. Open-weight timings are single-stream on Apple Silicon. They show ordering, not production speed. Haiku linked the BPI Challenge events in 1.6 minutes; the local models took 8 to 29.
- Stale results. Between June and October, Opus changed its answer on 2 of the same 25 items, and Haiku moved from 52% to 56% against the labels. Flash-Lite was not re-run in October. Treat any model ranking as a dated snapshot.
- Setup traps. With default settings, some open-weight models spent their whole output budget "thinking" and scored 2%. Serving configuration mattered as much as the choice of model.
- The compiled-rules test is older and smaller in scope. It ran earlier in 2026, on a different split from the October model runs, and was not repeated.
Why this matters for workflow analysis at scale
Most tools that measure how work gets done rely on structured logs from one system, because reading everything else was too expensive. A large share of operational work never appears in those logs. It happens in email, tickets and documents.
Lighty AI reads that unstructured work and reconstructs the workflows in it: which process each message belongs to, which step it is at, and where cases stall. An organization produces millions of such messages, so the cost per message decides whether the analysis is practical at all. These results are why we route work in tiers. A small model picks the step, rules can take a fast first pass where they are reliable, and a larger model is kept for the harder judgements. We re-run the comparison as models change, because the ranking does not hold still.
Questions
Can a small LLM classify workflow steps as well as a frontier model?
On the simple task of picking one workflow step for an email, yes, within noise. In an October 2026 test on 100 real business emails, Claude Haiku 4.5 matched the labels 59% of the time and Claude Opus 4.8 56%.
How do open-weight models like Qwen3 compare to Claude Haiku for process classification?
Qwen3-14B and gpt-oss-20B scored 55% and 56% against Haiku's 59% on single-step classification, inside the noise at 100 items. On a structured task they trailed: the best open model agreed with the reference 71% of the time against Haiku's 83%.
How much faster are compiled rules than LLM calls for classification?
In our prototype, compiled rules took about 0.6 ms per message against roughly 800 ms for a model call, about 1,340 times faster. Held-out accuracy fell to 31.2%, so they work as a first pass with a model behind them.
Do LLM benchmark results stay valid over time?
Not for long. Between June and October 2026, the reference model changed its answer on 2 of the same 25 items, and a small model's score on those items moved from 52% to 56%.
Two benchmarks (June 2026, 12 hosted model configurations, 25 and 15 items; October 2026, open-weight models added, 100 and 50 items) scored step classification and structured extraction on real business email against a Claude Opus 4.8 reference, plus BPI Challenge 2019 case linking. A separate prototype compiled model-labelled messages into rules and scored them on a 25% held-out split.
More from the blog
- AI coding agents raise output per developer by about 26%. Time to merge hides it.
- Screen capture samples a few desks for a few weeks, and the costliest workflow problems we found needed every record
- AI reasoning models still apply familiar rules where they do not fit, though some famous failures shrink when the test is audited