Relation-aware Hierarchical Prompt for Open-vocabulary Scene Graph Generation

Tao Liu, Rongjie Li, Chongyu Wang, Xuming He
12/26/2024
cs.CVcs.AI

Official code: Leon022/RAHP (8 stars, Apache-2.0, last commit 2025-12-05).

Abstract

Open-vocabulary Scene Graph Generation (OV-SGG) overcomes the limitations of the closed-set assumption by aligning visual relationship representations with open-vocabulary textual representations. This enables the identification of novel visual relationships, making it applicable to real-world scenarios with diverse relationships. However, existing OV-SGG methods are constrained by fixed text representations, limiting diversity and accuracy in image-text alignment. To address these challenges, we propose the Relation-Aware Hierarchical Prompting (RAHP) framework, which enhances text representation by integrating subject-object and region-specific relation information. Our approach utilizes entity clustering to address the complexity of relation triplet categories, enabling the effective integration of subject-object information. Additionally, we utilize a large language model (LLM) to generate detailed region-aware prompts, capturing fine-grained visual interactions and improving alignment between visual and textual modalities. RAHP also introduces a dynamic selection mechanism within Vision-Language Models (VLMs), which adaptively selects relevant text prompts based on the visual content, reducing noise from irrelevant prompts. Extensive experiments on the Visual Genome and Open Images v6 datasets demonstrate that our framework consistently achieves state-of-the-art performance, demonstrating its effectiveness in addressing the challenges of open-vocabulary scene graph generation. The code is available at: https://github.com/Leon022/RAHP

View on arXivView PDF

Code Implementations(1)

Leon022/RAHPOfficial100%
Apache-2.0

The official implementation of "Relation-aware Hierarchical Prompt for Open-vocabulary Scene Graph Generation."

82C, C++Jan 12, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{liu2024relationaware,
  title  = {Relation-aware Hierarchical Prompt for Open-vocabulary Scene Graph Generation},
  author = {Tao Liu and Rongjie Li and Chongyu Wang and Xuming He},
  year   = {2024},
  eprint = {2412.19021},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.19021v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.19021.svg)](https://codeofpaper.com/paper/2412.19021)

Discussion