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. 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.
翻译:场景图生成(SGG)是一项检测物体并预测物体间关系的挑战性任务。自DETR提出以来,基于单阶段物体检测器的单阶段SGG模型得到了广泛研究。然而,现有方法采用复杂建模来预测物体间关系,忽视了物体检测器多头自注意力机制中学习到的物体查询之间固有的关联。我们提出了一种轻量级的单阶段SGG模型,该模型从DETR解码器的多头自注意力层中学习到的多种关系中提取关系图。通过充分利用自注意力的副产物,仅需浅层关系提取头即可有效提取关系图。考虑到关系提取任务对物体检测任务的依赖性,我们提出了一种新颖的关系平滑技术,可根据检测物体的质量自适应调整关系标签。通过关系平滑,模型按照连续课程进行训练:在训练初期专注于物体检测任务,随着物体检测性能逐步提升,转向多任务学习。此外,我们提出了连通性预测任务作为关系提取的辅助任务,用于预测物体对之间是否存在关系。我们在Visual Genome和Open Image V6数据集上验证了方法的有效性和高效性。代码已开源:https://github.com/naver-ai/egtr。