A layout pass is not field extraction
Document AI in 2026 still gets sold as "OCR then JSON." That skips the stage that usually decides whether the JSON is trustworthy: layout. Before BuilderHelp posts a supplier invoice or Deerman maps a manufacturer PO, the page needs typed regions — header, body, table, footer — and a reading order that survives two columns and a remittance grid. Field extraction consumes that structure. Flattening the page into a left-to-right string and hoping a schema prompt untangles it is how totals land in the wrong column while every character scores high.
OCR answers what; layout answers where
Optical character recognition turns pixels into characters. Layout analysis turns the page into regions with types and geometry: text blocks, headings, tables, figures, headers, footers, checkbox clusters. Reading order then sequences those regions the way a human would — not the way a raster scan happens to visit them.
Those are different jobs. A perfect OCR pass on a two-column remittance can still interleave column A and column B into one token stream. The characters were right. The associations were not. Downstream extractors that only see the stream invent label-value pairs that never existed on the page.
We already route born-digital text layers away from unnecessary OCR. That note is about how characters arrive. This one is about what you build before you ask for invoice number, tax, and total. Skip the layout pass and every later confidence score is grading the wrong object.
BuilderHelp: dense forms break reading order first
Supplier invoices and credit memos look simple until the remittance block packs three logical fields into one visual cell. A left-to-right OCR dump merges neighboring columns. The model then confidently maps the wrong number into amount due because the string neighborhood looked like a total.
The fix is not a longer prompt on the flattened text. It is a structural detection pass that builds a region graph — ruling lines, cell bounds, checkbox clusters — and lets extraction walk that graph. Field-to-value links stay intact when the grid compresses or the print registration shifts a few millimeters.
Type still comes before extraction. A credit note and an invoice can share a layout family; layout tells you which boxes exist, document type tells you which posting path is legal. Layout without type still posts the wrong document. Type without layout still fills the wrong boxes.
Deerman: tables are geometry, not paragraphs
Manufacturer purchase orders fail in the table long before they fail in the header. Merged cells, wrapped descriptions, and totals that sit outside the grid all survive character recognition and die in row reconstruction. Treating the table as a paragraph with spaces is how line quantities attach to the wrong SKU.
Layout models that emit row and column structure — or at least cell boxes the extractor can cluster — give the parser something honest to validate against. Cross-field checks (line extensions summing to a subtotal) only help if the cells were grouped correctly in the first place.
When a vendor redesign moves the total, layout fingerprints catch drift. That signal is useless if your baseline never stored region geometry — only a bag of OCR strings. Fingerprint the structure you actually depend on.
Order the pipeline the failure modes demand
Practical sequence for mixed intake: classify the page route (text layer vs scan), run layout for region types and reading order, OCR or text-extract inside those regions, then extract fields into a schema with provenance tied to boxes. Validation and human queues sit after that, not instead of it.
Collapsing layout into "the model will figure it out from the full-page image" can work on clean single-column invoices and still fail on the dense forms that fill the exception queue. If your straight-through rate is high and your corrections cluster on multi-column and table docs, you are missing a layout stage, not an OCR upgrade.
Keep metrics honest. Report layout failures separately from character errors and from field-mapping misses. A week of "OCR got worse" that is actually interleaved columns will send you shopping for engines while the region graph stays unbuilt.
What we check before calling extraction done
Can you point at the region type and bounding box for every posted field? If the only provenance is "it was somewhere in the page text," you cannot teach a reviewer or a drift detector what moved.
Do two-column and table fixtures fail differently from single-column ones — and does the pipeline have a named stage that should have caught that? If every failure funnels into one generic low-confidence bucket, the layout pass is not real yet.
The milestone is structured regions feeding extraction, not a prettier OCR string. Until reading order and table geometry are first-class, field JSON is a guess with good typography.
Questions
- How is this different from routing text layers away from OCR?
- Text-layer routing decides how characters arrive on a born-digital page. Layout decides how those characters group into regions and reading order before fields are mapped. You need both: skip OCR when the text layer is honest, and still run layout when the page has columns or tables.
- Does layout analysis replace layout drift detection?
- No. Layout analysis builds the structure each document needs. Drift detection watches whether that structure still matches the vendor baseline. One is the forward path; the other is the alarm when the template moves.
- Can't a vision model do layout and fields in one shot?
- Sometimes on simple pages. Production queues still fill with dense grids and merged cells where a separate region map is cheaper to debug and validate than an opaque full-page guess. If you cannot name the stage that failed, you cannot fix the right one.
Sources
- Layout-aware extraction — structure as a first-class stage — OCR plus spatial context, reading order, and region typing before field mapping.
- Enterprise document processing workflows — layout before extraction — Classification, layout understanding, schema extraction, validation as separate pipeline stages.
- Related: A text layer is not OCR
- Related: A vendor redesign is not a bad scan