RelateAnything:从任意输入进行实时开放词汇关系预测

·

研究论文 · 2026/09/17

开放词汇检测可在推理时接受任意类别列表,可提示分割返回无类别名称的区域:分类体系已从模型转移到输入。但关系预测尚未如此。场景图模型仍在一个标注风格的50或56个谓词上训练和评估,其关系头以物体标签为条件,因而绑定于一个检测器。三个障碍解释了这一点,且主要都不是建模问题:没有既自由文本又经过验证的关系语料库;以标签为条件的架构无法接受未训练过的词汇表;标准度量奖励与训练语料库的一致性,因此更大的词汇表会被视为性能下降。我们提出RelateAnything,一个53M参数的模型,接受图像和来自任何来源的区域,并返回在推理时以字符串形式提供的谓词词汇表上的评分关系。物体标签从不作为输入,因此区域来源可以改变而无需重新训练,词汇表是文本嵌入库,而非学习到的分类器。它以20毫秒/帧运行。在19,103个谓词上训练需要正-未标记监督和一个能区分反义词的文本编码器,而对比编码器将反义词嵌入在余弦0.95处。为提供监督,我们构建了RA-4M,包含474k图像和4.3M关系,覆盖10,102个自由文本谓词,针对编号框标记生成并经过几何验证。为衡量它,我们构建了OV-SGG-Bench,六个轴在数据集上评分,而先验标准召回奖励无法满足。在三个跨数据集基准和第四个零样本上,RelateAnything的平均召回率是同等规模最强开放词汇方法的2.3-3.5倍,这些优势在真实检测器下依然存在,并在两个指标上领先一个3B-VLM场景图模型,而参数量不到其2%。域内测量将迁移增益夸大约5倍。模型、语料库和基准均已公开。

该工作将开放词汇范式扩展到关系预测,解决了语料库、架构和评估三个关键障碍,并提供了公开的模型、语料库和基准,推动了场景图生成的开放词汇发展。

Open-vocabulary detection accepts any class list at inference, and promptable segmentation returns regions without class names: the taxonomy has left the model and become an input. Relation prediction has not. Scene-graph models are still trained and evaluated on the 50 or 56 predicates of one annotation style, their relation head conditioned on object labels and so tied to one detector. Three obstacles explain this, none primarily modelling: no relation corpus is both free-text and verified, a label-conditioned architecture cannot accept a vocabulary it was not trained on, and the standard metric rewards agreement with the training corpus, so a larger vocabulary scores as a regression. We present RelateAnything, a 53M-parameter model taking an image and regions from any source and returning scored relations over a predicate vocabulary supplied at inference as strings. Object labels are never an input, so the region source can change without retraining, and the vocabulary is a bank of text embeddings, not a learned classifier. It runs at 20 ms/frame. Training over 19,103 predicates requires positive-unlabeled supervision and a text encoder that separates antonyms, which contrastive encoders embed at cosine 0.95. To supply the supervision we build RA-4M, 474k images and 4.3M relations over 10,102 free-text predicates, generated against numbered box markers and geometrically verified. To measure it we build OV-SGG-Bench, six axes scored across datasets that the priors standard recall rewards cannot satisfy. On three cross-dataset benchmarks and a fourth zero-shot, RelateAnything has 2.3-3.5x the mean recall of the strongest open-vocabulary method of comparable scale, margins that survive a real detector, and leads a 3B-VLM scene-graph model on both metrics at under 2% of its parameters. In-domain measurement overstates transfer gains ~5x. Model, corpus and benchmark are public.

阅读原文

参与讨论