[v42.3] Training a Specialized Model

[v42.3] Training a Specialized Model

This feature is available in v42.3 and later.

ORCA is a Vision Language Model (VLM) that extracts information from documents. To learn more, see v42.3 ORCA (Optical Reasoning and Cognition Agent) VLMs.

While the base model works out of the box, you can improve its performance by training it on your specific data using annotated documents. In v42.3 and later, ORCA VLMs can be managed and trained directly in Training Data Management (TDM). This article explains how to create a specialized model on top of the ORCA base model for your use case.

ORCA VLM specialization

The ORCA base model provides general-purpose extraction capabilities, but every customer’s documents are different.

Training the model on your documents allows you to:

Training creates a model tailored to your use case while still leveraging the capabilities of the ORCA base model.

Accuracy and automation tradeoffs

Creating a specialized model on top of the ORCA base model allows you to define whether you need more accuracy or more automation for your specific use case. If you use an ORCA VLM without specialization, you will either fully automate the processing or send everything for human review. To learn more, see Accuracy.

To specialize an ORCA model:

  1. Upload and annotate training documents.
  2. Train the model.
  3. Review the candidate model.
  4. Deploy the candidate model.
  5. Evaluate the candidate model.
  6. Retrain if needed or promote the model to production.

Before specializing an ORCA model, ensure that:

Follow the steps below to adapt the ORCA base model to your specific use case.

Upload and annotate training documents

Before specializing an ORCA base model, you must upload and annotate training documents for your layout. Doing so provides the ground-truth values the model will learn from during training.

Dataset requirements

To upload documents:

  1. Go to Models > VLM Field Extraction.
  2. Click the model definition associated with your layout.
  3. On the Model Details page, click the Training Data tab.
  4. In the Actions drop-down menu, click Upload Documents.
  5. Select your documents and click Upload.

Once the documents are loaded in the system, you’ll be able to start the annotation process.

Annotating documents

To access the VLM Annotations experience, click the Document ID link in the Training Data table for each file you want to annotate.

When annotating documents for adapting the ORCA base model, follow these guidelines:

Train the model

During training, the system uses the annotated document values as ground truth and trains a model tailored to your document format.

Number of required documents

To initiate training:

Training results

Training produces a candidate model that you need to deploy and evaluate against production data. To deploy the candidate:

Evaluate the candidate model

To evaluate the candidate model, you must first deploy it and then process documents through the system. Follow the steps below:

Using testing documents

We recommend setting aside 50-100 representative documents for testing your model’s performance.

Evaluating

  1. Deploy the candidate model
  2. Run your testing documents through the system with a 100% QA sample rate.
  3. Evaluate the model’s performance.

ORCA VLM transcriptions
Unlike traditional Identification models, ORCA VLMs directly generate transcriptions for each field.

  1. Decide next steps based on evaluation results.