Image caption:a hierarchical approach for generating descriptive image paragraphs

Source: Internet
Author: User

1. Introduction

The main focus of this article is to describe the picture in paragraph, which is different from describing the picture in a sentence. First, the author reviews the relevant research background. Using sentences to describe pictures often contain limited information, the main methods for the current search, template, direct generation, the third is the current research hotspot, and the third method has evolved into a dense caption task, that is, to obtain a number of important areas of the image, for each region in a sentence to describe, Then combine all the sentences to form dense caption. This also has shortcomings, is the sentence between the incoherent. In this paper, a model is presented, which divides the image into several regions by using the object recognition, and divides the paragraphs into several sentences by using the hierarchical rnn, forming the correspondence relation and completing the task of generating the paragraph. This paper also explains the research status of Image caption and hierarchical RNN (RNN), and the hierarchy RNN is another method to avoid gradient vanishing and gradient explosion in RNN.

2. Model

The model first uses object detection to divide the picture into several different parts (FASTER-RCNN,CNN and RPN), then gathers different information of each region to produce a vector with rich semantics, and then uses this vector as the input of the level RNN, the level RNN of this experiment contains two, Sentence-level RNN (SENTENCE-RNN) and word-level RNN (WORD-RNN) are used to determine how many sentences are produced and the latter to determine how many words each sentence produces. The last output paragraph. The overall model is as follows:

The above model is concise, clear and concrete, the process is clear, very good expression of this task.

In connection faster-rcnn and hierarchical rnn, a zone pooling operation has been made, each region produces a vector, where we maximize the pooling of all vectors, reducing the amount of information and preserving the most important messages. The formula for pooling operations is as follows: Wpool is the matrix of the PXD, p is the dimension of the last generation vector, and D is the dimension of each region's eigenvector.

SENTENCE-RNN is a single-layer hidden layer with a dimension of 512 with the Lstm,cell state set to 0. Each time, produces a series of hidden states H1-hs, each representing a sentence, each state has two functions, 1, through Hi's projection and logic classifier, generate two classification status and distribution probability. 2, hi input two layers of fully connected layer, creating a theme vector.

WORD-RNN is a two-layer lstm with a hidden layer size of 512, accepting SENTENC-RNN output, producing a sentence. Each time step, the last layer lstm the hidden layer output the probability of each word, according to the probability size, select words, compose sentences, the final output.

Combine these sentences to form a paragraph and the final output.

3. Experiment

Training data contains pictures-paragraph pairs, paragraphs have s sentences, each sentence has a NI word, yij is the first sentence of the J words, after the pooling of the vector VP, we will SENTENCE-RNN expansion into S-step, calculate the state probability distribution of each sentence. Then input to the S-word-rnn, each unfolded as a ni step, resulting in a probability distribution Pij, on the first sentence of the J Word, we define the loss as the following form:

Here, we use three threshold values to control the number of outputs per step, tstop stop probability, Nmax represents the maximum number of words, and Smax represents the maximum number of sentences.

In addition, we also use transfer learning to apply this task. One is to use the parameters of the well-trained area object recognition network to directly apply to our model, and the second is to initialize our model with the trained word vectors and rnn the parameters of the model.

This paper uses Mscoco data set, and set some baseline, and the evaluation system chooses meteor, cider, BLER. See paper. The results obtained are as follows:

4. Summary

The paper gave me a big inspiration and needed to be read again.

Image caption:a hierarchical approach for generating descriptive image paragraphs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.