Digits in Notation Are Not Numbers: A Scoring Pitfall in PDF-to-Markdown Conversion of Japanese Technical Documents (Preliminary Evaluation)

Mitsumasa WadaarXiv 2026 · arXiv

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:

  1. MinerU (System A): A popular layout-aware PDF-to-Markdown converter.
  2. NDLOCR-Lite (System B): A plain-text OCR baseline developed by the National Diet Library of Japan.
  3. 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.

Evaluation design comparing text-layer and rasterized conditions.

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.

Table 2: Evaluation documents. All three have a text layer. Source URL, retrieval date, and SHA-256 are in Appendix D.

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 ![](images/hash123.jpg) or rowspan="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.
Table 1: Taxonomy of failures.

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

Abstract

Converting PDFs to Markdown is now routine preprocessing for search and language models, yet scoring the numbers in the output is easy to get wrong. We evaluate MinerU, a plain-text OCR baseline (NDLOCR-Lite), and a deterministic post-processing pipeline (anchor insertion, footnote reordering, fixes of look-alike characters in fixed contexts, gated formula repair using two independent OCR partners, and heading reconstruction) on 48 public Japanese pages (three documents), text-layer and rasterized. Our pre-specified number-and-unit F1 favored the OCR baseline (0.575 vs 0.397), and a disagreement check between the two engines seemed to flag about half of the converter's number errors (54.6%). Both were artifacts. The scorer counted digits in the converter's notation (image-link paths, HTML attributes), which plain text lacks. With the notation removed (a post-hoc check), the F1 scores tie (0.575 vs 0.594), and the check flags only 13% of number errors, because most errors are misses that both engines share. What remains: the OCR baseline has a lower body character error rate (0.012 vs 0.053 rasterized). The pipeline raises extra-number recall at page level (+0.145; the document-level interval touches 0), mostly by restoring page numbers, but lowers heading-level agreement (0.133 to 0.061) and leaves spurious formulas unchanged; its formula repair never fires. A pre-specified precision gate for its flags (0.80, human-judged) is met at 0.929, yet the post-processing hypothesis fails on its improvement items. We recommend scoring numbers after removing notation and checking critical figures against the source. By the pre-specified criteria, the study stays a technical report.
BibTeX
@misc{wada2026digits,
  author = {Mitsumasa Wada},
  title = {{Digits in Notation Are Not Numbers: A Scoring Pitfall in PDF-to-Markdown Conversion of Japanese Technical Documents (Preliminary Evaluation)}},
  year = {2026},
  eprint = {2611.20993},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20993},
}
Figure