﻿# HuDocVQA: Hungarian synthetic document QA, mixed training and judge-dependent gains

Read HuDocVQA’s PDF-to-QA pipeline and full-finetuning results. Filtering, OCR mixture, checkpoint averaging and an LLM judge affect different reported gains.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/hudocvqa-hungarian-synthetic-qa-mixture-checkpoint-judge-boundaries/
Language: en

## Identify the paper’s actual datasets

The May 29, 2025 [HuDocVQA paper](https://arxiv.org/html/2505.23008v1) studies Hungarian document question answering using pages from Common Crawl PDFs. It distinguishes a synthetic QA collection, a small manually checked benchmark and a separate OCR-oriented page collection. These artifacts should remain separate from other similarly named Hungarian document datasets.

The [authors’ synthetic dataset card](https://huggingface.co/datasets/jlli/HuDocVQA) stores a page image with sequences of questions and answers, plus extracted text fields. Its record count therefore describes pages, not necessarily independent question-answer examples. The [manual artifact](https://huggingface.co/datasets/jlli/HuDocVQA-manual) contains 54 document images with human annotations. The paper describes translation-assisted annotation followed by verification by a native Hungarian speaker, rather than claiming every annotation was initially written directly in Hungarian.

## Generation and filtering have different roles

The pipeline extracts page text through both PyMuPDF and Tesseract, then uses Llama 3.3 70B to generate question-answer pairs. It filters short source text, insufficient question/source overlap, wrong-language questions and paraphrased duplicates. These filters address identified error patterns; passing them does not prove that every answer is correct or grounded in the right page region.

The paper partitions the synthetic collection by image and describes image-level deduplication between its collections. That is stronger provenance than a random question-row split, but reuse should still preserve source-document relationships. The [document-split guide](/journal/document-level-data-split-leakage/) explains why related pages can remain dependent even when individual question identifiers differ.

## The positive result is a combined recipe

Llama 3.2 11B Instruct scores 33.2% before adaptation and 40.4% with the reported mixed recipe including the larger OCR addition. Training on HuDocVQA alone instead produces 28.5%. The positive result therefore should not be summarized as synthetic QA automatically improving the model.

The recipe mixes document and other visual instruction data, adds OCR examples, and averages checkpoints. In the larger OCR condition, the paper reports 31.8% for the final checkpoint and 40.4% for the merged result. The checkpoint-selection procedure is consequently part of the observed result, not a negligible packaging detail.

## Filtering uses another evaluation comparison

The filtering ablation reports a 1.9 percentage-point difference on HuDocVQA-manual, from 40.7% without filtering to 42.6% with filtering. Both remain below that table’s 48.1% baseline. This is a different table and test population from the mixed-recipe improvement above.

The paper evaluates answer correctness with Llama 3.1 405B Instruct as an LLM judge. Its authors motivate this choice with examples where lexical ANLS and human judgments disagree. That does not make the judge infallible or turn the reported accuracy into the standard English DocVQA metric. The [DocVQA grounding guide](/journal/data-guide-docvqa-page-answer-grounding/) separates answer matching from evidence localization.

## Training resources are disclosed in the appendix

The full paper specifies full-parameter training, rather than LoRA, using PyTorch FSDP and LlamaFactory on 4 A100 GPUs with 80 GB each. It reports batch size 32, one epoch and peak learning rate 1e-6. Its averaging description includes the original checkpoint and the last three saved checkpoints.

Those details close gaps left by an abstract-only reading, but do not establish peak VRAM, local inference latency or monetary cost. The useful evidence is a particular Hungarian adaptation study with explicit data lineage, mixture and judging conditions. Independent repetition would need those conditions intact before attributing a gain to filtering, OCR data or training alone.
