Model Mitigation and Saturation

Model Mitigation and Saturation

This article is intended for users who continue to experience poor model performance even after completing the initial monitoring and retraining steps. Before using the guidance in this article, make sure you’ve completed the following:

If you’ve completed all of the above and the model still underperforms, you’re likely facing one of two advanced challenges:

In this article, you’ll learn how to:

Business logic vs identification logic

To improve performance, it’s critical to separate business logic from identification logic.

Vendor
A vendor is a third-party entity that conducts business with your company and sends you documents. The meaning of the data can vary depending on the vendor.

Handle business logic outside the model
Apply business rules upstream (before ingestion) or downstream (post-processing). Contact your Hyperscience representative for more information.

By keeping business rules out of the model and focusing only on consistent text and layout patterns, you ensure more reliable results. The next sections explain how to achieve this in practice and how to handle complex datasets.

How to achieve reliable results

To obtain reliable results, it's essential to apply consistent rules when annotating:

Understanding the root cause

Based on the business and identification logic, you can determine the root cause of poor model performance. Most common scenarios are:

The next sections will help you recognize which of these scenarios applies to your case and what to do about it.

Overcomplicating the model

In some cases, model underperformance is caused by how it’s being used. This scenario often arises when the model is expected to perform tasks beyond its design, such as applying business logic or making decisions that should occur outside the platform. The meaning of the extracted data depends on the business context and information outside of the documents. The model can’t learn these kinds of rules.

Main goal of Identification models
The main goal of an identification model is to locate and extract fields, not to validate data, interpret meaning, or apply conditions based on business context. When annotation rules are based on business context rather than document patterns, the model delivers unstable results.

Mitigating model underperformance

Focus identification logic on what's explicitly on the page (e.g., text and the location) instead of assumptions that require outside context or knowledge. Based on your use case, we recommend the following steps:

Business rules should not be incorporated into the annotation process
These rules can be applied upstream or in post-processing. Contact your Hyperscience representative for more information on applying custom logic to your flows.

Avoid conditional annotations
Fields should always be annotated based on layout patterns and text — not on meaning or conditions. If the same field is annotated with one meaning in some documents and a different meaning in others, the model will learn inconsistent patterns and deliver unstable results.

Model saturation

Even if your field definitions are clear and your annotation strategy is consistent, the model may still underperform. In these cases, the issue is often related to dataset complexity, not to logic misuse.

Model saturation happens when a model is trained on documents that are too diverse. There’s so much variation that the model can’t find stable patterns to learn from. Even with correct annotations, the model performs poorly because the task is too broad or too complex.

Model saturation can usually be recognized by symptoms like low accuracy after retraining, inconsistent results, or datasets that break down into many small groups after training data analysis.

Handling complex tasks

When a model is trained on too many diverse documents, performance becomes unstable. In these situations, it’s better to reduce the scope or simplify the task. This means breaking it down into several smaller tasks that are easier to manage and train. The goal is to reduce variation, improve consistency, and ensure the model sees repeatable patterns during training. We recommend the following solutions, based on your use case:

Next steps

After you’ve grouped the dataset into documents with similar patterns, you can train a dedicated model for each group following the guidelines described in Training a Semi-structured Model.

Important limits
To ensure stability and reliable results, keep your dataset within the following platform limits:

To learn more about the platform’s limits, see our Product Limits and Guidelines article or contact your Hyperscience representative.