Haystack: A Panoptic Scene Graph Dataset to Evaluate Rare Predicate Classes

Julian Lorenz, Florian Barthel, Daniel Kienzle, Rainer Lienhart

Abstract

Scene Graph Generation (SGG) aims to provide a structured understanding of objects and their interactions within an image. However, current benchmarks are heavily skewed toward common, non-descriptive predicates (e.g., "on," "beside"), leading to a "long-tail" distribution that renders the evaluation of rare, semantically rich actions statistically unreliable. This paper introduces Haystack, a new panoptic scene graph benchmark specifically designed to evaluate rare predicate classes. By employing a model-assisted annotation pipeline and introducing explicit negative annotations, Haystack enables more granular metrics such as Predicate ROC-AUC (P-AUC). Our findings suggest that current models often possess a latent understanding of rare predicates but fail to rank them highly due to low confidence scores—a phenomenon we characterize as models being "shy" rather than incapable.

1. Introduction

In the field of computer vision, Scene Graph Generation (SGG) represents the transition from simple object detection to complex relational understanding. While identifying a "person" and a "bicycle" is a foundational task, the true challenge lies in identifying the interaction: "person riding bicycle." Despite significant progress, existing SGG models suffer from a persistent bias toward common relations. In datasets like the Panoptic Scene Graph (PSG), a mere three predicates—"on," "beside," and "over"—account for over 50% of all labels. This dominance makes it nearly impossible to evaluate how well models perform on rare but critical actions like "cooking," "slicing," or "jumping over."

2. The Limitations of Current Benchmarks

Beyond the long-tail distribution of labels, the standard evaluation metric, Recall@k, presents significant limitations. Recall@k measures whether a correct relation appears within a model's top $k$ predictions for an image. However, this metric fails to account for:

  1. Negative Constraints: It does not measure whether a model correctly rejects an incorrect relation.
  2. Statistical Significance: For rare classes with only a handful of samples in a test set, a single correct or incorrect prediction can swing the metric wildly, making model comparison impossible.
  3. Confidence vs. Capability: It does not distinguish between a model that doesn't know a predicate and a model that knows it but assigns it a low confidence score relative to more frequent classes.

3. The Haystack Dataset

To address these gaps, we developed Haystack, a test dataset comprising approximately 25,000 relations across 11,300 images sourced from the SA-1B dataset. The creation of Haystack involved a novel model-assisted annotation pipeline designed to find "needles in a haystack."

3.1 Model-Assisted Annotation Pipeline

  • Diversity Clustering: To prevent scene bias, 11 million images from SA-1B were clustered into 50 groups using DINOv2 and k-Means, ensuring a broad representation of visual contexts.
  • Proposal-Based Labeling: Rather than asking humans to label every relation—a process that often defaults to common predicates—we used a pre-trained VCTree model to propose specific rare relations for human review.
  • Binary Verification: Annotators performed a binary task: "Is this relation [Rare Predicate]?" This approach is 10x more efficient at finding positive samples for rare classes than traditional methods and, crucially, provides explicit negative annotations when an annotator rejects a proposal.

3.2 New Evaluation Metrics

With the inclusion of negative samples, we introduce three nuanced metrics:

  • P-AUC (Predicate ROC-AUC): Measures the model's ability to distinguish a specific predicate from others, independent of its absolute confidence score.
  • PDO (Predicate Dominance Overestimation): Quantifies if a predicate appears in top ranks too frequently when it should not.
  • PDD (Predicate Discrimination Disadvantage): Measures if a rare predicate is being "pushed out" of the top rankings by more dominant, common classes.

4. Key Insights and Results

We evaluated three state-of-the-art models—VCTree, GPSNet, and MOTIFS—on the Haystack benchmark.

4.1 Models are "Shy," Not "Stupid"

A primary finding is that models often achieve high P-AUC scores for rare classes (e.g., "eating" or "playing with") despite having a Recall@50 of nearly 0.0. This indicates that the models have learned the visual features associated with these actions but assign them lower confidence scores than "safe" predicates like "beside." This "shyness" is a direct result of the frequency bias in training data.

4.2 Comparative Performance

  • VCTree emerged as the most robust performer on Haystack, demonstrating the best understanding of rare predicates and the lowest displacement scores (PDD/PDO).
  • Meaningful Evaluation: On the standard PSG test set, many rare predicates yield a Recall@50 of 0.0, providing no data for comparison. On Haystack, these same predicates yield meaningful P-AUC scores (e.g., 0.90 for "eating" using VCTree), allowing for a clear ranking of model capabilities.
  • The "Slicing" Effect: The predicate "slicing" showed the highest PDO, suggesting that when models identify this specific action, they do so with high confidence, rarely allowing other predicates to displace it.

5. Conclusion and Future Work

Haystack provides the SGG community with a necessary tool to move beyond the "boring" bias of common predicates. By focusing on the tail of the distribution and providing a framework for negative annotations, we enable a more honest assessment of a model's relational understanding. While the current dataset is a significant step forward, future work will focus on expanding the image count and addressing potential proposal biases inherent in using a model-assisted pipeline. Haystack is fully compatible with existing PSG pipelines, and we encourage its adoption as a standard for evaluating rare scene graph relations.

Summary updated

BibTeX
@inproceedings{lorenz2023haystack,
  author = {Julian Lorenz and Florian Barthel and Daniel Kienzle and Rainer Lienhart},
  title = {{Haystack: A Panoptic Scene Graph Dataset to Evaluate Rare Predicate Classes}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  doi = {10.1109/iccvw60793.2023.00013},
}
Figure