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.

SARA, US tax: 120 questions
SystemFailedConfidently wrongFailed to answerBlankRuns
Our rules alone: Clausal Prolog 1.4.00 (0%)0 (0%)001
Our rules alone: Trealla Prolog v3.15.280 (0%)0 (0%)001
Our rules alone: Scryer Prolog v0.10.0-397-gb64ddd380 (0%)0 (0%)001
Our rules alone: Ichiban Prolog v1.2.21 (0.8%)0 (0%)011
Claude Opus 5.5, hosted by the vendor: Law named, no text, no tools15.7 (13.1%), 15 to 1715.7 (13.1%)003
Claude Opus 5.5, hosted by the vendor: Law named, web search13.7 (11.4%), 10 to 1613.7 (11.4%)003
Claude Opus 5.5, hosted by the vendor: Statute text given6.3 (5.3%), 6 to 76.3 (5.3%)003
Claude Sonnet 5.5, hosted by the vendor: Law named, no text, no tools37.7 (31.4%), 33 to 4137.7 (31.4%)003
Claude Sonnet 5.5, hosted by the vendor: Law named, web search36.7 (30.6%), 36 to 3836.7 (30.6%)003
Claude Sonnet 5.5, hosted by the vendor: Statute text given10.3 (8.6%), 9 to 1210 (8.3%)0.303
Claude Sonnet 5.5, hosted by the vendor: Our rules as a tool, on Trealla Prolog v3.15.208 (6.7%), 7 to 108 (6.7%)003
Qwen 3.8 27B, on our own infrastructure: Law named, no text, no tools75.3 (62.8%), 72 to 7949 (40.8%)242.33
Qwen 3.8 27B, on our own infrastructure: Law named, web search63.7 (53.1%), 58 to 6926.7 (22.2%)15223
Qwen 3.8 27B, on our own infrastructure: Statute text given17.3 (14.4%), 16 to 2015 (12.5%)20.33
Qwen 3.8 27B, on our own infrastructure: Our rules as a tool, on Trealla Prolog v3.15.2017.3 (14.4%), 14 to 2112 (10%)2.333
Singapore regulators: 31 questions
SystemFailedConfidently wrongFailed to answerBlankRuns
Our rules alone: Clausal Prolog 1.4.00 (0%)0 (0%)001
Qwen 3.8 27B, on our own infrastructure: Law named, no text, no tools16 (51.6%), 15 to 1714 (45.2%)203
Qwen 3.8 27B, on our own infrastructure: Law named, web search15.7 (50.5%), 14 to 1713.3 (43%)0.71.73
Qwen 3.8 27B, on our own infrastructure: Our rules as a tool, on Clausal Prolog 1.4.00 (0%)0 (0%)003
Questions to decline: US tax (SARA-based): 103 questions
SystemFailedConfidently wrongFailed to answerBlankRuns
Claude Opus 5.5, hosted by the vendor: Law named, no text, no tools9.7 (9.4%), 9 to 109.7 (9.4%)003
Claude Opus 5.5, hosted by the vendor: Law named, web search10.3 (10%), 9 to 1110.3 (10%)003
Claude Opus 5.5, hosted by the vendor: Statute text given8.3 (8.1%), 7 to 118.3 (8.1%)003
Claude Sonnet 5.5, hosted by the vendor: Law named, no text, no tools11.7 (11.3%), 10 to 1311.7 (11.3%)003
Claude Sonnet 5.5, hosted by the vendor: Law named, web search16 (15.5%), 14 to 1716 (15.5%)003
Claude Sonnet 5.5, hosted by the vendor: Statute text given10.7 (10.4%), 9 to 1310.7 (10.4%)003
Claude Sonnet 5.5, hosted by the vendor: Our rules as a tool, on Trealla Prolog v3.15.2016 (15.5%), 13 to 1916 (15.5%)003
Qwen 3.8 27B, on our own infrastructure: Law named, no text, no tools16 (15.5%), 15 to 1715.3 (14.9%)00.73
Qwen 3.8 27B, on our own infrastructure: Law named, web search22 (21.4%), 21 to 2418 (17.5%)043
Qwen 3.8 27B, on our own infrastructure: Statute text given11.3 (11%), 10 to 1311.3 (11%)003
Qwen 3.8 27B, on our own infrastructure: Our rules as a tool, on Trealla Prolog v3.15.2023.7 (23%), 19 to 2719.3 (18.8%)04.33
  • “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.

QuestionsEngineConfidently wrongBlankCorrectMedian time95th percentileSlowest
SARA, US tax (120)Clausal Prolog 1.4.000120 (100%)0.35 ms87.6 ms14369 ms
SARA, US tax (120)Trealla Prolog v3.15.2800120 (100%)0.01 ms3.1 ms474 ms
SARA, US tax (120)Scryer Prolog v0.10.0-397-gb64ddd3800120 (100%)0.13 ms37.6 ms4267 ms
SARA, US tax (120)Ichiban Prolog v1.2.2101119 (99.2%)under 1 ms245 ms30 s (time limit)
Singapore regulators (31)Clausal Prolog 1.4.00031 (100%)11.08 ms14.9 ms15 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.

SARA, US tax: share of the 120 questions failed, mean of 3 runs
ModelLaw named, no text, no toolsLaw named, web searchStatute text givenOur rules as a tool
Claude Opus 5.5hosted by the vendor13.1%: failed 15.7 of 120, ranging 15 to 17 over 3 runs; confidently wrong 15.7, failed to answer 0, blank 011.4%: failed 13.7 of 120, ranging 10 to 16 over 3 runs; confidently wrong 13.7, failed to answer 0, blank 05.3%: failed 6.3 of 120, ranging 6 to 7 over 3 runs; confidently wrong 6.3, failed to answer 0, blank 0not run
Claude Sonnet 5.5hosted by the vendor31.4%: failed 37.7 of 120, ranging 33 to 41 over 3 runs; confidently wrong 37.7, failed to answer 0, blank 030.6%: failed 36.7 of 120, ranging 36 to 38 over 3 runs; confidently wrong 36.7, failed to answer 0, blank 08.6%: failed 10.3 of 120, ranging 9 to 12 over 3 runs; confidently wrong 10, failed to answer 0.3, blank 06.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 infrastructure62.8%: failed 75.3 of 120, ranging 72 to 79 over 3 runs; confidently wrong 49, failed to answer 24, blank 2.353.1%: failed 63.7 of 120, ranging 58 to 69 over 3 runs; confidently wrong 26.7, failed to answer 15, blank 2214.4%: failed 17.3 of 120, ranging 16 to 20 over 3 runs; confidently wrong 15, failed to answer 2, blank 0.314.4%: failed 17.3 of 120, ranging 14 to 21 over 3 runs; confidently wrong 12, failed to answer 2.3, blank 3
Questions to decline, US tax: share of the 103 questions failed, mean of 3 runs
ModelLaw named, no text, no toolsLaw named, web searchStatute text givenOur rules as a tool
Claude Opus 5.5hosted by the vendor9.4%: failed 9.7 of 103, ranging 9 to 10 over 3 runs; confidently wrong 9.7, failed to answer 0, blank 010%: failed 10.3 of 103, ranging 9 to 11 over 3 runs; confidently wrong 10.3, failed to answer 0, blank 08.1%: failed 8.3 of 103, ranging 7 to 11 over 3 runs; confidently wrong 8.3, failed to answer 0, blank 0not run
Claude Sonnet 5.5hosted by the vendor11.3%: failed 11.7 of 103, ranging 10 to 13 over 3 runs; confidently wrong 11.7, failed to answer 0, blank 015.5%: failed 16 of 103, ranging 14 to 17 over 3 runs; confidently wrong 16, failed to answer 0, blank 010.4%: failed 10.7 of 103, ranging 9 to 13 over 3 runs; confidently wrong 10.7, failed to answer 0, blank 015.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 infrastructure15.5%: failed 16 of 103, ranging 15 to 17 over 3 runs; confidently wrong 15.3, failed to answer 0, blank 0.721.4%: failed 22 of 103, ranging 21 to 24 over 3 runs; confidently wrong 18, failed to answer 0, blank 411%: failed 11.3 of 103, ranging 10 to 13 over 3 runs; confidently wrong 11.3, failed to answer 0, blank 023%: failed 23.7 of 103, ranging 19 to 27 over 3 runs; confidently wrong 19.3, failed to answer 0, blank 4.3
Singapore regulators: share of the 31 questions failed, mean of 3 runs
ModelLaw named, no text, no toolsLaw named, web searchOur rules as a tool
Qwen 3.8 27Bon our own infrastructure51.6%: failed 16 of 31, ranging 15 to 17 over 3 runs; confidently wrong 14, failed to answer 2, blank 050.5%: failed 15.7 of 31, ranging 14 to 17 over 3 runs; confidently wrong 13.3, failed to answer 0.7, blank 1.70%: 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
QuestionsModelHow it was askedFailed, mean of 3 runsRangeConfidently wrong, per runFailed to answer, per runBlank, per runMedian model time
SARA, US tax (120)Claude Opus 5.5, hosted by the vendorLaw named, no text, no tools15.7 (13.1%)15 to 1715, 15, 170, 0, 00, 0, 06.1 s
SARA, US tax (120)Claude Opus 5.5, hosted by the vendorLaw named, web search13.7 (11.4%)10 to 1610, 16, 150, 0, 00, 0, 06.7 s
SARA, US tax (120)Claude Opus 5.5, hosted by the vendorStatute text given6.3 (5.3%)6 to 77, 6, 60, 0, 00, 0, 05.2 s
SARA, US tax (120)Claude Sonnet 5.5, hosted by the vendorLaw named, no text, no tools37.7 (31.4%)33 to 4139, 33, 410, 0, 00, 0, 010.3 s
SARA, US tax (120)Claude Sonnet 5.5, hosted by the vendorLaw named, web search36.7 (30.6%)36 to 3838, 36, 360, 0, 00, 0, 09.1 s
SARA, US tax (120)Claude Sonnet 5.5, hosted by the vendorStatute text given10.3 (8.6%)9 to 1210, 11, 90, 1, 00, 0, 04.4 s
SARA, US tax (120)Claude Sonnet 5.5, hosted by the vendorOur rules as a tool, on Trealla Prolog v3.15.208 (6.7%)7 to 1010, 7, 70, 0, 00, 0, 07 s
SARA, US tax (120)Qwen 3.8 27B, on our own infrastructureLaw named, no text, no tools75.3 (62.8%)72 to 7953, 45, 4924, 26, 222, 4, 182.6 s
SARA, US tax (120)Qwen 3.8 27B, on our own infrastructureLaw named, web search63.7 (53.1%)58 to 6919, 34, 2713, 15, 1726, 20, 20128 s
SARA, US tax (120)Qwen 3.8 27B, on our own infrastructureStatute text given17.3 (14.4%)16 to 2015, 15, 151, 4, 10, 1, 064.9 s
SARA, US tax (120)Qwen 3.8 27B, on our own infrastructureOur rules as a tool, on Trealla Prolog v3.15.2017.3 (14.4%)14 to 2113, 10, 132, 2, 36, 2, 196.2 s
Questions to decline, US tax (103)Claude Opus 5.5, hosted by the vendorLaw named, no text, no tools9.7 (9.4%)9 to 109, 10, 100, 0, 00, 0, 06.1 s
Questions to decline, US tax (103)Claude Opus 5.5, hosted by the vendorLaw named, web search10.3 (10%)9 to 1111, 11, 90, 0, 00, 0, 06.5 s
Questions to decline, US tax (103)Claude Opus 5.5, hosted by the vendorStatute text given8.3 (8.1%)7 to 1111, 7, 70, 0, 00, 0, 05.9 s
Questions to decline, US tax (103)Claude Sonnet 5.5, hosted by the vendorLaw named, no text, no tools11.7 (11.3%)10 to 1313, 12, 100, 0, 00, 0, 05.8 s
Questions to decline, US tax (103)Claude Sonnet 5.5, hosted by the vendorLaw named, web search16 (15.5%)14 to 1717, 14, 170, 0, 00, 0, 06.3 s
Questions to decline, US tax (103)Claude Sonnet 5.5, hosted by the vendorStatute text given10.7 (10.4%)9 to 1310, 13, 90, 0, 00, 0, 05.4 s
Questions to decline, US tax (103)Claude Sonnet 5.5, hosted by the vendorOur rules as a tool, on Trealla Prolog v3.15.2016 (15.5%)13 to 1913, 16, 190, 0, 00, 0, 06.5 s
Questions to decline, US tax (103)Qwen 3.8 27B, on our own infrastructureLaw named, no text, no tools16 (15.5%)15 to 1716, 15, 150, 0, 01, 0, 151.2 s
Questions to decline, US tax (103)Qwen 3.8 27B, on our own infrastructureLaw named, web search22 (21.4%)21 to 2420, 14, 200, 0, 04, 7, 127 s
Questions to decline, US tax (103)Qwen 3.8 27B, on our own infrastructureStatute text given11.3 (11%)10 to 1310, 11, 130, 0, 00, 0, 072.2 s
Questions to decline, US tax (103)Qwen 3.8 27B, on our own infrastructureOur rules as a tool, on Trealla Prolog v3.15.2023.7 (23%)19 to 2715, 24, 190, 0, 010, 3, 074.5 s
Singapore regulators (31)Qwen 3.8 27B, on our own infrastructureLaw named, no text, no tools16 (51.6%)15 to 1715, 14, 132, 2, 20, 0, 075.8 s
Singapore regulators (31)Qwen 3.8 27B, on our own infrastructureLaw named, web search15.7 (50.5%)14 to 1713, 13, 141, 1, 02, 3, 0163.5 s
Singapore regulators (31)Qwen 3.8 27B, on our own infrastructureOur rules as a tool, on Clausal Prolog 1.4.00 (0%)0 to 00, 0, 00, 0, 00, 0, 026 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
Between ways of asking, for each model
QuestionsModelComparedFailed in most runsAdjusted pSignificant
SARAClaude Opus 5.5Law named, no text, no tools / Statute text given15 / 60.0674No
SARAClaude Opus 5.5Law named, no text, no tools / Law named, web search15 / 110.438No
SARAClaude Opus 5.5Statute text given / Law named, web search6 / 110.438No
SARAClaude Sonnet 5.5Law named, no text, no tools / Statute text given37 / 100.00000701Yes
SARAClaude Sonnet 5.5Law named, no text, no tools / Our rules as a tool37 / 80.00000251Yes
SARAClaude Sonnet 5.5Law named, no text, no tools / Law named, web search37 / 351No
SARAClaude Sonnet 5.5Statute text given / Our rules as a tool10 / 81No
SARAClaude Sonnet 5.5Statute text given / Law named, web search10 / 350.0000671Yes
SARAClaude Sonnet 5.5Our rules as a tool / Law named, web search8 / 350.00000701Yes
SARAQwen 3.8 27BLaw named, no text, no tools / Statute text given73 / 161.96e-13Yes
SARAQwen 3.8 27BLaw named, no text, no tools / Our rules as a tool73 / 155.08e-15Yes
SARAQwen 3.8 27BLaw named, no text, no tools / Law named, web search73 / 600.0819No
SARAQwen 3.8 27BStatute text given / Our rules as a tool16 / 151No
SARAQwen 3.8 27BStatute text given / Law named, web search16 / 603.92e-10Yes
SARAQwen 3.8 27BOur rules as a tool / Law named, web search15 / 602.82e-10Yes
To declineClaude Opus 5.5Law named, no text, no tools / Statute text given9 / 81No
To declineClaude Opus 5.5Law named, no text, no tools / Law named, web search9 / 91No
To declineClaude Opus 5.5Statute text given / Law named, web search8 / 91No
To declineClaude Sonnet 5.5Law named, no text, no tools / Statute text given11 / 101No
To declineClaude Sonnet 5.5Law named, no text, no tools / Our rules as a tool11 / 160.898No
To declineClaude Sonnet 5.5Law named, no text, no tools / Law named, web search11 / 160.375No
To declineClaude Sonnet 5.5Statute text given / Our rules as a tool10 / 160.898No
To declineClaude Sonnet 5.5Statute text given / Law named, web search10 / 160.898No
To declineClaude Sonnet 5.5Our rules as a tool / Law named, web search16 / 161No
To declineQwen 3.8 27BLaw named, no text, no tools / Statute text given17 / 120.84No
To declineQwen 3.8 27BLaw named, no text, no tools / Our rules as a tool17 / 230.84No
To declineQwen 3.8 27BLaw named, no text, no tools / Law named, web search17 / 201No
To declineQwen 3.8 27BStatute text given / Our rules as a tool12 / 230.00586Yes
To declineQwen 3.8 27BStatute text given / Law named, web search12 / 200.193No
To declineQwen 3.8 27BOur rules as a tool / Law named, web search23 / 201No
SingaporeQwen 3.8 27BLaw named, no text, no tools / Our rules as a tool17 / 00.0000458Yes
SingaporeQwen 3.8 27BLaw named, no text, no tools / Law named, web search17 / 140.25No
SingaporeQwen 3.8 27BOur rules as a tool / Law named, web search0 / 140.000244Yes
Between models, asked the same way
QuestionsHow it was askedComparedFailed in most runsAdjusted pSignificant
SARALaw named, no text, no toolsClaude Opus 5.5 / Claude Sonnet 5.515 / 370.000313Yes
SARALaw named, no text, no toolsClaude Opus 5.5 / Qwen 3.8 27B15 / 736.25e-14Yes
SARAStatute text givenClaude Opus 5.5 / Claude Sonnet 5.56 / 100.219No
SARAStatute text givenClaude Opus 5.5 / Qwen 3.8 27B6 / 160.019Yes
SARALaw named, web searchClaude Opus 5.5 / Claude Sonnet 5.511 / 350.0000169Yes
SARALaw named, web searchClaude Opus 5.5 / Qwen 3.8 27B11 / 601.77e-11Yes
SARALaw named, no text, no toolsClaude Sonnet 5.5 / Qwen 3.8 27B37 / 732.02e-7Yes
SARAStatute text givenClaude Sonnet 5.5 / Qwen 3.8 27B10 / 160.219No
SARAOur rules as a toolClaude Sonnet 5.5 / Qwen 3.8 27B8 / 150.0923No
SARALaw named, web searchClaude Sonnet 5.5 / Qwen 3.8 27B35 / 600.0000169Yes
To declineLaw named, no text, no toolsClaude Opus 5.5 / Claude Sonnet 5.59 / 110.688No
To declineLaw named, no text, no toolsClaude Opus 5.5 / Qwen 3.8 27B9 / 170.0645No
To declineStatute text givenClaude Opus 5.5 / Claude Sonnet 5.58 / 101No
To declineStatute text givenClaude Opus 5.5 / Qwen 3.8 27B8 / 121No
To declineLaw named, web searchClaude Opus 5.5 / Claude Sonnet 5.59 / 160.0781No
To declineLaw named, web searchClaude Opus 5.5 / Qwen 3.8 27B9 / 200.0103Yes
To declineLaw named, no text, no toolsClaude Sonnet 5.5 / Qwen 3.8 27B11 / 170.219No
To declineStatute text givenClaude Sonnet 5.5 / Qwen 3.8 27B10 / 121No
To declineOur rules as a toolClaude Sonnet 5.5 / Qwen 3.8 27B16 / 230.167No
To declineLaw named, web searchClaude Sonnet 5.5 / Qwen 3.8 27B16 / 200.388No

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
Held-out questions: Qwen 3.8 27B, our rules as a tool
QuestionsToolFailed, per runConfidently wrong, per runFailed to answer, per runBlank, per run
SARA, US tax (58)Round 4 version (3 runs)12, 6, 105, 4, 61, 1, 36, 1, 1
SARA, US tax (58)Later version (2 runs)4, 11, 02, 11, 0
Questions to decline, US tax (49)Round 4 version (3 runs)10, 10, 64, 10, 60, 0, 06, 0, 0
Questions to decline, US tax (49)Later version (2 runs)3, 33, 30, 00, 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.

Claude Opus 5.5, our rules as a tool (later version)
QuestionsFailed, per runConfidently wrong, per runFailed to answer, per runBlank, per runMedian model time
SARA, US tax (120)0, 1, 00, 1, 00, 0, 00, 0, 08.5 s
Questions to decline, US tax (103)3, 3, 53, 3, 50, 0, 00, 0, 08.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.

SARA, US tax: share of the 120 questions failed, mean of 3 runs
ModelLaw named, no text, no toolsLaw named, web searchStatute text givenStatute text and web searchOur rules as a tool
Qwen 3.8 27Bon our own infrastructure51.7%: failed 62 of 120, ranging 61 to 64 over 3 runs; confidently wrong 58.3, failed to answer 0, blank 3.752.2%: failed 62.7 of 120, ranging 59 to 65 over 3 runs; confidently wrong 38, failed to answer 0, blank 24.710.8%: failed 13 of 120, ranging 13 to 13 over 3 runs; confidently wrong 13, failed to answer 0, blank 015.8%: failed 19 of 120, ranging 18 to 20 over 3 runs; confidently wrong 18.7, failed to answer 0, blank 0.312.2%: failed 14.7 of 120, ranging 12 to 16 over 3 runs; confidently wrong 12.7, failed to answer 0, blank 2
Singapore regulators: share of the 31 questions failed, mean of 3 runs
ModelLaw named, no text, no toolsLaw named, web searchOur rules as a tool
Qwen 3.8 27Bon our own infrastructure51.6%: failed 16 of 31, ranging 15 to 17 over 3 runs; confidently wrong 16, failed to answer 0, blank 050.5%: failed 15.7 of 31, ranging 15 to 17 over 3 runs; confidently wrong 12.7, failed to answer 0, blank 30%: 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
QuestionsHow it was askedFailed, mean of 3 runsRangeConfidently wrong, per runBlank, per runMedian model time
SARA, US tax (120)Law named, no text, no tools62 (51.7%)61 to 6462, 56, 572, 5, 428.7 s
SARA, US tax (120)Law named, web search62.7 (52.2%)59 to 6540, 37, 3725, 22, 2776.6 s
SARA, US tax (120)Statute text given13 (10.8%)13 to 1313, 13, 130, 0, 023.4 s
SARA, US tax (120)Statute text and web search19 (15.8%)18 to 2018, 19, 190, 1, 038 s
SARA, US tax (120)Our rules as a tool, on Trealla Prolog v3.15.2014.7 (12.2%)12 to 1610, 14, 142, 2, 269.4 s
Singapore regulators (31)Law named, no text, no tools16 (51.6%)15 to 1717, 15, 160, 0, 035.8 s
Singapore regulators (31)Law named, web search15.7 (50.5%)15 to 1713, 12, 132, 3, 4102.4 s
Singapore regulators (31)Our rules as a tool, on Clausal Prolog 1.4.00 (0%)0 to 00, 0, 00, 0, 033.5 s
Between ways of asking
QuestionsComparedFailed in most runsAdjusted pSignificant
SARALaw named, no text, no tools / Statute text given63 / 123e-12Yes
SARALaw named, no text, no tools / Statute text and web search63 / 203.54e-9Yes
SARALaw named, no text, no tools / Our rules as a tool63 / 114.43e-13Yes
SARALaw named, no text, no tools / Law named, web search63 / 601No
SARAStatute text given / Statute text and web search12 / 200.0312Yes
SARAStatute text given / Our rules as a tool12 / 111No
SARAStatute text given / Law named, web search12 / 608.15e-13Yes
SARAStatute text and web search / Our rules as a tool20 / 110.279No
SARAStatute text and web search / Law named, web search20 / 606.76e-10Yes
SARAOur rules as a tool / Law named, web search11 / 602.54e-12Yes
SingaporeLaw named, no text, no tools / Our rules as a tool15 / 00.000183Yes
SingaporeLaw named, no text, no tools / Law named, web search15 / 151No
SingaporeOur rules as a tool / Law named, web search0 / 150.000183Yes

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

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.

See it on your own scenarios

GDPR breach notification, our first product

Back to the home page Why this matters