GenAI-Powered Invoice Document Processing and Automation

uber · Tech · 2025 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: global invoice processing and accounts payable automation

Uber needed to automate high-volume supplier invoice processing because manual entry, RPA, Excel uploads, and rule-based systems were too slow, costly, error-prone, and brittle for global invoices with diverse templates, languages, handwriting, scans, multiple pages, and many required attributes.

Constraints:

Architecture

Uber built TextSense, a reusable document-processing platform for invoice automation. Invoice PDFs arrive through manual upload or ticket ingestion, then a common backend sends documents to TextSense. TextSense performs ingestion, pre-processing, OCR through Uber's Vision Gateway, AI/ML extraction with trained or pre-trained LLMs, post-processing with business rules, data validation, HITL review, and metrics monitoring. The invoice workflow validates and enriches extracted data, presents side-by-side PDF and model outputs for human review, and sends approved invoices to the ERP system for payment. Cadence orchestrates nonlinear document-processing workflows, and model selection favored GPT-4-style GenAI for line-item extraction while leaving business logic to post-processing.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  supplier-submission-channels["Supplier submission channels"] --> ticketing-system["Ticketing system"]
  supplier-submission-channels --> front-end-web-app["Front-end web app"]
  ticketing-system --> ingestion-service["Ingestion service"]
  front-end-web-app --> common-backend-endpoint["Common backend endpoint"]
  ingestion-service --> common-backend-endpoint
  common-backend-endpoint --> textsense["TextSense"]
  cadence-workflow-platform["Cadence workflow platform"] --> textsense
  textsense --> object-storage["Object storage"]
  textsense --> pre-processing["Pre-processing"]
  pre-processing --> vision-gateway-ocr["Vision Gateway OCR"]
  vision-gateway-ocr --> ai-and-ml-models["AI and ML models"]
  ai-and-ml-models --> post-processing-layer["Post-processing layer"]
  post-processing-layer --> hitl-review-ui["HITL review UI"]
  hitl-review-ui --> erp-system["ERP system"]
  textsense --> metrics-monitoring["Metrics monitoring"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Supplier submission channels Self-service supplier platform and email-based invoice submission paths that provide invoice PDFs. Ticketing system, Front-end web app
Ticketing system Receives email-submitted invoices and creates tickets based on predefined rules. Ingestion service
Front-end web app Accepts manual invoice PDF uploads from users. Common backend endpoint
Ingestion service Reads open tickets, extracts supplier emails and PDFs, and passes email text and PDFs forward. Common backend endpoint, TextSense
Common backend endpoint Unified service endpoint that forwards invoice documents to TextSense for processing. TextSense
TextSense Reusable document-processing platform abstracting OCR, LLM extraction, post-processing, validation, HITL review, and metrics across invoices and other document types. Object storage, Pre-processing, Vision Gateway OCR, AI and ML models, Post-processing layer, Metrics monitoring
Cadence workflow platform Orchestrates nonlinear and verbose document-processing workflows. TextSense
Object storage Stores ingested files from emails, PDFs, and ticketing systems. TextSense
Pre-processing Performs image augmentation, format conversion, and multi-page document standardization. Vision Gateway OCR
Vision Gateway OCR Uber CV platform used for optical character recognition on document images. AI and ML models
AI and ML models Trained or pre-trained LLM models extract invoice numbers, dates, amounts, and line information. Post-processing layer
Post-processing layer Applies business rules, validation, enrichment, and user-defined refinements before review and ERP integration. HITL review UI, ERP system
HITL review UI Side-by-side PDF and extracted-data interface with alerts and warnings for human validation and correction. ERP system
ERP system Receives approved invoice records for approval and vendor payment. —
Metrics monitoring Tracks processing speed, accuracy, cost efficiency, and accuracy trends for continuous improvement. TextSense

Data flow

Supplier invoices enter through either manual PDF upload or email/ticket ingestion. The front-end or ingestion service sends PDFs and parsed email details to a common backend endpoint, which calls TextSense. TextSense ingests and standardizes files, applies image augmentation and OCR, extracts invoice fields and line items with AI/ML models, validates and enriches the output with business rules and database checks, sends the result to a side-by-side HITL review UI, then forwards approved invoices to ERP approval and vendor-payment flows while capturing speed, accuracy, and cost metrics.

3 supporting quotes
“There are two ways documents come in: invoice PDF manual uploads and invoice tickets ingested from our ticketing system.”article, stated
“The email text is passed on to TextSense for parsing key information, which helps in further processing. The PDFs are sent (along with the details from the email text) to the common back-end endpoint”article, stated
“Once the response is extracted by TextSense, the post-processing layer kicks in. It validates the information, enriches the extracted data, and makes it ready for human review.”article, stated

Why this architecture

Uber chose a modular platform instead of a one-off invoice bot because document processing needs recur across entity extraction, summarization, classification, invoices, and future document types. TextSense centralizes common OCR/LLM/post-processing/HITL components, Cadence handles nonlinear workflows, configuration-driven integration reduces country-template rollout time, and post-processing keeps business rules out of the model's raw extraction step.

3 supporting quotes
“We designed a modular and pluggable architecture, enabling the platform to scale for diverse use cases like entity extraction, summarization, and classification.”article, stated
“For a configuration-driven integration, we emphasized minimal coding and extensive configurations to onboard new country-specific templates, significantly reducing rollout times.”article, stated
“So, for our data pipeline, we predicted all the details required from an invoice and built a post-processing layer to apply any business logic before showing it to the user for HITL review.”article, stated

Models used: TextSense · Cadence · Vision Gateway · OpenAI GPT-4 · seq2seq · Meta Llama 2 · Google Flan T5 · NLP · OCR · RPA · ERP

Scale

Alternatives considered (roads not taken)

Manual data entry and manual handling

Rejected because: Manual processing was slow, costly, delayed invoices through high average handling time, and increased error/reconciliation risk.

“Manual processing is time-consuming and costly. Further, the AHT (Average Handling Time) taken by operators to process an invoice document is high, causing significant delays.”article, stated
“human interventions heighten the risk of errors, leading to financial discrepancies and reconciliation challenges.”article, stated

RPA, rule-based systems, Excel uploads, and self-service supplier platforms

Rejected because: These systems lacked adaptability for changing formats and required manual rule-setting, maintenance, and intervention at high volume.

“Existing tools, including RBS (Rule-Based Systems) and RPA, need more adaptability and intelligence to handle the diverse and dynamic nature of invoice formats”article, stated
“as Uber grows and onboards new document formats, the RPA solution doesn’t scale well and needs training on the new formats via manual rule-setting.”article, stated

Fine-tuned open-source LLMs such as T5, seq2seq, and Llama 2

Rejected because: T5 exceeded 90% on header fields but line-item accuracy dropped after the first line and fine-tuning led to hallucinations for line information.

“T5 showed promise with great accuracy of over 90% for the invoice header fields, but it didn’t do well predicting the line’s information.”article, stated
“this also led to hallucinations, especially for the line information.”article, stated

Encode business rules directly in the model output

Rejected because: Uber found GPT-4 better at extracting what was available in documents than detecting existing invoice business patterns, so business logic moved to post-processing before HITL review.

“Even though GenAI wasn’t adept at detecting our existing invoice data patterns, it was very good at predicting what was available in the documents.”article, stated
“built a post-processing layer to apply any business logic before showing it to the user for HITL review.”article, stated

Patterns

human-in-the-loop-gate (financial operations)

Uber routes extracted invoice data through a HITL review UI with side-by-side PDF comparison, alerts, and warnings before invoices are approved and sent to ERP payment workflows.

“We designed a UI to enable users performing the HITL (Human in the Loop) review to do a side-by-side comparison of the PDF data versus the data extracted from the models.”article, stated
“Upon review and approval, the documents are processed as invoices and sent to the ERP system for approval and vendor payments.”article, stated

structured-output-contract (document extraction)

TextSense extracts specific invoice fields such as invoice number, date, amount, and line items, then validates those fields by exact or fuzzy matching depending on field type.

“Leverages trained or pre-trained LLM models for extracting specific data elements like invoice numbers, dates, and amounts.”article, stated
“some fields require an exact match (like invoice number), while others allow for fuzzy string matching (like invoice description).”article, stated

durable-execution (workflow orchestration)

Uber uses Cadence to manage nonlinear and verbose document-processing workflows across ingestion, OCR, model extraction, post-processing, validation, and integration.

“To manage nonlinear and verbose document processing workflows efficiently, we used Uber’s Cadence workflow platform.”article, stated
“TextSense abstracts all the above processes and serves as a versatile utility for extracting text from various document types, not just invoices.”article, stated

eval-driven-development (model selection)

Uber trained and evaluated multiple model families, tracked header and line-level accuracy, and uses accuracy trends to drive retraining.

“We fine-tuned and rigorously evaluated multiple LLM models, such as seq2seq, Meta® Llama 2®, and Google® Flan T5”article, stated
“Our accuracy metrics are designed to provide granular insights into model performance, enabling us to identify areas for improvement and guide model retraining efforts.”article, stated

cost-aware-routing (model selection)

The model choice was based on cost-benefit analysis comparing fine-tuned open-source models with proprietary GenAI, and the rollout reports handling-time and cost savings.

“So, based on the cost-benefit analysis, GenAI was a clear winner in terms of overall accuracy.”article, stated
“They have also resulted in a 25-30% cost saving compared to the manual process.”article, stated

fallback-degradation (automation scope)

The future roadmap reserves full end-to-end automation for cases that historically reach 100% accuracy, while other cases continue through HITL review.

“We also plan to enable ‌fully automated end-to-end processing for cases where 100% accuracy is met historically, reducing manual interventions and speeding up workflows.”article, stated
“the use of HITL processes allows for necessary human oversight, ensuring the highest levels of accuracy and compliance.”article, stated

observability-tracing (operations)

TextSense captures processing speed, accuracy, cost efficiency, and accuracy trends over time to drive continuous improvements and retraining.

“Captures key performance indicators like processing speed, accuracy rates, and cost efficiency.Uses these metrics to drive continuous improvements.”article, stated
“We also track accuracy trends over time to ensure that models continue to perform effectively as our invoice processing workload evolves.”article, stated

Tradeoffs

Platform scope

Chose a reusable TextSense document-processing platform over a one-off invoice-only automation.

Rationale: A modular platform lets Uber onboard new document processing use cases through configuration changes and reuse OCR/LLM/post-processing components.

“TextSense abstracts all the above processes and serves as a versatile utility for extracting text from various document types, not just invoices.”article, stated
“making it easy to onboard new document processing use cases through simple configuration changes.”article, stated

Model family

Chose OpenAI GPT-4-style GenAI over fine-tuned open-source seq2seq/Llama 2/Flan T5 models.

Rationale: GPT-4 handled complex unstructured documents and line prediction better, while fine-tuned models showed line-item degradation and hallucinations.

“OpenAI® GPT-4 ability to handle complex, unstructured data and its potential for future ensemble approaches made it the preferred choice.”article, stated
“Even though the LLM model had slightly higher header accuracy, GenAI was the winner for line prediction.”article, stated

Automation boundary

Chose HITL review for extracted invoices over fully automated processing for all invoices.

Rationale: Invoice accuracy and compliance require human oversight except for future cases where the system has historically achieved 100% accuracy.

“Includes HITL validation for critical reviews and corrections.”article, stated
“fully automated end-to-end processing for cases where 100% accuracy is met historically”article, stated

Where to implement invoice business rules

Chose post-processing layer after model extraction over forcing the model to infer existing business patterns.

Rationale: The model was better at extracting document-visible details, while deterministic business logic could be applied before user review.

“we predicted all the details required from an invoice and built a post-processing layer to apply any business logic”article, stated
“Applies business rules and user-defined post-processing steps to refine extracted data before final use.”article, stated

Gotchas (what bit them)

RPA and rule-based systems did not scale with invoice-format diversity.

Root cause: As Uber onboarded new formats, RPA required manual rule-setting and training for each new format.

Resolution: Move to a GenAI/TextSense architecture that adapts to diverse formats through models, configuration, and reusable components.

“the RPA solution doesn’t scale well and needs training on the new formats via manual rule-setting.”article, stated
“equipped to adapt to new and diverse invoice formats without requiring manual rule-setting.”article, stated

Fine-tuned models performed unevenly across invoice headers and line items.

Root cause: T5 learned header patterns well but line-item prediction degraded from the second line onward and hallucinated line information.

Resolution: Prefer GPT-4-style GenAI for extracting document-visible details, then apply deterministic business logic in post-processing.

“First-line accuracy was good, but we saw a considerable drop in accuracy while predicting the second line onwards.”article, stated
“OpenAI® GPT-4 models, which demonstrated better performance in accuracy and adaptability.”article, stated

Business-rule inference was a poor fit for raw GenAI extraction.

Root cause: The model was better at extracting visible document content than detecting historical invoice-data patterns and business rules.

Resolution: Extract all required details from documents and apply business logic afterward in the post-processing layer before HITL review.

“GenAI wasn’t adept at detecting our existing invoice data patterns, it was very good at predicting what was available in the documents.”article, stated
“built a post-processing layer to apply any business logic before showing it to the user for HITL review.”article, stated

Field accuracy needs field-specific scoring.

Root cause: Some invoice fields need exact matching while others, such as descriptions, allow fuzzy string matching.

Resolution: Calculate accuracy at header and line levels and define the match type per field.

“We calculate accuracy at the header level (overall invoice information) and the line level (individual line items within the invoice)”article, stated
“some fields require an exact match (like invoice number), while others allow for fuzzy string matching”article, stated

High-volume suppliers deserve targeted profiling first.

Root cause: Many invoices came from a small subset of suppliers, so labeling all suppliers uniformly would waste effort.

Resolution: Prioritize high-volume suppliers whose field-level accuracy falls below a threshold for profiling and labeling.

“many invoices come from a small subset of suppliers. High-volume suppliers with significant yearly invoice volumes are prioritized for profiling”article, stated
“Suppliers whose field-level accuracy falls below the threshold are targeted for labeling”article, stated

Evaluation

Uber evaluated invoice extraction with one year of invoice data split 90/10 for train/test, compared fine-tuned open-source models against GPT-4-style GenAI, measured header and line-level accuracy with field-specific exact or fuzzy matching, tracked accuracy trends over time, and monitored processing speed, accuracy, and cost efficiency.

Metrics: 90% training data · 10% test data · header-level accuracy · line-level accuracy · exact field match · fuzzy string match · processing speed · accuracy rates · cost efficiency · average handling time · manual invoicing reduction

3 supporting quotes
“We considered the last year of invoice data for training and took 90% for training data and 10% for test data.”article, stated
“We calculate accuracy at the header level (overall invoice information) and the line level (individual line items within the invoice)”article, stated
“Captures key performance indicators like processing speed, accuracy rates, and cost efficiency.Uses these metrics to drive continuous improvements.”article, stated

Outcomes

The case is production-scale for Uber finance: global supplier invoices across thousands of suppliers, more than 25 languages, 15-20 attributes per invoice plus line items, and reported outcomes of 2x manual-invoicing reduction, 90% overall accuracy, 70% lower handling time, and 25-30% cost savings.

3 supporting quotes
“The implementation of the GenAI-powered invoice automation system at Uber has yielded remarkable results. Our GenAI-based solution achieved:”article, stated
“35% of submitted invoices achieved a near-perfect accuracy of 99.5%, and 65% achieved more than 80% accuracy.”article, stated
“These results have significantly reduced manual intervention and set a new benchmark for operational excellence within Uber’s financial operations management.”article, stated