稀疏注意回溯:基于提醒的时间CreditAssignment
Sparse Attentive Backtracking: Temporal CreditAssignment Through Reminding
摘要:
在扩展的时间序列中学习长期依赖关系需要对过去很久以前的事件进行信用分配。训练递归神经网络的最常见方法是时间反向传播(BPTT),它要求信用信息通过前向计算的每一个单步的步骤向后传播,可能需要数千或数百万个时间步。当与长序列一起使用时,这在计算上变得昂贵甚至不可行。重要的是,生物大脑不太可能在很长的内部状态序列(考虑几天,几个月或几年)上执行如此详细的反向重放。然而,人类经常被提醒过去的记忆或与当前精神状态相关的精神状态。我们考虑的假设,这种记忆关联的过去和现在可以用于信用分配通过任意长的序列,传播的信用分配给当前状态相关联的过去的状态。基于这一原则,我们研究了一种新的算法,它只通过这些时间跳过连接,实现了一个学习注意力机制,将当前状态与相关的过去状态。我们在实验中证明,我们的方法在涉及特别长期依赖关系的任务中匹配或优于常规BPTT和截短的BPTT,但不需要在整个状态历史中进行生物学上难以置信的向后回放。此外,我们证明了所提出的方法转移到更长的序列显着优于用BPTT训练的LSTM和用完全自我注意训练的LSTM。
英文摘要:
Learning long-term dependencies in extended temporal sequences requires credit assignment to events far back in the past. The most common method for training recurrent neural networks, back-propagation through time (BPTT), requires credit information to be propagated backwards through every single step of the forward computation, potentially over thousands or millions of time steps. This becomes computationally expensive or even infeasible when used with long sequences. Importantly, biological brains are unlikely to perform such detailed reverse replay over very long sequences of internal states (consider days, months, or years.) However, humans are often reminded of past memories or mental states which are associated with the current mental state. We consider the hypothesis that such memory associations between past and present could be used for credit assignment through arbitrarily long sequences, propagating the credit assigned to the current state to the associated past state. Based on this principle, we study a novel algorithm which only back-propagates through a few of these temporal skip connections, realized by a learned attention mechanism that associates current states with relevant past states. We demonstrate in experiments that our method matches or outperforms regular BPTT and truncated BPTT in tasks involving particularly long-term dependencies, but without requiring the biologically implausible backward replay through the whole history of states. Additionally, we demonstrate that the proposed method transfers to longer sequences significantly better than LSTMs trained with BPTT and LSTMs trained with full self-attention.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。