Skip to main content
QUICK REVIEW

[论文解读] Comparative study of Transformer and LSTM Network with attention mechanism on Image Captioning

Pranav Dandwate, Chaitanya Shahane|arXiv (Cornell University)|Mar 5, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 3
一句话总结

本研究使用 MS-COCO 数据集和预训练的 Inception-V3 提取特征,对比了 Transformer 与 LSTM 搭载注意力机制在图像字幕生成中的表现。在相似的训练条件和损失函数下,Transformer 表现优于 LSTM,BLEU 得分为 0.45 对比 0.30,证明其在生成相关且描述性强的字幕方面具有更高的准确性。

ABSTRACT

In a globalized world at the present epoch of generative intelligence, most of the manual labour tasks are automated with increased efficiency. This can support businesses to save time and money. A crucial component of generative intelligence is the integration of vision and language. Consequently, image captioning become an intriguing area of research. There have been multiple attempts by the researchers to solve this problem with different deep learning architectures, although the accuracy has increased, but the results are still not up to standard. This study buckles down to the comparison of Transformer and LSTM with attention block model on MS-COCO dataset, which is a standard dataset for image captioning. For both the models we have used pretrained Inception-V3 CNN encoder for feature extraction of the images. The Bilingual Evaluation Understudy score (BLEU) is used to checked the accuracy of caption generated by both models. Along with the transformer and LSTM with attention block models,CLIP-diffusion model, M2-Transformer model and the X-Linear Attention model have been discussed with state of the art accuracy.

研究动机与目标

  • 评估并比较 Transformer 与 LSTM 搭载注意力机制在图像字幕生成中的性能。
  • 评估注意力机制对使用标准指标生成字幕质量的影响。
  • 将这些模型与 M2-Transformer、X-Linear Attention 和 CLIP-Diffusion 等最先进架构进行基准对比。
  • 识别在图像字幕生成中整合视觉与语言表征的最有效流程。
  • 分析两种模型在 MS-COCO 数据集上的训练动态与早期性能趋势。

提出的方法

  • 使用预训练的 Inception-V3 CNN 作为视觉编码器,为 Transformer 和 LSTM 模型提取图像特征。
  • 采用编码器-解码器框架,Transformer 使用自注意力机制,LSTM 使用加性注意力机制实现跨模态对齐。
  • 在 AWS g4dn.xlarge GPU 实例上,使用 MS-COCO 2014 数据集对两种模型进行 10 个周期的训练。
  • 使用 BLEU、METEOR、ROUGE、CIDEr 和 SPICE 多项指标评估模型性能。
  • 将结果与 M2-Transformer、X-Linear Attention 和 CLIP-Diffusion 等最先进模型进行对比。
  • 使用束搜索解码与贪婪推理生成最终字幕以供评估。

实验结果

研究问题

  • RQ1在 MS-COCO 数据集上,Transformer 与 LSTM 搭载注意力机制在字幕生成准确性方面如何比较?
  • RQ2注意力机制对 Transformer 和 LSTM 架构中生成字幕质量的影响是什么?
  • RQ3在图像字幕生成任务中,Transformer 与 LSTM 的训练动态和早期性能表现如何比较?
  • RQ4在相同训练条件下,Transformer 模型能否实现高于 LSTM 模型的 BLEU 和 CIDEr 得分?
  • RQ5所提出的模型与 M2-Transformer 和 X-Linear Attention 等最先进模型在字幕生成性能方面如何比较?

主要发现

  • Transformer 模型达到最高 BLEU-1 得分为 0.45,显著优于 LSTM 模型的最高 BLEU-1 得分 0.30。
  • Transformer 模型表现出更高的验证准确率(48.80%),而 LSTM 模型在早期阶段性能较低。
  • 尽管训练设置相似,Transformer 模型表现出更快的收敛速度,并与真实字幕对齐更好。
  • M2-Transformer 达到 BLEU-1 得分为 81.6,表明其在所评估模型中处于最先进水平。
  • X-Linear Attention 机制通过线性变换降低计算复杂度,提升了效率且未牺牲准确性。
  • CLIP-Diffusion 模型在 Flickr8k+Flickr30k 上达到 BLEU-4 得分为 0.247,表现出强大的零样本迁移能力,但在此项研究中于 MS-COCO 上表现较低。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。