Skip to content

bench(coverage): figure-coverage metric + baseline (73% on the sample)#140

Merged
Ztein merged 1 commit into
mainfrom
feat/coverage-bench
Jul 9, 2026
Merged

bench(coverage): figure-coverage metric + baseline (73% on the sample)#140
Ztein merged 1 commit into
mainfrom
feat/coverage-bench

Conversation

@Ztein

@Ztein Ztein commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Starts the eval effort at the coverage end, per the design discussion: a deterministic, extraction-independent metric for did figmark capture the figures the document declares?

Method

  • Ground truth: the document's own numbered captions (Chart/Figure/Diagram N) + their pages.
  • Captured: non-skipped figures in figures.json + their pages.
  • Covered: a figure number is covered if a captured figure lands on a page where that caption appears.
  • Page-level → a conservative lower bound on misses (never cries wolf). Says nothing about description quality — that's the separate LLM-judge track.

Baseline (current main extraction)

Document Captions Covered Coverage
boc-mpr-202410.pdf 26 15 58%
boj-outlook-2410.pdf 58 46 79%
Aggregate 84 61 73%

Misses are not one chart type — BoC Chart 4 is a plain line chart dropped by the MIN_SOLID_DRAWINGS_PER_CLUSTER gate. This is the number to beat when we replace the geometric pre-classification with "render every visual region, let the vision model decide."

scripts/coverage_bench/ (script + committed BASELINE.md), matching the existing *_bench/ convention. Scripts-only.

🤖 Generated with Claude Code

A deterministic, extraction-independent yardstick for "did figmark capture the
figures the document declares?". Ground truth = the document's own numbered
captions (Chart/Figure/Diagram N); a number is covered if a non-skipped figure
lands on a page where that caption appears. Page-level, so it is a conservative
lower bound on misses — it never cries wolf.

Baseline on the sample (current main extraction): BoC 58%, BoJ 79%, aggregate
73%. Misses are not one chart type (BoC Chart 4 is a line chart dropped by the
MIN_SOLID_DRAWINGS gate). This anchors the coming extraction redesign (drop the
geometric pre-classification). Quality/relevance is a separate track (LLM judge).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Ztein Ztein merged commit 5c0df2c into main Jul 9, 2026
8 of 9 checks passed
@Ztein Ztein deleted the feat/coverage-bench branch July 9, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant