Abstract
We introduce the dense captioning task, which requires a computer vision system to both localize and describe salient regions in images in natural language. The dense captioning task generalizes object detection when the descriptions consist of a single word, and Image Captioning when one predicted region covers the full image. To address the localization and description task jointly we propose a Fully Convolutional Localization Network (FCLN) architecture that processes an image with a single, efficient forward pass, requires no external regions proposals, and can be trained end-to-end with a single round of optimization. The architecture is composed of a Convolutional Network, a novel dense localization layer, and Recurrent Neural Network language model that generates the label sequences. We evaluate our network on the Visual Genome dataset, which comprises 94,000 images and 4,100,000 region-grounded captions. We observe both speed and accuracy improvements over baselines based on current state of the art approaches in both generation and retrieval settings.
Introduction
Computer vision has traditionally distinguished between Object Detection (localizing objects with single-word labels) and Image Captioning (describing a whole scene with a sentence). However, human perception is richer; we often describe specific, localized parts of a scene with natural language. This paper introduces dense captioning, a task that unifies these objectives by requiring a model to simultaneously localize and describe multiple salient regions.
Dense captioning serves as a superset of existing tasks: if labels are single words, it reduces to detection; if a single region covers the entire image, it becomes standard image captioning. The primary challenge lies in creating an efficient, end-to-end system that avoids the computational overhead of external region-proposal methods.
Methods: Fully Convolutional Localization Networks (FCLN)
To address the joint localization and description task, we propose the Fully Convolutional Localization Network (FCLN). The architecture enables a single efficient forward pass and end-to-end training.
The FCLN consists of three primary components:
- Convolutional Backbone: A VGG-16 network extracts high-level feature maps from the input image.
- Dense Localization Layer: Inspired by Faster R-CNN, this layer proposes regions of interest (ROIs). Crucially, it employs bilinear interpolation for cropping, making the operation fully differentiable. This allows gradients to flow back through box coordinates, enabling the model to refine its "glance" based on the language model's feedback.
- Recognition and Language Model: Each ROI is projected into a fixed-size representation and passed to a Long Short-Term Memory (LSTM) network. The LSTM generates captions word-by-word, conditioned on the visual features of the specific region.
Experimental Setup and Results
The model was evaluated on the Visual Genome dataset, which contains 94,000 images and 4.1 million region-grounded captions. With an average of 43.5 localized snippets per image, it represents a significantly higher label density than datasets like MS COCO.
Performance and Efficiency
- Inference Speed: The FCLN processes a 720x600 image in approximately 240ms on a Titan X GPU, roughly 13x faster than multi-stage pipelines that process regions independently.
- Accuracy: The model achieved 5.39 mAP on the dense captioning benchmark, outperforming baselines that utilized external region proposals.
- Open-World Capabilities: By leveraging a language model instead of a fixed classifier, the system can describe parts of objects (e.g., "the trunk of an elephant") not explicitly defined as classes during training.
Discussion and Future Work
The FCLN demonstrates that differentiable cropping and global context are vital for localized description. By operating on the full-image feature map, the model can use global scene information to better describe small details.
Current limitations include a reliance on rectangular bounding boxes and manual Non-Maximum Suppression (NMS) for post-processing. Future research may explore predicting complex masks or polygons and implementing trainable spatial suppression layers to further streamline the architecture. Additionally, while the model excels at identification, improving fine-grained spatial logic (e.g., distinguishing "front" vs. "back" components) remains an open challenge.
Summary updated