Skip to content

Worked example · Government & Public Sector

Does fine-tuning help on Swiss data protection?

Not an opinion — a measurement. We took Apertus-8B and ran the same four-way ablation we run at the start of every Pilot, on a task where the answer can be scored exactly: answering questions about the revised Swiss Data Protection Act with a citation to the exact article it rests on — with a citation to the exact article it rests on. The result: fine-tuning plus retrieval takes the production bar from 37.0% to 54.3%.

The setup

Four systems, one open model.

Same Apertus-8B, quantized identically to 4-bit, served identically. The only variable is what we added.

A

Base

The open model, as shipped.

B

+ Retrieval

Base model with BM25 retrieval over the law.

C

Fine-tuned

LoRA-tuned on the task, no retrieval.

D

Fine-tuned + retrieval

The full system.

Two things are scored, both deterministically — no LLM judge: is the answer correct, and did it cite the correct article. The production bar is both at once — a right answer with a wrong or missing citation is a failure, because in regulated work it is one.

The result

Fine-tuning plus retrieval is the winning system.

46 verified questions (32 German, 14 French). Brackets in the report are 95% confidence intervals.

Answer correct Answer + citation (production bar) Full system (D)
A · Base
50%
4.3%
B · + Retrieval
82.6%
37%
C · Fine-tuned
32.6%
0%
D · Fine-tuned + retrieval the full system
60.9%
54.3%
0%25%50%75%100%
Read the production-bar row: near-zero without retrieval (A, C), 37.0% with retrieval alone (B), and only fine-tuning and retrieval together reach 54.3% (D, in red).
Metric A · base B · +RAG C · tuned D · tuned+RAG
Answer + citation (production bar) 4.3% 37.0% 0.0% 54.3%
Answer correct 50.0% 82.6% 32.6% 60.9%
Citation correct 4.3% 45.7% 2.2% 82.6%
Emits the required format 2% 0% 100% 93%

What each layer buys

The ablation stops anyone — us included — from hand-waving.

Each card pins one mechanism to a number in the table above.

Retrieval enables citation

Citation-correct climbs from 4.3% to 45.7% only when retrieval is on. A small model cannot cite an article number it has never seen — so both no-retrieval arms sit near zero on the production bar, however well-trained.

Fine-tuning enables usable output

The base model often knows the answer (82.6% with RAG) but emits the required, machine-parseable two-line format just 2% of the time. The fine-tune makes it reliable (93%), and lifts citation under retrieval to 82.6%.

Fine-tuning alone is not enough

Arm C — fine-tuned, no retrieval — reaches 100% format but only 2.2% citation and 32.6% answer: the model learns how to answer, not the exact facts. The winning system is the combination, arm D at 54.3%.

The honest limits

What this doesn't claim.

An evaluation you can trust names where it's weak.

54.3% is a floor, not a ceiling. One small model, 4-bit, a single modest LoRA run, deliberately plain BM25 retrieval, a compact verified eval set (n=46). Every one of those is a lever a real Pilot pulls.

Fine-tuning alone can regress. Arm C's answer accuracy sits below the base model — proof that fine-tuning without retrieval is the wrong tool for exact-citation tasks. We publish that rather than hide it.

The method is the product, not the number. Your task, your documents, this exact ablation — run before you commit to production, so the go/no-go rests on measurement, not a promise.

FAQ

About this report.

Is this on our data?
No — deliberately. It runs entirely on the public, pinned Fedlex text of the DSG so anyone can reproduce it. In a Pilot the identical method runs on your documents, inside your environment, and the report stays yours.
Why does fine-tuning alone (arm C) fail?
Because a small model can't reliably recall exact article numbers from parameters. The fine-tune teaches the answer/citation format and which article governs which topic, but the exact citation still needs the retrieved text in front of it. That is why the winning system is fine-tuning plus retrieval, not either alone.
Is there an LLM judge?
No LLM judge anywhere. The DSG numbers its articles; a correct citation is exactly checkable. Answer accuracy is string/number matching against a verified gold answer; citation is an exact article match. Every number is recomputed from frozen run records with 95% Wilson intervals.

Want this on your task?

Bring one workflow and the documents behind it. We'll build the evaluation set and run this ablation — on your data, in your jurisdiction.