Layout-Agnostic Form Key-Value Pairing via Graph Partitioning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Automated processing and understanding of forms with flexible or unknown layouts is a challenging problem, as existing solutions rely on predefined layouts and fail to scale with varying formats, leading to inefficiencies in extracting data from documents like governmental forms.

Innovation Solution

A layout-agnostic system using machine learning models to generate per-pixel embeddings, construct weighted graphs, and perform automated graph partitioning to identify key-value pairs within documents, allowing for the association of keys and values without prior knowledge of the form layout.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If predefined layout templates are used for form processing, then processing accuracy for known layouts is improved, but adaptability to flexible or unknown layouts deteriorates

Engineering Contradiction:
Improvedata extraction accuracyVSAvoidlayout adaptability
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The system performs self-learning by automatically analyzing form images and identifying key-value pair relationships without requiring manual template configuration. The machine learning model learns from the form structure itself, enabling the system to adapt to different layouts autonomously while maintaining high extraction accuracy.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The approach transitions from fixed layout parameters (predefined templates) to learned parameters (machine learning model weights). By changing the fundamental parameter representation from static template coordinates to dynamic neural network embeddings, the system achieves both accuracy and adaptability across varying form layouts.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If manual template configuration is used for each form layout, then processing accuracy is improved, but processing time and complexity increase

Engineering Contradiction:
Improvedata extraction accuracyVSAvoidtemplate configuration time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system performs preliminary learning during training phase where the machine learning model is pre-trained on labeled form data. This preliminary action captures the essential patterns of key-value associations, so that during actual processing, no additional template configuration time is needed - the model directly applies learned knowledge to extract data from any form layout.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

Instead of manually configuring templates for each form type, the system creates a learned representation (embedding) that copies and generalizes the underlying structure of key-value relationships across different forms. This learned copy replaces the need for repetitive manual template creation while maintaining extraction accuracy.

Inventive Principle:
Principle #26Copying

3Reliability

If layout-specific processing logic is implemented, then reliability for fixed layouts is improved, but scalability to new form formats deteriorates

Engineering Contradiction:
Improveprocessing reliabilityVSAvoidscalability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The machine learning model serves as a universal processor that handles multiple form layouts and formats through a single unified approach. Rather than implementing separate processing logic for each layout type, the model learns universal patterns of key-value associations that apply across diverse form formats, achieving both reliability and scalability.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent replaces the mechanical system of rule-based layout-specific processing logic with a learning-based system. Instead of manually programmed if-then rules that are fragile and hard to scale, the neural network learns processing patterns automatically, providing robust reliability while easily scaling to new form formats through continued learning.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS10878234B1Automated form understanding via layout agnostic identification of keys and corresponding values
Publication Date: 2020.12.29 AMAZON TECH INC
  • US10878234B1 patent drawing
  • US10878234B1 patent drawing
  • US10878234B1 patent drawing

AI summary

Techniques for automated form understanding via layout-agnostic identification of keys and corresponding values are described. An embedding generator creates embeddings of pixels from an image including a representation of a form. The generated embeddings are similar for pixels within a same key-value unit, and far apart for pixels not in a same key-value unit. A weighted bipartite graph is constructed including a first set of nodes corresponding to keys of the form and a second set of nodes corresponding to values of the form. Weights for the edges are determined based on an analysis of distances between ones of the embeddings. The graph is partitioned according to a scheme to identify pairings between the first set of nodes and the second set of nodes that produces a minimum overall edge weight. The pairings indicate keys and values that are associated within the form.