[Paper Review] CogTree: Cognition Tree Loss for Unbiased Scene Graph Generation
This paper proposes CogTree, a novel cognition-inspired loss function for unbiased scene graph generation that constructs a hierarchical cognitive tree from biased model predictions to enable coarse-to-fine distinction of relationships. By organizing relationships into a tree structure based on semantic similarity and training with a model-agnostic loss, CogTree significantly improves performance on long-tailed relationship prediction, achieving state-of-the-art results across multiple SGG benchmarks.
Scene graphs are semantic abstraction of images that encourage visual understanding and reasoning. However, the performance of Scene Graph Generation (SGG) is unsatisfactory when faced with biased data in real-world scenarios. Conventional debiasing research mainly studies from the view of balancing data distribution or learning unbiased models and representations, ignoring the correlations among the biased classes. In this work, we analyze this problem from a novel cognition perspective: automatically building a hierarchical cognitive structure from the biased predictions and navigating that hierarchy to locate the relationships, making the tail relationships receive more attention in a coarse-to-fine mode. To this end, we propose a novel debiasing Cognition Tree (CogTree) loss for unbiased SGG. We first build a cognitive structure CogTree to organize the relationships based on the prediction of a biased SGG model. The CogTree distinguishes remarkably different relationships at first and then focuses on a small portion of easily confused ones. Then, we propose a debiasing loss specially for this cognitive structure, which supports coarse-to-fine distinction for the correct relationships. The loss is model-agnostic and consistently boosting the performance of several state-of-the-art models. The code is available at: https://github.com/CYVincent/Scene-Graph-Transformer-CogTree.
Motivation & Objective
- To address the long-tailed distribution problem in scene graph generation, where rare (tail) relationships are under-predicted due to data bias.
- To model human-like hierarchical reasoning in visual relationship prediction, inspired by prefrontal cortex cognitive processing.
- To develop a debiasing loss that supports coarse-to-fine distinction of relationships, reducing interference from semantically similar but incorrect classes.
- To create a model-agnostic loss function that enhances performance across multiple state-of-the-art SGG architectures.
Proposed method
- Construct a CogTree hierarchy from biased SGG model predictions, grouping relationships by semantic concepts (e.g., 'on' vs. 'near') and organizing them from coarse to fine granularity.
- Define a tree-based classification loss (ℒ_TCB) that encourages correct prediction at each hierarchical level, starting from high-level concepts and refining to fine-grained distinctions.
- Integrate a flat classification loss (ℒ_CB) to preserve general relationship learning, while the tree-based loss focuses on hierarchical discrimination.
- Use attention-based weighting in the loss function to dynamically emphasize relationships that are harder to distinguish, especially in tail classes.
- Build the CogTree using two principles: (1) relationships in the same semantic concept form a subtree, and (2) subtrees are structured from coarse to fine levels.
- Apply the CogTree loss during training via a weighted combination of ℒ_TCB and ℒ_CB, with hyperparameter λ tuned for optimal performance.
Experimental results
Research questions
- RQ1Can a cognitive hierarchy of relationships improve long-tailed scene graph generation by mimicking human coarse-to-fine reasoning?
- RQ2How can a model-agnostic loss function be designed to support hierarchical distinction without requiring architectural changes?
- RQ3To what extent does organizing relationships into a tree structure reduce interference from semantically similar but incorrect relationships?
- RQ4Does the CogTree loss consistently improve performance across diverse SGG models and benchmarks?
Key findings
- CogTree achieves state-of-the-art performance on the VG-150K dataset, with mR@20/50/100 scores of 22.89 / 28.38 / 30.97 on Predicate Classification, surpassing previous debiasing methods.
- The ablation study confirms that both the tree-based loss (ℒ_TCB) and flat loss (ℒ_CB) contribute, with ℒ_TCB having a stronger impact on performance.
- Using AVERAGE instead of MAX or SUM for computing node probabilities yields the best results, as it better balances prediction confidence and reduces incorrect penalty.
- Violating the cognitive tree construction principles—such as mixing relationships from different concepts or layers—leads to significant performance drops.
- The optimal hyperparameter λ = 1 achieves the best overall performance, with minimal degradation in the range [0.7, 1.3].
- Qualitative analysis shows that CogTree significantly improves fine-grained relationship prediction (e.g., 'parked on' vs. 'standing on') and reduces confusion between visually similar relationships.
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.