Introduction
Traditional document recognition often treats pages as collections of isolated symbols, relying on brittle heuristic rules to reconstruct meaning. This approach frequently fails for "convention-bound" documents like engineering drawings or music notation, where the spatial and logical structure is as vital as the symbols themselves. This paper introduces a "document-to-record" framework that transcribes documents directly into structured data objects (sequences, sets, or graphs), enabling the first successful end-to-end recognition of complex engineering drawings.
The Document-to-Record Framework
The core shift proposed is viewing document recognition as the inverse of document synthesis. Instead of just detecting objects, the model aims to recover the underlying "record"—the structured data used to generate the visual rendering.
Unlike standard object detection, which provides partial descriptions and requires post-processing, the document-to-record approach enables full information extraction by matching the model's architecture to the document's inherent structure. The authors utilize an encoder-decoder Transformer with specific "principled biases" in the decoder to handle different data types:
- Document-to-Sequence: For linear data like monophonic music, using standard autoregressive prediction.
- Document-to-Set: For unordered collections like basic shapes, using a novel "remaining-node prediction" strategy.
- Document-to-Graph: For interlinked data like blueprints, representing the graph as a set of nodes and relationship nodes to predict links between symbols.
Experimental Results and Insights
The framework was tested on synthetic datasets representing increasing levels of structural complexity, including monophonic music and complex engineering drawings.
The results demonstrate that matching the model's bias to the document structure is critical for efficiency. For instance, treating music (a sequence) as a set caused accuracy to drop from 96.6% to 19.4%. Conversely, the model achieved 74.8% accuracy on engineering drawings, marking a significant milestone in transcribing interlinked data without manual post-processing.
Conclusion
By treating document recognition as "inverse rendering" and incorporating structural inductive biases directly into the neural architecture, this research provides a blueprint for more robust and efficient document foundation models. While currently tested on synthetic data, this approach paves the way for handling the immense complexity of real-world technical documentation.
Summary updated