Abstract
Traditional image captioning models often struggle to balance object-level recognition with global contextual details. The Dual-Level Collaborative Transformer (DLCT) addresses this by integrating region-based and grid-based features through a novel geometric alignment mechanism. By constraining attention to spatially relevant areas, DLCT reduces semantic noise and achieves state-of-the-art performance on standard benchmarks.
Introduction
In image captioning, the challenge lies in effectively combining "what" is in an image (objects) with "where" and "how" they appear (context and texture). Most current models rely on region features—bounding boxes around objects extracted via detectors like Faster R-CNN. While effective for identifying discrete objects, these features often omit the global context and fine-grained background details. Conversely, grid features from CNN feature maps provide a holistic view but lack clear object boundaries. Simply merging these features in a standard Transformer often leads to "semantic noise," where the model incorrectly associates unrelated visual elements based on superficial similarities.
Methods
The DLCT architecture introduces three primary components to facilitate a more effective fusion of region and grid information:
- Dual-Way Self Attention (DWSA): This component processes region and grid features in parallel streams, allowing each type to extract its intrinsic properties before fusion occurs.
- Comprehensive Relation Attention (CRA): To move beyond a "bag of features" approach, CRA embeds both absolute spatial positions and relative geometric relationships (such as distance and overlap) directly into the attention mechanism.
- Locality-Constrained Cross Attention (LCCA): This is the model's core innovation. It utilizes a geometric alignment graph to ensure that a grid node only attends to a region node if their spatial areas intersect. This constraint filters out distracting, unrelated features and forces the model to focus on physically related information.
Experimental Results
The DLCT was evaluated on the MS-COCO dataset using both the Karpathy split and the official online test server. The model achieved a new state-of-the-art CIDEr score of 133.8% on the Karpathy split and 135.4% on the online leaderboard, surpassing previous benchmarks like the X-Transformer.
Qualitative analysis reveals that DLCT is significantly better at capturing fine-grained details and global context. For instance, while traditional models might identify a "train," DLCT accurately describes the specific colors and environment, such as "blue and yellow trains on the tracks."
Conclusion
DLCT demonstrates that incorporating geometric constraints into the Transformer architecture significantly improves image captioning quality. By treating geometry as a "first-class citizen" and using LCCA to reduce hallucinated connections, the model effectively bridges the gap between object-level and global-level visual understanding. Future work may extend this dual-level collaborative approach to other multi-modal tasks like Visual Question Answering (VQA) and video captioning.
Summary updated