IP Library › Granted Patent US 12,400,469
Granted Patent B1
US 12,400,469 · App. 18/899,977 · Granted Aug 26, 2025

Computationally efficient artifact tagging for document management

Inventors: Conrad Larson De Peuter (Mountain View, CA); Harsha Ilapakurty (New York, NY); Jadiel De Armas (Mountain View, CA); Tharathorn Rimchala (San Francisco, CA); Seth Harris Rubin (Toronto, CA); Subathra Sundararajan (San Diego, CA)
Assignee: Intuit Inc.
G06V30/414G06F16/164G06F16/93G06T3/4038
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,400,469
App. No.
18/899,977
Filed
Sep 27, 2024
Granted
Aug 26, 2025
Kind
B1
Examiner
LU, KUEN S
Art Unit
2156
USPC
707/825
Abstract

Image pages are generated from a document. Assembling the image pages generates a collage. Two-dimensional text and bounding boxes are extracted from the image pages. A structure verbalizer spatially formats the two-dimensional text in one-dimension with spatial information to generate spatial-formatted text. The spatial-formatted text is concatenated to generate a text extraction. A multimodal embedding model is applied to the collage and the text extraction to generate a target artifact vector. The target artifact vector is compared against a set of preexisting artifact vectors to identify a corresponding artifact vector associated with a corresponding document having a corresponding metadata tag. A distance is determined between the corresponding artifact vector and the target artifact vector. Responsive to the distance being within a threshold distance additional steps are performed, including performing both applying the corresponding metadata tag to the document to generate a modified document and outputting the modified document.

Claims (87)

1. A method comprising:

generating a plurality of image pages from a target document;

generating an image collage by assembling the plurality of image pages into a sequential image mosaic comprising a plurality of pixels;

extracting two-dimensional text and corresponding bounding boxes from the plurality of image pages;

applying a structure verbalizer to spatially format the two-dimensional text in one-dimension with spatial information based on the corresponding bounding boxes to generate spatial-formatted text;

concatenating the spatial-formatted text to generate a sequential spatial-formatted text extraction;

applying a multimodal embedding model to the plurality of pixels of the image collage and the sequential spatial-formatted text extraction to generate a target artifact vector comprising an embedded representation of the plurality of pixels and the sequential spatial-formatted text extraction;

comparing, using a nearest-neighbor model, the target artifact vector against each preexisting artifact vector in a set of preexisting artifact vectors to identify a corresponding artifact vector from the set of preexisting artifact vectors, wherein the corresponding artifact vector is associated with a corresponding document, the corresponding document having a corresponding metadata tag; and

determining that a multimodal embedding distance between the corresponding artifact vector and the target artifact vector are within a threshold distance and, in response to determining, performing:

applying the corresponding metadata tag to the target document to generate a modified target document, and

outputting the modified target document.

2. The method of claim 1 , wherein:

concatenating the spatial-formatted text to generate the sequential spatial-formatted text extraction comprises concatenating the spatial-formatted text from a first page,

the spatial-formatted text is from a subsequent page, and

a page break character separates the spatial-formatted text from the first page and separates the spatial-formatted text from the subsequent page.

3. The method of claim 1 , wherein the corresponding artifact vector has a similar embedded representation that is similar to the embedded representation of the plurality of pixels and the sequential spatial-formatted text extraction.

4. The method of claim 1 , further comprising:

confirming whether the corresponding metadata tag matches a portion of the two-dimensional text.

5. The method of claim 4 , further comprising:

indicating, in response to the corresponding metadata tag not matching the portion of the two-dimensional text, that the corresponding metadata tag comprises a hallucination of a language model.

6. The method of claim 1 , wherein the corresponding artifact vector is a preexisting artifact vector that is closest in a multimodal embedding space to the target artifact vector based on Euclidean distance.

7. The method of claim 1 , wherein the corresponding artifact vector is a preexisting artifact vector that is closest in a multimodal embedding space to the target artifact vector based on nearest neighbor voting.

8. The method of claim 1 , further comprising:

flagging, in response to the multimodal embedding distance between the corresponding artifact vector and the target artifact vector not being within the threshold distance, the target document as an anomalous document.

9. The method of claim 8 , further comprising taking additional steps in response to flagging the target document as the anomalous document, the additional steps comprising:

applying a large language model to the target document to generate a created metadata tag;

adding the created metadata tag to the target document to generate the modified target document; and

outputting the modified target document.

10. The method of claim 1 , further comprising:

applying optical character recognition to the plurality of image pages to extract the two-dimensional text.

11. The method of claim 1 , wherein the image collage comprises a grid of the plurality of image pages, the grid in sequence from left-to-right, top-to-bottom.

12. A system comprising:

a server comprising a processor;

a data repository in communication with the processor, and storing:

a target document, the target document comprising two-dimensional text, an image collage comprising a sequential image mosaic having a plurality of pixels,

spatial-formatted text comprising the two-dimensional text spatially formatted in one-dimension,

a sequential spatial-formatted text extraction,

a target artifact vector comprising an embedded representation of the plurality of pixels and the sequential spatial-formatted text extraction,

a set of preexisting artifact vectors, wherein each of set of preexisting artifact vectors has an embedded representation, and is associated with a corresponding document,

a threshold distance, and

a modified target document;

a structure verbalizer which, when executed by the processor, is programmed to apply the structure verbalizer to spatially format the two-dimensional text in one-dimension with spatial information based on corresponding bounding boxes from a plurality of image pages to generate the spatial-formatted text;

a multimodal embedding model which, when executed by the processor, is programmed to apply the multimodal embedding model to the plurality of pixels of the image collage and the sequential spatial-formatted text extraction to generate the target artifact vector; and

a server controller which, when executed by the processor, performs a computer-implemented method comprising:

generating the plurality of image pages from the target document,

generating the image collage by assembling the plurality of image pages into the sequential image mosaic,

extracting the two-dimensional text and corresponding bounding boxes from the image pages,

applying the structure verbalizer to the two-dimensional text to generate the spatial-formatted text,

concatenating the spatial-formatted text to generate the sequential spatial-formatted text extraction,

applying the multimodal embedding model to the plurality of pixels of the image collage and the sequential spatial-formatted text extraction to generate the target artifact vector,

comparing, using a nearest-neighbor model, the target artifact vector against each preexisting artifact vector in the set of preexisting artifact vectors to identify a corresponding artifact vector from the set of preexisting artifact vectors, wherein the corresponding artifact vector:

has a similar embedded representation that is similar to the embedded representation of the plurality of pixels and the sequential spatial-formatted text extraction, and

is associated with a corresponding document, the corresponding document having a corresponding metadata tag; and

determining that a multimodal embedding distance between the corresponding artifact vector and the target artifact vector is within the threshold distance and, in response to determining, performing additional steps comprising:

adding the corresponding metadata tag to the target document to generate the modified target document; and

outputting the modified target document.

13. The system of claim 12 , wherein the computer-implemented method further comprises:

concatenating the spatial-formatted text from a first page, the spatial-formatted text from a subsequent page and a page break character separating the spatial-formatted text from the first page and the spatial-formatted text from the subsequent page.

14. The system of claim 12 , wherein the computer-implemented method further comprises:

confirming whether the corresponding metadata tag matches a portion of the two-dimensional text.

15. The system of claim 14 , wherein the computer-implemented method further comprises:

indicating, in response to the corresponding metadata tag not matching the portion of the two-dimensional text, that the corresponding metadata tag comprises a hallucination of a language model.

16. The system of claim 12 , wherein the computer-implemented method further comprises:

flagging, in response to the multimodal embedding distance between the corresponding artifact vector and the target artifact vector not being within the threshold distance, the target document as an anomalous document; and

performing, in response to flagging the target document as the anomalous document, additional steps comprising:

applying a large language model to the target document to generate a created metadata tag;

adding the created metadata tag to the target document to generate the modified target document; and

outputting the modified target document.

17. The system of claim 12 , wherein the computer-implemented method further comprises:

applying optical character recognition to the plurality of image pages to extract the two-dimensional text.

18. The system of claim 12 , wherein the image collage comprises a grid of the plurality of image pages.

19. The system of claim 18 , wherein the grid is in sequence from left-to-right, top-to-bottom.

20. A method comprising:

generating a plurality of image pages from a target document;

generating an image collage by assembling the plurality of image pages into a sequential image mosaic comprising a plurality of pixels;

extracting two-dimensional text and corresponding bounding boxes from the plurality of image pages;

applying a structure verbalizer to spatially format the two-dimensional text in one-dimension with spatial information based on the corresponding bounding boxes to generate spatial-formatted text;

concatenating the spatial-formatted text to generate a sequential spatial-formatted text extraction;

applying a multimodal embedding model to the plurality of pixels of the image collage and the sequential spatial-formatted text extraction to generate a target artifact vector comprising an embedded representation of the plurality of pixels and the sequential spatial-formatted text extraction;

comparing using a nearest-neighbor model to the target artifact vector against each preexisting artifact vector in a set of preexisting artifact vectors to identify a corresponding artifact vector from the set of preexisting artifact vectors, wherein the corresponding artifact vector:

has a similar embedded representation that is similar to the embedded representation of the plurality of pixels and the sequential spatial-formatted text extraction, and

is associated with a corresponding document, the corresponding document having a corresponding metadata tag; and

performing, in response to a multimodal embedding distance between the corresponding artifact vector and the target artifact vector not being within a threshold distance, additional steps comprising:

flagging the target document as an anomalous document,

applying a large language model to the target document to generate a created metadata tag,

adding the created metadata tag to the target document to generate a modified target document, and

outputting the modified target document.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 30, 2024
From: DE PEUTER, CONRAD LARSON; ILAPAKURTY, HARSHA; DE ARMAS, JADIEL; RIMCHALA, THARATHORN; RUBIN, SETH HARRIS; SUNDARARAJAN, SUBATHRA
To: INTUIT INC.
Reel/Frame 069697/0856 →
References Cited (5)
US 6400996B1 · Hoffberg · 2002 [cited by examiner]
US 11809822B2 · Lin · 2023 [cited by examiner]
US 20030074368A1 · Schuetze · 2003 [cited by examiner]
US 20090015713A1 · Horton · 2009 [cited by examiner]
US 20210271707A1 · Lin · 2021 [cited by examiner]
Cited By (1)
US 12,620,252