Does Your VFM Speak Plant? The Botanical Grammar of Vision Foundation Models for Object Detection
Organizations: University of California, Davis
Abstract
Vision foundation models (VFMs) offer the promise of zero-shot object detection without task-specific training data, yet their performance in complex agricultural scenes remains highly sensitive to text prompt construction. We present a systematic prompt optimization framework evaluating four open-vocabulary detectors -- YOLO World, SAM3, Grounding DINO, and OWLv2 -- for cowpea flower and pod detection across synthetic and real field imagery. We decompose prompts into eight axes and conduct one-factor-at-a-time analysis followed by combinatorial optimization, revealing that models respond divergently to prompt structure: conditions that optimize one architecture can collapse another. Applying model-specific combinatorial prompts yields substantial gains over a naive species-name baseline, including +0.357 [email protected] for YOLO World and +0.362 [email protected] for OWLv2 on synthetic cowpea flower data. To evaluate cross-task generalization, we use an LLM to translate the discovered axis structure to a morphologically distinct target -- cowpea pods -- and compare against prompting using the discovered optimal structures from synthetic flower data. Crucially, prompt structures optimized exclusively on synthetic data transfer effectively to real-world fields: synthetic-pipeline prompts match or exceed those discovered on labeled real data for the majority of model-object combinations (flower: 0.374 vs. 0.353 for YOLO World; pod: 0.429 vs. 0.371 for SAM3). Our findings demonstrate that prompt engineering can substantially close the gap between zero-shot VFMs and supervised detectors without requiring manual annotation, and that optimal prompts are model-specific, non-obvious, and transferable across domains.
Figures & tables
| Axis | Levels | Baseline | Perturbation Values |
|---|---|---|---|
| Taxonomy | 8 | flower | {cowpea, bean, pea, legume, black-eyed pea, vigna unguiculata, crop} flower |
| Color | 5 | none | yellow, white, cream, purple |
| Size | 4 | none | large, small, tiny |
| Phenology | 6 | none | bud, open, closed bud, blooming, in bloom |
| Negation | 6 | none | full negation (all confusers), partial negation combinations |
| Anatomy | 5 | none | with open petals, with visible petals, with petals and stamens, corolla |
| Sweep | Varied Axes | Fixed Axes | Prompt Template |
| 1. Color Size | Color, Size | Grammar ⋆ , Taxonomy ⋆ | [gram] [size] [color] [taxonomy] |
| 2. Grammar Color | Grammar, Color | Taxonomy ⋆ | [gram] [color] [taxonomy] |
| 3. Anatomy | Anatomy | Grammar ⋆ , Color ⋆ , Taxonomy ⋆ | [gram] [color] [taxonomy] [anatomy] |
| Negation (top- ) | Negation | Best base prompt | [base prompt], [negation] |
| Emoji (top-1) | Emoji | Best prompt (incl. negation) | [best prompt] [emoji] |
| Model | Dataset | Best Single Prompt | [email protected] | (Gain) |
|---|---|---|---|---|
| SAM3 | Synthetic | “a flower not a leaf” | 0.609 | +0.072 |
| OWLv2 | Synthetic | “a closed bud” | 0.471 | +0.469 |
| Grounding DINO | Synthetic | “flower” | 0.288 | +0.137 |
| YOLO World | Synthetic | “a bean flower” | 0.222 | +0.081 |
| SAM3 | Real | “a closed bud” | 0.491 | +0.123 |
| OWLv2 | Real | “a closed bud” | 0.350 | +0.349 |
| Synthetic | Real | ||||
| Model | Best Prompt | mAP | mAP | ||
| YOLO World | a single yellow cowpea flower w/ open petals, not bud, calyx, leaf | 0.433 | +0.292 | 0.299 | +0.238 |
| † + (bouquet) | 0.498 | +0.357 | 0.374 | +0.313 | |
| SAM3 | a single yellow cowpea flower w/ visible petals | 0.635 | +0.098 | 0.532 | +0.164 |
| † + (blossom) | 0.649 | +0.112 | 0.544 | +0.176 | |
| OWLv2 | a single yellow pea flower with open petals, not a bud | 0.364 | +0.362 | 0.325 | +0.324 |
| Model | Baseline (“a pod”) | Structured Prompt | Best Synthetic Prompt |
|---|---|---|---|
| YOLO World | 0.000 | 0.065 | 0.050 |
| SAM3 | 0.039 | 0.100 | 0.429 |
| OWLv2 | 0.002 | 0.071 | 0.111 |
| Grounding DINO | 0.007 | 0.010 | 0.036 |
| Flowers | Pods | |||
|---|---|---|---|---|
| Model | Syn. Pipeline | Real Pipeline | Syn. Pipeline | Real Pipeline |
| YOLO World | 0.374 | 0.353 | 0.050 | 0.094 |
| SAM3 | 0.544 | 0.554 | 0.429 | 0.371 |
| OWLv2 | 0.325 | 0.402 | 0.111 | 0.085 |
| Grounding DINO | 0.085 | 0.049 | 0.036 | 0.013 |
Open-Vocabulary Object Detection
Open-vocabulary object detection lets models locate and label objects using text categories beyond their fixed training labels.
See all 89 papers