Multi-Prototype Space Learning for Commonsense-Based Scene Graph Generation

Lianggangxu Chen, Youqi Song, Yiqing Cai, Jiale Lu, Yang Li, Yuan Xie, Changbo Wang, Gaoqi He

Introduction: The Challenge of Visual Diversity

Scene Graph Generation (SGG) is a critical task in computer vision that involves identifying objects within an image and deciphering the complex relationships (predicates) between them. While significant progress has been made, a persistent hurdle remains: the long-tail distribution of relationships. Common predicates like "on" are overrepresented, while more descriptive ones like "standing on" or "parked on" are rare.

To address this, researchers often turn to Commonsense-based SGG (C-SGG), which leverages external knowledge to guide the model. However, traditional C-SGG models typically represent each predicate as a single prototype—a single vector in a word-embedding space. This paper argues that this approach is fundamentally limited because it ignores large intra-class variation. For instance, the visual representation of "riding a bicycle" is vastly different from "riding a horse" or "riding a wave." In a single-prototype system, a specific instance like "man riding a surfboard" might be mathematically closer to a "lying on" prototype than a generic "riding" prototype, leading to frequent misclassifications.

The proposed multi-prototype approach allows for better inter-class separability by representing categories like 'Riding' with multiple centers, accommodating diverse visual contexts.

Proposed Method: Multi-Prototype Learning (MPL)

Inspired by cognitive science, which suggests that human categories are "polycentric" rather than having a single center, the authors propose a Multi-Prototype Learning (MPL) framework. This system moves away from single-point representations, instead using multiple "centers" per relationship to capture visual diversity.

The MPL Pipeline

The framework operates through a sophisticated four-step process designed to ground abstract commonsense in visual reality:

  1. Prototype Extraction: Instead of a single word vector, the model generates $K$ distinct prototypes for each predicate by sampling from a small hyper-sphere around the initial embedding.
  2. Triple-level Optimal Transport (TOT): This is the core algorithmic innovation. To match a visual feature to the correct prototype, the model considers the entire relationship "triple" (subject, predicate, and object). By using Optimal Transport to calculate a "triple distance," the model ensures that "man-riding-surfboard" is matched to the specific "surfing" prototype of riding, rather than a generic or incorrect one.
  3. Momentum Updating: Prototypes are not static. During training, they are updated using a momentum coefficient, allowing them to evolve and drift toward the actual centers of the visual clusters they represent in the data.
  4. Prototype Space Optimization: The authors introduce two specific loss functions to refine the embedding space:
  5. Inter-class Separability ($L_{ICS}$): Ensures that prototypes of different classes (e.g., "riding" vs. "lying on") remain distinct and far apart.
  6. Intra-class Compactness ($L_{ICC}$): Pulls visual features closer to their assigned prototypes, creating tighter, more robust clusters.
The complete MPL framework: (a) extracts object and predicate features, (b) applies the multi-prototype learning and Triple-level Optimal Transport, and (c) generates the final scene graph.

Experimental Results and Insights

The model was rigorously evaluated on two major benchmarks: Visual Genome (VG) and Open Images V6.

  • State-of-the-Art Performance: On Visual Genome, the MPL framework achieved a mean score of 54.2 across standard tasks (SGDET, SGCLS, PREDCLS), significantly outperforming previous leading models like PE-Net (46.4). On the larger Open Images V6, it reached a weighted score of 44.43, demonstrating its scalability.
  • The Optimal $K$: Ablation studies revealed that $K=3$ prototypes per class is the ideal balance. While more prototypes capture more diversity, exceeding this number introduces noise that can degrade predictive accuracy.
  • Contextual Disambiguation: Qualitative results showed the model's superior ability to distinguish between visually similar but semantically different postures, such as a dog "lying on" a bench versus "sitting on" it, by leveraging the multi-prototype space.

Conclusion and Future Directions

By evolving static word embeddings into multiple, visually-grounded prototypes, the MPL framework provides a more nuanced and accurate way to model real-world relationships. While the current model uses a fixed number of prototypes ($K$) for all classes, future work could explore adaptive prototype counts, where complex predicates like "on" receive more prototypes than simpler, more uniform actions like "eating." Despite the computational complexity added by the Optimal Transport mechanism, the gains in accuracy and robustness mark a significant step forward for commonsense-based scene understanding.

Summary updated

BibTeX
@inproceedings{chen2024multi,
  author = {Lianggangxu Chen and Youqi Song and Yiqing Cai and Jiale Lu and Yang Li and Yuan Xie and Changbo Wang and Gaoqi He},
  title = {{Multi-Prototype Space Learning for Commonsense-Based Scene Graph Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i2.27874},
}
Figure