Benchmarks
Benchmarks
Real legal questions, answered by our logic programs on one CPU thread, with no GPU, and by language models for comparison. We count how often each one fails, starting with the answers that are confidently wrong. 0% means no failures.
In short
Our rules, run on Clausal Prolog, answered every question correctly: 120 of 120 on US tax law (SARA) and 31 of 31 on worked examples published by Singapore regulators. The median time per question on one CPU thread was 0.35 ms for US tax and 11 ms for Singapore. Language models given only the name of the law failed 13% to 63% of the same US tax questions.
Every answer comes with the rules that produced it, so a reviewer can check it. The SARA questions were visible while our rules were written: see what to keep in mind.
Why we count failures, not successes
Legal work often needs answers that can be relied on every time. The costly answer is the confidently wrong one: it looks like every other answer, so nobody can tell it apart without checking.
Take a system that is right 99 times in 100 and confidently wrong the hundredth time. Since you cannot tell which answer is the bad one, someone has to check all of them, and then a lawyer might as well have done the work. A system that answers only half the questions, says plainly that it cannot answer the rest, and is never confidently wrong is more useful: its answers can be relied on, and the rest go to a person.
So we count failures, in three kinds:
- Confidently wrong: a wrong answer, or an answer where it should have declined. This is the failure that matters most, and it is always counted.
- Failed to answer: declined although the question has an answer.
- Blank: no usable answer (none given, cut off, an error or out of time).
How often each system failed
Each bar is the share of the questions a system failed, on the same scale from 0% to 100%. Choose a set of questions, and choose which kinds of failure to count. Every percentage is out of all the questions in the set, so leaving a kind out never makes the others look bigger. For each language model, each figure is the mean of its runs, and the thin line shows the lowest and highest of them. The chart shows the latest round of language-model runs (round 4); an earlier round is described further down.
| System | Failed | Confidently wrong | Failed to answer | Blank | Runs |
|---|---|---|---|---|---|
| Our rules alone: Clausal Prolog 1.4.0 | 0 (0%) | 0 (0%) | 0 | 0 | 1 |
| Our rules alone: Trealla Prolog v3.15.28 | 0 (0%) | 0 (0%) | 0 | 0 | 1 |
| Our rules alone: Scryer Prolog v0.10.0-397-gb64ddd38 | 0 (0%) | 0 (0%) | 0 | 0 | 1 |
| Our rules alone: Ichiban Prolog v1.2.2 | 1 (0.8%) | 0 (0%) | 0 | 1 | 1 |
| Claude Opus 5.5, hosted by the vendor: Law named, no text, no tools | 15.7 (13.1%), 15 to 17 | 15.7 (13.1%) | 0 | 0 | 3 |
| Claude Opus 5.5, hosted by the vendor: Law named, web search | 13.7 (11.4%), 10 to 16 | 13.7 (11.4%) | 0 | 0 | 3 |
| Claude Opus 5.5, hosted by the vendor: Statute text given | 6.3 (5.3%), 6 to 7 | 6.3 (5.3%) | 0 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Law named, no text, no tools | 37.7 (31.4%), 33 to 41 | 37.7 (31.4%) | 0 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Law named, web search | 36.7 (30.6%), 36 to 38 | 36.7 (30.6%) | 0 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Statute text given | 10.3 (8.6%), 9 to 12 | 10 (8.3%) | 0.3 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Our rules as a tool, on Trealla Prolog v3.15.20 | 8 (6.7%), 7 to 10 | 8 (6.7%) | 0 | 0 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Law named, no text, no tools | 75.3 (62.8%), 72 to 79 | 49 (40.8%) | 24 | 2.3 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Law named, web search | 63.7 (53.1%), 58 to 69 | 26.7 (22.2%) | 15 | 22 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Statute text given | 17.3 (14.4%), 16 to 20 | 15 (12.5%) | 2 | 0.3 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Our rules as a tool, on Trealla Prolog v3.15.20 | 17.3 (14.4%), 14 to 21 | 12 (10%) | 2.3 | 3 | 3 |
| System | Failed | Confidently wrong | Failed to answer | Blank | Runs |
|---|---|---|---|---|---|
| Our rules alone: Clausal Prolog 1.4.0 | 0 (0%) | 0 (0%) | 0 | 0 | 1 |
| Qwen 3.8 27B, on our own infrastructure: Law named, no text, no tools | 16 (51.6%), 15 to 17 | 14 (45.2%) | 2 | 0 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Law named, web search | 15.7 (50.5%), 14 to 17 | 13.3 (43%) | 0.7 | 1.7 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Our rules as a tool, on Clausal Prolog 1.4.0 | 0 (0%) | 0 (0%) | 0 | 0 | 3 |
| System | Failed | Confidently wrong | Failed to answer | Blank | Runs |
|---|---|---|---|---|---|
| Claude Opus 5.5, hosted by the vendor: Law named, no text, no tools | 9.7 (9.4%), 9 to 10 | 9.7 (9.4%) | 0 | 0 | 3 |
| Claude Opus 5.5, hosted by the vendor: Law named, web search | 10.3 (10%), 9 to 11 | 10.3 (10%) | 0 | 0 | 3 |
| Claude Opus 5.5, hosted by the vendor: Statute text given | 8.3 (8.1%), 7 to 11 | 8.3 (8.1%) | 0 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Law named, no text, no tools | 11.7 (11.3%), 10 to 13 | 11.7 (11.3%) | 0 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Law named, web search | 16 (15.5%), 14 to 17 | 16 (15.5%) | 0 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Statute text given | 10.7 (10.4%), 9 to 13 | 10.7 (10.4%) | 0 | 0 | 3 |
| Claude Sonnet 5.5, hosted by the vendor: Our rules as a tool, on Trealla Prolog v3.15.20 | 16 (15.5%), 13 to 19 | 16 (15.5%) | 0 | 0 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Law named, no text, no tools | 16 (15.5%), 15 to 17 | 15.3 (14.9%) | 0 | 0.7 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Law named, web search | 22 (21.4%), 21 to 24 | 18 (17.5%) | 0 | 4 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Statute text given | 11.3 (11%), 10 to 13 | 11.3 (11%) | 0 | 0 | 3 |
| Qwen 3.8 27B, on our own infrastructure: Our rules as a tool, on Trealla Prolog v3.15.20 | 23.7 (23%), 19 to 27 | 19.3 (18.8%) | 0 | 4.3 | 3 |
- “Our rules alone” means no language model and no English. For SARA, our rules run on the facts of each case as SARA’s authors encoded them in Prolog; for the Singapore questions, on our own encoding of each worked example.
- Our rules alone were never confidently wrong, on any engine. On Ichiban Prolog v1.2.21 they left 1 blank of the 120 SARA questions (it ran past the 30-second limit). Every other engine answered every question in its set correctly. We show every failure rather than leave it out.
- With our rules as a tool, Qwen 3.8 27B was never confidently wrong on the Singapore questions in any run. On SARA, the models that used our rules as a tool still were: Claude Sonnet 5.5 on 10, 7, 7 of 120 questions in its three runs, and Qwen 3.8 27B on 13, 10, 13 of 120 questions in its three runs, about as often as with the statute text: reading the facts into our rules is where they go wrong. Claude Opus 5.5 was not run with our rules as a tool.
Our rules alone: failures and time
Run of 2026-11-22. Each question was answered once cold and 5 more times; the times are for the repeated runs.
| Questions | Engine | Confidently wrong | Blank | Correct | Median time | 95th percentile | Slowest |
|---|---|---|---|---|---|---|---|
| SARA, US tax (120) | Clausal Prolog 1.4.0 | 0 | 0 | 120 (100%) | 0.35 ms | 87.6 ms | 14369 ms |
| SARA, US tax (120) | Trealla Prolog v3.15.28 | 0 | 0 | 120 (100%) | 0.01 ms | 3.1 ms | 474 ms |
| SARA, US tax (120) | Scryer Prolog v0.10.0-397-gb64ddd38 | 0 | 0 | 120 (100%) | 0.13 ms | 37.6 ms | 4267 ms |
| SARA, US tax (120) | Ichiban Prolog v1.2.21 | 0 | 1 | 119 (99.2%) | under 1 ms | 245 ms | 30 s (time limit) |
| Singapore regulators (31) | Clausal Prolog 1.4.0 | 0 | 0 | 31 (100%) | 11.08 ms | 14.9 ms | 15 ms |
SARA's 20 tax amounts given exactly: Clausal Prolog 20 of 20; Trealla Prolog 20 of 20; Scryer Prolog 20 of 20; Ichiban Prolog 20 of 20. An amount within one dollar of the answer counts as correct, to allow for rounding.
Ichiban Prolog counts time in whole milliseconds, so its per-question times under 1 ms cannot be compared with the other engines’. Over the whole SARA run, the first pass and 5 repeats of every question, starting the engine included: Trealla Prolog 6 s, Scryer Prolog 56 s, Ichiban Prolog 490 s.
1 Ichiban Prolog is a Go library, not a stand-alone program. We run it through our own small driver, which supplies its clock and its time limit.
Language models on the same questions
Why a model of this size: a main use of our systems is running them locally, for data sovereignty, so that a client’s confidential facts never go to someone else’s server. Qwen 3.8 27B is an open-weights model, small enough to run on hardware an organisation controls. That is why we measure a model of this size, and not only the largest hosted models. Here, Qwen ran on our own infrastructure, on our own GPUs, and our rules engines, Clausal Prolog, Ichiban Prolog, Scryer Prolog and Trealla Prolog, ran on our own machine, each on one CPU thread with no GPU. They need no outside service at all.
For comparison with large hosted models, round 4 also asked Claude Opus 5.5 and Claude Sonnet 5.5, made by Anthropic and run on Anthropic’s servers. Only the SARA-based questions went to them; the Singapore questions stayed on our own infrastructure, so only Qwen answered those.
In round 4 (compared on 2026-11-23), we asked Claude Opus 5.5, Claude Sonnet 5.5 and Qwen 3.8 27B the same questions in up to 4 ways, three times each:
- Law named, no text, no tools: the facts and the question, and which law applies.
- Law named, web search: the same, with tools to search the web and read pages.
- Statute text given: the text of the law with each question, as SARA intends. Not for the Singapore questions: we hold no clean copy of the Singapore Acts.
- Our rules as a tool: no statute text, but a guide to our rules' vocabulary and a tool that runs queries against our rules. The model has to turn the English facts into a query itself; it never sees our own translation of the case.
Each model was told to take the facts as complete unless they say a detail is not known, and that it may decline, giving one of four reasons: facts missing, an open question, law that does not apply, or an impossible premise. Claude Opus 5.5 was not run with our rules as a tool.
| Model | Law named, no text, no tools | Law named, web search | Statute text given | Our rules as a tool |
|---|---|---|---|---|
| Claude Opus 5.5hosted by the vendor | 13.1%: failed 15.7 of 120, ranging 15 to 17 over 3 runs; confidently wrong 15.7, failed to answer 0, blank 0 | 11.4%: failed 13.7 of 120, ranging 10 to 16 over 3 runs; confidently wrong 13.7, failed to answer 0, blank 0 | 5.3%: failed 6.3 of 120, ranging 6 to 7 over 3 runs; confidently wrong 6.3, failed to answer 0, blank 0 | not run |
| Claude Sonnet 5.5hosted by the vendor | 31.4%: failed 37.7 of 120, ranging 33 to 41 over 3 runs; confidently wrong 37.7, failed to answer 0, blank 0 | 30.6%: failed 36.7 of 120, ranging 36 to 38 over 3 runs; confidently wrong 36.7, failed to answer 0, blank 0 | 8.6%: failed 10.3 of 120, ranging 9 to 12 over 3 runs; confidently wrong 10, failed to answer 0.3, blank 0 | 6.7%: failed 8 of 120, ranging 7 to 10 over 3 runs; confidently wrong 8, failed to answer 0, blank 0 |
| Qwen 3.8 27Bon our own infrastructure | 62.8%: failed 75.3 of 120, ranging 72 to 79 over 3 runs; confidently wrong 49, failed to answer 24, blank 2.3 | 53.1%: failed 63.7 of 120, ranging 58 to 69 over 3 runs; confidently wrong 26.7, failed to answer 15, blank 22 | 14.4%: failed 17.3 of 120, ranging 16 to 20 over 3 runs; confidently wrong 15, failed to answer 2, blank 0.3 | 14.4%: failed 17.3 of 120, ranging 14 to 21 over 3 runs; confidently wrong 12, failed to answer 2.3, blank 3 |
| Model | Law named, no text, no tools | Law named, web search | Statute text given | Our rules as a tool |
|---|---|---|---|---|
| Claude Opus 5.5hosted by the vendor | 9.4%: failed 9.7 of 103, ranging 9 to 10 over 3 runs; confidently wrong 9.7, failed to answer 0, blank 0 | 10%: failed 10.3 of 103, ranging 9 to 11 over 3 runs; confidently wrong 10.3, failed to answer 0, blank 0 | 8.1%: failed 8.3 of 103, ranging 7 to 11 over 3 runs; confidently wrong 8.3, failed to answer 0, blank 0 | not run |
| Claude Sonnet 5.5hosted by the vendor | 11.3%: failed 11.7 of 103, ranging 10 to 13 over 3 runs; confidently wrong 11.7, failed to answer 0, blank 0 | 15.5%: failed 16 of 103, ranging 14 to 17 over 3 runs; confidently wrong 16, failed to answer 0, blank 0 | 10.4%: failed 10.7 of 103, ranging 9 to 13 over 3 runs; confidently wrong 10.7, failed to answer 0, blank 0 | 15.5%: failed 16 of 103, ranging 13 to 19 over 3 runs; confidently wrong 16, failed to answer 0, blank 0 |
| Qwen 3.8 27Bon our own infrastructure | 15.5%: failed 16 of 103, ranging 15 to 17 over 3 runs; confidently wrong 15.3, failed to answer 0, blank 0.7 | 21.4%: failed 22 of 103, ranging 21 to 24 over 3 runs; confidently wrong 18, failed to answer 0, blank 4 | 11%: failed 11.3 of 103, ranging 10 to 13 over 3 runs; confidently wrong 11.3, failed to answer 0, blank 0 | 23%: failed 23.7 of 103, ranging 19 to 27 over 3 runs; confidently wrong 19.3, failed to answer 0, blank 4.3 |
| Model | Law named, no text, no tools | Law named, web search | Our rules as a tool |
|---|---|---|---|
| Qwen 3.8 27Bon our own infrastructure | 51.6%: failed 16 of 31, ranging 15 to 17 over 3 runs; confidently wrong 14, failed to answer 2, blank 0 | 50.5%: failed 15.7 of 31, ranging 14 to 17 over 3 runs; confidently wrong 13.3, failed to answer 0.7, blank 1.7 | 0%: failed 0 of 31, ranging 0 to 0 over 3 runs; confidently wrong 0, failed to answer 0, blank 0 |
Every way of asking, run by run
| Questions | Model | How it was asked | Failed, mean of 3 runs | Range | Confidently wrong, per run | Failed to answer, per run | Blank, per run | Median model time |
|---|---|---|---|---|---|---|---|---|
| SARA, US tax (120) | Claude Opus 5.5, hosted by the vendor | Law named, no text, no tools | 15.7 (13.1%) | 15 to 17 | 15, 15, 17 | 0, 0, 0 | 0, 0, 0 | 6.1 s |
| SARA, US tax (120) | Claude Opus 5.5, hosted by the vendor | Law named, web search | 13.7 (11.4%) | 10 to 16 | 10, 16, 15 | 0, 0, 0 | 0, 0, 0 | 6.7 s |
| SARA, US tax (120) | Claude Opus 5.5, hosted by the vendor | Statute text given | 6.3 (5.3%) | 6 to 7 | 7, 6, 6 | 0, 0, 0 | 0, 0, 0 | 5.2 s |
| SARA, US tax (120) | Claude Sonnet 5.5, hosted by the vendor | Law named, no text, no tools | 37.7 (31.4%) | 33 to 41 | 39, 33, 41 | 0, 0, 0 | 0, 0, 0 | 10.3 s |
| SARA, US tax (120) | Claude Sonnet 5.5, hosted by the vendor | Law named, web search | 36.7 (30.6%) | 36 to 38 | 38, 36, 36 | 0, 0, 0 | 0, 0, 0 | 9.1 s |
| SARA, US tax (120) | Claude Sonnet 5.5, hosted by the vendor | Statute text given | 10.3 (8.6%) | 9 to 12 | 10, 11, 9 | 0, 1, 0 | 0, 0, 0 | 4.4 s |
| SARA, US tax (120) | Claude Sonnet 5.5, hosted by the vendor | Our rules as a tool, on Trealla Prolog v3.15.20 | 8 (6.7%) | 7 to 10 | 10, 7, 7 | 0, 0, 0 | 0, 0, 0 | 7 s |
| SARA, US tax (120) | Qwen 3.8 27B, on our own infrastructure | Law named, no text, no tools | 75.3 (62.8%) | 72 to 79 | 53, 45, 49 | 24, 26, 22 | 2, 4, 1 | 82.6 s |
| SARA, US tax (120) | Qwen 3.8 27B, on our own infrastructure | Law named, web search | 63.7 (53.1%) | 58 to 69 | 19, 34, 27 | 13, 15, 17 | 26, 20, 20 | 128 s |
| SARA, US tax (120) | Qwen 3.8 27B, on our own infrastructure | Statute text given | 17.3 (14.4%) | 16 to 20 | 15, 15, 15 | 1, 4, 1 | 0, 1, 0 | 64.9 s |
| SARA, US tax (120) | Qwen 3.8 27B, on our own infrastructure | Our rules as a tool, on Trealla Prolog v3.15.20 | 17.3 (14.4%) | 14 to 21 | 13, 10, 13 | 2, 2, 3 | 6, 2, 1 | 96.2 s |
| Questions to decline, US tax (103) | Claude Opus 5.5, hosted by the vendor | Law named, no text, no tools | 9.7 (9.4%) | 9 to 10 | 9, 10, 10 | 0, 0, 0 | 0, 0, 0 | 6.1 s |
| Questions to decline, US tax (103) | Claude Opus 5.5, hosted by the vendor | Law named, web search | 10.3 (10%) | 9 to 11 | 11, 11, 9 | 0, 0, 0 | 0, 0, 0 | 6.5 s |
| Questions to decline, US tax (103) | Claude Opus 5.5, hosted by the vendor | Statute text given | 8.3 (8.1%) | 7 to 11 | 11, 7, 7 | 0, 0, 0 | 0, 0, 0 | 5.9 s |
| Questions to decline, US tax (103) | Claude Sonnet 5.5, hosted by the vendor | Law named, no text, no tools | 11.7 (11.3%) | 10 to 13 | 13, 12, 10 | 0, 0, 0 | 0, 0, 0 | 5.8 s |
| Questions to decline, US tax (103) | Claude Sonnet 5.5, hosted by the vendor | Law named, web search | 16 (15.5%) | 14 to 17 | 17, 14, 17 | 0, 0, 0 | 0, 0, 0 | 6.3 s |
| Questions to decline, US tax (103) | Claude Sonnet 5.5, hosted by the vendor | Statute text given | 10.7 (10.4%) | 9 to 13 | 10, 13, 9 | 0, 0, 0 | 0, 0, 0 | 5.4 s |
| Questions to decline, US tax (103) | Claude Sonnet 5.5, hosted by the vendor | Our rules as a tool, on Trealla Prolog v3.15.20 | 16 (15.5%) | 13 to 19 | 13, 16, 19 | 0, 0, 0 | 0, 0, 0 | 6.5 s |
| Questions to decline, US tax (103) | Qwen 3.8 27B, on our own infrastructure | Law named, no text, no tools | 16 (15.5%) | 15 to 17 | 16, 15, 15 | 0, 0, 0 | 1, 0, 1 | 51.2 s |
| Questions to decline, US tax (103) | Qwen 3.8 27B, on our own infrastructure | Law named, web search | 22 (21.4%) | 21 to 24 | 20, 14, 20 | 0, 0, 0 | 4, 7, 1 | 27 s |
| Questions to decline, US tax (103) | Qwen 3.8 27B, on our own infrastructure | Statute text given | 11.3 (11%) | 10 to 13 | 10, 11, 13 | 0, 0, 0 | 0, 0, 0 | 72.2 s |
| Questions to decline, US tax (103) | Qwen 3.8 27B, on our own infrastructure | Our rules as a tool, on Trealla Prolog v3.15.20 | 23.7 (23%) | 19 to 27 | 15, 24, 19 | 0, 0, 0 | 10, 3, 0 | 74.5 s |
| Singapore regulators (31) | Qwen 3.8 27B, on our own infrastructure | Law named, no text, no tools | 16 (51.6%) | 15 to 17 | 15, 14, 13 | 2, 2, 2 | 0, 0, 0 | 75.8 s |
| Singapore regulators (31) | Qwen 3.8 27B, on our own infrastructure | Law named, web search | 15.7 (50.5%) | 14 to 17 | 13, 13, 14 | 1, 1, 0 | 2, 3, 0 | 163.5 s |
| Singapore regulators (31) | Qwen 3.8 27B, on our own infrastructure | Our rules as a tool, on Clausal Prolog 1.4.0 | 0 (0%) | 0 to 0 | 0, 0, 0 | 0, 0, 0 | 0, 0, 0 | 26 s |
Claude Sonnet 5.5 often gave the reason for a decline in a sentence instead of one of the four reasons. Per run, on the questions to decline: law named, no text, no tools 57, 58, 60; law named, web search 53, 55, 54; statute text given 64, 60, 64; our rules as a tool 56, 51, 51. No other model did so. Since 22 November 2026 these count as declines whose reason is not accepted, the same as a decline with the wrong reason: right where declining is right, a failure to answer where an answer exists. Before, they counted as blank. We changed the rule after Claude Sonnet 5.5’s first runs, because a correct reason explained in a sentence scored worse than a wrong reason, and re-graded every run under it; no grade of Qwen’s changed. A system that acts on the reason could not use these replies, which is why we show them.
Which differences are real
For each question we took the outcome a model gave in most of its runs, right or failed, then compared two ways of asking, question by question, with an exact McNemar test, adjusted for the number of comparisons (Holm). A difference counts as significant when the adjusted p is below 0.05.
All 53 paired tests
| Questions | Model | Compared | Failed in most runs | Adjusted p | Significant |
|---|---|---|---|---|---|
| SARA | Claude Opus 5.5 | Law named, no text, no tools / Statute text given | 15 / 6 | 0.0674 | No |
| SARA | Claude Opus 5.5 | Law named, no text, no tools / Law named, web search | 15 / 11 | 0.438 | No |
| SARA | Claude Opus 5.5 | Statute text given / Law named, web search | 6 / 11 | 0.438 | No |
| SARA | Claude Sonnet 5.5 | Law named, no text, no tools / Statute text given | 37 / 10 | 0.00000701 | Yes |
| SARA | Claude Sonnet 5.5 | Law named, no text, no tools / Our rules as a tool | 37 / 8 | 0.00000251 | Yes |
| SARA | Claude Sonnet 5.5 | Law named, no text, no tools / Law named, web search | 37 / 35 | 1 | No |
| SARA | Claude Sonnet 5.5 | Statute text given / Our rules as a tool | 10 / 8 | 1 | No |
| SARA | Claude Sonnet 5.5 | Statute text given / Law named, web search | 10 / 35 | 0.0000671 | Yes |
| SARA | Claude Sonnet 5.5 | Our rules as a tool / Law named, web search | 8 / 35 | 0.00000701 | Yes |
| SARA | Qwen 3.8 27B | Law named, no text, no tools / Statute text given | 73 / 16 | 1.96e-13 | Yes |
| SARA | Qwen 3.8 27B | Law named, no text, no tools / Our rules as a tool | 73 / 15 | 5.08e-15 | Yes |
| SARA | Qwen 3.8 27B | Law named, no text, no tools / Law named, web search | 73 / 60 | 0.0819 | No |
| SARA | Qwen 3.8 27B | Statute text given / Our rules as a tool | 16 / 15 | 1 | No |
| SARA | Qwen 3.8 27B | Statute text given / Law named, web search | 16 / 60 | 3.92e-10 | Yes |
| SARA | Qwen 3.8 27B | Our rules as a tool / Law named, web search | 15 / 60 | 2.82e-10 | Yes |
| To decline | Claude Opus 5.5 | Law named, no text, no tools / Statute text given | 9 / 8 | 1 | No |
| To decline | Claude Opus 5.5 | Law named, no text, no tools / Law named, web search | 9 / 9 | 1 | No |
| To decline | Claude Opus 5.5 | Statute text given / Law named, web search | 8 / 9 | 1 | No |
| To decline | Claude Sonnet 5.5 | Law named, no text, no tools / Statute text given | 11 / 10 | 1 | No |
| To decline | Claude Sonnet 5.5 | Law named, no text, no tools / Our rules as a tool | 11 / 16 | 0.898 | No |
| To decline | Claude Sonnet 5.5 | Law named, no text, no tools / Law named, web search | 11 / 16 | 0.375 | No |
| To decline | Claude Sonnet 5.5 | Statute text given / Our rules as a tool | 10 / 16 | 0.898 | No |
| To decline | Claude Sonnet 5.5 | Statute text given / Law named, web search | 10 / 16 | 0.898 | No |
| To decline | Claude Sonnet 5.5 | Our rules as a tool / Law named, web search | 16 / 16 | 1 | No |
| To decline | Qwen 3.8 27B | Law named, no text, no tools / Statute text given | 17 / 12 | 0.84 | No |
| To decline | Qwen 3.8 27B | Law named, no text, no tools / Our rules as a tool | 17 / 23 | 0.84 | No |
| To decline | Qwen 3.8 27B | Law named, no text, no tools / Law named, web search | 17 / 20 | 1 | No |
| To decline | Qwen 3.8 27B | Statute text given / Our rules as a tool | 12 / 23 | 0.00586 | Yes |
| To decline | Qwen 3.8 27B | Statute text given / Law named, web search | 12 / 20 | 0.193 | No |
| To decline | Qwen 3.8 27B | Our rules as a tool / Law named, web search | 23 / 20 | 1 | No |
| Singapore | Qwen 3.8 27B | Law named, no text, no tools / Our rules as a tool | 17 / 0 | 0.0000458 | Yes |
| Singapore | Qwen 3.8 27B | Law named, no text, no tools / Law named, web search | 17 / 14 | 0.25 | No |
| Singapore | Qwen 3.8 27B | Our rules as a tool / Law named, web search | 0 / 14 | 0.000244 | Yes |
| Questions | How it was asked | Compared | Failed in most runs | Adjusted p | Significant |
|---|---|---|---|---|---|
| SARA | Law named, no text, no tools | Claude Opus 5.5 / Claude Sonnet 5.5 | 15 / 37 | 0.000313 | Yes |
| SARA | Law named, no text, no tools | Claude Opus 5.5 / Qwen 3.8 27B | 15 / 73 | 6.25e-14 | Yes |
| SARA | Statute text given | Claude Opus 5.5 / Claude Sonnet 5.5 | 6 / 10 | 0.219 | No |
| SARA | Statute text given | Claude Opus 5.5 / Qwen 3.8 27B | 6 / 16 | 0.019 | Yes |
| SARA | Law named, web search | Claude Opus 5.5 / Claude Sonnet 5.5 | 11 / 35 | 0.0000169 | Yes |
| SARA | Law named, web search | Claude Opus 5.5 / Qwen 3.8 27B | 11 / 60 | 1.77e-11 | Yes |
| SARA | Law named, no text, no tools | Claude Sonnet 5.5 / Qwen 3.8 27B | 37 / 73 | 2.02e-7 | Yes |
| SARA | Statute text given | Claude Sonnet 5.5 / Qwen 3.8 27B | 10 / 16 | 0.219 | No |
| SARA | Our rules as a tool | Claude Sonnet 5.5 / Qwen 3.8 27B | 8 / 15 | 0.0923 | No |
| SARA | Law named, web search | Claude Sonnet 5.5 / Qwen 3.8 27B | 35 / 60 | 0.0000169 | Yes |
| To decline | Law named, no text, no tools | Claude Opus 5.5 / Claude Sonnet 5.5 | 9 / 11 | 0.688 | No |
| To decline | Law named, no text, no tools | Claude Opus 5.5 / Qwen 3.8 27B | 9 / 17 | 0.0645 | No |
| To decline | Statute text given | Claude Opus 5.5 / Claude Sonnet 5.5 | 8 / 10 | 1 | No |
| To decline | Statute text given | Claude Opus 5.5 / Qwen 3.8 27B | 8 / 12 | 1 | No |
| To decline | Law named, web search | Claude Opus 5.5 / Claude Sonnet 5.5 | 9 / 16 | 0.0781 | No |
| To decline | Law named, web search | Claude Opus 5.5 / Qwen 3.8 27B | 9 / 20 | 0.0103 | Yes |
| To decline | Law named, no text, no tools | Claude Sonnet 5.5 / Qwen 3.8 27B | 11 / 17 | 0.219 | No |
| To decline | Statute text given | Claude Sonnet 5.5 / Qwen 3.8 27B | 10 / 12 | 1 | No |
| To decline | Our rules as a tool | Claude Sonnet 5.5 / Qwen 3.8 27B | 16 / 23 | 0.167 | No |
| To decline | Law named, web search | Claude Sonnet 5.5 / Qwen 3.8 27B | 16 / 20 | 0.388 | No |
In short, on SARA:
- With the statute text, all three models got most questions right. Claude Sonnet 5.5 and Qwen 3.8 27B did not differ significantly; Claude Opus 5.5 did significantly better than Qwen.
- Without the text, Claude Sonnet 5.5 and Qwen did significantly worse than with it, and every pair of models differed significantly. Claude Opus 5.5 did not do significantly worse without the text. Web search, without the text, made no significant difference for any model.
- With our rules as a tool and no statute text, Claude Sonnet 5.5 and Qwen each did about as well as with the text (no significant difference) and significantly better than without it, and the two did not differ significantly from each other. The questions they still missed come from their reading of the facts into our rules: given our own translation of the facts, the same rules answer all 120.
On the questions to decline, the models failed between 8 and 24 of the 103 on average, and most differences were not significant. Two were: Qwen did significantly worse with our rules as a tool than with the statute text, and Claude Opus 5.5 did significantly better than Qwen with web search. On the Singapore questions, Qwen with our rules as a tool answered all 31 correctly in every run, and failed about half of them without.
A later version of our rules tool
Since round 4 we have kept improving the tool that lets a model use our rules. To check that work fairly, we first split the SARA questions and the questions to decline into two halves: one to develop the tool on, and one held out, never used to develop it. On the 107 held-out questions, Qwen 3.8 27B with the later version of the tool failed 7 and 4 in its 2 runs, a mean of 5.5. On the same questions, the round-4 tool failed 22, 16 and 16 in its 3 runs, a mean of 18.
By question set and kind of failure
| Questions | Tool | Failed, per run | Confidently wrong, per run | Failed to answer, per run | Blank, per run |
|---|---|---|---|---|---|
| SARA, US tax (58) | Round 4 version (3 runs) | 12, 6, 10 | 5, 4, 6 | 1, 1, 3 | 6, 1, 1 |
| SARA, US tax (58) | Later version (2 runs) | 4, 1 | 1, 0 | 2, 1 | 1, 0 |
| Questions to decline, US tax (49) | Round 4 version (3 runs) | 10, 10, 6 | 4, 10, 6 | 0, 0, 0 | 6, 0, 0 |
| Questions to decline, US tax (49) | Later version (2 runs) | 3, 3 | 3, 3 | 0, 0 | 0, 0 |
The main test, fixed before the runs, compares all 107 questions with the round-4 tool’s outcome in most of its runs (exact McNemar test). In the first run, 11 went from failed to right and 3 the other way, p = 0.057; in the second, 12 and 1, p = 0.0034. Counting a question as right only if both runs got it right: 11 and 3, p = 0.057. So the difference is significant in one of the two runs, but not significant when both runs must be right. We report all three rather than pick one. By question set, adjusted for the two comparisons (Holm), none is significant in either run: on the SARA questions, p = 0.45 and 0.062; on the questions to decline, p = 0.25 and 0.125.
The version tested at the previous checkpoint failed 7 of these same questions: 1 on the SARA questions and 6 on the questions to decline. The latest version failed 4 then 1 on the SARA questions, and 3 then 3 on the questions to decline in its two runs: the higher SARA count in the first run looks like run-to-run variation.
- These are half of the questions, not all of them, so they cannot be compared directly with the round-4 table above.
- The later version had 2 runs, and the round-4 version 3; fewer runs say less about how much results vary.
- The split came after the first steps of this work. Two early versions of the tool were shaped partly by results over all the questions, and one feature, trying other values for a fact stated as not known, mirrors how the “missing facts” questions were made.
- Two open questions were moved from the held-out half to the development half after the first checkpoint, so this checkpoint has 107 questions.
- This is the third look at the held-out half (checkpoint 2 and a second run of the same version); we log every look before it runs.
Claude Opus 5.5 with the later tool
Claude Opus 5.5 was not run with our rules in round 4. With the later version of the tool, on all 223 SARA questions and questions to decline, it failed 3, 4, 5 in its 3 runs, hosted by the vendor.
| Questions | Failed, per run | Confidently wrong, per run | Failed to answer, per run | Blank, per run | Median model time |
|---|---|---|---|---|---|
| SARA, US tax (120) | 0, 1, 0 | 0, 1, 0 | 0, 0, 0 | 0, 0, 0 | 8.5 s |
| Questions to decline, US tax (103) | 3, 3, 5 | 3, 3, 5 | 0, 0, 0 | 0, 0, 0 | 8.9 s |
- Not part of the round-4 comparison: there, Claude Sonnet 5.5 and Qwen used the round-4 version of the tool.
- The later tool was developed with Qwen on half of these questions; Claude Opus 5.5 took no part in developing it. It also runs on a corrected version of our SARA rules, a fix to the head-of-household rules; our rules alone still answer all 120 SARA questions with it.
- We give no figure for Qwen with the later tool over all 223 questions: half of them were used to develop the tool, so such a figure would mix tuned and untuned questions.
- The three repeats of each question ran one after another, so the times are from the first repeat only.
What to keep in mind about these runs
- Conflict of interest: these runs were set up by Claude, Anthropic’s model, which we use in our own work, so Anthropic’s models were set up by one of their own. To limit this, no model judges any answer: a fixed rule grades every reply, and the set-up for the hosted models was written down before any of their runs, the same for each.
- Grading: each model ends its reply with its answer in a fixed format, and a fixed rule compares it with the source’s answer. No second model read any reply; a reply with no usable answer line counts as blank.
- Where they ran: the Claude models on Anthropic’s servers, so their times include the trip over the internet; Qwen on our own GPUs, shared with other work, so its times include queueing. Each run sent 4 questions at once. Claude Opus 5.5’s three repeats of each question ran one after another, so the later repeats read the start of the prompt from Anthropic’s cache; that changes cost and speed, not the answers, and its times are from the first repeat only. Times depend on the hardware serving each model, so compare them with care.
- Settings differ where the vendor decides: Anthropic’s service does not accept a temperature, and its models’ thinking cannot be turned off, so the Claude models ran at their defaults (effort high for Claude Sonnet 5.5, medium for Claude Opus 5.5). Qwen ran at temperature 0.2, a little randomness, with effort medium. That randomness is why runs differ.
- One of Qwen’s runs with web search was run again, because other work had overloaded our GPUs during it and many questions ran out of time; the rules we set ourselves allow a re-run only for a failure of the infrastructure, never because of the result. The page shows the re-run.
- SARA has been public since 2020, so the models may have seen its questions in training. SARA’s statute sections are edited excerpts of the US tax code; without their text, a model must recall or find the real code, which can differ, so those scores also measure that gap.
- With our rules as a tool, the answers rest on our rules as well as on the model’s reading of the facts, so the caveats on our own results above apply to them too. It ran our rules on Trealla Prolog v3.15.20 and Clausal Prolog 1.4.0, the versions installed when these runs began; our rules alone were later run on Trealla Prolog v3.15.28, with the same results. The tool is the same version as in round 2; a later version, tested on questions kept apart from its development, is shown above.
- Model time is the time spent in the model’s own calls. Time running tools and waiting for a turn at the search services is recorded apart and left out.
An earlier round: one model, no way to decline
In round 2 (compared on 2026-11-21), we asked Qwen 3.8 27B the SARA and Singapore questions in up to 5 ways, three times each: the four ways above, and with both the statute text and web search (SARA only). The model was not offered a way to decline, so “failed to answer” does not apply, and everything not right and not blank counts as confidently wrong. These runs are not mixed with round 4: the instructions differed.
| Model | Law named, no text, no tools | Law named, web search | Statute text given | Statute text and web search | Our rules as a tool |
|---|---|---|---|---|---|
| Qwen 3.8 27Bon our own infrastructure | 51.7%: failed 62 of 120, ranging 61 to 64 over 3 runs; confidently wrong 58.3, failed to answer 0, blank 3.7 | 52.2%: failed 62.7 of 120, ranging 59 to 65 over 3 runs; confidently wrong 38, failed to answer 0, blank 24.7 | 10.8%: failed 13 of 120, ranging 13 to 13 over 3 runs; confidently wrong 13, failed to answer 0, blank 0 | 15.8%: failed 19 of 120, ranging 18 to 20 over 3 runs; confidently wrong 18.7, failed to answer 0, blank 0.3 | 12.2%: failed 14.7 of 120, ranging 12 to 16 over 3 runs; confidently wrong 12.7, failed to answer 0, blank 2 |
| Model | Law named, no text, no tools | Law named, web search | Our rules as a tool |
|---|---|---|---|
| Qwen 3.8 27Bon our own infrastructure | 51.6%: failed 16 of 31, ranging 15 to 17 over 3 runs; confidently wrong 16, failed to answer 0, blank 0 | 50.5%: failed 15.7 of 31, ranging 15 to 17 over 3 runs; confidently wrong 12.7, failed to answer 0, blank 3 | 0%: failed 0 of 31, ranging 0 to 0 over 3 runs; confidently wrong 0, failed to answer 0, blank 0 |
Run by run, and the paired tests
| Questions | How it was asked | Failed, mean of 3 runs | Range | Confidently wrong, per run | Blank, per run | Median model time |
|---|---|---|---|---|---|---|
| SARA, US tax (120) | Law named, no text, no tools | 62 (51.7%) | 61 to 64 | 62, 56, 57 | 2, 5, 4 | 28.7 s |
| SARA, US tax (120) | Law named, web search | 62.7 (52.2%) | 59 to 65 | 40, 37, 37 | 25, 22, 27 | 76.6 s |
| SARA, US tax (120) | Statute text given | 13 (10.8%) | 13 to 13 | 13, 13, 13 | 0, 0, 0 | 23.4 s |
| SARA, US tax (120) | Statute text and web search | 19 (15.8%) | 18 to 20 | 18, 19, 19 | 0, 1, 0 | 38 s |
| SARA, US tax (120) | Our rules as a tool, on Trealla Prolog v3.15.20 | 14.7 (12.2%) | 12 to 16 | 10, 14, 14 | 2, 2, 2 | 69.4 s |
| Singapore regulators (31) | Law named, no text, no tools | 16 (51.6%) | 15 to 17 | 17, 15, 16 | 0, 0, 0 | 35.8 s |
| Singapore regulators (31) | Law named, web search | 15.7 (50.5%) | 15 to 17 | 13, 12, 13 | 2, 3, 4 | 102.4 s |
| Singapore regulators (31) | Our rules as a tool, on Clausal Prolog 1.4.0 | 0 (0%) | 0 to 0 | 0, 0, 0 | 0, 0, 0 | 33.5 s |
| Questions | Compared | Failed in most runs | Adjusted p | Significant |
|---|---|---|---|---|
| SARA | Law named, no text, no tools / Statute text given | 63 / 12 | 3e-12 | Yes |
| SARA | Law named, no text, no tools / Statute text and web search | 63 / 20 | 3.54e-9 | Yes |
| SARA | Law named, no text, no tools / Our rules as a tool | 63 / 11 | 4.43e-13 | Yes |
| SARA | Law named, no text, no tools / Law named, web search | 63 / 60 | 1 | No |
| SARA | Statute text given / Statute text and web search | 12 / 20 | 0.0312 | Yes |
| SARA | Statute text given / Our rules as a tool | 12 / 11 | 1 | No |
| SARA | Statute text given / Law named, web search | 12 / 60 | 8.15e-13 | Yes |
| SARA | Statute text and web search / Our rules as a tool | 20 / 11 | 0.279 | No |
| SARA | Statute text and web search / Law named, web search | 20 / 60 | 6.76e-10 | Yes |
| SARA | Our rules as a tool / Law named, web search | 11 / 60 | 2.54e-12 | Yes |
| Singapore | Law named, no text, no tools / Our rules as a tool | 15 / 0 | 0.000183 | Yes |
| Singapore | Law named, no text, no tools / Law named, web search | 15 / 15 | 1 | No |
| Singapore | Our rules as a tool / Law named, web search | 0 / 15 | 0.000183 | Yes |
In short: with the statute text, the model got most SARA questions right; without it, about half. Searching the web made no significant difference without the text, and added to the text it did significantly worse. With our rules as a tool and no statute text, it scored about the same on SARA as with the text (no significant difference), and answered every Singapore question correctly in every run.
- Grading: only a reply whose answer line could not be read went to a second model to read: 14 replies, all in SARA with web search, and we checked each of those by hand. Separately, 193 replies were graded by hand by a reviewer who had not seen the rule’s grades, and every one agreed.
- With web search but no statute text, many SARA replies ended with no answer: the model tried to recall the code’s tables and its reasoning was stopped before it answered.
- The model was served for several runs at once, up to 8 questions at a time, so the times include queueing. Every run used temperature 0.2.
The questions
SARA: US federal income tax
- Source: The test split of SARA (StAtutory Reasoning Assessment), Holzenberger, Blair-Stanek and Van Durme, Johns Hopkins University, 2020.
- Law: US Internal Revenue Code sections 1, 2, 63, 68, 151, 152, 3301, 3306 and 7703, as edited for SARA.
- Questions: 100 entailment questions (does a statement follow from the facts and the statute?) and 20 tax amounts.
- Answered by our ISO Prolog formalisation of the SARA sections.
Singapore regulators' worked examples
- Source: Worked examples published by IRAS, the PDPC and MAS.
- Law: Goods and Services Tax Act (registration), Personal Data Protection Act Part 6A (breach notification), Securities and Futures Act ss 272A and 272B (small offers and private placements).
- Questions: 31 decisions with their dates and amounts: 14 GST, 1 PDPA, 16 securities offers.
- Answered by our Clausal Prolog rulebases for the three areas.
Questions to decline: US tax (SARA-based)
- Source: 103 questions by Neurosymbolic Solutions, based on SARA (Holzenberger, Blair-Stanek and Van Durme, Johns Hopkins University, 2020) and its edited sections of the US Internal Revenue Code. In each, declining is the right response.
- How they were made: 38 “missing facts” questions are SARA cases with one amount or date stated as not known; running our rules with other values proved that the answer depends on it. 65 were written by us and reviewed independently: 27 where the law does not apply (for example a corporation’s tax under section 1, which taxes individuals), 30 resting on an impossible or contradictory premise (a pet with an income, 30 February, a child born before her parent), and 8 open questions the statute does not decide (pending a lawyer’s review). Where a plain answer is also legally right (for example “it does not follow”), it counts as correct; an answer that treats the law as applying counts as confidently wrong.
- On this set declining is always right, so “failed to answer” cannot happen: the failures are answering anyway (confidently wrong) and blanks.
Each question is stored twice: in English, and as a query to the logic program. The answer is the one the source gives. SARA is public. We keep our own question files and per-question results private, so that the cases that are not public stay unseen.
How we measured
- Machine: AMD EPYC 7B13 64-Core Processor, 32 logical CPUs, 125.7 GiB of memory. Each engine used one thread. No GPU was used.
- Engines: Clausal Prolog 1.4.0, Ichiban Prolog v1.2.2, Scryer Prolog v0.10.0-397-gb64ddd38, Trealla Prolog v3.15.28. The SARA rules are plain ISO Prolog; Clausal ran them through its direct import of ISO Prolog files, which is still experimental.
- Correct: every answer the engine gives matches the source. Wrong: an answer differs. No answer: the engine gives none, declines to decide, fails with an error, or runs out of time (30 seconds).
- A time is for answering one question. It leaves out starting the engine and loading the rules, which takes between a hundredth of a second and two and a half seconds per set of rules.
- Times are close, not exact, across engines: Trealla times itself by the clock, Scryer by processor time, Clausal is timed from Python around each call, and Ichiban by our driver’s clock, in whole milliseconds.
What to keep in mind
- The SARA test questions were visible while our SARA rules were being written: their score was checked along the way, and one fix was made for a test question. The first run that had not seen them, before the federal unemployment tax sections were added, scored 96 of the 98 test questions it covered.
- The Singapore set is small, 31 questions in three areas. Where a regulator gives only a range, such as "more than $1 million", we picked a figure inside it.
- Not measured yet: energy per decision.