AI Cloud Architect

Optimizing document AI and structured outputs by fine-tuning Amazon Nova Models and on-demand inference

AWSHow-to by Sharon Li, Arlind Nocaj, Malte Reimann and Pat ReillyAWS Artificial Intelligence Blog

This post provides a comprehensive hands-on guide to fine-tune Amazon Nova Lite for document processing tasks, with a focus on tax form data extraction. Using our open-source GitHub repository code sample, we demonstrate the complete workflow from data preparation to model deployment.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A hands-on guide to fine-tuning Amazon Nova Lite for tax form data extraction, deployed with Bedrock on-demand inference billed per token.

Who it is for

Teams extracting structured fields from scanned forms or invoices on Bedrock who want higher accuracy without provisioned capacity.

Key points

  • Reported F1 rises from about 62-76% (base) to 75-96% (fine-tuned) across field categories on a synthetic W-2 dataset.
  • Training cost is $0.002 per 1,000 tokens per epoch; custom model storage is $1.95 per month.
  • Example inference cost is about $0.00021 per page at on-demand token pricing.

Timeline

  1. This postOptimizing document AI and structured outputs by fine-tuning Amazon Nova Models and on-demand inference
  2. Customer storyFine-tune Amazon Nova models for accurate email data extraction · AWS · Customer story

Go deeper