Source-linked AI summary
Learning of Visual Relations: The Devil is in the Tails
Alakh Desai, Tz-Ying Wu, Subarna Tripathi, Nuno Vasconcelos
TL;DR
Visual relation learning is long-tailed because entity and predicate frequencies combine in joint relations, while complex models may overfit frequent classes. The paper proposes DT2 with ACBS to address both distributions through training. On Visual Genome, DT2-ACBS significantly outperforms more complex state-of-the-art methods on scene graph generation tasks.
Problem
Visual relation learning combines long-tailed entity and predicate distributions, while complexity-focused methods may overfit frequent classes and underperform on rare ones.
Source: §1 · pp. 1–2Method
DT2 uses decoupled training with Alternating Class-Balanced Sampling (ACBS) to capture the interplay between long-tailed entity and predicate distributions.
Source: §1 · p. 2Results
Takeaways & Limitations
The reported results suggest considering the long-tailed nature of visual relations alongside the development of sophisticated models.
Source: §6 · p. 8
Abstract
from arXiv · showhide
Significant effort has been recently devoted to modeling visual relations. This has mostly addressed the design of architectures, typically by adding parameters and increasing model complexity. However, visual relation learning is a long-tailed problem, due to the combinatorial nature of joint reasoning about groups of objects. Increasing model complexity is, in general, ill-suited for long-tailed problems due to their tendency to overfit. In this paper, we explore an alternative hypothesis, denoted the Devil is in the Tails. Under this hypothesis, better performance is achieved by keeping the model simple but improving its ability to cope with long-tailed distributions. To test this hypothesis, we devise a new approach for training visual relationships models, which is inspired by state-of-the-art long-tailed recognition literature. This is based on an iterative decoupled training scheme, denoted Decoupled Training for Devil in the Tails (DT2). DT2 employs a novel sampling approach, Alternating Class-Balanced Sampling (ACBS), to capture the interplay between the long-tailed entity and predicate distributions of visual relations. Results show that, with an extremely simple architecture, DT2-ACBS significantly outperforms much more complex state-of-the-art methods on scene graph generation tasks. This suggests that the development of sophisticated models must be considered in tandem with the long-tailed nature of the problem.
1. Introduction
The paper argues that visual relation learning requires addressing long-tailed entity and predicate distributions rather than relying chiefly on increasingly complex architectures. It proposes DT2 with ACBS, and reports that the combined approach outperforms more complex state-of-the-art methods on Visual Genome scene graph generation tasks.
1. Introduction
- Scene graph generation must jointly handle long-tailed entity recognition and visual relation recognition, where relations are subject-predicate-object tuples.A popular subject such as “ball” can occur in a rare tuple such as “robot-kicking-ball.”Source: §1 · p. 1
- Complexity-focused SGG methods may overfit popular predicates, while infrequent predicates can provide more informative depictions of scene content.The paper notes that Recall@k favors highly populated classes.Source: §1 · p. 2
- Visual Genome has skewed entity and predicate distributions of different magnitudes, and the paper reports that prior SGG methods had not considered them jointly.The proposed DT2 uses a simpler architecture with a more sophisticated training procedure.Source: §1 · p. 2
- Alternating Class-Balanced Sampling (ACBS) captures the interplay between long-tailed entity and predicate distributions within DT2.The paper presents ACBS as a novel sampling strategy.Source: §1 · p. 2
- DT2-ACBS significantly outperforms state-of-the-art methods with more complex architectures on all Visual Genome scene graph generation tasks.DT2 also uses a model with 10× fewer parameters and significantly outperforms prior architectures under mRecall@K.Source: §1 · p. 2
2. Related work
Prior SGG work emphasizes architectural complexity and often performs poorly on underrepresented classes. Long-tailed recognition offers strategies including resampling, cost-sensitive losses, and transfer learning; this paper adopts different sampling strategies for entity and predicate components.
2.1. Scene graph generation
- SGG approaches often target Recall@K with complex architectures, while underrepresented classes perform worse; prior methods addressed dataset bias but considered at most one long-tailed distribution and did not disentangle sampling gains from architectural complexity.Examples include causal inference, balanced visual features, predicate correlations, and confidence-based gating with resampling.Source: §2.1 · p. 2
2.2. Long-tailed recognition
- Long-tailed recognition approaches include data resampling, cost-sensitive losses, and transfer learning.Resampling changes class representation; cost-sensitive methods weight errors by frequency or difficulty; transfer methods share information from head to tail classes.Source: §2.2 · pp. 2–3
- Decoupled recognition methods use different sampling strategies across representation and classifier learning, motivating different distributions for training entity and predicate components.The cited approaches include decoupled stages and a two-stream model with mixed sampling.Source: §2.2 · p. 3
3. Formulation and data statistics
The paper formulates scene graph inference as predicting boxes, entity classes, and relations, and distinguishes three evaluation tasks. It argues that the joint, highly skewed distributions of entities and predicates—and head-weighted evaluation—make explicit imbalance-aware learning important.
3.1. Definitions
- Visual relation inference is decomposed into bounding-box prediction, entity classification given boxes, and predicate classification given boxes and entity labels.The scene graph is represented as entities and their relations.Source: §3.1 · p. 3
- The paper distinguishes Scene Graph Detection, Predicate Classification, and Scene Graph Classification by which box and entity-category information is supplied.PredCls receives both boxes and entity classes; SGCls receives boxes only.Source: §3.1 · p. 3
3.2. Long-tailed visual relations
- Visual Genome’s most frequent entity class is 35× more populated than its least frequent, while the predicate ratio is 12,000× (5,000× excluding the least frequent predicate).The predicate imbalance exceeds the square of the entity-class ratio, 1,225×.Source: §3.2 · p. 3
- Long-tailed entity frequencies combine with predicate rarity and entity-pair combinations, producing relation distributions more skewed than either source alone.Rare predicates can occur even with popular entities, and relations can remain rare even when their entities and predicate are frequent.Source: §3.2 · p. 3
- Recall@K averages over ground-truth triplets and is dominated by frequent relation classes, so it does not penalize ignoring infrequent classes.The paper links this concern to the possibility of systems detecting only a few common, less informative relations.Source: §3.2 · pp. 3–4
- The paper proposes testing whether a simpler model with sampling designed for long-tailed visual relations can outperform more complex models that ignore this property.The authors note that adopting mRecall@K addresses evaluation imbalance but does not itself make the learning algorithm address imbalance.Source: §3.2 · p. 4
- mRecall@K averages recall within predicate classes and then across classes, addressing class imbalance at evaluation but not in the learning algorithm.The paper argues that learning should explicitly address the imbalance.Source: §3.2 · p. 4
4. Method
DT2 combines entity and predicate classifiers with separate classification losses, then adapts decoupled classifier training to the different entity and predicate distributions. ACBS alternates class-balanced sampling and uses distillation to retain predictions across its steps.
4.1. Notations
- A relation is represented as a subject-predicate-object tuple; entities include bounding boxes and class labels, and softmax outputs are probability vectors.Bounding boxes may come from ground truth or a detector, depending on whether the task is SGCls or SGDet.Source: §4.1 · p. 4
4.2. Model architecture
- The entity encoder extracts semantic and appearance features, which are paired with bounding-box embeddings and passed to a predicate classifier.The semantic branch predicts entity classes, while the appearance branch captures visual cues needed to distinguish relationships between the same entity classes.Source: §4.2 · pp. 4–5
4.3. Training
- Entity and predicate classification use cross-entropy losses so the network learns from both entity labels and relation predicates.The losses compare predicted entity and predicate probabilities with their respective ground-truth one-hot labels.Source: §4.3 · p. 5
4.4. Sampling strategies
- Standard random sampling trains the feature extractor and classifier together, then class-balanced sampling relearns only the classifier weights with the feature extractor fixed.Restricting balanced-sampling fine-tuning to classifier weights addresses the risk of overfitting to resampled tail classes.Source: §4.4 · p. 5
4.5. Sampling for visual relationships
- Entity and predicate distributions differ, so visual-relation learning requires distinct class-balanced sampling strategies for the two classifier steps.Predicate-balanced sampling alone is not class-balanced for entities and can overfit the entity-classification parameters.Source: §4.5 · pp. 5–6
- ACBS alternates entity- and predicate-balanced sampling, using a teacher classifier and distillation to preserve entity predictions across steps.The P-step updates predicate and teacher parameters; the E-step updates the student entity classifier, encouraging it to mimic the teacher.Source: §4.5 · p. 6
5. Experiments
The experiments evaluate DT2-ACBS on VG150 across three scene-graph-generation tasks. They compare it with existing methods, examine class-wise performance and sampling ablations, and show qualitative predictions.
5.1. Dataset
- VG150 uses 150 object classes and 50 predicate classes, and predicates with fewer than five instances are ignored during balanced sampling.The dataset's predicate distribution remains highly long-tailed.Source: §5.1 · p. 6
5.2. Comparison to SOTA
- DT2-ACBS improves mR@100 over existing methods by 1.9% on PredCls, 7.9% on SGCls, and 12.7% on SGDet.The PredCls gain is reported against methods addressing predicate long-tail bias; the SGCls and SGDet passages describe margins over existing methods.Source: Table 1 · p. 7, §5.2 · p. 7
- DT2-ACBS improves middle- and tail-class performance, while remaining comparable on head classes for SGCls and SGDet.Some apparent head-class degradation reflects predictions of finer-grained predicates such as “standing on” or “sitting on” instead of “on”; the metric counts these as incorrect.Source: §5.2 · pp. 7–8, Table 2 · p. 7
5.3. Ablations on sampling strategies
- Two-stage training outperforms single-stage training, and separate entity and predicate class-balanced sampling outperforms using predicate-balanced sampling for both classifiers.ACBS further improves SGCls by distilling knowledge between the P-step and E-step.Source: §5.3 · p. 8
5.4. Qualitative results
- Qualitative examples show predictions spanning frequent and tail entity and predicate classes, including finer-grained predicates that may differ from the ground truth.The paper gives “walking on,” a subclass of “on,” as an example of a reasonable but non-matching predicate prediction.Source: §5.4 · p. 8, Figure 6 · p. 8
6. Conclusions
The conclusion frames visual relation learning as inherently long-tailed and presents simple-model DT2 with ACBS as an alternative to more complex architectures. On VG150, DT2-ACBS significantly outperforms more complex state-of-the-art methods.
6. Conclusions
- On VG150, DT2-ACBS significantly outperforms state-of-the-art methods with more complex architectures.The conclusion attributes the approach to a simple model and alternating sampling strategy for long-tailed visual relations.Source: §6 · p. 8
A. Model complexity
DT2 has substantially fewer trainable parameters than most recent approaches, by design, to emphasize accounting for long tails during training.
A. Model complexity
- DT2 has 10× fewer trainable parameters than most recent approaches; SGCls model sizes are 224 MB for DT2, versus 1.68 GB for MOTIFS, 1.65 GB for VCTree, and 2.1 GB for TDE-MOTIFS.The authors state that the lower complexity is by design, to emphasize accounting for long tails during training.Source: A. Model complexity · p. 11
B. Additional results
This section presents additional results for DT2-ACBS.
B. Additional results
- The appendix section presents additional results for DT2-ACBS.Source: B. Additional results · p. 11
B.1. More visual examples
Additional PredCls and SGCls examples show DT2-ACBS predicting both frequent and less-populated classes, including reasonable predictions that the metric counts as incorrect.
- DT2-ACBS predicts predicates from head classes such as has and wearing as well as the less-populated class walking on.Source: §B.1 · p. 11
- Some metric-counted errors remain reasonable predictions, including belonging to/of and wears/wearing.Source: §B.1 · p. 11
- In SGCls examples, it correctly predicts head entities boy, horse, and head, plus tail entities racket and sock.Source: §B.1 · p. 11
B.2. Ablations on appearance branch
The ablations report that appearance features substantially support predicate classification, ACBS performs better with its intended teacher, and Recall@K is unsuitable for evaluating long-tailed relations.
B.2. Ablations on appearance branch
- Removing the appearance branch leaves entity accuracy similar but sharply reduces PredCls and SGCls performance, including when ground-truth entity labels are used.Source: §B.2 · p. 11, Table 4 · p. 11
B.3. E-step as teacher
- Using the E-step as teacher weakens results because its update to entity weights can conflict with the predicate-weight update; ACBS distillation avoids that incompatibility.Source: §B.3 · p. 11, Table 5 · p. 11
B.4. Recall values
- Recall@K is biased toward dominated classes such as on and is not suitable for long-tailed visual relations; Table 6 provides Recall and mRecall values for reference.Source: §B.4 · p. 11
C. Implementation Details
DT2-ACBS uses two training stages with different sampling schemes, specified optimization settings, and a stated evaluation protocol; accompanying visuals describe example and table contents.
C. Implementation Details
- DT2-ACBS first trains θ, φ, and ψ with SRS, then learns classifiers with ACBS.Source: C. Implementation Details · p. 11
- Both stages use Adam with initial learning rate 10^-3, decayed by 0.5 every 5 epochs; batch sizes are 256 in stage one and 2 objects and 5 predicates per class in stage two.Source: C. Implementation Details · p. 11
- Validation sets α, β, and τ_s to 0.2, 1, and 10, respectively, and evaluation filters subject-object pairs without relationships using the protocol of.Source: C. Implementation Details · p. 11
- Figure 7 marks correct and incorrect predictions by color in PredCls and SGCls examples, with ground truth shown in brackets.Source: Figure 7 · p. 12
- Table 6 reports Recall and mRecall values for scene graph generation tasks.Source: Table 6 · p. 12
Related papers
This paper cites
- Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotations2016
- Learning without Forgetting2016
- Class-Balanced Loss Based on Effective Number of Samples2019
- Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss2019
- Decoupling Representation and Classifier for Long-Tailed Recognition2019
- Neural Motifs: Scene Graph Parsing with Global Context2017