Skip to content

Worked example · Manufacturing & Industrial

Does fine-tuning help on Swiss product-safety law?

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 Swiss Product Safety 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 45.0% to 60.0%.

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.

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

Answer correct Answer + citation (production bar) Full system (D)
A · Base
50%
15%
B · + Retrieval
90%
45%
C · Fine-tuned
65%
10%
D · Fine-tuned + retrieval the full system
65%
60%
0%25%50%75%100%
Read the production-bar row: near-zero without retrieval (A, C), 45.0% with retrieval alone (B), and only fine-tuning and retrieval together reach 60.0% (D, in red).
Metric A · base B · +RAG C · tuned D · tuned+RAG
Answer + citation (production bar) 15.0% 45.0% 10.0% 60.0%
Answer correct 50.0% 90.0% 65.0% 65.0%
Citation correct 15.0% 50.0% 15.0% 85.0%
Emits the required format 10% 0% 95% 95%

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 15.0% to 50.0% 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 (90.0% with RAG) but emits the required, machine-parseable two-line format just 10% of the time. The fine-tune makes it reliable (95%), and lifts citation under retrieval to 85.0%.

Fine-tuning alone is not enough

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

The honest limits

What this doesn't claim.

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

60.0% 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=20). 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 PrSG so anyone can reproduce it. In a Pilot the identical method runs on your technical files and CE documentation, inside your environment, and the report stays yours.
Isn't 22 articles too small to matter?
It is a compact statute, and we report it as such — a smaller eval set and a smaller fine-tune. The point is that the same method transfers cleanly to a small, self-contained regulatory domain, with the same deterministic scoring and the same open harness.
Is there an LLM judge?
No LLM judge anywhere. The PrSG 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.