用文本提示优化提升多模态大模型少样本目标检测能力
DetPO: In-Context Learning with Multi-Modal LLMs for Few-Shot Object Detection
- 通过梯度免优化在测试时改进纯文本提示
- 在多个数据集上最高提升9.7 mAP,超越现有黑盒方法
- 适合无法微调模型但需快速适配新任务的研究者
多模态大模型(MLLMs)在OdinW-13和RefCOCO等主流目标检测基准上表现出强大的视觉定位能力,但在分布外类别、任务和成像模态上的泛化能力仍不足。尽管上下文提示是提升跨任务性能的常见策略,但实验发现其检测准确率常低于仅使用类别名称的提示方式,表明当前MLLMs尚不能有效利用少量视觉样例和丰富文本描述进行目标检测。由于前沿模型通常仅通过API访问,而开源权重模型微调成本过高,难以在消费级硬件上运行,本文提出检测提示优化(DetPO),一种无需梯度的测试时优化方法,通过最大化少样本视觉训练样本上的检测准确率并校准置信度,优化纯文本提示。该方法在Roboflow20-VL和LVIS数据集上对通用型MLLMs持续提升性能,相较已有黑盒方法最高提升9.7 mAP。代码与优化提示已公开于https://ggare-cmu.github.io/DetPO/
原文摘要 · Abstract (English)
Multi-Modal LLMs (MLLMs) demonstrate strong visual grounding capabilities on popular object detection benchmarks like OdinW-13 and RefCOCO. However, state-of-the-art models still struggle to generalize to out-of-distribution classes, tasks and imaging modalities not typically found in their pre-training. While in-context prompting is a common strategy to improve performance across diverse tasks, we find that it often yields lower detection accuracy than prompting with class names alone. This suggests that current MLLMs cannot yet effectively leverage few-shot visual examples and rich textual descriptions for object detection. Since frontier MLLMs are typically only accessible via APIs, and state-of-the-art open-weights models are prohibitively expensive to fine-tune on consumer-grade hardware, we instead explore black-box prompt optimization for few-shot object detection. To this end, we propose Detection Prompt Optimization (DetPO), a gradient-free test-time optimization approach that refines text-only prompts by maximizing detection accuracy on few-shot visual training examples while calibrating prediction confidence. Our proposed approach yields consistent improvements across generalist MLLMs on Roboflow20-VL and LVIS, outperforming prior black-box approaches by up to 9.7 mAP. Our code and optimized prompts are available at https://ggare-cmu.github.io/DetPO/
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。