arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.07288cs.LGcs.CLcs.IRstat.ML
收藏

填充对LSTM和CNN的影响

Effects of padding on LSTMs and CNNs

Manipal Institute of Technology(马尼帕尔理工学院)

Mahidhar Dwarampudi, N V Subba Reddy

摘要:

长短期记忆(LSTM)网络和卷积神经网络(CNN)已经变得非常普遍,并且被用于许多领域,因为它们有效地解决了许多问题,而一般的神经网络是低效的。它们被应用于大多数与图像和序列相关的各种问题。由于LSTM和CNN采用相同长度和维度的输入,因此在测试和训练时,输入图像和序列会被填充到最大长度。这种填充会影响网络的功能,并且在性能和准确性方面会产生很大影响。本文对此进行了研究,并提出了填充输入序列的最佳方法。本文使用了一个简单的情感分析任务。我们在两个网络上使用相同的数据集,并使用各种填充来显示差异。本文还讨论了对数据进行预处理的一些技术,以确保数据的有效分析。

英文摘要:

Long Short-Term Memory (LSTM) Networks and Convolutional Neural Networks (CNN) have become very common and are used in many fields as they were effective in solving many problems where the general neural networks were inefficient. They were applied to various problems mostly related to images and sequences. Since LSTMs and CNNs take inputs of the same length and dimension, input images and sequences are padded to maximum length while testing and training. This padding can affect the way the networks function and can make a great deal when it comes to performance and accuracies. This paper studies this and suggests the best way to pad an input sequence. This paper uses a simple sentiment analysis task for this purpose. We use the same dataset on both the networks with various padding to show the difference. This paper also discusses some preprocessing techniques done on the data to ensure effective analysis of the data.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑