Research · Virginia Tech · Jun 2025 – Jul 2026 · ICTAI 2026
Improving LLM-based OCR
How do you choose the right layout model to feed a language model, when the layout models cannot be compared to each other in the first place?
Co-author on Improving LLM-Based OCR Through Document Segmentation and Semantic Prompting, accepted to ICTAI 2026. I built the benchmarking pipeline for the layout-detection stage and found that much of the models’ apparent disagreement was a measurement artifact. Normalizing it cut benchmarking error by 40%.
The problem
Classic OCR reads a page as a flat string and ignores structure. Once a language model is doing the reading, structure matters again: a model that does not know it is looking at a table will misread it. The pipeline we tested was two-stage. A layout model segments the page and extracts text, and that goes into a vision-language model as context, on the hypothesis that the VLM returns something cleaner and better structured than either stage alone.
My job was the first stage: deciding which layout model to trust. The honest answer going in was that we could not tell, because Detectron2, MinerU, and LayoutParser were not comparable to each other.
What I found
The models segment a page at different granularities. One returns a paragraph as a single region; another returns each of its lines. Score them naively against ground truth and you penalize a model for being more detailed rather than for being wrong. That is a measurement artifact, not a performance difference, and it was dominating the rankings.
The literature had several partial answers and no complete one, so I combined them into a bounding-box simplification step that brings every model’s output down to a common granularity before anything is scored, then re-ran the whole benchmark. Benchmarking error dropped 40%, and the rankings started reflecting accuracy instead of segmentation style. That is what finally let us pick the front end of the pipeline on evidence.
What the paper says
- MinerU wins layout IoU decisively, at 0.9654 on PRImA and 0.9994 on DocLayNet, but is roughly a hundred times slower per page than Detectron2 or LayoutParser.
- On prompting, all four strategies land within a couple of points on average character error rate. The separation is in the outliers, where rule-based prompting is the stable choice. The averages hid the difference; the tails showed it.
My part
Built the benchmarking pipeline and the granularity normalization, ran the layout comparisons, and co-authored the paper alongside other undergraduate researchers and a faculty advisor. This is the anchor of the research side of what I do, and the piece I would point to for the claim that I have evaluated models at the pipeline level rather than only through an API.
- Role
- Undergraduate researcher and co-author
- Dates
- June 2025 – July 2026
- Venue
- ICTAI 2026 (accepted)
- Stack
- Python, PyTorch, TensorFlow, Detectron2, MinerU, LayoutParser