arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.00674cs.CLcs.AI
收藏

隐藏潜在句子表征--RNN中基于动态梯度的激活修正

Recoding latent sentence representations -- Dynamic gradient-based activation modification in RNNs

Institute for Logic, Language and Computation(逻辑、语言与计算研究所);University of Amsterdam(阿姆斯特丹大学)

Dennis Ulmer

摘要:

在递归神经网络(RNN)中,以次优或错误的方式编码信息可能会影响基于序列中后续元素的表示质量,并随后导致错误的预测和更差的模型性能。在人类中,像花园小径句子这样具有挑战性的案例(例如臭名昭著的“马跑过谷仓瀑布”)会导致他们的语言理解误入歧途。然而,它们仍然能够相应地纠正它们的表示,并在遇到新信息时恢复。受此启发,我建议以基于梯度的校正机制的形式对标准RNN进行增强:通过这种方式,我希望使这些模型能够动态地适应句子的内部表示,增加一种方法来纠正偏差。因此,这可能会导致更强大的模型使用更灵活的表示,即使在推理时间。我在语言建模的背景下进行了不同的实验,详细研究了使用这种机制的影响。为此,我研究了基于不同类型的时间相关误差信号的修改以及它们如何影响模型性能。此外,这项工作包含了一个研究模型的信心,在其预测在训练过程中,并具有挑战性的测试样本和其操作的效果。最后,我还研究了这些新模型与标准LSTM基线相比的行为差异,并详细研究了错误情况,以确定未来研究的重点。我表明,虽然所提出的方法具有有前途的理论保证和吸引人的直觉,但由于其实际应用中的挑战和测试模型变体的有效性,它只能在基线上产生微小的改进。

英文摘要:

In Recurrent Neural Networks (RNNs), encoding information in a suboptimal or erroneous way can impact the quality of representations based on later elements in the sequence and subsequently lead to wrong predictions and a worse model performance. In humans, challenging cases like garden path sentences (an instance of this being the infamous "The horse raced past the barn fell") can lead their language understanding astray. However, they are still able to correct their representation accordingly and recover when new information is encountered. Inspired by this, I propose an augmentation to standard RNNs in form of a gradient-based correction mechanism: This way I hope to enable such models to dynamically adapt their inner representation of a sentence, adding a way to correct deviations as soon as they occur. This could therefore lead to more robust models using more flexible representations, even during inference time. I conduct different experiments in the context of language modeling, where the impact of using such a mechanism is examined in detail. To this end, I look at modifications based on different kinds of time-dependent error signals and how they influence the model performance. Furthermore, this work contains a study of the model's confidence in its predictions during training and for challenging test samples and the effect of the manipulation thereof. Lastly, I also study the difference in behavior of these novel models compared to a standard LSTM baseline and investigate error cases in detail to identify points of future research. I show that while the proposed approach comes with promising theoretical guarantees and an appealing intuition, it is only able to produce minor improvements over the baseline due to challenges in its practical application and the efficacy of the tested model variants.

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

↑