EGTR: Extracting Graph from Transformer for Scene Graph Generation

Jinbae Im, JeongYeon Nam, Nokyung Park, Hyungmin Lee, Seunghyun Park
4/1/2024
101 citations
transformer-attention

Official code: naver-ai/egtr (156 stars, Python, Apache-2.0, last commit 2024-06-25). 1 more implementation below.

Abstract

Scene Graph Generation (SGG) is a challenging task of detecting objects and predicting relationships between objects. After DETR was developed, one-stage SGG models based on a one-stage object detector have been actively studied.

Show full abstract

However, complex modeling is used to predict the relationship between objects, and the inherent relationship between object queries learned in the multi-head self-attention of the object detector has been neglected. We propose a lightweight one-stage SGG model that extracts the relation graph from the various relationships learned in the multi-head self-attention layers of the DETR decoder. By fully utilizing the self-attention by-products, the relation graph can be extracted effectively with a shallow relation extraction head. Considering the dependency of the relation extraction task on the object detection task, we propose a novel relation smoothing technique that adjusts the relation label adaptively according to the quality of the detected objects. By the relation smoothing, the model is trained according to the continuous curriculum that focuses on object detection task at the beginning of training and performs multi-task learning as the object detection performance gradually improves. Furthermore, we propose a connectivity prediction task that predicts whether a relation exists between object pairs as an auxiliary task of the relation extraction. We demonstrate the effectiveness and efficiency of our method for the Visual Genome and Open Image V6 datasets. Our code is publicly available at https://github.com/naver-ai/egtr.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
naver-ai/egtrOfficial156PythonApache-2.02024-06-25
SZU-AdvTech-2024/318-EGTR-Extracting-Graph-from-Transformer-for-Scene-Graph-GenerationCommunity0PythonApache-2.02025-01-09
naver-ai/egtrOfficial100%
Apache-2.0

[CVPR 2024 Best paper award candidate] EGTR: Extracting Graph from Transformer for Scene Graph Generation

15623Python, CudaMar 20, 20242 years agoApache-2.0
cvpr2024detrobject-detectionscene-graph-generationself-attention+1 more
Apache-2.0
00Python, CudaJan 2, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{im2024egtr,
  title  = {EGTR: Extracting Graph from Transformer for Scene Graph Generation},
  author = {Jinbae Im and JeongYeon Nam and Nokyung Park and Hyungmin Lee and Seunghyun Park},
  year   = {2024},
  eprint = {2404.02072},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2404.02072},
  journal = {CVPR 2024 2024}
}

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/2404.02072.svg)](https://codeofpaper.com/paper/2404.02072)

Discussion