TL;DR
The Skew Class-Balanced Re-Weighting (SCR) loss function addresses the "long-tail" problem in Scene Graph Generation by adaptively re-weighting predicate samples based on the skewness of their predictions. By leveraging non-visual priors to estimate bias, SCR achieves a superior trade-off between recognizing common relationships (like "on") and rare ones (like "riding"), outperforming existing debiasing methods on standard benchmarks.
What Problem Does This Paper Address?
Scene Graph Generation (SGG) aims to turn an image into a structured graph of triplets: subject-predicate-object (e.g., <man, riding, horse>). However, real-world datasets suffer from a severe long-tailed distribution.
As shown in Figure 1 below, a few "majority" predicates like on, has, and wearing appear thousands of times, while "minority" predicates like parked on or flying in are extremely rare. Furthermore, "background" predicates (where no relationship is annotated) account for over 80% of the data.
Standard models become "lazy," biased toward predicting majority classes because it yields higher overall accuracy. While previous "unbiased" SGG methods have tried to fix this, they often suffer from a "see-saw" effect: they improve performance on rare predicates but cause a drastic drop in performance for common ones. This paper seeks the "Goldilocks" zone—a method that improves minority recall without sacrificing the majority.
Methods
The authors introduce the Skew Class-Balanced Re-Weighting (SCR) framework. The core idea is to measure how "skewed" or biased a model's predictions are and use that measure to adjust the training loss.
1. Estimating Bias via Non-Visual Priors
The authors argue that bias primarily stems from non-visual information—specifically, the empirical frequency of relationships (FREQ) and the semantic embeddings of object pairs (EMB). They combine these into a "skew logit" ($\hat{R}_{skew}$) to estimate how many samples of a predicate the model expects to see versus what is actually there.
2. The SCR Loss Function
Instead of static re-weighting, SCR is adaptive. It uses the Fisher-Pearson coefficient of skewness and entropy to calculate a "Skew Class-Balanced Effective Number." * Skewness ($S_{skew}$): Measures the degree of bias in the target logit. * Entropy ($H_{skew}$): Measures the uncertainty/uniformness of the prediction.
If the skewness exceeds a certain threshold, the model assigns higher weights to those samples during training. This forces the model to pay more attention to biased (usually minority) predicates.
Datasets
The model was evaluated on three major benchmarks:
- Visual Genome (VG): The standard SGG benchmark with 150 object categories and 50 predicate categories.
- Open Images V4: A large-scale dataset from Google with 57 object and 9 predicate categories.
- Open Images V6: An expanded version with 301 object categories and 31 predicate categories, offering higher annotation quality.
Key Insights and Ideas
- Skewness vs. Frequency: Most prior work re-weights based on simple class counts. SCR argues that skewness of the predicted distribution is a more precise measure of how "tricked" the model is by the long tail.
- Adaptive Thresholding: SCR doesn't re-weight everything. It uses a threshold ($S_{th}$) based on mean skewness. If a prediction isn't significantly biased, it uses standard cross-entropy, preventing the model from over-correcting on well-represented classes.
- Non-Visual "Teachers": By using FREQ and EMB to estimate bias, the model learns to identify when it is relying too much on "common sense" statistics rather than the actual visual evidence in the image.
Key Results
SCR was tested against state-of-the-art debiasing methods like TDE, CogTree, and PPDL.
- Superior Trade-offs: On Visual Genome, SCR achieved the best balance between Recall (R@K) and mean Recall (mR@K). For example, using the MOTIFS baseline, SCR reached an mR@100 of 33.6, significantly higher than the baseline's 15.3, while maintaining a much higher R@100 (60.1) than competing debiasing methods like TDE (51.4).
- Zero-Shot Performance: SCR showed impressive gains in Zero-Shot Relationship Retrieval, identifying triplets that were never seen during training. On the SG-Transformer baseline, SCR improved Zero-Shot R@100 from 6.3 to 19.6.
- Generality: The authors demonstrated that SCR is a "plug-and-play" loss function that improves various architectures, including MOTIFS, VCTree, and SG-Transformer.
Limitations and Future Work
- Hyperparameter Sensitivity: The method relies on two key hyperparameters ($\delta$ and $\lambda_{skew}$) that control the re-weighting intensity. While the authors provide optimal settings, these might require tuning for new datasets.
- Dependence on Priors: The effectiveness of SCR is tied to the quality of the non-visual priors (FREQ and EMB). If the training set's frequency distribution is fundamentally different from the test set, the bias estimation might falter.
- Future Directions: The authors suggest that further analysis of the trade-off between majority and minority classes in even larger, more diverse datasets is a promising next step.
Summary updated