Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions site/content/reference/engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ name through the [registry](api/#registry) rather than importing it directly.
| Backend | Extra needed | PDFs | Best at |
|---|---|:--:|---|
| `tesseract` | core | ✓ | Baseline. Fast, offline, predictable |
| `tesseract-auto` | core | ✓ | Same engine, per-image tuning. Best local average bar auto-local |
| `vision` | `[vision]` | ✗ | macOS on-device engine. Strongest local result here, and the cheapest to run |
| `tesseract-auto` | core | ✓ | Same engine, per-image tuning. Never below plain Tesseract on this corpus |
| `vision` | `[vision]` | ✗ | macOS on-device engine. Best local word recall, and the cheapest to run |
| `easyocr` | `[easyocr]` | ✗ | Varied contrast and awkward grounds |
| `paddle` | `[paddle]` | ✗ | Dense small text — but weak on this corpus |
| `paddle-vl` | `[paddle-vl]` | ✓ | Document vision-language model. Strong, and slow enough to be batch-only |
| `paddle-vl` | `[paddle-vl]` | ✓ | Document vision-language model. Best local average, and slow enough to be batch-only |
| `marker` | `[marker]` | ✓ | Layout-aware conversion; multi-column and PDFs |
| `claude` | `[claude]` | ✓ | Anything the others cannot read |
| `auto-local` | core | ✓ | Unattended mixed material; runs several and keeps the best |
Expand Down Expand Up @@ -382,8 +382,9 @@ nothing, are in design research note 001 (Marker throughput and multi-page PDFs)
Not an engine — a strategy. It runs every viable local backend (Marker where a
GPU makes it practical, then Vision on macOS, EasyOCR, PaddleOCR and auto-tuned
Tesseract for images; Marker plus Tesseract for PDFs), scores each transcript
with a reference-free quality score, and keeps the best. Best local result on this
corpus at 0.57/0.76, and the slowest, since it runs several engines per file.
with a reference-free quality score, and keeps the best. It averages 0.66/0.65
on this corpus, behind PaddleOCR-VL and Vision, and it is among the slowest,
since it runs several engines per file.

It needs the `qa` extra: scoring uses a spell checker and GPT-2 perplexity.
See [auto-local routing](routing/).
Expand Down
24 changes: 12 additions & 12 deletions site/content/reference/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ One strategy over the whole set of local engines, for when you would rather not
choose a backend per document.

`auto-local` runs every viable local engine on a file, scores each transcript
with a reference-free quality score, and keeps the best. It is the best local
option on this corpus (0.57/0.76), and the most expensive, since it runs
several engines per file.

{{< note kind="warning" title="It captures most, but not all, of what fan-out makes available" >}}
An oracle picking the best engine for each file would average 0.61;
`auto-local` reaches 0.57 — about 94% of the ceiling. Almost all of the
remaining gap is one fixture, where the reference-free quality score itself
ranks a 0.76 transcript fractionally above the 0.89 one actually available,
independent of word count. See
[results](../research/in-depth/#fan-out-wins-by-less-than-it-should).
with a reference-free quality score, and keeps the best. It averages 0.66/0.65
on the seventeen-fixture corpus, behind PaddleOCR-VL (0.72/0.66) and Vision
(0.67/0.68), and it is among the most expensive, since it runs several engines
Comment on lines +11 to +13
per file.

{{< note kind="warning" title="It captures less of what fan-out makes available than it did" >}}
An oracle picking the best local engine for each file would average 0.79;
`auto-local` reaches 0.66 — about 83% of the ceiling. Most of the gap is
PaddleOCR-VL, which is not in the default pool and joins only with
`--with-paddle-vl`. See
[results](../research/in-depth/#fan-out-no-longer-wins).
{{< /note >}}
{{< note kind="caution" title="Fan-out is sequential, deliberately" >}}
The engines run one after another, not in parallel. Each is individually
Expand Down Expand Up @@ -155,7 +155,7 @@ The old auto-local picked one backend per file type before processing began. The

Pure `combined_score` was insufficient on sparse-text images — a conservative backend emitting 8 perfectly clean words can outscore a backend that recovers 23 slightly noisier words, because dict_coverage is trivially 1.00 and perplexity is low for a short well-formed sentence. The `0.8 + 0.2 × words/max_words` multiplier ensures coverage is weighted alongside quality. The floor of 0.8 means even a zero-word backend retains most of its raw quality score, and `max_words` is relative so the formula is scale-invariant across different document sizes.

The weight was 0.5 until 28 August 2026. At that value a noisy 77-word `tesseract-auto` transcript on `carthay-circle-premiere.jpg` beat 11-word transcripts from three other engines on word count alone, despite scoring lowest of the four on raw quality — see [the results](../research/in-depth/#fan-out-wins-by-less-than-it-should). `evaluation/ocr/calibration/router_sweep.py` re-fitted the weight by minimising mean regret against ground truth; `LENGTH_WEIGHT`'s provenance comment in `auto_local.py` has the full result.
The weight was 0.5 until 28 August 2026. At that value a noisy 77-word `tesseract-auto` transcript on `carthay-circle-premiere.jpg` beat 11-word transcripts from three other engines on word count alone, despite scoring lowest of the four on raw quality — see [the results](../research/in-depth/#fan-out-no-longer-wins). `evaluation/ocr/calibration/router_sweep.py` re-fitted the weight by minimising mean regret against ground truth; `LENGTH_WEIGHT`'s provenance comment in `auto_local.py` has the full result.

### Quality gate threshold

Expand Down
107 changes: 65 additions & 42 deletions site/content/research/in-depth.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ to start if you have not read either.

## Why run a benchmark at all

A real archive is not a stack of uniform pages. The nine items in this corpus
include a linen postcard, a chromolithograph poster, two pages of 1930
A real archive is not a stack of uniform pages. The seventeen items in this
corpus include linen postcards, lithographed theatre posters, two pages of 1930
newsprint, a bilevel TIFF of a theatre playbill and a twenty-one-page souvenir
programme. They differ in typography, contrast, layout and physical condition,
and they were digitised by different people at different times.
Expand Down Expand Up @@ -103,8 +103,10 @@ generalisation beyond archival print of this era and condition.

## The results

Character similarity / word recall, nine fixtures, run on an Apple MPS machine
so `auto-local` had Marker available. Bold marks the best **local** engine per
Character similarity / word recall, seventeen fixtures, run on an Apple MPS
machine so `auto-local` had Marker available. Re-scored on 3 October 2026 under
the corrected character-similarity metric (see the note on `autojunk` in
[Beating the baselines](../../articles/2026/10/beating-the-baselines/)). Bold marks the best **local** engine per
fixture; `N/A` means the engine cannot read PDFs.

{{< benchmark >}}
Expand All @@ -121,18 +123,27 @@ build time, so neither can drift from the data.
### No engine wins across the board

This is the headline, and it is why the average column is the least useful part
of the table. Five different engines win across the nine fixtures:

- **Marker** takes the newsprint cover (0.39), the Kinema ad (0.75) and the PDF (0.66)
- **Retuned Tesseract** takes the postcard reverse (0.91) and Grauman's (0.86)
- **PaddleOCR** takes the playbill (0.39) and the poster (0.13)
- **EasyOCR** takes the Carthay Circle front (0.87)
- **Plain Tesseract** takes the interior newsprint page (0.45)

An earlier version of this page added "and none wins more than twice". That is
no longer true — Marker takes three, both TIFFs having landed in territory it
handles well. The claim that matters is unchanged: no engine wins most of them,
and the winner is not predictable from the average.
of the table. Six different engines take the best local character similarity on
at least one of the seventeen fixtures:

- **PaddleOCR-VL** takes seven: the Chinese Theatre triptych (0.83), the Greek
Theatre postcard (0.99), the playbill (0.88), both *Inside Facts* pages (0.98
and 0.96), the Kar-Mi poster (0.29) and the Parlor Match poster (0.88)
- **Retuned Tesseract** takes three: the Carthay Circle postcard reverse (0.93),
Grauman's (0.79) and the PDF (0.91)
Comment on lines +132 to +133
- **PaddleOCR** takes three: Hollywood Boulevard west (0.58), the Over the Fence
poster (0.64) and the Thurston poster (0.74)
- **Vision** takes two: the Bancroft poster (0.57) and the Carthay Circle front (0.89)
- **EasyOCR** takes Hollywood Boulevard east (0.72)
- **Marker** takes the Kinema ad (0.93)

Earlier versions of this page, written over nine fixtures, said five engines won
and none more than twice. Over seventeen that is no longer true: PaddleOCR-VL
wins seven and has the best local average, 0.72 against Vision's 0.67. It is
also the slowest engine in the table, at about 146 seconds a fixture against
Vision's one. The claim that matters is weaker than it was but still holds: no
engine wins a majority, ten of the seventeen go to something else, and the
winner is not predictable from the average.

Route by document, not by average.

Expand Down Expand Up @@ -263,32 +274,44 @@ picking Marker at 0.75. The quality score caught what the heuristic got wrong
which is the argument for measuring transcripts rather than predicting from
pixels.

### Fan-out wins, by less than it should

`auto-local` averaged 0.53/0.74 before 28 August 2026, the best local result on
both metrics, and its margin over `tesseract-auto` widened from 0.05 to 0.12 as
the corpus grew, because fan-out measures each transcript instead of predicting
from pixels. It now averages **0.57/0.76** — Vision joined the candidate pool
that day too, alongside the fix below, so the margin over `tesseract-auto` is
now 0.16.

The ceiling is higher, though closer than it was. An oracle taking the best
local engine on every fixture averages **0.61**; `auto-local` reaches 0.57,
about 94% of it. Four fixtures accounted for the gap before the fix below; two
of them were a scoring problem, not an engine one, and are fixed:

| Fixture | Best local | Chose before | Chose after | Cost before → after |
|---|---|---|---|---|
| `carthay-circle-premiere.jpg` | vision 0.89 | tesseract-auto 0.49 | marker 0.76 | 0.40 → **0.14** |
| `graumans-chinese-theatre.jpg` | tesseract-auto 0.86 | paddle 0.78 | vision 0.83 | 0.08 → **0.03** |
| `hollywood-music-box-playbill-1926.tif` | paddle 0.39 | marker 0.28 | marker 0.28 | 0.11 (held out; not fit to) |
| `inside-facts-1930-page-six.jpg` | tesseract 0.45 | marker 0.40 | marker 0.40 | 0.05 (plain `tesseract` is not a candidate) |

The last row does not move, and cannot: `auto-local` never runs plain
`tesseract`, only `tesseract-auto`, so no scoring change closes a gap against
a backend the router does not have. The third is held out from fitting on the
same principle as the Tesseract auto-configuration bands above — "…but the
tuning does not generalise".
### Fan-out no longer wins

`auto-local` averaged 0.53/0.74 over the nine-fixture corpus, the best local
result on both metrics, and its margin over `tesseract-auto` widened as that
corpus grew, because fan-out measures each transcript instead of predicting
from pixels. Over seventeen fixtures, re-scored on 3 October 2026 under the
corrected metric, it averages **0.66/0.65** and is no longer the best local
result. PaddleOCR-VL averages 0.72/0.66 and Vision 0.67/0.68. `auto-local`
still beats `tesseract-auto` (0.56/0.47) by more than it did.

The two engines that pass it do so for different reasons. PaddleOCR-VL is not
in the default candidate pool: at about 146 seconds a fixture it joins only with
`--with-paddle-vl`, so `auto-local` never saw its transcripts in this run.
Vision is in the pool on macOS and did run; on the fixtures where Vision was
best, the quality score preferred another engine's transcript.

The ceiling has moved further away. An oracle taking the best local engine on
every fixture averages **0.79**; `auto-local` reaches 0.66, about 83% of it,
against 94% on the nine-fixture corpus. Six fixtures lose 0.20 or more:

| Fixture | Best local | `auto-local` | Cost |
|---|---|---|---|
| `hollywood-music-box-playbill-1926.tif` | paddle-vl 0.88 | 0.47 | 0.40 |
| `carthay-circle-premiere.jpg` | vision 0.89 | 0.51 | 0.38 |
| `chinese-theatre-triptych-postcard.jpg` | paddle-vl 0.83 | 0.45 | 0.38 |
| `greek-theatre-night.jpg` | paddle-vl 0.99 | 0.74 | 0.25 |
| `inside-facts-1930-cover.jpg` | paddle-vl 0.98 | 0.75 | 0.23 |
| `inside-facts-1930-page-six.jpg` | paddle-vl 0.96 | 0.74 | 0.22 |

Five of the six are PaddleOCR-VL's, and no scoring change closes a gap against
a backend the strategy does not run. Only the Carthay Circle premiere is a
ranking error among candidates `auto-local` did run. Whether the strategy
should stay the recommended default, or PaddleOCR-VL should join its pool
despite the cost, is a routing decision this page records and does not take.

The paragraphs below describe the ranking fix of 28 August 2026 and the
nine-fixture figures it was measured on; they are kept as the record of that
change.

The Carthay Circle case repays reading closely, because it shows the raw
quality score getting a candidate genuinely wrong, not just outranked by
Expand Down
5 changes: 3 additions & 2 deletions site/content/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ highest-scoring transcript, judged without a reference. It routes on file type
and available hardware — see [auto-local routing](reference/routing/) for the
decision table.

It is the best local option on this corpus (0.57/0.76, better than any single
backend) and also the slowest, because it runs several engines per file.
It averages 0.66/0.65 on this corpus, behind PaddleOCR-VL and Vision but ahead
of every other single backend, and it is among the slowest, because it runs
several engines per file.
Comment on lines +120 to +122

## 5. Measure it yourself

Expand Down
Loading