Paper · DenseCap: Fully Convolutional Localization Networks for Dense Captioning
Open the sourceThis paper, co-authored by Andrej Karpathy with Justin Johnson and Li Fei-Fei, introduces the dense captioning task, which unifies object detection and image captioning by localizing and describing image regions in natural language. The authors propose the Fully Convolutional Localization Network (FCLN), a CNN plus a differentiable localization layer plus an RNN language model, trained end-to-end in a single optimization step, and show speed and accuracy gains on Visual Genome.
- Dense captioning generalizes detection (single-word labels) and captioning (one full-image region) along label density and label complexity axes. - Replacing RoI pooling with bilinear interpolation makes the localization layer fully differentiable, so gradients flow into region coordinates and the whole model trains jointly. - Learned region proposals (RPN) beat hand-tuned EdgeBoxes because human-annotated regions are more general than objects. - Mismatch between training and test statistics (full images vs. regions) explains poor baseline performance. - The joint model benefits from visual context outside the test regions and runs in 240ms per image, over 13x faster than the Region RNN baseline. - The model supports image retrieval and open-world detection by localizing arbitrary text queries.
Based on Andrej Karpathy's public content. Not affiliated with or endorsed by Andrej Karpathy.
Supports these rules
Improve the whole stack
ConfirmedSurface assumptions before generalizing
ConfirmedProgram networks through data
Quotes from this video
“The primary challenge is to develop a model that supports end-to-end training with a single step of optimization, and both efficient and effective inference.”
“they adopt a 4-step optimization process, while our approach does not require training pipelines.”
“Gradients can be propagated backward from the output features to the input features, but not to the input proposal coordinates. To overcome this limitation, we replace the RoI pooling layer with with bilinear interpolation”
“The RPN network can learn these distributions from the raw data, while the EdgeBoxes method was designed for high recall on”
“Our model achieves superior results since it learns to propose regions from the training data.”
“may be due to mismatched statistics between its train and test distributions:”
“Object detection is hence recovered as a special case when the target labels consist of one word, and image captioning is recovered when all images consist of one region that spans the full”