Skip to main content
QUICK REVIEW

[Paper Review] Scene Graph Parsing by Attention Graph

Martin Andrews, Yew Ken Chia|arXiv (Cornell University)|Sep 13, 2019
Multimodal Machine Learning ApplicationsComputer Science26 references8 citations
TL;DR

This paper proposes an end-to-end trainable 'Attention Graph' mechanism that leverages the self-attention layers of a pre-trained Transformer to directly predict scene graph structures from natural language descriptions. By classifying node types and parent arcs in parallel, the model achieves a 52.21% F-score on the SPICE metric, surpassing prior methods by 2.5% on the Visual Genome dataset.

ABSTRACT

Scene graph representations, which form a graph of visual object nodes together with their attributes and relations, have proved useful across a variety of vision and language applications. Recent work in the area has used Natural Language Processing dependency tree methods to automatically build scene graphs. In this work, we present an 'Attention Graph' mechanism that can be trained end-to-end, and produces a scene graph structure that can be lifted directly from the top layer of a standard Transformer model. The scene graphs generated by our model achieve an F-score similarity of 52.21% to ground-truth graphs on the evaluation set using the SPICE metric, surpassing the best previous approaches by 2.5%.

Motivation & Objective

  • To develop a scene graph parsing model that directly leverages the attention mechanism of a pre-trained Transformer for end-to-end learning.
  • To address limitations of sequential, transition-based parsing methods by enabling holistic, parallel prediction of graph structures.
  • To improve scene graph parsing performance on the Visual Genome dataset using a novel attention-driven graph construction mechanism.
  • To investigate the feasibility of using attention heads to implicitly model node connectivity and type classification in a structured, differentiable way.

Proposed method

  • Fine-tune a pre-trained OpenAI Transformer model (12 layers, 768-dim hidden states) on region descriptions and corresponding scene graphs.
  • Introduce a custom 'Attention Graph' layer that predicts both node type (e.g., SUBJ, PRED, OBJT, ATTR, same, none) and parent node index for each word token.
  • Train the Attention Graph layer using a weighted sum of two cross-entropy losses: one for node type classification and one for parent arc prediction.
  • Use masked self-attention in the Transformer to attend to all tokens simultaneously, enabling parallel graph structure prediction instead of sequential transitions.
  • Apply a soft label for parent arcs using a differentiable softmax over all possible parent nodes, with 'none' indicating no arc.
  • Leverage the CONLL file format to represent node types and arc directions, enabling structured output from the model.

Experimental results

Research questions

  • RQ1Can the self-attention mechanism of a pre-trained Transformer be directly adapted to predict structured scene graph components (objects, attributes, relations) in an end-to-end manner?
  • RQ2Does a parallel, attention-based graph construction approach outperform sequential, transition-based parsing methods in scene graph parsing tasks?
  • RQ3To what extent can a model trained on natural language descriptions generate scene graphs that align with ground-truth annotations on the Visual Genome dataset?
  • RQ4How does the performance of the proposed Attention Graph model compare to state-of-the-art methods, particularly in terms of SPICE F-score?
  • RQ5What are the limitations imposed by the Visual Genome dataset itself, and how do they affect the upper bound of model performance?

Key findings

  • The proposed Attention Graph model achieves a SPICE F-score of 52.21% on the Visual Genome validation set, representing a 2.5% improvement over the previous best method.
  • The model outperforms prior approaches even though it is trained on a weaker Oracle baseline, suggesting that the attention-based architecture is more effective at capturing structural dependencies.
  • The Oracle system used for training achieves a higher F-score (66.30%) when limited to useful words, indicating that the dataset’s annotation quality may constrain model performance.
  • Despite the high performance of the Oracle, the model still shows significant room for improvement, suggesting that data quality issues—such as missing relationships or spurious attributes—limit the upper bound of performance.
  • The attention mechanism enables direct, parallel prediction of graph structure, avoiding the sequential dependency issues inherent in transition-based parsers.
  • The authors observe that the model’s performance is limited not by architecture, but by inconsistencies in the Visual Genome dataset, such as missing relationships in descriptions and over-annotated attributes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.