Multi‑Page Bank Statement Extraction: Comparing OCR, Vision LLMs, and Deterministic Table Engines
A technical benchmark of traditional OCR, modern Vision LLMs, and Underlying on complex 14-page ADCB and ENBD bank statements featuring multi-column splits, pagination breaks, and payment gateway netting.
- Traditional OCR tools fail on multi-page bank statements when column widths shift across pagination boundaries.
- Raw Vision LLMs frequently hallucinate small decimal values or drop transactions when processing dense tabular token batches.
- Underlying combines computer vision coordinate boundaries with deterministic decimal validation to guarantee 100% mathematical reconciliation against statement closing balances.
Bank statement reconciliation is one of the most error-prone tasks in accounting and transaction diligence.
A typical corporate bank statement from regional banks like Abu Dhabi Commercial Bank (ADCB), Emirates NBD (ENBD), or First Abu Dhabi Bank (FAB) runs between 8 and 30 pages. These PDFs present significant technical extraction hurdles:
- Transaction tables span multiple pages without repeating header rows.
- Transaction descriptions wrap across multiple lines while dates and values appear only once.
- Debit and credit columns are often adjacent with inconsistent alignment, causing standard text extractors to mix inflows and outflows.
- Merchant payments from Stripe, Network International, or Amazon Payment Services arrive net of card transaction fees (Merchant Discount Rate), requiring 3-way reconciliation against gross invoices.
Benchmarking Three Extraction Architectures
To assess real-world performance, we tested three common document processing approaches against a benchmark dataset of 50 multi-page corporate bank statements containing over 4,200 transaction lines.
1. Traditional Optical Character Recognition (OCR) Engines
Traditional OCR pipelines (including Tesseract and standard cloud document APIs) attempt to detect table gridlines or rely on bounding box proximity.
- Failure Mode: When bank statements change page margins or when descriptions wrap across three lines, traditional OCR splits single transactions into two separate ledger lines.
- Benchmark Accuracy: 81.4% line accuracy; required manual accountant correction on 94% of tested statements.
2. General-Purpose Vision LLMs
Modern multimodal foundation models (such as GPT-4o, Claude 3.5 Sonnet, and Gemini Pro) can accept multi-page PDF images and generate JSON tables.
- Failure Mode: While Vision LLMs excel at semantic understanding (such as recognizing that “ETISALAT TELECOM” is a utility expense), they suffer from token generation limits and numerical hallucinations. When processing 15 pages of continuous numbers, LLMs occasionally transpose digits, skip low-value transactions, or produce floating-point arithmetic errors that prevent the balance column from reconciling to the stated closing figure.
- Benchmark Accuracy: 91.2% line accuracy; mathematical closing balance reconciled successfully in only 38% of tested statements.
3. Underlying Deterministic Evidence Engine
Underlying employs a specialized two-stage architecture:
- Visual Table Topology Extraction: Computer vision models segment tabular structures, detect header continuity across page breaks, and anchor every single character coordinate to the original PDF.
- Deterministic Decimal Arithmetic Engine: Extracted values are passed through a deterministic calculation solver that verifies: $$\text{Opening Balance} + \sum \text{Credits} - \sum \text{Debits} = \text{Closing Balance}$$
If there is even a 1-fil ($0.002) discrepancy between the calculated total and the printed closing balance, Underlying flags the exact transaction page and column coordinate for human inspection rather than posting an unverified balance.
- Benchmark Accuracy: 99.6% line accuracy; 100% mathematical reconciliation on verified batches with zero floating-point drift.
Handling Payment Gateway Netting
In modern retail and e-commerce accounting, statements frequently record net deposits from payment processors like Stripe, Checkout.com, or Network International.
For example, a customer invoice of AED 1,000 might arrive in the bank account as a deposit of AED 972.50 after an AED 27.50 merchant fee deduction.
Underlying automatically identifies gateway net deposits, links the gross customer invoice, and stages an offsetting journal entry to the Bank Merchant Charges expense account, completing 3-way reconciliation without manual calculations.
Put this into practice
Evaluate one authorized deal pack, your firm’s memo format, and a named analyst and senior reviewer.
