Source-linked AI summary

Dense Captioning with Joint Inference and Visual Context

Linjie Yang, Kevin Tang, Jianchao Yang, Li-Jia Li

arXiv:1611.06949v2cs.CV

TL;DR

Dense captioning must localize highly overlapping visual concepts and recognize many concepts that are ambiguous from appearance alone. The paper introduces joint inference and context fusion, evaluates architectural variants, and achieves state-of-the-art Visual Genome performance, while noting a limitation in decorrelating local-region and context information in later stages.

  • Problem

    Dense captioning requires accurate localization of highly overlapping regions and recognition of numerous visual concepts that can be ambiguous without context.

  • Method

    The model combines joint inference, which links recurrent description prediction with localization, and context fusion, which incorporates broader visual information into region descriptions.

  • Results

    The final model achieves state-of-the-art performance on Visual Genome, with context fusion improving performance and T-LSTM outperforming S-LSTM on Visual Genome V1.2 no-context results.

  • Takeaways & Limitations

    The experiments show that a compact model using joint inference and context fusion can support dense visual understanding and potentially benefit related vision tasks.

  • Takeaways & Limitations

    The integrated context model may be unable to decorrelate visual elements from local regions and context in later stages.

Abstract

from arXiv · show

Dense captioning is a newly emerging computer vision topic for understanding images with dense language descriptions. The goal is to densely detect visual concepts (e.g., objects, object parts, and interactions between them) from images, labeling each with a short descriptive phrase. We identify two key challenges of dense captioning that need to be properly addressed when tackling the problem. First, dense visual concept annotations in each image are associated with highly overlapping target regions, making accurate localization of each visual concept challenging. Second, the large amount of visual concepts makes it hard to recognize each of them by appearance alone. We propose a new model pipeline based on two novel ideas, joint inference and context fusion, to alleviate these two challenges. We design our model architecture in a methodical manner and thoroughly evaluate the variations in architecture. Our final model, compact and efficient, achieves state-of-the-art accuracy on Visual Genome for dense captioning with a relative gain of 73\% compared to the previous best algorithm. Qualitative experiments also reveal the semantic capabilities of our model in dense captioning.

1. Introduction

Dense captioning extends image captioning by exhaustively describing localized visual concepts, but overlapping regions complicate localization and numerous visually similar concepts complicate recognition. The paper addresses these challenges with joint inference and context fusion, supported by extensive architectural experiments.

  • Motivation: Dense captioning describes objects, object parts, and interactions with localized phrases rather than one holistic image sentence.These local descriptions are intended to provide richer semantic labeling and are less affected by annotator preference.
  • Challenges: More than half of Visual Genome ground-truth boxes have maximum IoU above 0.31, making overlapping regions common and description-guided localization necessary.The authors note that a single proposal can correspond to multiple overlapping regions of interest.
  • Challenges: Visual Genome contains 18,136 object categories, including visually similar pairs such as “street light” and “pole,” making context important for recognition.Some target regions are visually ambiguous without information from the surrounding image.
  • Approach: Joint inference feeds pooled region features into a recurrent network so predicted descriptions guide bounding-box localization word by word.The approach is illustrated as a step-by-step localization process in which the box adapts toward the correct position.
  • Approach: Context fusion combines region-of-interest features with context features to improve descriptions when the local appearance is insufficient.The paper illustrates this with an object that is difficult to recognize without cues from the whole image.
  • Contributions: The authors explore multiple network structures and report a compact, effective model with state-of-the-art performance.Their experiments examine the capabilities and mechanisms of different model structures.

2. Related Work

The work builds on CNN–RNN image captioning, two-stage object detection, visual context modeling, and dense-captioning research. Its framework follows the region-detection and localization-captioning organization associated with Faster R-CNN while targeting open-ended visual concepts.

  • Image Captioning: Image captioning commonly uses a CNN image encoder and an RNN decoder to generate sentences from visual features.Related approaches also align words or phrases with image regions and use attention over regions.
  • Framework: The proposed framework is inspired by Faster R-CNN and includes a region detection network followed by localization and captioning.The paper summarizes this organization as a two-stage framework.
  • Object Detection: Deep-learning object detectors commonly use a two-stage paradigm consisting of region proposal followed by detection.Faster R-CNN is identified as especially related because its proposal and detection networks share convolutional features.
  • Visual Context: Visual context has been incorporated into object detection and semantic segmentation, motivating context-aware dense captioning.The related work cites context information as beneficial for these vision tasks.
  • Dense Captioning: Dense captioning differs from object detection by replacing fixed object categories with a much larger set of phrase-described visual concepts.The task also localizes regions of interest, but its targets are open-ended and can include object parts.

3. Our Model

The model uses a two-stage dense-captioning pipeline that combines region detection with joint localization and description, then augments local features with visual context. Its integrated variants combine these components and train them with captioning, detection, and bounding-box regression losses.

  • Baseline model: The pipeline adopts Faster R-CNN-style region proposals and ROI-pooled features before predicting region descriptions, detection scores, and bounding-box offsets.The first stage generates proposals and fixed-length region features; the second stage performs localization and captioning.
  • Joint inference: Joint inference couples description generation with localization so predicted language informs bounding-box offset prediction.The offset is predicted from an LSTM encoding the region description, using the completed description at the final time step.
  • Joint inference: S-LSTM shares the captioning LSTM for offset prediction, SC-LSTM additionally concatenates its output with region features, and T-LSTM uses separate location and caption LSTMs.All three designs predict the offset after the description is complete, while T-LSTM keeps the two hidden spaces separate.
  • Context fusion: Context fusion combines local region features with context features using either early-fusion or late-fusion designs.Early-fusion combines features before the caption LSTM, whereas late-fusion first encodes context with an extra LSTM; tested fusion operators include concatenation, summation, and multiplication.
  • Integrated model: Integrated models plug joint-inference and context-fusion components together, such as T-LSTM with late-fusion context encoding.The integrated model predicts one word per time step and predicts the bounding-box offset after the location LSTM has encoded the full caption.
  • Training: Training minimizes a weighted sum of caption prediction, detection, and bounding-box regression losses.Captioning uses cross-entropy, detection uses foreground/background cross-entropy, and box regression uses smoothed-L1 loss.

4. Experiments

Experiments evaluate dense captioning models on Visual Genome using joint inference and context fusion, comparing training settings, architectural variants, and proposal counts. The final model achieves state-of-the-art mAP while retaining efficient inference.

  • Dataset and evaluation: The evaluation uses Visual Genome V1.0 and V1.2 with mean Average Precision (mAP), which jointly measures localization and description accuracy.The benchmark uses the same train/validation/test splits as prior work; V1.2 is described as a cleaner version of V1.0.
  • Joint inference: T-LSTM performs best among the joint-inference variants, achieving mAP 8.03 with end-to-end training and mAP 5.64 with fixed CNN and RPN training.Its end-to-end model also outperforms the baseline by more than 1% in mAP, whereas the other joint-inference variants do not.
  • Context fusion: Context fusion improves mAP across models, with gains ranging from 0.07 to 1.10; T-LSTM with late-fusion multiplication reaches mAP 8.60.This configuration is named T-LSTM-mult and is used in subsequent qualitative analyses.
  • Context fusion: Late fusion outperforms early fusion for every corresponding model, while early fusion provides only small gains over no-context counterparts.The authors attribute this pattern to the difficulty of decorrelating local and context features after direct combination.
  • Additional benchmark: On Visual Genome V1.2, T-LSTM without context achieves mAP 8.16 versus 6.44 for S-LSTM, while T-LSTM with late concatenation reaches mAP 9.03.The V1.2 results are higher overall, which the authors associate with cleaner ground-truth labels.
  • Best practice and efficiency: Using validated hyperparameters and 300 proposals, the final model reaches mAP 9.31 on Visual Genome V1.0 and 9.96 on V1.2, setting a new state of the art.With 100 proposals, it achieves mAP 8.67 and 9.47 on V1.0 and V1.2, respectively; 300- and 100-proposal inference takes 350 ms and 200 ms for a 600 × 720 image.

5. Conclusions

The paper develops a dense-captioning model combining joint inference and context fusion, then evaluates architectural variants to obtain a compact, effective model with state-of-the-art performance. Its learned representations may also support other dense visual understanding tasks and its comparisons may guide sequential-model design.

  • The final model combines joint inference and context fusion to address specific challenges in dense captioning.
  • Extensive comparisons of model structures and component variants provide intuitions about their effectiveness.
  • The resulting model is compact, effective, and state-of-the-art on the Visual Genome dataset.
  • The learned feature representations may benefit object detection, semantic segmentation, and caption localization.
  • The architectural comparisons may help guide model design in other tasks involving sequential modeling.
Loading 1611.06949v2…