[Paper Review] Graph Density-Aware Losses for Novel Compositions in Scene Graph Generation
This paper proposes density-normalized edge losses to improve zero-shot and few-shot generalization in scene graph generation (SGG), addressing two key issues: (1) standard losses unintentionally penalize sparse graphs with rare relationships, and (2) models exploit frequency bias, harming generalization. The method improves few-shot and zero-shot performance by over two-fold on key metrics with minimal computational cost and no architectural changes.
Scene graph generation (SGG) aims to predict graph-structured descriptions of input images, in the form of objects and relationships between them. This task is becoming increasingly useful for progress at the interface of vision and language. Here, it is important - yet challenging - to perform well on novel (zero-shot) or rare (few-shot) compositions of objects and relationships. In this paper, we identify two key issues that limit such generalization. Firstly, we show that the standard loss used in this task is unintentionally a function of scene graph density. This leads to the neglect of individual edges in large sparse graphs during training, even though these contain diverse few-shot examples that are important for generalization. Secondly, the frequency of relationships can create a strong bias in this task, such that a blind model predicting the most frequent relationship achieves good performance. Consequently, some state-of-the-art models exploit this bias to improve results. We show that such models can suffer the most in their ability to generalize to rare compositions, evaluating two different models on the Visual Genome dataset and its more recent, improved version, GQA. To address these issues, we introduce a density-normalized edge loss, which provides more than a two-fold improvement in certain generalization metrics. Compared to other works in this direction, our enhancements require only a few lines of code and no added computational cost. We also highlight the difficulty of accurately evaluating models using existing metrics, especially on zero/few shots, and introduce a novel weighted metric.
Motivation & Objective
- To address poor generalization in scene graph generation (SGG) on rare or unseen object-predicate compositions.
- To identify that standard SGG losses are biased toward dense graphs, neglecting sparse, information-rich graphs with rare relationships.
- To reveal that frequency bias in training data leads models to overfit to common relationships, harming zero/few-shot performance.
- To propose a novel, lightweight loss that normalizes edge supervision by graph density, improving learning on rare compositions.
- To introduce a weighted evaluation metric that better tracks performance on rare and unseen compositions.
Proposed method
- Proposes a density-normalized edge loss that scales the cross-entropy loss for each edge by the inverse of the graph's density (number of edges per node), reducing over-penalization in sparse graphs.
- Applies the modified loss during training of SGG models, requiring only a few lines of code and no additional inference cost.
- Introduces a novel weighted metric that assigns higher importance to rare and unseen relationships, improving evaluation sensitivity for generalization.
- Uses message-passing models (e.g., Message Passing with GCN) for SGG, training and evaluating on both Visual Genome and GQA datasets.
- Employs IoU-based matching (≥50%) for triplet prediction evaluation, with predictions ranked by product of softmax scores for subject, object, and predicate.
- Validates improvements on two strong baselines: [37] and [41], demonstrating consistent gains across models and datasets.
Experimental results
Research questions
- RQ1How does graph density in training data affect the generalization performance of SGG models on rare and unseen compositions?
- RQ2To what extent does frequency bias in training data lead to poor zero-shot and few-shot performance in SGG models?
- RQ3Can a simple, density-aware loss reweighting strategy significantly improve generalization without architectural changes or added computation?
- RQ4How can evaluation metrics be improved to better reflect model performance on rare and unseen relationships in SGG?
- RQ5Does the proposed method improve performance on both existing and newly proposed weighted metrics for rare composition generalization?
Key findings
- The standard SGG loss unintentionally penalizes sparse graphs more heavily, causing models to overlook rare relationships present in such graphs.
- The proposed density-normalized edge loss improves few-shot and zero-shot performance by over two-fold on key metrics, even with minimal code changes.
- Models trained with the new loss make more diverse predictions and are less prone to frequency bias, as shown in qualitative comparisons on Visual Genome.
- The new weighted evaluation metric better captures performance on rare compositions and reveals that frequency-biased models perform poorly on unseen relationships.
- The method achieves state-of-the-art results on both Visual Genome and GQA datasets, especially on zero/few-shot generalization, without architectural modifications.
- Even when ground truth labels are mislabeled or synonyms are used (e.g., 'plant' vs. 'flower'), the model with the new loss shows stronger robustness and generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.