Deep Learning · TEE · section

F22 Q1e

Final examination November 2022 fully solved

Question

Question (4 marks). Suggest and sketch an RNN architecture for image captioning.

Answer — step by step

Use a CNN encoder to map the image to a visual representation and a recurrent decoder (RNN/LSTM/GRU) to generate words one at a time. Condition the decoder’s initial state or its inputs on image features. At each step, vocabulary softmax predicts the next word based on the image and earlier words. Train using correct next-word targets and cross-entropy; stop generation at an end token. This is a one-to-many mapping from one image to a caption sequence.

The one-to-many pattern models image captioning Tap the diagram to enlarge.