Arabic + English document layout, RF-DETR-XL (layout27-v2)
RF-DETR-XL fine-tuned from a DocLayNet-trained checkpoint onto a combined corpus of 28,650 training pages: 18,650 machine-labeled Arabic/English pages and 10,000 human-annotated DocLayNet pages.
Selected checkpoint: step 2500, chosen on validation mAP. Training was stopped by hand at step 4000 of a planned 6,000, after validation mAP fell for 1,000 consecutive steps (2500: 0.6568 -> 3000: 0.6487 -> 3500: 0.6480).
Results
Every number here is the same 484 protected DocLayNet validation pages, scored identically.
mAP in the metrics block below is the mean over the 11 classes the evaluator
actually scored -- not over the 27 active classes, and not over the 10 declared gate classes.
| Class set | Baseline | v1 | This model (v2) |
|---|---|---|---|
| All 11 scored | 0.6118 | 0.6478 | 0.6568 |
10 excluding Picture | 0.6730 | 0.6482 | 0.6586 |
Both rows are needed, because they say different things:
- The baseline scores 0.0000 on
Pictureagainst 298 supported instances -- it emits noPicturepredictions at all. So this model's lead on the 11-class row is largely a capability the baseline never attempted, not a better contest. - On the 10 classes both models contest, this model is 1.4 mAP behind the baseline (0.6586 vs 0.6730). That is a regression, and it is the real cost of this release.
A 10-class mean must never be compared against a 11-class mean. An earlier revision of this card did exactly that and overstated the result.
| Class | Baseline | v1 | v2 |
|---|---|---|---|
Caption | 0.8094 | 0.7886 | 0.7692 |
Footnote | 0.6188 | 0.5693 | 0.5820 |
Formula | 0.5056 | 0.4880 | 0.4850 |
List-item | 0.7500 | 0.7385 | 0.7497 |
Page-footer | 0.6216 | 0.5680 | 0.6186 |
Page-header | 0.4932 | 0.4667 | 0.4905 |
Picture | 0.0000 | 0.6432 | 0.6384 |
Section-header | 0.6187 | 0.6009 | 0.6075 |
Table | 0.7463 | 0.7606 | 0.7443 |
Text | 0.8382 | 0.8250 | 0.8311 |
Title | 0.7286 | 0.6767 | 0.7083 |
What this model can and cannot tell you
Measured. 11 of the 27 active classes are scored, all on DocLayNet English:
Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text, Title.
Trained but unmeasured. The remaining 16 classes --
Document Index, Code, Checkbox-Unselected, Form, Key-Value Region, bar_chart, flow_chart, icon, line_chart, logo, map, pie_chart, qr_code, screenshot, signature, stamp -- exist only in machine-labeled pages. They are
trained and are not scored anywhere. Treat any apparent performance on them as unverified.
Which corpus taught what. The machine-labeled corpus supervised only the figure classes; the measured classes were taught by DocLayNet's human annotations alone, because the two corpora disagree about where those classes end. Against v1, which let both corpora supervise everything, this model is +0.0104 on the 10 contested classes -- but it also changed the sampling mix and restarted from the baseline checkpoint, so that difference is not attributable to the supervision change alone.
For context on why this run exists: v1, which let both corpora supervise every class, measured 0.6482 against the baseline's 0.6730 on those same 10 classes -- a 0.0248 regression. Withdrawing custom supervision from the DocLayNet-defined classes recovered about 40% of that gap (v2 is 0.0144 below baseline), leaving a real regression still on the table.
No Arabic evaluation exists. Every protected validation and test page is DocLayNet English. No number in this repository is Arabic accuracy; Arabic behaviour is untested.
Figure subtypes are cell-wide statistical labels. The logo/icon/chart distinctions come from a 250-decision calibration with a cell-wide 70% adoption rule, not per-region review. Two independent judges agreed on only 58% of disputed regions (Cohen's kappa 0.25), and the icon/logo boundary is known-weak.
Schema
34 head slots, 27 active. Seven slots are reserved and masked at inference
(13, 17, 19, 20, 21, 27, 30): other is abstention, the rest lack minimum evidence in this corpus.
Licensing
Model weights derive from RF-DETR+ under PML-1.0 (provider terms apply). Training data includes pages under CC-BY-NC-4.0, so this model is non-commercial. DocLayNet is CDLA-Permissive-1.0.
Metrics
{
"pages": 484,
"mAP": 0.6567845574595359,
"mAP50": 0.8378314754632039,
"mAP75": 0.7194718603612762,
"AR": 0.7608048910972839
}