Confidentiality: INTERNAL  ·  Status: DRAFT - REVIEWED BY AI

Extraction accuracy - investigation & recommendations

Date: 2026-06-12  ·  Scope: three pipeline changes evaluated against ground truth across the test-data set, headlined on Document-combined.pdf.

Summary

We investigated three changes aimed at lifting extraction accuracy - semantic hints, LLM figure recovery, and a dual (Textract + BDA) pass. Bottom line:

The three changes - how each helps

1. Semantic hints

2. LLM figure recovery (the LLM_FIGURE / prompt change)

3. Dual pass (Textract + BDA, merged)

Page 18 Textract vs Dual figure overlay
Dual detects more figure regions but over-segments: page 18 jumps from 3 boxes (Textract, teal) to 14 (Dual, green) as each pictogram is boxed separately - which inflates the figure metric more than it reflects a real accuracy gain.

Recommendation

  1. Ship LLM figure recovery + semantic hints together as the default. Effectively free (no extra pass), a real measurable lift in figure recall, and no regression on clean documents.
  2. Don’t adopt the dual pass as a routine step. It has some success on weak inputs, but the accuracy gain is minor and not worth the extra extraction cost and latency - and its headline figure-recall improvement is partly inflated by over-segmentation rather than a genuine gain. Keep it only as an optional, confidence-gated fallback for clearly figure-poor papers, with modest expectations.
  3. Worth prototyping - an LLM “layout pre-pass”. Before the main run, send just 2–3 representative pages to an LLM to profile the paper: numbering scheme (e.g. section/Challenge restarts), shared-resource patterns, answer-box conventions, figure types, headers/footers (the “gotchas”). Feed that document-specific brief into the enrichment prompt. This could replace the hand-coded semantic hints with a tailored guide and is the most promising path to a significant accuracy gain - for one small extra call, far cheaper than a full dual extraction. Build it as an experiment and measure against the current sweep.

Supporting data

Full cross-document figure-recovery results (OLD vs NEW)

Headline - Document-combined.pdf

56% → 89%
Textract figure sensitivity (Sonnet) - missing diagrams recovered
36 → 9
Missed figures (of ~76)
99%
BDA figure sensitivity (was 93%)
Document-combined page 1 before vs after figure recovery
Document-combined, page 1 (Textract · Sonnet). Before: 0 figures. After: the coordinate grid recovered as a green LLM_FIGURE.

Effect across the other test-data types

Figure sensitivity and missed-figure count, OLD → NEW. Clean text documents are unaffected; scanned and diagram-heavy documents gain the most.

Textract

DocumentModelFig sens OLDFig sens NEWΔ fig sensMissed OLD→NEWΔ F1
Document-combined (36-page multi-source)haiku-4.556%90%▲ +34%36 → 8▼ -0.006
Document-combined (36-page multi-source)sonnet-4.656%89%▲ +33%36 → 9▼ -0.051
11+ SPaG (text-only)haiku-4.5100%100%no change– → –no change
11+ SPaG (text-only)sonnet-4.6100%100%no change– → –▼ -0.084
12-page mathshaiku-4.570%75%▲ +5%6 → 5▲ +0.007
12-page mathssonnet-4.670%75%▲ +5%6 → 5▲ +0.003
1-page mathshaiku-4.5100%100%no change0 → 0no change
1-page mathssonnet-4.6100%100%no change0 → 0▼ -0.040
rescanned maths (scan)haiku-4.562%62%no change3 → 3▼ -0.012
rescanned maths (scan)sonnet-4.662%62%no change3 → 3▼ -0.187
rescanned phone maths (scan)haiku-4.50%62%▲ +62%– → 6▲ +0.038
rescanned phone maths (scan)sonnet-4.60%38%▲ +38%– → 10▲ +0.025
scanned phone maths (scan)haiku-4.530%53%▲ +23%33 → 22▲ +0.040
scanned phone maths (scan)sonnet-4.630%51%▲ +21%33 → 23▲ +0.026

BDA

DocumentModelFig sens OLDFig sens NEWΔ fig sensMissed OLD→NEWΔ F1
Document-combined (36-page multi-source)haiku-4.593%99%▲ +6%6 → 1▲ +0.012
Document-combined (36-page multi-source)sonnet-4.693%98%▲ +5%6 → 2▼ -0.026
11+ SPaG (text-only)haiku-4.5100%100%no change– → –no change
11+ SPaG (text-only)sonnet-4.6100%100%no change– → –no change
12-page mathshaiku-4.570%75%▲ +5%6 → 5▲ +0.003
12-page mathssonnet-4.670%75%▲ +5%6 → 5▲ +0.003
1-page mathshaiku-4.5100%100%no change0 → 0no change
1-page mathssonnet-4.6100%100%no change0 → 0no change
rescanned maths (scan)haiku-4.538%75%▲ +38%5 → 2▲ +0.039
rescanned maths (scan)sonnet-4.638%62%▲ +25%5 → 3▼ -0.020
rescanned phone maths (scan)haiku-4.538%62%▲ +25%10 → 6▼ -0.006
rescanned phone maths (scan)sonnet-4.638%56%▲ +19%10 → 7▲ +0.010
rescanned phone maths before vs after figure recovery
Other-type example - rescanned phone maths (a phone scan): figure sensitivity 0% → 62% as diagrams are recovered as LLM_FIGUREs.

Reading the results