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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Model Overview
|
| 2 |
+
|
| 3 |
+
### Description
|
| 4 |
+
|
| 5 |
+
The **NeMo Retriever Page Elements v3** model is a specialized object detection model designed to identify and extract key elements from charts and graphs. While the underlying technology builds upon work from [Megvii Technology](https://github.com/Megvii-BaseDetection/YOLOX), we developed our own base model through complete retraining rather than using pre-trained weights. YOLOX is an anchor-free version of YOLO (You Only Look Once), this model combines a simpler architecture with enhanced performance. The model is trained to detect **tables**, **charts**, **infographics**, **titles**, **header/footers** and **texts** in documents.
|
| 6 |
+
|
| 7 |
+
This model supersedes the [nemoretriever-page-elements](https://build.nvidia.com/nvidia/nemoretriever-page-elements-v2) model and is a part of the NVIDIA NeMo Retriever family of NIM microservices specifically for object detection and multimodal extraction of enterprise documents.
|
| 8 |
+
|
| 9 |
+
This model is ready for commercial/non-commercial use.
|
| 10 |
+
|
| 11 |
+
### License/Terms of use
|
| 12 |
+
|
| 13 |
+
The use of this model is governed by the [NVIDIA AI Foundation Models Community License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-community-models-license/).
|
| 14 |
+
|
| 15 |
+
**You are responsible for ensuring that your use of NVIDIA provided models complies with all applicable laws.**
|
| 16 |
+
|
| 17 |
+
### Deployment Geography
|
| 18 |
+
|
| 19 |
+
Global
|
| 20 |
+
|
| 21 |
+
### Use Case
|
| 22 |
+
|
| 23 |
+
The **NeMo Retriever Page Elements v3** model is designed for automating extraction of text, charts, tables, infographics etc in enterprise documents. It can be used for document analysis, understanding and processing. Key applications include:
|
| 24 |
+
- Enterprise document extraction, embedding and indexing
|
| 25 |
+
- Augmenting Retrieval Augmented Generation (RAG) workflows with multimodal retrieval
|
| 26 |
+
- Data extraction from legacy documents and reports
|
| 27 |
+
|
| 28 |
+
### Release Date
|
| 29 |
+
|
| 30 |
+
11/15/2025 via https://build.nvidia.com/nvidia/nemoretriever-page-elements-v3
|
| 31 |
+
|
| 32 |
+
### References
|
| 33 |
+
|
| 34 |
+
- YOLOX paper: https://arxiv.org/abs/2107.08430
|
| 35 |
+
- YOLOX repo: https://github.com/Megvii-BaseDetection/YOLOX
|
| 36 |
+
- Previous version of the Page Element model: https://build.nvidia.com/nvidia/nemoretriever-page-elements-v2
|
| 37 |
+
- Technical blog: https://developer.nvidia.com/blog/approaches-to-pdf-data-extraction-for-information-retrieval/
|
| 38 |
+
|
| 39 |
+
### Model Architecture
|
| 40 |
+
|
| 41 |
+
**Architecture Type**: YOLOX <br>
|
| 42 |
+
**Network Architecture**: DarkNet53 Backbone \+ FPN Decoupled head (one 1x1 convolution \+ 2 parallel 3x3 convolutions (one for the classification and one for the bounding box prediction). YOLOX is a single-stage object detector that improves on Yolo-v3. <br>
|
| 43 |
+
**This model was developed based on the Yolo architecture** <br>
|
| 44 |
+
**Number of model parameters**: $5.4*10^7$ <br>
|
| 45 |
+
|
| 46 |
+
### Input
|
| 47 |
+
|
| 48 |
+
**Input Type(s)**: Image <br>
|
| 49 |
+
**Input Format(s)**: Red, Green, Blue (RGB) <br>
|
| 50 |
+
**Input Parameters**: Two-Dimensional (2D)<br>
|
| 51 |
+
**Other Properties Related to Input**: Image size resized to `(1024, 1024)`
|
| 52 |
+
|
| 53 |
+
### Output
|
| 54 |
+
|
| 55 |
+
**Output Type(s)**: Array <br>
|
| 56 |
+
**Output Format**: A dictionary of dictionaries containing `np.ndarray` objects. The outer dictionary has entries for each sample (page), and the inner dictionary contains a list of dictionaries, each with a bounding box (`np.ndarray`), class label, and confidence score for that page. <br>
|
| 57 |
+
**Output Parameters**: One-Dimensional (1D) <br>
|
| 58 |
+
**Other Properties Related to Output**: The output contains bounding boxes, detection confidence scores, and object classes (chart, table, infographic, title, text, headers and footers). The thresholds used for non-maximum suppression are `conf_thresh=0.01` and `iou_thresh=0.5`. <br>
|
| 59 |
+
**Output Classes**: <br>
|
| 60 |
+
* Table
|
| 61 |
+
* Data structured in rows and columns
|
| 62 |
+
* Chart
|
| 63 |
+
* Specifically bar charts, line charts, or pie charts
|
| 64 |
+
* Infographic
|
| 65 |
+
* Visual representations of information that is more complex than a chart, including diagrams and flowcharts
|
| 66 |
+
* Maps are _not_ considered infographics
|
| 67 |
+
* Title
|
| 68 |
+
* Titles can be section titles, or table/chart/infographic titles
|
| 69 |
+
* Header/footer
|
| 70 |
+
* Page headers and footers
|
| 71 |
+
* Text
|
| 72 |
+
* Texts are regions of one or more text paragraphs, or standalone text not belonging to any of the classes above
|
| 73 |
+
|
| 74 |
+
Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA’s hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.
|
| 75 |
+
|
| 76 |
+
### Usage
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
# [TODO]
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
### Software Integration
|
| 83 |
+
|
| 84 |
+
**Runtime Engine(s):**
|
| 85 |
+
- **NeMo Retriever Page Elements v3** NIM
|
| 86 |
+
|
| 87 |
+
**Supported Hardware Microarchitecture Compatibility [List in Alphabetic Order]:**
|
| 88 |
+
- NVIDIA Ampere
|
| 89 |
+
- NVIDIA Hopper
|
| 90 |
+
- NVIDIA Lovelace
|
| 91 |
+
|
| 92 |
+
**Preferred/Supported Operating System(s):**
|
| 93 |
+
- Linux
|
| 94 |
+
|
| 95 |
+
The integration of foundation and fine-tuned models into AI systems requires additional testing using use-case-specific data to ensure safe and effective deployment. Following the V-model methodology, iterative testing and validation at both unit and system levels are essential to mitigate risks, meet technical and functional requirements, and ensure compliance with safety and ethical standards before deployment.
|
| 96 |
+
This AI model can be embedded as an Application Programming Interface (API) call into the software environment described above.
|
| 97 |
+
|
| 98 |
+
## Model Version(s):
|
| 99 |
+
|
| 100 |
+
* `nemoretriever-page-elements-v3`
|
| 101 |
+
|
| 102 |
+
## Training and Evaluation Datasets:
|
| 103 |
+
|
| 104 |
+
### Training Dataset
|
| 105 |
+
|
| 106 |
+
**Data Modality**: Image <br>
|
| 107 |
+
**Image Training Data Size**: Less than a Million Images <br>
|
| 108 |
+
**Data collection method by dataset**: Automated <br>
|
| 109 |
+
**Labeling method by dataset**: Hybrid: Automated, Human <br>
|
| 110 |
+
**Pretraining (by NVIDIA)**: 118,287 images of the [COCO train2017](https://cocodataset.org/#download) dataset <br>
|
| 111 |
+
**Finetuning (by NVIDIA)**: 36,093 images from [Digital Corpora dataset](https://digitalcorpora.org/), with annotations from [Azure AI Document Intelligence](https://azure.microsoft.com/en-us/products/ai-services/ai-document-intelligence) and data annotation team <br>
|
| 112 |
+
**Number of bounding boxes per class**: 35,328 tables, 44,178 titles, 11,313 charts and 6,500 infographics, 90,812 texts and 10,743 header/footers. The layout model of Document Intelligence was used with `2024-02-29-preview` API version.
|
| 113 |
+
|
| 114 |
+
### Evaluation Dataset
|
| 115 |
+
|
| 116 |
+
The primary evaluation set is a cut of the Azure labels and digital corpora images. Number of bounding boxes per class: 1,985 tables, 2,922 titles, 498 charts, 572 infographics, 4,400 texts and 492 header/footers. Mean Average Precision (mAP) was used as an evaluation metric, which measures the model's ability to correctly identify and localize objects across different confidence thresholds.
|
| 117 |
+
|
| 118 |
+
**Data collection method by dataset**: Hybrid: Automated, Human <br>
|
| 119 |
+
**Labeling method by dataset**: Hybrid: Automated, Human <br>
|
| 120 |
+
**Properties**: We evaluated with Azure labels from manually selected pages, as well as manual inspection on public PDFs and powerpoint slides.
|
| 121 |
+
|
| 122 |
+
**Per-class Performance Metrics**:
|
| 123 |
+
| Class | AP (%) | AR (%) |
|
| 124 |
+
|:------------|:-------|:-------|
|
| 125 |
+
| table | 44.643 | 62.242 |
|
| 126 |
+
| chart | 54.191 | 77.557 |
|
| 127 |
+
| title | 38.529 | 56.315 |
|
| 128 |
+
| infographic | 66.863 | 69.306 |
|
| 129 |
+
| text | 45.418 | 73.017 |
|
| 130 |
+
| header_footer | 53.895 | 75.670 |
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
## Inference:
|
| 134 |
+
|
| 135 |
+
**Acceleartion Engine**: TensorRT <br>
|
| 136 |
+
**Test hardware**: See [Support Matrix from NIM documentation](https://docs.nvidia.com/nim/ingestion/object-detection/latest/support-matrix.html#)
|
| 137 |
+
|
| 138 |
+
## Ethical Considerations
|
| 139 |
+
|
| 140 |
+
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.
|
| 141 |
+
|
| 142 |
+
**For more detailed information on ethical considerations for this model**, please see the Model Card++ [Explainability](explainability.md), [Bias](bias.md), [Safety & Security](safety-security.md), and [Privacy](privacy.md) Subcards.
|
| 143 |
+
|
| 144 |
+
Please report security vulnerabilities or NVIDIA AI Concerns [here](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
## Bias
|
| 148 |
+
|
| 149 |
+
| Field | Response |
|
| 150 |
+
| ----- | ----- |
|
| 151 |
+
| Participation considerations from adversely impacted groups [protected classes](https://www.senate.ca.gov/content/protected-classes) in model design and testing | None |
|
| 152 |
+
| Measures taken to mitigate against unwanted bias | None |
|
| 153 |
+
|
| 154 |
+
## Explainability
|
| 155 |
+
|
| 156 |
+
| Field | Response |
|
| 157 |
+
| ----- | ----- |
|
| 158 |
+
| Intended Task/Domain: | Document Understanding |
|
| 159 |
+
| Model Type: | YOLOX Object Detection for Charts, Tables, Infographics, Header/footers, Texts, and Titles |
|
| 160 |
+
| Intended User: | Enterprise developers, data scientists, and other technical users who need to extract structural elements from documents. |
|
| 161 |
+
| Output: | A List of dictionaries containing lists of dictionaries of floating point numbers (representing bounding box information). <br> **Example**: `{"data": [{"index": 0,"bounding_boxes": {"table": [{"x_min": 0.6503,"y_min": 0.2161,"x_max": 0.7835,"y_max": 0.3236,"confidence": 0.9306}]}}]}` |
|
| 162 |
+
| Describe how the model works: | The model identifies objects in an image by first dividing the image into a grid. For each grid cell, it extracts visual features and simultaneously predicts which objects are present (for example, 'chart' or 'table') and where they are located in that cell, all in a single pass through the image. |
|
| 163 |
+
| Name the adversely impacted groups this has been tested to deliver comparable outcomes regardless of: | Not Applicable |
|
| 164 |
+
| Technical Limitations & Mitigation: | The model may not generalize to unknown document types/formats not commonly found on the web. Further fine-tuning might be required for such documents. |
|
| 165 |
+
| Verified to have met prescribed NVIDIA quality standards: | Yes |
|
| 166 |
+
| Performance Metrics: | Mean Average Precision, detectionr recall and visual inspection |
|
| 167 |
+
| Potential Known Risks: | This model may not always detect all elements in a document. |
|
| 168 |
+
| Licensing & Terms of Use: | Use of this model is governed by the [NVIDIA AI Foundation Models Community License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-ai-foundation-models-community-license-agreement/) and the [Apache 2.0 License](https://github.com/Megvii-BaseDetection/YOLOX/blob/main/LICENSE). |
|
| 169 |
+
|
| 170 |
+
## Privacy
|
| 171 |
+
|
| 172 |
+
| Field | Response |
|
| 173 |
+
| ----- | ----- |
|
| 174 |
+
| Generatable or reverse engineerable personal data? | No |
|
| 175 |
+
| Personal data used to create this model? | No |
|
| 176 |
+
| Was consent obtained for any personal data used? | Not Applicable |
|
| 177 |
+
| How often is the dataset reviewed? | Before Release |
|
| 178 |
+
| Is there provenance for all datasets used in training? | Yes |
|
| 179 |
+
| Does data labeling (annotation, metadata) comply with privacy laws? | Yes |
|
| 180 |
+
| Is data compliant with data subject requests for data correction or removal, if such a request was made? | No, not possible with externally-sourced data. |
|
| 181 |
+
| Applicable Privacy Policy | https://www.nvidia.com/en-us/about-nvidia/privacy-policy/ |
|
| 182 |
+
|
| 183 |
+
## Safety
|
| 184 |
+
|
| 185 |
+
| Field | Response |
|
| 186 |
+
| ----- | ----- |
|
| 187 |
+
| Model Application Field(s): | Object Detection for Retrieval, focused on Enterprise |
|
| 188 |
+
| Describe the life critical impact (if present). | Not Applicable |
|
| 189 |
+
| Use Case Restrictions: | Abide by [NVIDIA AI Foundation Models Community License Agreement](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-community-models-license/). |
|
| 190 |
+
| Model and dataset restrictions: | The Principle of least privilege (PoLP) is applied limiting access for dataset generation and model development. Restrictions enforce dataset access during training, and dataset license constraints adhered to. |
|
| 191 |
+
|