This paper present three mains contributions: (1) the RelCLIPScore metric, (2) a comprehensive evaluation of VLMs for the task of Relation Prediction and (3) the Fine-Grained Open-Vocabulary Scene Graph (FG-OV SG) dataset.
The RelCLIPScore is a new metric for measuring the accuracy of a Scene Graph Generation model, targetted for Open-Vocabulary approaches. In contrast to traditional metrics such as Recall@k or meanRecall@k, RelCLIPScore is a reference-free metric, which means that you don't need groundtruth annotations to compute it. The inspiration comes from the field of Image Captioning where the CLIPScore is being used for a few years now. The RelCLIPScore is in fact the aggregation of individual CLIPScore obtained for every relation predicted by an SGG model. The CLIPScores are obtained by cropping the region on the union of subject and object bounding boxes (or masks) and then feeding the cropped image and associated predicted relation to a CLIP-liked model to compute the cosine similarity between both embeddings (i.e. distance in the embedding space between image and text representations for the predicted relation).
To force Open-Vocabulary SGG models to predict diverse and informative relations on every image, we add a penalty based on the maximum amount of possible subject-object pairs given a set of groundtruth (or predicted) bounding boxes (or masks), which leads to:
where p is 50% of the maximum number of pair in the image (as we assume not every combination can be a true positive, even in open-vocabulary settings).
We measured the performance of multiple CLIP-like models for the task of image-relation alignment using our introduce RelCLIPScore metric on the VG and PSG datasets. Results are provided below, where we can see that the NegCLIP model produce higher quality embeddings with a better alignment with groundtruth annotations on both datasets.
In recent years VLMs have been used to produce Scene Graphs through different prompting strategies. However, approaches mainly rely on prompting for both object detection and relation prediction at the same time, leading to a low diversity of subject-object pairs in generated data (i.e. the VLMs will always choose to focus on the "easy" or salient pairs). In this work, we propose to evaluate the performance of VLMs in generating region-specific relations when the subject and object are randomly sampled from the distribution of groundtruth bounding boxes annotations. We measured the performance of different open or closed-source VLMs using our introduce RelCLIPScore, as follow:
Additional experiments highlight three different limitations:
To help the development of Open-Vocabulary SGG, we finally present a new synthetic dataset, the Fine-Grained Open Vocabulary Scene Graphs (FG-OV SG) dataset. This dataset has been generated using the LlaVa-OneVision 7B VLM on a set of images from COCO and Objects365 datasets. To ensure high-quality and diverse relations, we randomly sample pairs using constraints that we have identified in the limitations (see section 2. above). This process resulted in a data distribution which is less long-tailed than previous with more fine-grained annotations. When used as pre-training for the Open-Vocabulary SGG model RLIPv2, our FG-OV SG dataset leads to better results than the baseline synthetic data used by previous work.
12 commits
Jupyter Notebook
97.2%
Python
2.8%
This paper present three mains contributions: (1) the RelCLIPScore metric, (2) a comprehensive evaluation of VLMs for the task of Relation Prediction and (3) the Fine-Grained Open-Vocabulary Scene Graph (FG-OV SG) dataset.
The RelCLIPScore is a new metric for measuring the accuracy of a Scene Graph Generation model, targetted for Open-Vocabulary approaches. In contrast to traditional metrics such as Recall@k or meanRecall@k, RelCLIPScore is a reference-free metric, which means that you don't need groundtruth annotations to compute it. The inspiration comes from the field of Image Captioning where the CLIPScore is being used for a few years now. The RelCLIPScore is in fact the aggregation of individual CLIPScore obtained for every relation predicted by an SGG model. The CLIPScores are obtained by cropping the region on the union of subject and object bounding boxes (or masks) and then feeding the cropped image and associated predicted relation to a CLIP-liked model to compute the cosine similarity between both embeddings (i.e. distance in the embedding space between image and text representations for the predicted relation).
To force Open-Vocabulary SGG models to predict diverse and informative relations on every image, we add a penalty based on the maximum amount of possible subject-object pairs given a set of groundtruth (or predicted) bounding boxes (or masks), which leads to:
where p is 50% of the maximum number of pair in the image (as we assume not every combination can be a true positive, even in open-vocabulary settings).
We measured the performance of multiple CLIP-like models for the task of image-relation alignment using our introduce RelCLIPScore metric on the VG and PSG datasets. Results are provided below, where we can see that the NegCLIP model produce higher quality embeddings with a better alignment with groundtruth annotations on both datasets.
In recent years VLMs have been used to produce Scene Graphs through different prompting strategies. However, approaches mainly rely on prompting for both object detection and relation prediction at the same time, leading to a low diversity of subject-object pairs in generated data (i.e. the VLMs will always choose to focus on the "easy" or salient pairs). In this work, we propose to evaluate the performance of VLMs in generating region-specific relations when the subject and object are randomly sampled from the distribution of groundtruth bounding boxes annotations. We measured the performance of different open or closed-source VLMs using our introduce RelCLIPScore, as follow:
Additional experiments highlight three different limitations:
To help the development of Open-Vocabulary SGG, we finally present a new synthetic dataset, the Fine-Grained Open Vocabulary Scene Graphs (FG-OV SG) dataset. This dataset has been generated using the LlaVa-OneVision 7B VLM on a set of images from COCO and Objects365 datasets. To ensure high-quality and diverse relations, we randomly sample pairs using constraints that we have identified in the limitations (see section 2. above). This process resulted in a data distribution which is less long-tailed than previous with more fine-grained annotations. When used as pre-training for the Open-Vocabulary SGG model RLIPv2, our FG-OV SG dataset leads to better results than the baseline synthetic data used by previous work.
12 commits
Jupyter Notebook
97.2%
Python
2.8%