Transformers Provably Learn Sparse Token Selection While Fully-Connected Nets Cannot

ML NNGTB Transformer
变压器架构在各种深度学习场景中占据主导地位,因为它具有选择和组合结构信息的异常能力。受到这些能力的启发,Sanford等人提出了稀疏令牌选择任务,在这个任务中,变压器在最坏情况下表现出色,而全连接网络则失败。在此基础上,我们将FCN的下限加强到平均情况,并建立了变压器与FCN之间的算法分离。具体而言,使用梯度下降训练的一层变压器可证明学习稀疏令牌选择任务,并且令人惊讶的是,它表现出强大的超出分布长度的泛化能力。我们提供经验模拟来证明我们的理论发现。
The transformer architecture has prevailed in various deep learning settings due to its exceptional capabilities to select and compose structural information. Motivated by these capabilities, Sanford et al. proposed the sparse token selection task, in which transformers excel while fully-connected networks (FCNs) fail in the worst case. Building upon that, we strengthen the FCN lower bound to an average-case setting and establish an algorithmic separation of transformers over FCNs. Specifically, a one-layer transformer trained with gradient descent provably learns the sparse token selection task and, surprisingly, exhibits strong out-of-distribution length generalization. We provide empirical simulations to justify our theoretical findings.
许愿