Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
433
3.4k
fid-html
stringlengths
2.74k
56.8k
fid-html-rendered-image
imagewidth (px)
433
3.4k
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 433px; height: 774px; background-image: url('image.jpg'); background-repeat: no-repeat; } .contact-info_0 { tex...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 1653px; height: 2339px; } ol.ordered-list { list-style-type: decimal; margin-left: 20px; padding-left: 0; } ol.ordered-list li { margin-bottom: 10px; } o...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 754px; height: 1000px; background-image: url('image.jpg'); background-repeat: no-repeat; } .contact-info_3{ ...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 596px; height: 791px; } .figure_4 { display: flex; justify-content: center; align-items: center; } .head...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 775px; height: 1000px; background-image: url('image.jpg'); background-repeat: no-repeat; } .formula_5 { text-align:...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 900px; height: 1251px; } .pink-highlight { background-color: #f3b3c1; /* Soft pink shade */ } </styl...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 754px; height: 1000px; background-image: url('image.jpg'); background-repeat: no-repeat; }...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 2481px; height: 3508px; background-image: url('image.jpg'); background-repeat: no-repeat; ...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 2481px; height: 3508px; background-image: url('image.jpg'); background-repeat: no-repeat; } </style> </head> ...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 596px; height: 794px; } .title_14 { text-align: center; font-weight: bold; } .sub-header_14 { text-align: c...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 777px; height: 1000px; background-image: url('image.jpg'); background-repeat: no-repeat; } .paragraph_10 { text-ali...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 960px; height: 540px; background-image: url('image.jpg'); background-repeat: no-repeat; } .figure_4 { display: flex; justify-content: center; align-items: center; ...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 1275px; height: 1650px; } .page-number_1 { border: 1px solid black; padding: 5px; text-align: left; } .figure_0 { display: flex; justify-content: left; ...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 596px; height: 791px; } .heading_7 h1 { font-weight: bold; } .logo_6 { display: flex; justify-content: center; align-items: center; border: 1px solid tran...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 2480px; height: 3214px; background-image: url('image.jpg'); background-repeat: no-repeat; } </style> </head> ...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 1624px; height: 2150px; } </style> </head> <body> <div class="picture" style="position: absolute; left: 134px; top: 198px; width: 1369px;...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 1654px; height: 2339px; } </style> </head> <body><div class="header" style="position: absolute; left: 253px; top:...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 624px; height: 1500px; background-image: url('image.jpg'); background-repeat: no-repeat; } </style> </head> <body> <div class="...
<html><head> <style> body { margin: 0; padding: 0; position: relative; width: 754px; height: 1000px; } .formula_1{ transform: rotate(90deg); transform-origin: left top; ...
<html> <head> <style> body { margin: 0; padding: 0; position: relative; width: 2481px; height: 3508px; background-image: url('image.jpg'); background-repeat: no-repeat; } </style> </head> <body> <div class=...
<html> <head> <style> table { border: 1px solid black; border-collapse: collapse; width: 100%; } th { border: 1px solid black; background-color: rgb(189, 189, 189); } td { border: 1px solid black; } tr:nth-child(even) { ...
End of preview. Expand in Data Studio

VFDR-Bench

VFDR-Bench (Visually Faithful Document Reconstruction Benchmark) evaluates how well a document-to-HTML system preserves a document's text, logical structure, physical layout, and visual styling when converting a page image into HTML — a representation the benchmark calls Fid-HTML.

It was introduced alongside REPLICA, an agentic framework for visually faithful document reconstruction, published at ICDAR 2026 (Oral).

  • 📄 Paper: REPLICA: An Agentic Framework for Visually Faithful Document Reconstruction
  • 🌐 Project page: replica-agents.github.io

This split provides a curated sample of documents and their Fid-HTML annotations for browsing and quick experimentation; the source dataset identity of each sample is intentionally not included.

What is Fid-HTML?

Fid-HTML is a semantically enriched, layout-aware HTML representation of a document page. Unlike plain OCR-to-text or OCR-to-Markdown output, it jointly encodes:

  1. Textual content — full text retained at word and block level
  2. Hierarchical structure — nested <div> containers reflecting sections, subsections, and logical groupings
  3. Semantic tags — structured elements (<li>, <table>, <tr>, <td>, ...) with meaningful class names
  4. Positional information — global placement via absolute positioning, local alignment via relative containers
  5. Styling metadata — font size, color, and text attributes (bold, italic, underline, strikethrough) via inline CSS
  6. Figures and backgrounds — page-level and inline images, laid into the DOM with accessibility-oriented alt text

Dataset columns

Column Type Description
image image The original document page image
fid-html string The Fid-HTML reconstruction of that page. Image references are placeholders (image.jpg for the page background, figure_N.jpg for inline figures with alt text) rather than embedded pixel data
fid-html-rendered-image image A rendering of the (unmodified) Fid-HTML, for visually sanity-checking the reconstruction against image

Benchmark coverage (full VFDR-Bench)

The full VFDR-Bench corpus spans:

  • 5,000 documents
  • 22 languages
  • 17 domains, including scanned and born-digital sources, single- and multi-column layouts
  • Fully expert human-annotated ground truth for structural, spatial, and visual correctness

This Hugging Face release is a subset for exploration and Data Studio preview; the full benchmark release is planned.

Evaluation metrics

VFDR-Bench scores a system along four axes, plus an aggregate Overall Score (OS):

Axis Metric(s) What it measures
Text Extraction (T.E.) Word Recognition Rate (WRR), Character Recognition Rate (CRR) Text transcription accuracy
Logical Structure (L.S.) Normalized Tree Edit Distance (NTED), TEDS (tables), CDM (formulas) Reading order, hierarchy, tables/lists/formulas
Physical Structure (P.S.) Global Position Score (GPS), Local Position Score (LPS) Layout- and line-level spatial fidelity (F1 of area-normalized overlap)
Visual Fidelity (V.F.) Visual Fidelity Score (VFS), via VLM-as-a-judge Rendered visual similarity to the ground truth
Overall = (TE + LS + PS + VF) / 4,   TE = (CRR + WRR) / 2,   PS = (GPS + LPS) / 2

Overall scores are also reported per-language subset: OS_all (all languages), OS_en (English), OS_zh (Chinese).

Benchmark results

Quantitative comparison of document-to-HTML methods on VFDR-Bench (from the paper, Table 2). Higher is better for all metrics except NTED (lower is better).

Pipeline tools

Method WRR↑ CRR↑ NTED↓ LPS↑ GPS↑ VFS↑ OS_all↑ OS_en↑ OS_zh↑
Marker 0.68 0.82 0.61 0.19 0.34 0.74 0.53 0.60 0.45
Docling 0.40 0.49 0.62 0.17 0.26 0.55 0.38 0.45 0.12

Expert (OCR-specialist) VLMs

Method WRR↑ CRR↑ NTED↓ LPS↑ GPS↑ VFS↑ OS_all↑ OS_en↑ OS_zh↑
rolmOCR 0.54 0.67 0.95 0.15 0.07 0.56 0.34 0.42 0.35
smolDocling 0.37 0.54 0.89 0.16 0.23 0.54 0.28 0.35 0.02
olmOCR 0.49 0.64 0.93 0.21 0.09 0.33 0.31 0.38 0.34
Nanonets-OCR-s 0.25 0.42 0.94 0.18 0.10 0.56 0.26 0.34 0.31
GOT-OCR-2.0 0.36 0.39 0.93 0.15 0.25 0.70 0.32 0.49 0.10
ChatDoc-OCRFlux 0.30 0.38 0.88 0.15 0.24 0.44 0.27 0.39 0.34

General-purpose VLMs

Method WRR↑ CRR↑ NTED↓ LPS↑ GPS↑ VFS↑ OS_all↑ OS_en↑ OS_zh↑
Qwen3-VL 0.66 0.79 0.59 0.22 0.30 0.43 0.47 0.48 0.31
Gemma3 0.58 0.59 0.85 0.19 0.25 0.38 0.36 0.42 0.37
InternVL3 0.06 0.30 0.82 0.19 0.29 0.31 0.22 0.29 0.27
Gemini-2.5-Pro 0.67 0.42 0.56 0.14 0.31 0.82 0.47 0.47 0.30
GPT-5 0.65 0.79 0.49 0.21 0.43 0.86 0.58 0.62 0.50

Screenshot-to-HTML methods

Method WRR↑ CRR↑ NTED↓ LPS↑ GPS↑ VFS↑ OS_all↑ OS_en↑ OS_zh↑
Webcode2m 0.33 0.45 0.82 0.15 0.29 0.39 0.30 0.42 0.13
Waffle VLM Websight 0.14 0.42 0.84 0.11 0.29 0.19 0.22 0.27 0.11

REPLICA (ours)

Method WRR↑ CRR↑ NTED↓ LPS↑ GPS↑ VFS↑ OS_all↑ OS_en↑ OS_zh↑
REPLICA 0.88 0.93 0.20 0.73 0.86 0.93 0.86 0.93 0.89

REPLICA achieves the best overall result across all methods — near-perfect text extraction, strong logical structure preservation, physical structure recovery over 85%, and the highest visual fidelity (93%) — outperforming strong baselines including GPT-5 and Gemini-2.5-Pro. Notably, REPLICA with Qwen3-VL-8B achieves a 39% overall gain over raw Qwen3-VL-30B despite being 3.75× smaller.

Citation

@InProceedings{Raghuveer_2027_REPLICA,
    author    = {Raghuveer, R. and Srinivasan, Anirudh and Venna, Venkata Kesav and Sreevatsa, S. and Jain, Aryan and Kukkala, Sahithi and Sarvadevabhatla, Ravi Kiran},
    editor    = {Fink, Gernot A. and Forn{\'e}s, Alicia and Kise, Koichi and Lopresti, Daniel},
    title     = {REPLICA: An Agentic Framework for Visually Faithful Document Reconstruction},
    booktitle = {Document Analysis and Recognition -- ICDAR 2026},
    year      = {2027},
    publisher = {Springer Nature Switzerland},
    address   = {Cham},
    pages     = {505--522},
    isbn      = {978-3-032-36023-6},
    doi       = {10.1007/978-3-032-36023-6_29},
    url       = {https://doi.org/10.1007/978-3-032-36023-6_29}
}

License

Apache 2.0

Downloads last month
163