Abstract
Exploiting relationships among objects has achieved remarkable progress in interpreting images or videos by natural language. Most existing methods resort to first detecting objects and their relationships, and then generating textual descriptions, which heavily depends on pre-trained detectors and leads to performance drop when facing problems of heavy occlusion, tiny-size objects and long-tail in object detection. In addition, the separate procedure of detecting and captioning results in semantic inconsistency between the pre-defined object/relation categories and the target lexical words. We exploit prior human commonsense knowledge for reasoning relationships between objects without any pre-trained detectors and reaching semantic coherency within one image or video in captioning. The prior knowledge (e.g., in the form of knowledge graph) provides commonsense semantic correlation and constraint between objects that are not explicit in the image and video, serving as useful guidance to build semantic graph for sentence generation. Particularly, we present a joint reasoning method that incorporates 1) commonsense reasoning for embedding image or video regions into semantic space to build semantic graph and 2) relational reasoning for encoding semantic graph to generate sentences. Extensive experiments on the MS-COCO image captioning benchmark and the MSVD video captioning benchmark validate the superiority of our method on leveraging prior commonsense knowledge to enhance relational reasoning for visual captioning.
Introduction
Standard visual captioning models typically follow a two-step "detect then describe" pipeline. They use pre-trained detectors (like Faster R-CNN) to identify objects and then use those labels to generate text. However, this approach has three major flaws. First, detectors are brittle; they often fail when objects are tiny, heavily occluded, or part of a "long-tail" distribution. Second, there is a semantic inconsistency between the rigid categories a detector is trained on and the fluid, natural language used in captions. Finally, detectors lack context; they only see what is physically present. Humans, however, use "commonsense" to infer context. For example, seeing a crowd by a track allows us to describe a "race" even if no runners are currently visible.
The authors aim to bridge this gap by using external prior knowledge to guide relational reasoning, allowing the model to "reason beyond sight."
Methodology
The proposed framework moves away from fixed object detectors, instead utilizing a joint reasoning method consisting of three main modules.
Visual and Knowledge Mapping
Instead of using a detector to find specific objects, the model densely samples regions from the image or video and clusters them into "candidate proposals." These proposals are mapped into two distinct spaces: a visual feature space (via CNNs) and a knowledge embedding space. The knowledge embeddings are derived from the Visual Genome dataset using the ComplEx algorithm, which allows for representing both symmetric (e.g., "near") and antisymmetric (e.g., "riding") relations.
Commonsense Reasoning (CR)
This module builds a semantic graph by evaluating potential triplets (subject-relation-object). By projecting visual and knowledge features into a complex-valued semantic space, the model measures the correlation between entities based on human commonsense. This effectively "selects" the most plausible relationships to form a graph, even when visual evidence is noisy or incomplete.
Relational Reasoning (RR)
Once the semantic graph is constructed, a Graph Convolutional Network (GCN) encodes it. The GCN facilitates information flow between nodes, refining the representation of each region based on its neighbors. Finally, an LSTM-based decoder uses these refined features to generate the final caption. To handle the "hard assignment" problem of selecting specific triplets, the authors developed an iterative learning algorithm that alternates between generating the semantic graph and updating the captioning parameters.
Experimental Results
The model was evaluated on the MS-COCO image captioning benchmark and the MSVD (Microsoft Video Description) benchmark. External knowledge was sourced from the linguistic triplets of the Visual Genome dataset.
The proposed method achieved state-of-the-art or comparable results across multiple metrics:
- MS-COCO: The model achieved a CIDEr score of 117.3, outperforming the popular "Up-Down" attention model (113.5) and the GCN-LSTM model (117.1).
- MSVD: In video captioning, it reached a CIDEr score of 89.6, significantly higher than the SCN (77.7) and GRU-EVE (78.1) baselines.
Ablation studies confirmed that removing the Commonsense Reasoning (CR) module caused a significant performance drop. This suggests that external knowledge is doing heavy lifting, especially in video domains where visual cues can be fleeting or obscured.
Conclusion
This research demonstrates that commonsense acts as a vital regularizer for visual uncertainty. By using clustering and knowledge mapping instead of fixed detectors, the model avoids the "semantic gap" and generates more coherent descriptions. While the current iterative optimization for "hard assignment" is effective, future work could explore more seamless end-to-end differentiable solutions and the integration of richer, multi-modal forms of knowledge beyond simple triplets.
Summary updated