Skip to content
Back to skills

Document Understanding Eval

ASecurity

Evaluates a model's capability to perform document understanding tasks, including key information extraction, visual question answering, table question answering, and structural reading comprehension, using textual layout representations derived from OCR and spatial verbalization. Use when the user wants to benchmark on DocVQA, InfographicsVQA, WikiTableQuestions, TabFact, SROIE, or asks about evaluating this task. Reports ANLS, accuracy.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
researchpythongoperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill document-understanding-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Document Understanding Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Document Understanding Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-document-understanding-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-document-understanding-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: document-understanding-eval
description: Evaluates a model's capability to perform document understanding tasks, including key information extraction, visual question answering, table question answering, and structural reading comprehension, using textual layout representations derived from OCR and spatial verbalization. Use when the user wants to benchmark on DocVQA, InfographicsVQA, WikiTableQuestions, TabFact, SROIE, or asks about evaluating this task. Reports ANLS, accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2409.11282
  bibtex_key: [REDACTED]
  confidence: high
---

# document-understanding-eval

> Leveraging Distillation Techniques for Document Understanding: A Case Study with FLAN-T5 — Lamott et al. (2024) (arXiv:2409.11282, 2024)

## What this evaluates

Evaluates a model's capability to perform document understanding tasks, including key information extraction, visual question answering, table question answering, and structural reading comprehension, using textual layout representations derived from OCR and spatial verbalization.

## Datasets

- **DocVQA** — total ?; splits: train (-1), test (-1)
- **InfographicsVQA** — total ?; splits: train (-1), test (-1)
- **WikiTableQuestions** — total ?; splits: train (-1), test (-1)
- **TabFact** — total ?; splits: train (-1), test (-1)
- **SROIE** — total ?; splits: train (-1), test (-1)

## Metrics

- `ANLS` **(primary)** — range: [0, 1]
  - Average Normalized Levenshtein Similarity; computes the normalized Levenshtein distance between predicted and ground truth text, averaged across samples.
- `accuracy` **(primary)** — range: [0, 1]
  - Exact-match accuracy; proportion of samples where the model's prediction exactly matches the ground truth answer.
- `type-aware accuracy` — range: [0, 1]
  - Accuracy measure for SROIE that requires both the correct entity value and the correct entity type to be predicted.

## Input / output format

**Input**: Textual layout representations generated via LAPDoc SpatialFormat, combined with OCR text (microsoft_cv or tesseract), formatted as task-specific prompts.

**Output**: JSON-formatted answers or extracted information matching the task instructions.

## Scoring recipe

```python
def score(predictions, gold, task):
    if task in ['DocVQA', 'InfographicsVQA']:
        return compute_anls(predictions, gold)
    elif task in ['TabFact', 'WikiTableQuestions']:
        return exact_match_accuracy(predictions, gold)
    elif task == 'SROIE':
        return type_aware_accuracy(predictions, gold)
    else:
        raise ValueError('Unknown task')
```

## Common pitfalls

- Models frequently fail to follow task instructions and generate the requested JSON output format, resulting in 0.0 scores.
- Datasets with very high page counts (e.g., DeepForm, Kleister Charity, PWC) are explicitly excluded, so performance does not generalize to multi-page documents.
- Curriculum learning temperature schedules significantly impact convergence and final scores; improper scheduling can degrade performance.

## Evidence (verbatim from paper)

> The evaluation is performed following the procedure presented in Lamott et al.: For the DUE datasets, we use the official evaluation repository with its given metrics: ANLS for DocVQA and InfographicsVQA and accuracy for TabFact and WikiTableQuestions. For SROIE, we use a type-aware accuracy measure.

## Citation

```bibtex
@misc{lamott2024leveraging,
  title={Leveraging Distillation Techniques for Document Understanding: A Case Study with FLAN-T5},
  author={Lamott et al. (2024)},
  year={2024},
  note={arXiv:2409.11282}
}
```

- arXiv: 2409.11282

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.