> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ovalbee.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ovalbee.com/_mcp/server.

# Compare prelabeling models

> Compare the prelabel evaluations of several models on one labeled dataset by how much labeling each would save, ranking paid LLMs and open-source foundation models each on their own.

## Overview

Ranks several prelabeling models by how much labeling each would save on the same labeled images. Paid LLMs and open-source foundation models get separate rankings, each with its own winner, because an LLM billed per token and a model running on your GPU are different trade-offs.

Every model is scored again here with one set of thresholds, on only the images all of them prelabeled, so the ranking is fair even when the evaluations behind it differ. The two badges name the best LLM and the best foundation model.

```mermaid
flowchart LR
  n1["Prelabel with GPT"] --> n2["Compare prelabels with ground truth"] --> n3["Compare prelabeling models"]
```

## Prerequisites

| Requirement                         | What you need                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Prelabel evaluations**            | Two or more reports of [Compare prelabels with ground truth](/node-library/nodes/evaluate-evaluate-prelabeling-efficiency), one per model and prompt, all scored against the same ground-truth dataset.                                                                                                                                                                                                                                                    |
| **Prelabels from a supported node** | Prelabeled datasets made by [Prelabel with Claude](/node-library/nodes/models-llm-prelabel-with-claude), [Prelabel with GPT](/node-library/nodes/models-llm-prelabel-with-gpt), [Prelabel with Gemini](/node-library/nodes/models-llm-prelabel-with-gemini), Prelabel with auto labeling or Predict Grounding DINO. Those nodes record which model made the boxes; a dataset from any other node is listed under its own name among the foundation models. |

## How it works

Finds the ground truth and the prelabeled dataset behind each evaluation, and refuses evaluations made against different ground truths.

Names the model behind each prelabeled dataset, which puts it among the paid LLMs or the foundation models.

Keeps only the images that the ground truth and every prelabeled dataset share, and scores every model on them the way Compare prelabels with ground truth does.

Compares the models of each group by error type, box fit, object size, crowding, and image by image.

Writes one report with a section per group and returns each group's winner.

## FAQ

#### Why are LLMs and foundation models never ranked together?

They answer different questions. An LLM costs money for every image and needs no GPU; a foundation model runs on your own GPU and learns your classes from reference images. One list would mix price and hardware into a single number, so each group gets its own winner and the report never puts both in one chart.

#### Why do my scores differ from the evaluations' own?

This node rescores every model with its own **Minimum IoU**, **Kept-as-is IoU** and **Minimum confidence**. When those differ from the settings the evaluations used, the scores differ too. Keep them equal to compare the numbers directly.

#### What happens when a model failed on some images?

An image that a prelabeled dataset holds without an annotation counts as failed: all its objects count as missed. A model that refuses or returns nothing pays for it instead of being scored only on the images it chose to answer.

#### Why do some images drop out of the comparison?

Only images present in the ground truth and in every prelabeled dataset are scored, so a model that labeled a different sample shrinks the set for everyone. The run log names the model that lacks images.

#### Why is there no mAP?

LLM boxes carry no confidence, so there is no threshold to sweep and mAP would mean little for them. Every model is ranked by its assistance score instead, with precision and recall beside it. For mAP, run [Evaluate object detection](/node-library/nodes/evaluate-evaluate-object-detection) on a prelabeled dataset.

#### Where do the cost and speed figures come from?

The LLM prelabel nodes save the seconds, tokens and credits of every image on its annotation, and this node averages them per model. Credits appear only on OvalBee Cloud; elsewhere the tokens stand in.

## Inputs

**`Prelabel evaluations`** `report` — required

Reports of Compare prelabels with ground truth, one per model and prompt, all on the same ground truth. Each names the prelabeled dataset it scored, which is read again here so every model is held to the same thresholds. Key: `EVALUATIONS`.

---

**`Minimum confidence`** `number`

Foundation model boxes less confident than this are left out. Empty keeps every box. LLM boxes carry no confidence and are always kept. Minimum: `0.05`. Maximum: `1`. Step: `0.05`. Key: `CONFIDENCE_THRESHOLD`.

---

**`Minimum IoU`** `number` — required, default: 0.3

Overlap a prelabel needs with an object to count as found. Below it the object is drawn by hand and the prelabel deleted. Minimum: `0.1`. Maximum: `0.95`. Step: `0.05`. Key: `IOU_MIN`.

---

**`Kept-as-is IoU`** `number` — required, default: 0.75

Overlap from which a found prelabel is kept untouched. Below it a labeler adjusts the box. Keep it equal to the evaluations' own, or this report's scores differ from theirs. Minimum: `0.5`. Maximum: `1`. Step: `0.05`. Key: `IOU_PERFECT`.

---

## Outputs

**`Comparison report`** `report`

Asset ID of the comparison report. Shown as an artifact. Key: `REPORT_ID`.

---

**`Best LLM`** `string`

Paid LLM and prompt with the highest assistance score. Empty when no LLM prelabels were compared. Shown on the node as a badge. Key: `LLM_WINNER`.

---

**`Best foundation model`** `string`

Foundation model with the highest assistance score. Empty when none was compared. Shown on the node as a badge. Key: `FOUNDATION_WINNER`.

---

**`Summary`** `object`

Best prompt of every model, group by group, the table the node card shows. Hidden from the flow editor. Key: `SUMMARY`.

---

## Models and configuration

The node reads models' prelabels rather than running any model, so there is no model to select. What you set is how strict a labeler is. **Minimum IoU** is the overlap a prelabel needs to count as the same object, and **Kept-as-is IoU** the overlap from which it needs no adjusting. **Minimum confidence** drops weak foundation model boxes before matching; LLM boxes have no confidence and are always kept.

#### How the assistance score is computed

Every box ends in one outcome: kept as it is, adjusted, relabeled to another class, deleted, or drawn by hand for a missed object. The assistance score is the kept boxes plus half the adjusted and relabeled ones, divided by every box a labeler touches, the same score as Compare prelabels with ground truth. Precision and recall count an adjusted box as found.

## Report

The report starts with an overview naming each group's winner, then has one section per group, and ends with how the scores were measured. Click a chart bar or a table row to open the ground truth and every model's prelabels on the same image.

#### Report sections

* **Overview**: the winner of each group, the images and objects scored.
* **Assistance score**: every model and prompt, best first.
* **Where the labeling work goes**: kept, adjusted, relabeled, deleted and missed boxes as shares of the job.
* **Classes**: assistance, recall and precision per class, shown when the dataset has more than one class.
* **Object size**: recall for small, medium and large objects.
* **What goes wrong**: deleted boxes by cause (duplicate, too far off its object, on background) beside wrong-class and missed objects.
* **Box fit**: how tightly the found boxes sit on their objects, and how much larger or smaller than the object a typical box is.
* **Crowded images**: recall against the number of objects in an image.
* **Image by image**: images each model wins, a table of every image with the widest disagreement first, and galleries of the images the models disagree on and of the images no model handles.
* **Cost and speed**: credits, tokens and seconds per image, where the prelabel nodes recorded them.
* **All runs**: every model and prompt with all its numbers.

## Runtime

Runs on a CPU worker. It reads the datasets again but calls no model, so it costs no credits.

## JSON config

Machine-readable node interface for automation and advanced usage.

#### Show JSON

```json
{
  "name": "Compare prelabeling models",
  "description": "Compare the prelabel evaluations of several models on one labeled dataset by how much labeling each would save, ranking paid LLMs and open-source foundation models each on their own.",
  "category": "Evaluate",
  "namespace": null,
  "templateKey": "evaluate/compare_prelabeling_models",
  "version": "v1",
  "inputs": [
    {
      "key": "EVALUATIONS",
      "label": "Prelabel evaluations",
      "type": "report",
      "kind": "dataset_intelligence_findings_v1",
      "description": "Reports of Compare prelabels with ground truth, one per model and prompt, all on the same ground truth. Each names the prelabeled dataset it scored, which is read again here so every model is held to the same thresholds.",
      "required": true,
      "default": null,
      "visibleWhen": null,
      "options": {
        "minItems": 2,
        "maxItems": 16
      }
    },
    {
      "key": "CONFIDENCE_THRESHOLD",
      "label": "Minimum confidence",
      "type": "number",
      "description": "Foundation model boxes less confident than this are left out. Empty keeps every box. LLM boxes carry no confidence and are always kept.",
      "required": false,
      "default": null,
      "visibleWhen": null,
      "options": {
        "type": "float",
        "min": 0.05,
        "max": 1,
        "step": 0.05
      }
    },
    {
      "key": "IOU_MIN",
      "label": "Minimum IoU",
      "type": "number",
      "description": "Overlap a prelabel needs with an object to count as found. Below it the object is drawn by hand and the prelabel deleted.",
      "required": true,
      "default": 0.3,
      "visibleWhen": null,
      "options": {
        "type": "float",
        "min": 0.1,
        "max": 0.95,
        "step": 0.05
      }
    },
    {
      "key": "IOU_PERFECT",
      "label": "Kept-as-is IoU",
      "type": "number",
      "description": "Overlap from which a found prelabel is kept untouched. Below it a labeler adjusts the box. Keep it equal to the evaluations' own, or this report's scores differ from theirs.",
      "required": true,
      "default": 0.75,
      "visibleWhen": null,
      "options": {
        "type": "float",
        "min": 0.5,
        "max": 1,
        "step": 0.05
      }
    }
  ],
  "outputs": [
    {
      "key": "REPORT_ID",
      "label": "Comparison report",
      "type": "report",
      "description": "Asset ID of the comparison report.",
      "artifact": true,
      "badge": false,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "LLM_WINNER",
      "label": "Best LLM",
      "type": "string",
      "description": "Paid LLM and prompt with the highest assistance score. Empty when no LLM prelabels were compared.",
      "artifact": false,
      "badge": true,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "FOUNDATION_WINNER",
      "label": "Best foundation model",
      "type": "string",
      "description": "Foundation model with the highest assistance score. Empty when none was compared.",
      "artifact": false,
      "badge": true,
      "badgeOpens": null,
      "hidden": false
    },
    {
      "key": "SUMMARY",
      "label": "Summary",
      "type": "object",
      "description": "Best prompt of every model, group by group, the table the node card shows.",
      "artifact": false,
      "badge": false,
      "badgeOpens": null,
      "hidden": true
    }
  ],
  "automation": {
    "requires_configuration": true
  },
  "widgets": {
    "widget": {
      "id": "table",
      "settings": {
        "data": {
          "type": "variable",
          "value": "self.outputs.SUMMARY"
        }
      }
    },
    "secondaryWidget": {
      "id": "report-preview",
      "settings": {
        "reportAsset": {
          "type": "variable",
          "value": "self.outputs.REPORT_ID"
        },
        "name": {
          "type": "input",
          "value": "Open comparison"
        }
      }
    }
  }
}
```

## References

#### Sources and related pages

* [Compare prelabels with ground truth](/node-library/nodes/evaluate-evaluate-prelabeling-efficiency) makes the evaluations this node compares.
* [Compare object detectors](/node-library/nodes/evaluate-compare-object-detectors) compares trained detectors by mAP, for models that give each box a confidence.