基于Skim-RNN的神经速度读取
Neural Speed Reading via Skim-RNN
摘要:
受快速阅读原理的启发,我们引入了Skim-RNN,这是一种递归神经网络(RNN),它动态地决定只更新相对不重要的输入令牌的一小部分隐藏状态。Skim-RNN在计算上优于总是更新整个隐藏状态的RNN。Skim-RNN使用与标准RNN相同的输入和输出接口,可以很容易地代替现有模型中的RNN。在我们的实验中,我们表明,与标准RNN相比,Skim-RNN可以在五种不同的自然语言任务中显着降低计算成本,而不会损失准确性。此外,我们证明了Skim-RNN的准确性和速度之间的权衡可以在推理时间内以稳定的方式动态控制。我们的分析还表明,与GPU上的标准RNN相比,在单个CPU上运行的Skim-RNN提供了更低的延迟。
英文摘要:
Inspired by the principles of speed reading, we introduce Skim-RNN, a recurrent neural network (RNN) that dynamically decides to update only a small fraction of the hidden state for relatively unimportant input tokens. Skim-RNN gives computational advantage over an RNN that always updates the entire hidden state. Skim-RNN uses the same input and output interfaces as a standard RNN and can be easily used instead of RNNs in existing models. In our experiments, we show that Skim-RNN can achieve significantly reduced computational cost without losing accuracy compared to standard RNNs across five different natural language tasks. In addition, we demonstrate that the trade-off between accuracy and speed of Skim-RNN can be dynamically controlled during inference time in a stable manner. Our analysis also shows that Skim-RNN running on a single CPU offers lower latency compared to standard RNNs on GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。