Skip to content

Sketch-Omni: sketch prompts that pick one instance out of many

THE ARGUMENT

Sketch-Omni's real contribution is not a better sketch model but a demonstration that instance-level sketch queries can be trained with zero hand-drawn labels, sourced entirely from existing annotated photographs — a strength that is also its dependency.

On this page

Sketch-Omni reports 91.4 F1 against 81.8 for the strongest general-purpose MLLM, but a buyer of perception models should read that pair of numbers slowly. The usual advice is to take whichever checkpoint wins the most benchmark cells and move on. Here the benchmark is unusual in a way that matters: the prompt is a hand-drawn sketch, and the target is one specific instance inside a photograph, not every instance of a category [1]. Suppose your team must locate a component in a warehouse photo and has no sample photograph of it, only a supplier's drawing. A category name returns every similar part. A photo exemplar requires the object to have been photographed already. A sketch asks for the one that was drawn, and Sketch-Omni is built to answer that query while also reading sketches as images for five other tasks.

Naming an object, showing a photo, drawing it

Promptable perception means one model behind one prompt interface returning coordinates for any localisation request. GroundingDINO opened a detector's vocabulary with text, T-Rex2 let a box or an exemplar replace the words, and Rex-Omni folded detection, pointing, referring and visual prompting into a single MLLM that answers with coordinate tokens [1]. Every model on that line was trained on photographs.

The distinction that matters is not that a sketch is another image type. A photograph records what stood in front of a camera; a sketch records what a person holds in mind, which may be a product not yet manufactured or a suspect never photographed. Sketches are also cheap, a few strokes drawn in seconds before any search begins.

Granularity is the real difference. A category name returns every instance of the category. A photo exemplar returns every instance too, and exists only if the object has already been photographed. A drawing identifies one particular object, which is why fine-grained sketch-based image retrieval has worked for a decade. The paper calls this setting instance-level sketch-based visual prompting, and it is where the method has to prove itself: on photographs holding several instances of the queried category, where a name stops helping.

Prompt formWhat comes backPrecondition
Category name (text)Every instance of that categoryNone
Photo exemplarEvery instance of that categoryTarget already photographed
Hand-drawn sketchThe single instance drawnNone

This table restates Figure 2 of the paper as text. The paper reports a qualitative contrast here, not per-prompt scores.

Two obstacles: attention tuned to colour, and no paired data

The first obstacle is the model. A photo-trained MLLM grounds a phrase by relating its tokens to image patches and by relating the patches of one object to each other. Both relations rest on attention tuned to the colour and texture of photographs. A sketch has neither, because most of the canvas is blank and every cue is a line. The paper reports that Rex-Omni's attention spreads over empty space on a sketch, and that a general-purpose MLLM finds roughly the right region but not the strokes bounding it.

The second obstacle is data. Photographic grounding is trained on tens of millions of labelled photographs. Sketch has nothing comparable: single-object drawings each paired with one photo (Sketchy), scene sketches without boxes, and instance links found by retrieval rather than by hand. Nobody will box-annotate a million drawings.

One number states the gap plainly. Rex-Omni as a base model requires its visual prompt to be a box inside the target photograph, and carried over unchanged to this task it scores 4.0 F1, against 91.4 for the trained system.

The training set is built, not collected

Five of the six tasks — detection, pointing, object referring, spatial referring and affordance grounding — come from one pipeline. An edge detector turns any labelled photograph into a pixel-aligned line drawing that keeps the photograph's boxes, phrases and affordance labels; run over Objects365, RefCOCOg and AGD20K, this supervises all five at no labelling cost. One detail matters: since a sketch cannot show colour or texture, a lexicon filter strips appearance terms from each phrase, and only the phrases it alters are re-grounded on the photograph by the base model, whose answers become their labels.

The sixth task, instance-level visual prompting, needs a pairing no dataset contains, so the paper constructs it two ways:

  • From Sketchy: a free-hand drawing paired with a single-object photograph, where the paired photograph and crops of the same category are tiled onto a low-clutter canvas, so the drawing designates exactly one of them. This trains tolerance to drawing style.
  • From Objects365: an edge-sketch crop of one annotated object, used as the query, to be found again in the untouched photograph. This trains precise shape matching in real scenes with clutter and occlusion.

Not one training label is drawn by hand. The only hand annotation is for evaluation: 2754 sketch-to-photo instance links on FS-COCO, which the paper describes as the first such benchmark.

Match the relations, leave the features alone

This is the part worth understanding. A photograph and its edge sketch share structure — which patches belong to one object, which region a phrase selects — but not appearance. The alignment therefore supervises relations only and never asks the sketch path to look like the photo path.

Concretely, each labelled photograph passes through the frozen model and its edge sketch through the LoRA-adapted one, and the two paths compare cosine similarities at every layer and every head. The cross-modal loss aligns the phrase-to-patch relation, keeping every visual position as a key so that similarity falling on blank regions is penalised. The intra-modal loss aligns the query-to-query relation among the patches of one object, borrowing DeCLIP's context features, with queries restricted to foreground patches inside annotated boxes.

The total objective adds these two weighted alignment terms to the next-token prediction loss and optimises them jointly over the five sketch-native tasks. The sketch pass keeps the photograph's prompt, target sequence and patch grid, so each relation has an exact counterpart on the other side; the photo pass carries no gradient, so alignment costs one extra forward pass per step.

What 91.4 against 81.8 actually shows

SettingSketch-OmniComparatorWho the comparator is
Instance VP, FS-COCO, IoU 0.5, F191.481.8Qwen3-VL-8B on the same two images
Same task, base model Rex-Omni—4.0Visual prompt must be a box inside the photo
Lead when the photo holds one instance+8.4 F1—Versus Qwen3-VL-8B
Lead when the photo holds several instances+17.2 F1—Versus Qwen3-VL-8B
Free-hand detection, IoU 0.5, F1—75.3Qwen3-VL-8B
Free-hand detection, IoU 0.9, F165.723.0Qwen3-VL-8B
40 table cells across six tasksBest in 39—All baselines

A dash marks a cell the abstract and main text do not report; I have not estimated one. Three things are worth reading. The lead grows from 8.4 F1 with a single instance to 17.2 when several of the same category appear, so the advantage sits exactly where a category name fails. The IoU 0.9 row shows the general-purpose MLLM collapsing at tight boxes, dropping from 75.3 to 23.0 on the same task while Sketch-Omni holds 65.7. And the relation alignment improves all 14 ablation cells, by up to 4.3 F1 on referring, the task most dependent on a phrase selecting its own region.

Where this method does not apply

On the training side, every sketch supervision signal is synthesised from edge maps of photographs, and the stroke distribution of a real hand-drawn scene sketch is not that of an edge detector. The paper covers drawing style with Sketchy, but that is single-object drawing, not a cluttered page of quick notes. If your users sketch entire scenes badly, that gap is untested.

On the evaluation side, the hand-annotated instance benchmark holds 2754 sketch-to-photo links on FS-COCO only. It is the single benchmark of its kind, so its size and category coverage are themselves a procurement risk.

On the interface side, coordinates are discretised into 1000 by 1000 bins, and that is the finest localisation the model can express. A task needing finer placement fails because of the interface, not because of training.

The method fails when the starting asset is missing. The whole pipeline begins with large quantities of labelled photographs; in a domain with none — a brand-new industrial parts catalogue, or medical imaging without detection annotations — the edge-sketch construction cannot start, and the approach is out of scope.

References

  1. Sketch-Omni: Instance-Level Sketch-Based Visual Prompting for Perception MLLMs

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…