paper-with-me

홈 › Papers

The Depth-to-Width Interplay in Self-Attention

2020-06-22 · NeurIPS 2020 12 · Yoav Levine, Noam Wies, Or Sharir, Hofit Bata, Amnon Shashua

Self-attention architectures, which are rapidly pushing the frontier in natural language processing, demonstrate a surprising depth-inefficient behavior: previous works indicate that increasing the internal representation (network width) is just as useful as increasing the number of self-attention layers (network depth). We theoretically predict a width-dependent transition between depth-efficiency and depth-inefficiency in self-attention. We conduct systematic empirical ablations on networks of depths 6 to 48 that clearly reveal the theoretically predicted behaviors, and provide explicit quantitative suggestions regarding the optimal depth-to-width allocation for a given self-attention network size. The race towards beyond 1-Trillion parameter language models renders informed guidelines for increasing self-attention depth and width in tandem an essential ingredient. Our guidelines elucidate the depth-to-width trade-off in self-attention networks of sizes up to the scale of GPT3 (which we project to be too deep for its size), and beyond, marking an unprecedented width of 30K as optimal for a 1-Trillion parameter network.

📄 PDF Abstract BibTeX arXiv:2006.12467

Code (1)

uf-hobi-informatics-lab/GatorTron pytorch

Similar Papers 제목 키워드 기반

Which transformer architecture fits my data? A vocabulary bottleneck in self-attention

2021-05-09 · Noam Wies, Yoav Levine, Daniel Jannai, Amnon Shashua

After their successful debut in natural language processing, Transformer architectures are now becoming the de-facto standard in many domains. An obstacle for their deployment over new modalities is the architectural con…

Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformers

2024-05-24 · Lorenzo Tiberi, Francesca Mignacco, Kazuki Irie, Haim Sompolinsky

Despite the remarkable empirical performance of Transformers, their theoretical understanding remains elusive. Here, we consider a deep multi-head self-attention network, that is closely related to Transformers yet analy…

On the Connection Between MPNN and Graph Transformer

2023-01-27 · Chen Cai, Truong Son Hy, Rose Yu, Yusu Wang

Graph Transformer (GT) recently has emerged as a new paradigm of graph learning algorithms, outperforming the previously popular Message Passing Neural Network (MPNN) on multiple benchmarks. Previous work (Kim et al., 20…

Graph ClassificationGraph LearningGraph RegressionNode Classification

Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time

2025-10-01 · Blake Bordelon, Mary I. Letey, Cengiz Pehlevan arxiv

We study in-context learning (ICL) of linear regression in a deep linear self-attention model, characterizing how performance depends on various computational and statistical resources (width, depth, number of training s…

Interplay between depth and width for interpolation in neural ODEs

2024-01-18 · Antonio Álvarez-López, Arselane Hadj Slimane, Enrique Zuazua

Neural ordinary differential equations (neural ODEs) have emerged as a natural tool for supervised learning from a control perspective, yet a complete understanding of their optimal architecture remains elusive. In this …