Header Label Value Paragraph
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Document Layout Attention: Field Extraction

Intelligent Document Processing (IDP) systems like LayoutLMv3 read a form or invoice not as a flat string of OCR text but as tokens scattered across a 2D page, each carrying both semantic content and spatial position. This simulator renders a mock invoice as a 3D scene of labelled blocks and computes a real self-attention layer over them, blending content similarity with a spatial-proximity bias exactly as a layout-aware transformer does, then draws the resulting label→value attention links as glowing arcs above the page. Tune the spatial bias weight, softmax temperature, simulated OCR noise and link-confidence threshold, or shuffle the layout entirely, and watch live field-extraction accuracy, link count and attention entropy respond.