TL;DR
Evaluating PDF-to-Markdown conversion for Japanese technical documents reveals a significant scoring pitfall: digits embedded in Markdown syntax (like image paths or HTML attributes) are often incorrectly counted as document content, skewing performance metrics. The study finds that while layout-aware converters like MinerU provide structure, plain-text OCR baselines often achieve higher character accuracy, and multi-engine disagreement checks are less effective than expected due to shared errors between models.
What Problem Does This Paper Address?
As RAG (Retrieval-Augmented Generation) and LLMs become standard, converting legacy PDFs into structured Markdown is a critical preprocessing step. However, most benchmarks focus on English or Chinese. Japanese technical documents present unique challenges, such as:
- Character Contamination: Models trained on Chinese may incorrectly insert simplified Chinese characters into Japanese text.
- Look-alike Confusion: High similarity between characters like the katakana "タ" (ta) and the kanji "夕" (evening), or the prolonged sound mark "ー" and the kanji numeral "一" (one).
- Numerical Sensitivity: In technical reports, a single digit error (e.g., 1/200 becoming 1/20) is far more damaging than a typical typo, yet standard Character Error Rate (CER) metrics may not reflect this severity.
The authors specifically investigate why current scoring methods for "number-and-unit" extraction are prone to artifacts that misrepresent tool performance.
Methods
The researchers compared three primary setups:
- MinerU (System A): A popular layout-aware PDF-to-Markdown converter.
- NDLOCR-Lite (System B): A plain-text OCR baseline developed by the National Diet Library of Japan.
- Proposed Pipeline (System E): A deterministic post-processing pipeline applied to MinerU's output. It includes anchor insertion, footnote reordering, and a "gated formula repair" that only triggers if two independent partner engines (NDLOCR-Lite and Tesseract) agree on a correction.
The evaluation design, illustrated in Figure 1, compares these systems across both original "text-layer" PDFs and rasterized (image-only) versions to isolate the impact of the OCR path.
Datasets
The study uses a preliminary but high-quality dataset of 48 pages across three public Japanese documents:
- c01: A legal notification from the Ministry of Construction (rich in kanji numerals and headings).
- c06: A J-STAGE survey report (rich in charts and percentages).
- c08: An engineering paper (two-column layout with equations and tables).
Detailed characteristics of these documents are listed in Table 2.
Key Insights and Ideas
- The Notation Pitfall: The most striking finding was that MinerU initially appeared to perform poorly on number extraction (F1 of 0.397 vs 0.575 for the baseline). However, this was an artifact. The scorer was counting digits found in Markdown syntax—such as
orrowspan="3"—as "errors" because they weren't in the ground truth. Once this notation was stripped, the scores tied. - Shared Misses Defeat Disagreement Checks: The authors hypothesized that comparing two different OCR engines would flag most errors. In reality, it only caught ~13% of number errors. This is because different engines often make the same mistakes (e.g., both missing a small tick mark on a graph), meaning a lack of disagreement does not guarantee correctness.
- Taxonomy of Japanese Failures: The paper formalizes a taxonomy of failures (F1 through F7), ranging from simplified character contamination to "heading flattening," where a structural heading is demoted to body text.
Key Results
- Character Accuracy: The plain-text OCR baseline (NDLOCR-Lite) significantly outperformed the layout-aware converter on body text CER (0.012 vs 0.053 in the rasterized condition).
- Post-processing Trade-offs: The proposed pipeline (System E) successfully improved "extra-number" recall (like page numbers and footnotes) by +0.145. However, it actually reduced heading-level agreement (from 0.133 to 0.061), suggesting that rule-based reconstruction can sometimes overwrite correct layout data.
- Formula Repair: The gated formula repair (requiring two-engine agreement) never actually fired during the test, highlighting how difficult it is to achieve consensus on complex mathematical spans.
Limitations and Future Work
The authors acknowledge several limitations:
- Small Scale: The evaluation is limited to 48 pages, which may not capture the full variance of Japanese technical documents.
- Best-Case Rasterization: The rasterized documents were clean, 300 dpi digital conversions, not actual physical scans with noise, skew, or stains.
- Scope: Vertical writing, "ruby" characters (furigana), and archaic character forms were excluded.
Future Work: The team plans to expand the benchmark to 100–300 pages, include newer tools like Docling and Marker, and involve native speakers to review the simplified-character replacement tables. They emphasize that for critical technical data, human checking against the source remains the only true safeguard.
Summary updated