SROIE, short for Scanned Receipts OCR and Information Extraction, is a public benchmark dataset and competition of about 1,000 scanned shop receipts used to evaluate how well systems detect text, recognize it and extract key fields such as the company name, date, address and total. In Document AI it is one of the standard reference benchmarks for receipt understanding and key information extraction, alongside datasets such as FUNSD and CORD.
SROIE was introduced as a challenge at the ICDAR 2019 conference on document analysis and recognition. Its results are still reported in papers on layout-aware language models and OCR-free models, which makes it a common yardstick for comparing approaches, even though its small size and narrow scope now limit what a high score proves.
What the SROIE dataset contains
The dataset consists of scanned images of printed receipts, mostly from shops and restaurants in Malaysia, written largely in English. The images show the typical difficulties of real receipts: thermal print fading, low contrast, creases, skewed scans, small fonts and long, narrow layouts.
Each image comes with text line annotations as quadrilateral bounding boxes with transcriptions, and with a key-value file that lists four target fields. The commonly used split contains 626 training receipts and 347 test receipts, although some papers use slightly different subsets after removing faulty annotations.
| Property | Value | Practical consequence |
|---|---|---|
| Document type | Printed retail receipts | Narrow domain with repeated layouts |
| Size | About 1,000 images | Too small to train large models from scratch |
| Language | Mainly English | Limited test of multilingual ability |
| Annotation | Text lines plus four key fields | Supports detection, OCR and extraction tasks |
| Image quality | Scans with noise and fading | Rewards robust OCR and preprocessing |
The three SROIE tasks
The benchmark is divided into three tasks that mirror the stages of a classic receipt pipeline. Systems can be evaluated on each stage separately, which helps locate where errors originate.
| Task | Input | Output | Typical metric |
|---|---|---|---|
| Task 1: text localization | Receipt image | Bounding boxes of text lines | Precision, recall and F1 by box overlap |
| Task 2: scanned receipt OCR | Image with text regions | Recognized words | Word-level precision, recall and F1 |
| Task 3: key information extraction | Image and text | Company, date, address, total | Field-level exact-match F1 |
Task 3 attracts most attention in current research because it tests document understanding rather than pure recognition. An extracted value counts as correct only when it matches the ground truth exactly after normalization, so a single wrong digit in the total or a missing word in the address makes the field wrong.
How models are evaluated on SROIE
Evaluation uses precision, recall and their harmonic mean, F1. For key information extraction, each of the four fields in each test receipt is compared with the annotation, and the scores are aggregated across the test set.
Reported numbers are not always directly comparable. Some papers use the official OCR output or ground-truth text lines as input, while others run their own OCR, and some correct known annotation errors. A model fed ground-truth OCR text can score several points higher than the same model running end to end on raw images. Careful comparisons therefore state the OCR source, the exact split and whether the evaluation followed the official protocol.
Normalization rules also matter. The official scripts compare strings after limited cleanup, so differences in whitespace, letter case or date format can turn a semantically correct answer into an error. Generative models that rewrite a date from 25/03/2018 to 2018-03-25, for example, lose points unless their output is mapped back to the annotated format before scoring. Reproducible results therefore publish the post-processing code alongside the model.
SROIE compared with other document benchmarks
SROIE is one of several benchmarks used together to assess document models, each covering a different document type and task. Comparing them clarifies what a SROIE score does and does not demonstrate.
| Benchmark | Documents | Main task |
|---|---|---|
| SROIE | Scanned receipts | Four-field key information extraction |
| CORD | Indonesian receipts | Detailed receipt parsing including line items |
| FUNSD | Noisy scanned forms | Entity labeling and linking in forms |
| DocVQA | Varied industry documents | Question answering on document images |
| RVL-CDIP | Sixteen document classes | Document image classification |
Because SROIE asks for only four header-level fields, it does not test line item extraction, tax breakdowns or multi-page documents, which are often the hardest parts of production receipt and invoice processing.
Model performance and the saturation problem
Early competition entries combined conventional OCR with rules or sequence labeling. Later layout-aware models such as LayoutLM and its successors, which encode text, position and image features together, raised Task 3 F1 scores to roughly the mid-90 percent range. OCR-free models such as Donut read the image directly and generate the fields as text, reaching competitive results without a separate OCR step.
With leading scores clustered close together, the benchmark is largely saturated. Remaining errors often stem from annotation noise or ambiguous fields rather than genuine model weaknesses, so small differences between top models carry little practical meaning.
Common mistakes when using SROIE
Teams evaluating receipt extraction systems often draw overly broad conclusions from SROIE results. The following points summarize the most frequent pitfalls.
- Treating a high score as production readiness, although real receipts vary far more in language, layout and quality.
- Mixing evaluation settings, such as comparing an end-to-end result with one based on ground-truth OCR.
- Ignoring annotation errors, which cap achievable accuracy and distort small differences.
- Assuming coverage of line items, which the benchmark does not annotate.
Stripped to the essentials
SROIE is a shared test set of shop receipts. Researchers use it to see how well a computer reads receipts. The computer must find the text, read it and pick out four facts: the shop, the date, the address and the total.
Because everyone uses the same receipts, results are easy to compare. Today, top systems are almost perfect on this test. Real receipts are messier, so a good score is a start, not proof.
Where it is applied
A team building an expense management feature wants to choose between two extraction models. As a first filter, they run both on the SROIE test split with their own OCR engine, so the setting matches production. Model A reaches an F1 of about 94 percent on the four fields, model B about 91 percent, with most of model B’s errors in the address field.
The team does not stop there. They then evaluate both models on 2,000 internal receipts from several countries, including faded thermal prints and photos taken on phones, and add line item checks that SROIE lacks. Model A keeps its lead but drops to about 85 percent on the internal set. The outcome is a sound model choice based on SROIE as a quick public sanity check and the internal set as the deciding evidence.