Abstract
Traditional image captioning models often struggle to capture the intricate interactions between objects in a scene, treating them as isolated entities. This paper introduces the GCN-LSTM framework, which leverages Graph Convolutional Networks (GCNs) to explicitly model both semantic and spatial relationships. By constructing a structured graph of interacting objects, the model produces more descriptive and accurate captions. The approach achieved a state-of-the-art CIDEr-D score of 128.7% on the MS COCO dataset, demonstrating the efficacy of relation-aware visual representations.
Introduction: Beyond the "Bag of Features"
The standard paradigm for image captioning follows an encoder-decoder architecture where a Convolutional Neural Network (CNN) extracts visual features and a Recurrent Neural Network (RNN) generates the corresponding text. While effective, these models often treat detected objects as a "bag of features," failing to account for the complex web of relationships that define a scene. For instance, identifying a "man" and a "horse" is insufficient; a high-quality caption must describe the interaction, such as "a man riding a horse."
The GCN-LSTM framework addresses this limitation by moving from simple object detection to "relation-aware" representation, integrating semantic actions and spatial geometry into the encoding process.
Methodology
The GCN-LSTM architecture consists of three primary stages: graph construction, GCN-based encoding, and an attention-based LSTM decoder.
1. Graph Construction
For every input image, the model identifies objects using a Faster R-CNN detector. It then constructs two distinct graphs:
- Semantic Graph: This captures functional interactions (e.g., "wearing," "holding," "standing on"). These relationships are predicted using a classifier pre-trained on the Visual Genome dataset.
- Spatial Graph: This captures the geometric layout of the scene (e.g., "inside," "overlap," or relative distance) based on the bounding box coordinates of detected objects.
2. GCN-based Encoder
The core of the framework is the Graph Convolutional Network (GCN). Unlike standard GCNs, this implementation is designed to handle directional edges and specific edge labels. An "edge-wise gate" mechanism is employed to automatically learn the saliency of different relationships, ensuring that the model prioritizes important interactions over trivial spatial overlaps.
3. LSTM Decoder with Attention
The refined, relation-aware features from the GCN are fed into an LSTM decoder. The model utilizes a late fusion scheme, calculating word probabilities independently from the semantic and spatial branches before merging them to generate the final sentence.
Key Insights
- Contextual Refinement: By using a GCN, an object's feature vector is no longer static. The representation of a "cup" is dynamically updated based on whether it is "on a table" or "held by a person," providing the language model with much richer contextual information.
- Spatial and Semantic Synergy: The research highlights that spatial and semantic information are complementary. Spatial graphs provide structural layout, while semantic graphs provide the narrative action.
- Salience Gating: The edge-wise gate acts as a crucial filter, preventing the model from being overwhelmed by the sheer number of possible relationships in a complex scene.
Experimental Results
The GCN-LSTM model demonstrated significant improvements over previous state-of-the-art methods:
- Quantitative Performance: On the MS COCO benchmark, the model increased the CIDEr-D score from 120.1% to 128.7%. It also secured the top position on the official COCO online leaderboard across metrics including BLEU, METEOR, ROUGE-L, and SPICE.
- Qualitative Evaluation: Human evaluations confirmed that GCN-LSTM generates more accurate and "human-like" descriptions. For example, where a baseline model might describe "people at a table," GCN-LSTM correctly identifies the action: "a group of children sitting at a table eating a cake."
Conclusion and Future Work
The GCN-LSTM framework proves that explicit relationship modeling is vital for high-fidelity image captioning. While the current model relies heavily on the accuracy of initial object detectors, it sets a new standard for how visual context can be structured. Future research may explore more integrated "early fusion" strategies and the application of these graph-based representations to broader tasks like Visual Question Answering (VQA).
Summary updated