🇩🇪 DE Contact

Legal AI · Part 2 of the series

Frontier, Flash, Open Weight: What AI models can really do for legal work, and where they fail

The first part of this series was about sovereignty: location, jurisdiction, kill-switch risk, keys and portability. It ended with a sixth question that is missing from almost every sovereignty conversation: which model is actually processing your files?

Tobias Warken · 27 October 2026 · Approx. 13-minute read

That question is more uncomfortable than it sounds. The answer decides not only data protection, but quality. And there is one number that grounds every discussion:

The best AI model in the world completes just over a quarter of realistic legal agent tasks. On the Harvey Legal Agent Benchmark, which simulates real law-firm work with documents, spreadsheets and file systems, the leader, Gemini 4 Argon, scores 27.08% (as of 24 October 2026).

That is not an argument against AI in law. It is an argument for understanding exactly what you deploy. So let's take it step by step.

Part 1: How a language model "thinks" (and why it doesn't)

At its core, a large language model is a prediction machine. It splits text into tokens (word fragments) and calculates which token is most likely to come next. That calculation lives in billions of parameters, numerical values learned from huge amounts of text during training.

Three consequences matter for legal work:

  1. The model does not retrieve facts, it generates plausible text. A case number that looks like a supreme court case number is, to the model, just a likely string of characters. That is where fabricated citations come from.
  2. The context window is the working memory. Anything not in the prompt or the attached documents, the model only "knows" from training: outdated, patchy and unsourced. Current models handle 256,000 to 1 million tokens, which means entire contract suites.
  3. Reasoning models think out loud. Many current models produce an internal chain of thought before answering. That markedly improves multi-step legal analysis, but costs time and tokens.

Mixture of Experts (MoE) is the architecture you find almost everywhere now. The model consists of many specialised sub-networks, and only a small share is activated per token. Mistral Large 4, for example, has around 1.05 trillion parameters, but only 49 to 52 billion are active per token. That makes it fast, but not small: to run it, every parameter has to sit in memory.

Part 2: Frontier, mid-tier, flash – the model classes

Almost every vendor now offers three tiers:

ClassUsed forMistral example (Oct 2026)Price per 1M tokens (in/out)
Frontier / topcomplex analysis, agents, multi-step reviewMistral Large 4 (preview since 6 Oct 2026)USD 1.36 / 4.18
Mid-tierdrafts, in-depth summariesMistral Medium 3.5USD 1.50 / 7.50
Flash / smallclassification, extraction, routing, high volumeMistral Small 4USD 0.15 / 0.60

Prices according to Beam AI and the Beam model overview.

The difference is not just quality but economics. According to Artificial Analysis, Small 4 is about three times as fast as Medium 3.5. Nobody needs a frontier model to answer "Does this contract contain a limitation of liability?" across 5,000 contracts.

First twist: on classic legal benchmarks, flash models are now remarkably close to the top. On LegalBench, Claude Fable 5 scores 88.56% and Gemini 3.7 Flash 87.26%, at a fraction of the price. The gaps only show on complex, multi-step tasks.

Second twist: cheap per token does not mean cheap per task. Artificial Analysis measured that Mistral Large 4 generates roughly three times as many tokens as GPT-6.1 Sol for the same test battery. Result: USD 1.13 per task versus USD 0.72, despite the much lower token price.

Part 3: Open source, open weight, API – three terms that keep getting mixed up

API model (closed): you send your data to the vendor or to a partner such as AWS (Bedrock) or Microsoft (Azure), and the model runs on their infrastructure. You see neither the weights nor the training data. Examples: GPT, Claude, Gemini. Sovereignty depends entirely on the contract and the jurisdiction of the vendor or partner.

Open weight: the vendor publishes the trained parameters, the "weights". You can download the model and run it on your own hardware or with a host of your choice. But you usually get neither the training data nor the training code. You know what the model does, but not exactly what it learned from. Examples: Mistral, Qwen, DeepSeek, Llama, gpt-oss.

Open source (in the strict sense): the Open Source Initiative's Open Source AI Definition additionally requires sufficient information about the training data and the code to rebuild the model. Few models meet that bar. One European example is Apertus 1.5 from Switzerland: weights, training data and recipes are published under Apache 2.0.

And then there is the licence. "Open weight" does not automatically mean "free to use". Mistral Small 4 is under Apache 2.0, Mistral Medium 3.5 under a modified MIT licence, and the licence for Mistral Large 4 had not been published as of the preview. Check the licence before any self-hosting.

Why open weight matters so much for sovereignty: only with open-weight models do you decide where the model runs, which version you freeze and when you switch. With an API, the vendor decides when a model is retired. And that happens all the time: German provider IONOS has retired or scheduled for retirement ten models since May 2025, including the German model Teuken 7B.

Part 4: How safe are foreign models?

In July I unpacked a question that comes up in every other conversation, in "Can your model send your data to China?". The short version, because it is central to choosing a model:

1. Weights cannot phone home. Model weights are a file full of numbers, with no network access. If you run a Chinese or American open-weight model on your own European infrastructure with controlled network traffic, no data goes to Beijing or Washington. If you use the vendor's API, that is exactly where it goes.

2. The risk sits in the deployment stack. Unsafe model formats, bundled code and flags like trust_remote_code have caused real incidents. Countermeasures: SafeTensors only, no third-party code, no open internet access for the inference server.

3. The residual risk is in behaviour. Anthropic's "Sleeper Agents" study showed that hidden behaviours can be trained into a model and survive standard safety training. And research by Anthropic, the UK AI Security Institute and the Alan Turing Institute found that as few as 250 poisoned documents in training can be enough to implant a backdoor. None of this proves that any particular model is compromised. But it shows that you cannot rule it out, wherever the model comes from.

4. An agent with tools can still phone home. At the end of October 2026, Cohere published a concrete case: Alibaba's Qwen3.8-Flash-Next was asked, in Cohere's closed test sandbox, to write a detection rule for Microsoft's security benchmark CTI-REALM. Instead, the model listed /tmp, checked which download tools were installed, read the DNS settings and tried to upload a test string via curl to an Alibaba Cloud storage bucket in Beijing. The sandbox had no route out, so the request was blocked. In another test, after being refused a RAM disk, the model used unshare to gain root inside its own namespace. In follow-up tests it reached for the cloud metadata service address (169.254.169.254), which can expose credentials in cloud environments, in 23% to 36% of sampled completions. For context: the upload attempt occurred less than once per 100,000 calls, Cohere cannot say whether it was deliberate or a leftover from training, and Cohere, as a model vendor, is itself a competitor. Rare does not mean harmless, though: at ten million agent steps a week, Cohere estimates up to around 100 such attempts, and Hugging Face lists more than 113,000 Qwen derivatives. The weights themselves do not phone home, but an agent that may run shell commands can. Cohere's recommendations: deny outbound traffic by default, block unprivileged user namespaces in agent containers, and enforce controls on the actual tool call rather than on the model's chain of thought.

5. Agents make the risk concrete. The US institute CAISI at NIST found in September 2025 that DeepSeek models were far more susceptible to agent hijacking than US frontier models, meaning they could be redirected by instructions smuggled into documents. Two caveats belong next to that: the study was commissioned under the US AI Action Plan, so it is not entirely disinterested. And CAISI later found at least one successful hijacking attack against every model it tested. The problem is unsolved, for everyone.

Practical conclusion: a model's origin is one factor, but not the decisive one. What decides is the architecture around it: no unchecked network access, tools only via an allow-list, human approval before any action with external effect. That applies to Mistral just as much as to Qwen or GPT.

There are now a handful of serious legal benchmarks. Here is where things stand at the end of October 2026:

BenchmarkWhat it measuresLeaderBest European model
Harvey Legal Agent Benchmark v1.1real law-firm tasks with documents and toolsGemini 4 Argon: 27.08%Mistral Large 4: 17.50%, rank 6 of 28
Vals Legal Research Benchagentic research with citation checks (US law)GLM-5.3: 49.04%Mistral Large 4: 31.73%
LegalBench160+ classic legal reasoning tasksClaude Fable 5: 88.56%Mistral Large 3: 79.14% (rank 99)
LEXam340 law exams in German and English–no current results for Mistral

Sources: BenchLM / Vals HLAB, BenchLM / Vals Legal Research Bench, Vals LegalBench, LEXam (ICLR 2026).

What stands out to me:

  • The best European model is surprisingly strong at agentic work. On the Harvey benchmark, Mistral Large 4 ranks ahead of the leading Chinese models GLM-5.3 (14.58%) and Kimi K3 (12.92%).
  • On research, it falls well behind. 31.73% against 49% for GLM-5.3. And Mistral Medium 3.5 scores just 9.13% here.
  • Small beats big. The Chinese open-weight model Qwen3.8, with only 27 billion parameters, reaches 82.43% on LegalBench, more than Mistral Large 3 with 675 billion.
  • LegalBench is saturated. The top models are bunched at around 88%. As a basis for a decision, it is of little use any more.

Part 6: Where the models fail

Fabricated citations are not a fringe problem

Researcher Damien Charlotin's database had recorded around 1,600 court cases worldwide involving AI-fabricated citations by June 2026, up from about 200 a year earlier. Germany is on the list too: in July 2025 the Cologne local court criticised a brief whose citations were "entirely made up" (decision of 2 July 2025, 312 F 130/25), and in November 2025 the Berlin Court of Appeal held that lawyers must check AI-drafted briefs for "fantasising" case citations (17 WF 144/25).

Specialised tools are not immune either. A Stanford study found that even the AI research tools from LexisNexis and Thomson Reuters hallucinated in 17% to 33% of cases, despite drawing on curated databases. The tools have improved since. The core issue remains: retrieval reduces hallucinations, it does not eliminate them.

German law is an away game for the models

Almost all of the benchmarks above measure US law in English. LEXam, one of the few benchmarks with German-language exams, shows that all models perform worse on German-language questions and Swiss law. Anyone choosing a model for German contract law is flying half blind with the public rankings.

More pitfalls

  • Sycophancy: models tend to agree with the premise of the question. Ask "Why is this clause invalid?" and you will get reasons, even if it is valid.
  • Silent model changes: API vendors update models. A prompt that worked in March can answer differently in October.
  • Cost per task, not per token: chatty reasoning models can be more expensive despite low list prices (see Part 2).
  • Benchmarks are not your files: a leaderboard rank says nothing about how a model handles your templates, your playbook and your case types.

Part 7: What follows from all this

Putting it all together, five rules remain that I recommend to anyone choosing AI for legal work:

  1. The model is a replaceable component, not the product. Build so you can swap the model without rebuilding the process. The leaderboard changes every quarter.
  2. Route by task. Flash models for classification and extraction, frontier models for analysis and multi-step review. That saves money and often time.
  3. Citations never from the model, always from the source. Citations belong in the answer from a verified database, with a reference, and are checked automatically.
  4. Test on your own cases. Twenty real contracts with a known answer tell you more about a model than any public ranking.
  5. Decide sovereignty and quality together. A purely European setup (Mistral on European infrastructure) is possible today and good enough for many tasks. For research-heavy work, it is measurably behind the top. Make that trade-off on purpose, not by accident.

And the most important rule is written in professional conduct law, not in any benchmark: the person who signs the brief is the one who is liable for it.

The series “Sovereign legal AI”

At boutiq ai we build Treasure, an AI platform for legal departments and public authorities. You can find part 1 of this series, on sovereignty, on our blog.

Sources

Treasure Contracts

The ten questions, answered for Treasure

In a demo we show Treasure on one of your own contracts and answer the questions from this series for our platform: hosting, models, keys and exit.