LinearAttention系列解读(一):Transformers Are RNNs
LinearAttention系列解读(二):DeltaNet技术剖析

Lazy loaded imageLinearAttention系列解读(三):线性注意力中的Gating机制

本文从输入依赖性和门控粒度两个维度,梳理了linear attention中的forgetting gate。Data-independent decay提供固定的时间衰减;data-dependent gate则根据当前输入动态管理记忆,并进一步发展出 scalar、one-sided vector、two-sided separable matrix和full matrix等不同参数化。 这些设计本质上都是表达能力与计算效率之间trade-off:更细粒度的gate能提供更灵活的状态控制,但也会带来更多参数、更复杂的数值问题和更高的硬件实现成本。
LinearAttention系列解读(三):线性注意力中的Gating机制
LinearAttention系列解读(四):当 Delta Rule 遇上 Gating (GDN/KDA/GDN-2)