Skip to content
Apixo
Blog
news· 4 min read· via Roboflow Blog

Roboflow Introduces Few-Shot Auto Labeling Using Visual Examples for Vision Models

Roboflow has launched Label by Example, enabling developers to improve Auto Label bounding box accuracy using few-shot image examples alongside text prompts.

Roboflow Introduces Few-Shot Auto Labeling Using Visual Examples for Vision Models

Automated image labeling has streamlined computer vision workflows, but text-based prompts often fall short when handling specialized domain names or custom dataset conventions. To address this limitation, Roboflow has introduced Label by Example, a few-shot feature within its Auto Label tool. The new system allows vision-language models to learn from a small set of previously labeled images alongside text prompts, teaching the model specific dataset guidelines that words alone struggle to communicate.

How Label by Example Works

The feature functions as a toggle within Roboflow's Auto Label preview interface for object detection projects. When enabled, the system automatically selects up to 10 accepted images from the project dataset, aiming to provide roughly three visual bounding box examples per object class. Images still under review are excluded to prevent unverified labels from propagating. If an image contains more than 200 bounding boxes, it is skipped in favor of less crowded examples.

Model architectures process these reference examples differently to balance cost and detection accuracy. OpenAI models—specifically GPT-6.1 Terra, GPT-6.2 Sol, and GPT-6.2 Astra—receive cropped images of labeled objects, capping at three crops per class. Benchmark tests during development showed that object crops matched the F1 performance of full images (0.68 versus 0.69) while reducing API expenses by one-third. Conversely, Google models, including Gemini 4 Argon and Gemini 4 Carbon, receive full reference images complete with overlayed bounding boxes and labels.

Users can also refine examples manually. If a preview fails to identify an object, developers can flag the missing object, draw or select its bounding box, and instantly convert that target image into an active visual example for subsequent automated runs.

Performance and Benchmark Results

Roboflow evaluated Label by Example across the RF20-VL benchmark datasets, targeting obscure domain objects such as hand X-rays (DIP, PIP, MCP joints, Radius, Ulna), railway fishplates, and wood defects. Testing 40 test images per dataset across five compatible vision models revealed average F1 score improvements ranging between 0.12 and 0.22 at an Intersection over Union (IoU) threshold of 0.5.

The performance jump was most pronounced on datasets where short class names failed to describe labeling boundaries. On hand X-rays, GPT-6.2 Astra improved its F1 score from 0.43 with text prompts to 0.89 with three visual examples. GPT-6.1 Terra jumped from 0.22 to 0.60 on X-rays, while its overall benchmark average rose from 0.47 to 0.68. GPT-6.2 Sol saw its overall average F1 increase from 0.56 to 0.75, and Gemini 4 Carbon reached an average F1 of 0.81 (up from 0.69).

In product-level testing using six hand X-rays with GPT-6.2 Sol, correct bounding box matches rose from 40 out of 102 (F1 0.39) using text alone to 85 out of 102 (F1 0.83) with three examples. Furthermore, early production data showed that within the first 60 hours of release, 447 users activated the toggle, with auto-labeled images receiving a 91% approval rate during manual review compared to 77% for prompt-only jobs.

What it means for developers

For machine learning developers and data engineers, few-shot labeling removes the tedious requirement of writing exhaustive prompt rules for specialized terminology. Specialized medical or industrial terms like 'PIP' or 'fishplate' often result in naive bounding boxes when interpreted purely by text. Visual examples allow models to adopt exact organizational conventions—such as whether a joint box encompasses neighboring bone ends or strictly the joint line.

However, developers must consider the financial and practical trade-offs. Including visual context increases token input costs. For GPT models, list prices rise by approximately 13% to 18% due to additional crop inputs. For Gemini models, input tokens increase three- to fourfold, moving from approximately 1,500 tokens per image up to 4,800 or 5,800 tokens. Furthermore, the feature currently applies strictly to object detection tasks—excluding segmentation and classification—and models such as SAM 3 or other Gemini variants remain unsupported.

It is also worth noting that visual examples show minimal impact on fine-grained visual anomalies. On wood defect datasets involving subtle cracks or knots, F1 scores only increased by +0.01 to +0.06, demonstrating that few-shot examples help most when models can locate objects but lack specific labeling guidelines. Developers building complex AI workflows can experiment with various foundation models to determine their cost-to-accuracy ratio; for instance, developers can try top AI models cheaply through one API at https://apixoai.online.

By testing previews with the toggle on and off, teams can verify whether few-shot visual prompts justify the incremental token cost for their specific dataset before committing to large-scale batch labeling jobs.


Source: Label by Example: Few-Shot Auto Labeling from Your Own Labeled Images — Roboflow Blog. Written by the Apixo team from that report.

#ai-news#roboflow#computer-vision#auto-labeling#few-shot#ai
Try it with your own tools

One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.

Get your API key

Keep reading