Relative Positional Encoding for Transformers with Linear Complexity
원문 초록
Recent advances in Transformer models allow for unprecedented sequence lengths, due to linear space and time complexity. In the meantime, relative positional encoding (RPE) was proposed as beneficial for classical Transformers and consists in exploiting lags instead of absolute positions for inference. Still, RPE is not available for the recent linear-variants of the Transformer, because it requires the explicit computation of the attention matrix, which is precisely what is avoided by such methods. In this paper, we bridge this gap and present Stochastic Positional Encoding as a way to generate PE that can be used as a replacement to the classical additive (sinusoidal) PE and provably behaves like RPE. The main theoretical contribution is to make a connection between positional encoding and cross-covariance structures of correlated Gaussian processes. We illustrate the performance of our approach on the Long-Range Arena benchmark and on music generation.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
VCI-LSTM: Vector Choquet Integral-based Long Short-Term Memory
Recipe recognition with large multimodal food dataset
Statistical Machine Learning for Astronomy -- A Textbook
Making Language Model a Hierarchical Classifier and Generator
Hashed Watermark as a Filter: Defeating Forging and Overwriting Attacks in Weight-based Neural Network Watermarking
WildFX: A DAW-Powered Pipeline for In-the-Wild Audio FX Graph Modeling
토론
이 논문과 연결된 포럼 글이 아직 없습니다.