betaFeedback

WorksComputer Science

Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning

Abstract

The success of transformers is attributed to several factors, including their capacity to express formal languages over variable-length inputs, and ability of the attention mechanism to focus on relevant input features. However, there is limited understanding of the training dynamics of shallow transformers, specifically how to decouple the learning of the attention and the output (feedforward) layer. A natural extension of the theory of one-step gradient feature learning in feedforward networks suggests that one could first learn the attention weights with a single gradient step, and then train the output layer. We show that this fails for a shallow transformer trained to recognize a star-free language from unbounded-length input. We prove that the transformer can be trained to recognize the language with a three-phase gradient descent: the output layer is updated first, followed by an attention update, and the output layer is fine-tuned in the third phase. In contrast, the language cannot be learned by training only the attention or output layer, or by a single attention-layer update followed by finetuning the output layer. We empirically show that ``attention learning lagging output layer learning" is beneficial in other language recognition, regression, and in-context learning tasks as well.

Introduction

How do neural architectures learn features and attentions? What is the impact of the learning dynamics on the generalization abilities of the trained model? These are major open questions in deep learning theory. Significant progress has been made to address these questions in feedforward neural networks, both from a broad optimization perspective—for instance, implicit biases of gradient descent [19]—as well as from the viewpoint of learning specific tasks, like learning parity, sparse polynomial or gaussian mixture classification [9, 1, 11]. A notable theoretical insight has emerged in this context, sometimes referred to as one-step gradient feature learning [3, 22]—for learning tasks using a shallow feedforward network, it often suffices to perform one step of gradient descent on the input layer to learn the features and then train the output layer till convergence. Decoupling the training of different layers helps to study simplicity bias, lottery tickets, etc., in feedforward networks [1, 22].

Much less is understood about how attention learning happens in transformers. There are studies on implicit biases and training dynamics (see Relation to prior work), but it is not clear what the ideal way is to theoretically decouple the training of attention and output layers in a shallow transformer, comprising a softmax attention layer followed by a feedforward output layer. For example, a natural extension of the gradient feature learning paradigm in a shallow transformer is to perform a single gradient descent update of the attention weights, followed by training of the output layer. It is not clear if a “one-step attention learning” paradigm is suitable for training shallow transformers or a different multi-phase decoupled training is needed, for example, in context of the prototypical task of learning formal languages [24].

Contributions. We study how attention learning happens in a shallow transformer trained to recognize formal language, where the training consists of words of varying length (potentially unbounded). Despite active research on the theory of attention learning, little is known about the training dynamics of transformers when trained on variable-length inputs. We aim to address if a one-step attention learning paradigm—akin to gradient feature learning in feedforward networks [22]—is an appropriate simplification of how shallow transformers learn to recognize a formal language. We have the following key contributions.

Multi-phase gradient descent dynamics in learning the occurrence language. We consider a minimalist example of learning to recognize the occurrence language As=Σ∗sΣ∗A_s = \Sigma^*s\Sigma^* on the finite alphabet Σ={1,…,d}\Sigma= \{1,\ldots,d\}, i.e., the language of all words containing ss, where s∈Σs \in\Sigma is not known apriori (Figure 1a). The occurrence language can be expressed by a shallow transformer with dd-variate encoding of each bit, a single attention head, and a linear output layer (Proposition 1). Empirically, for this task, gradient descent (GD) first learns the output layer before the attention weights (Figure 1b). Theorem 2 formally shows that it is possible to learn the optimal transformer using multi-phase GD: (Phase 1) one-step GD update of output layer; (Phase 2) one-step GD update of attention weights; (Phase 3) training output layer till convergence. This result indicates that a one-step attention learning works in transformers, but when the attention learning happens after output layer is partly trained (see Figure 1d-Figure 1e).

Figure 1. (a) Automaton of the occurrence language As=Σ∗sΣ∗A_s = \Sigma^*s\Sigma^* with alphabet Σ={1,…,d}\Sigma= \{1,\ldots,d\} and unknown s∈Σs \in\Sigma. The language can be expressed by a transformer with one attention head and linear output layer (1), which encodes word w=(w1,…,wm)w = (w_1,\ldots,w_m) as (ew1,…,ewm)(e_{w_1},\ldots,e_{w_m}), where ei∈Rde_i \in\mathbb{R}^d is the ii-th standard basis vector. The optimal shallow transformer has weights of the output layer β=2es∈Rd\beta= 2e_s \in\mathbb{R}^d, and attention score for symbol i∈Σi \in\Sigma is γi=1\gamma_i = 1 if i=si=s, and 0 otherwise. (b) A shallow transformer is trained to recognize AsA_s using gradient descent jointly on both layers. The output gap (βs−max⁡i≠sβi)/2(\beta_s - \max_{i\ne s}\beta_i)/2 and attention gap (γs−max⁡i≠sγi)(\gamma_s - \max_{i\ne s}\gamma_i), plotted across training epochs, show that output gap increases before attention gap appears, indicating that attention learning lags output layer learning. (c) Several training plans are considered, which decouple gradient descent on attention layer (A) and output layer (O), sometimes using a single gradient step (1x). “One-step attention learning”, where one attention update is followed by training output layer till loss converges, A(1x)→\toO, does not correctly learn the language. We later prove that a 3-phase training, O(1x)→\toA(1x)→\toO$, correctly learns to recognize AsA_s. (d)–(e) show how our 3-phase plan reaches the ideal gaps in both layers, but training attention/output only, or attention before output do not.

Impossibility results for simpler learning approaches. It is natural to question if the single-head transformer can also be trained using a simpler gradient-based rule. Propositions 2 and 3 show that, if either only the output or the attention layer is trained with the other held fixed, then a shallow transformer cannot learn uniformly over the set of dd languages {As:s∈Σ}\{A_s : s \in\Sigma\}. The same also holds for transformers with O(d)O(\sqrt{d}) heads (Proposition 4), but arbitrary fixed attention, showing that lazy training fails for this task, unless with a large number of heads. Furthermore, Theorem 1 shows that a two-phase approach of one step of GD update of attention, followed by training the output, cannot learn the language. Thus a na"ive extension of gradient feature learning principle does not work in this case.

Finite sample analysis and empirical study on other languages. While the aforementioned results consider GD on population loss, Corollary 1 extends the learnability result to finite sample setting, showing that the three-phase training also works with O(dln⁡d)O(d\ln d) samples for any fixed tolerance. We also numerically study other regression, language recognition, or in-context learning tasks with shallow transformers, and show that in most cases, the three-phase approach (with one-step GD update of output layer before one-step attention learning) outperforms other decoupled training of attention and output layers. Hence, we hypothesize that this approach is potentially a reasonable theoretical simplification of transformer training dynamics.

Relation to prior work

The expressivity and training dynamics of transformers is an active area of research in deep learning theory. While there is a rich literature on the expressivity of transformers in terms of formal languages, circuit complexity, or space/time complexity classes (see surveys in Strobl et al. [24]; Lin and Barceló [16]; Barceló et al. [5]), the current research on training dynamics of transformers has predominantly focused on finite-dimensional learning problems. There are results on the lazy training regime of shallow transformers (Hron et al. [14]; Arda et al. [2]) or implicit biases towards maximum margin (Tarzanagh et al. [25]), which hold in general data settings. However, fine-grained characterization of the training dynamics requires studying specific data distributions or learning tasks, which we also assume.

Wen et al. [29]; Han and Ghoshdastidar [13] study the training dynamics of transformers when trained on sparse parity function—a prototypical task

for feedforward networks. Marion et al. [20]; Dohmatob [10] study the joint dynamics of attention and output layer of a shallow transformer for single-location regression, while Wang et al. [28] derive the joint training dynamics for sparse token averaging. The settings in these works correspond to finite/fixed-dimensional inputs, thereby ignoring the ability of transformers to handle varying input length. Furthermore, the attention-only or joint training dynamics do not reveal the importance of learning different layers. Bietti et al. [6]; Chen et al. [8] study the dynamics of training induction heads in transformers for next token prediction on bigrams and in-context nn-gram Markov chains. Bietti et al. [6] empirically observe, under joint training, the induction head is learned more slowly than the global bigram model, similar to Figure 1b, and show that the induction head can be learned by sequential steps: first on output matrix, then on two attention key matrices. Chen et al. [8] also consider a multi-phase training of different layers, involving a parameter-inefficient polynomial regression. Both works, however, restrict the problems to fixed context windows, effectively to fixed-length inputs. Moreover, these works do not explore if attention or output needs to be learned first.

Several empirical works study how transformers learn formal languages (Liu et al., 2023a,b; Butoi et al., 2025), but theoretical characterization of the training dynamics of transformers in learning formal languages is rather recent. Yang et al. [30] study the gradient flow dynamics of learning word co-occurrence for fixed-length input, showing that the first phase mainly trains the output layer, before the joint training of output and attention happens. Huang et al. [15] study the joint training dynamics of even-pairs and parity-check languages (the latter with chain of thought), restricting to bounded-length words, and observe a similar slow learning of attention in early phase. These works implicitly suggest that a phenomenon equivalent to one-step gradient feature learning in feedforward networks may not hold for transformers, where attention learning typically happens late. Our work takes a step towards resolving this matter by proving that one-step attention learning mechanism is indeed possible, but needs to follow a step of output layer update, which aligns with the intuition from known joint training dynamics. Such a simplifying characterization of the training dynamics is a key contribution of our work, along with the impossibility of learning via simpler attention-only or attention-first training strategies. Prior works also assume fixed- or bounded-length inputs, which our analysis does not require.

Problem Formulation

This section describes the occurrence language recognition task, the training data distribution, the transformer model, and its ability to express the language.

Occurrence language and Training data. Let Σ={1,2,…,d}\Sigma= \{1,2,\ldots,d\} be a finite alphabet of size d≥2d \ge2. For a symbol s∈Σs \in\Sigma, the occurrence language, defined as As:=Σ∗sΣ∗A_s := \Sigma^*s\Sigma^*, is the set of strings that contain ss. We encode membership by the label function χs(w):=2⋅1{s occurs in w}−1∈{+1}\chi_s(w) := 2\cdot1\{s\text{ occurs in }w\} - 1 \in\{+1\}. Consider any non-empty word w=(w1,…,wm)∈Σ∗w = (w_1,\ldots,w_m) \in\Sigma^* drawn from a distribution, say ρ\rho, such that the length is m∼Geometric⁡(p)m \sim\operatorname{Geometric}(p), i.e., P(m=k)=p(1−p)k−1\mathbb{P}(m = k) = p(1-p)^{k-1} for k≥1k \ge1, and given mm, the symbols w1,…,wm∼i.i.d.Uniform⁡(Σ)w_1,\ldots,w_m \overset{\mathrm{i.i.d.}}{\sim} \operatorname{Uniform}(\Sigma). Equivalently, after the first symbol, the sequence terminates at each step independently with probability pp. Setting p=1d−1p = \frac{1}{d-1} exactly balances the proportion of positive/negative samples since, for any s∈Σs \in\Sigma, it holds that Pw∼ρ(χs(w)=−1)=∑m=1∞P(∣w∣=m)⋅(1d)m=12\mathbb{P}_{w\sim\rho}(\chi_s(w) = -1) = \sum_{m=1}^{\infty}\mathbb{P}(|w|=m)\cdot\left(\frac{1}{d}\right)^m = \frac{1}{2}. We use DsD_s to denote the joint distribution over (w,y)(w,y) where w∼ρw\sim\rho and y=χs(w)∈{+1}y=\chi_s(w)\in\{+1\}. Throughout this paper, we fix a target symbol s∈Σs\in\Sigma, unknown to the learner, and write D≡DsD \equiv D_s, χ≡χs\chi\equiv\chi_s when ss is unambiguous from context. The transformer, described next, is trained by gradient descent on the population loss over DD.

Shallow transformer architecture. To recognize the language AsA_s, we consider a transformer with a single attention layer with one head, and a linear output layer. Every i∈Σi\in\Sigma is embedded as ii-th standard basis vector ei∈Rde_i\in\mathbb{R}^d, and a word w=(w1,…,wm)∈Σ∗w=(w_1,\ldots,w_m)\in\Sigma^* encodes into (x1,…,xm)(x_1,\ldots,x_m), where xt=ewtx_t=e_{w_t}. Positional encoding is not used since membership χs(w)\chi_s(w) is permutation-invariant. We prepend a fixed classification token xCLSx_{\mathrm{CLS}}, which attends to the mm input positions but not to itself. The prediction is computed from the attention output of this token alone.

Since the model prediction depends only on the output of the classification token, the query and key matrices enter the model only through the vector α:=WK⊤WQxCLS∈Rd\alpha:= W_K^\top W_Q x_{\mathrm{CLS}}\in\mathbb{R}^d, whose ii-th entry is the attention logit that the CLS token assigns to symbol ii. Likewise, the value matrix and the linear output enter only through their product β∈Rd\beta\in\mathbb{R}^d. We treat (α,β)(\alpha,\beta) as the trainable parameters, and call them the attention and output weights, respectively. The model computes

fα,β(w)=β⊤(∑t=1mexp⁡(α⊤xt)∑r=1mexp⁡(α⊤xr)⋅xt)−1=∑i=1dβi⋅Ci(w)exp⁡(αi)∑j=1dCj(w)exp⁡(αj)−1(1)f_{\alpha,\beta}(w) = \beta^\top\left(\sum_{t=1}^{m}\frac{\exp(\alpha^\top x_t)}{\sum_{r=1}^{m}\exp(\alpha^\top x_r)}\cdot x_t\right)-1 = \sum_{i=1}^{d}\beta_i\cdot\frac{C_i(w)\exp(\alpha_i)}{\sum_{j=1}^{d}C_j(w)\exp(\alpha_j)}-1 \tag*{(1)}

where the second line groups the attention scores from positions that carry the same symbol by using Ci(w):=∑j=1m1{wj=i}C_i(w) := \sum_{j=1}^{m} 1\{w_j = i\} to denote the number of occurrences of symbol ii in ww; a fixed bias −1-1 is used. We use γi(w):=Ci(w)exp⁡(αi)∑j=1dCj(w)exp⁡(αj)\gamma_i(w) := \frac{C_i(w)\exp(\alpha_i)}{\sum_{j=1}^{d} C_j(w)\exp(\alpha_j)} to denote the total attention scores placed on symbol i∈[d]i \in[d].

Loss and expressivity. The transformer is trained to minimize the population (squared) risk over DD,

L(α,β)=E(w,y)∼D[12(fα,β(w)−y)2].\mathcal{L}(\alpha,\beta) = \mathbb{E}_{(w,y)\sim D}\left[\frac{1}{2}\left(f_{\alpha,\beta}(w)-y\right)^2\right].

In Corollary 1, some results are extended to a finite sample case, where the empirical risk is minimized.

The following expressivity result, proved in Appendix A.2, shows that there is a choice of α,β\alpha,\beta for which the loss can be made arbitrarily small.

Proposition 1 (Shallow transformer expresses occurrence language). For any specified ϵ∈(0,1)\epsilon\in(0,1), a shallow transformer with β=2es\beta= 2e_s and α=ln⁡(4d/ϵ2)es\alpha= \ln(4d/\epsilon^2)e_s achieves L(α,β)≤ϵ\mathcal{L}(\alpha,\beta) \le\epsilon. The result also holds for any α\alpha such that αs−max⁡j≠sαj≥ln⁡(4d/ϵ2)\alpha_s - \max_{j\ne s}\alpha_j \ge\ln(4d/\epsilon^2).

References

  1. [1]Emmanuel Abbe, Enric Boix Ads̀era, and Theodor Misiakiewicz. Sgd learning on neural networks: leap complexity and saddle-to-saddle dynamics. In Gergely Neu and Lorenzo Rosasco, editors, The Thirty Sixth Annual Conference on Learning Theory, COLT 2023, 12-15 July 2023, Bangalore, India, volume 195 of Proceedings of Machine Learning Research, pages 2552–2623. PMLR, 2023.arxiv.org/abs/2302.11055
  2. [2]Enes Arda, Semih Cayci, and Atilla Eryilmaz. Finite-time analysis of gradient descent for shallow transformers. CoRR, abs/2601.16514, 2026. doi: 10.48550/ARXIV.2601.16514. URL https://doi.org/10.48550/arXiv.2601.16514.
  3. [3]Jimmy Ba, Murat A. Erdogdu, Taiji Suzuki, Zichao Wang, Denny Wu, and Greg Yang. High-dimensional asymptotics of feature learning: How one gradient step improves the representation. In Sanmi Koyejo, S. Mohamed, A. Agarwal, Danielle Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022.arxiv.org/abs/2205.01445
  4. [4]Pablo Barceló, Alexander Kozachinskiy, Anthony Widjaja Lin, and Vladimir V. Podolskii. Logical languages accepted by transformer encoders with hard attention. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024.arxiv.org/abs/2310.03817
  5. [5]Pablo Barceló, David Chiang, George Cybenko, Lena Strobl, and Andy Yang. Theory of neural language models (dagstuhl seminar 25282). Dagstuhl Reports, 15(7):22–52, 2025.DOI
  6. [6]Alberto Bietti, Vivien Cabannes, Diane Bouchacourt, Hervé Jégou, and Léon Bottou. Birth of a transformer: A memory viewpoint. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.arxiv.org/abs/2306.00802
  7. [8]Siyu Chen, Heejune Sheen, Tianhao Wang, and Zhuoran Yang. Unveiling induction heads: Provable training dynamics and feature learning in transformers. In Amir Globersons, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024.arxiv.org/abs/2409.10559
  8. [9]Amit Daniely and Eran Malach. Learning parities with neural networks. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.arxiv.org/abs/2002.07400
  9. [10]Elvis Dohmatob. Understanding softmax attention layers: Exact mean-field analysis on a toy problem. In Danielle Belgrave, Cheng Zhang, Laura N. Montoya, Hsuan-Tien Lin, Razvan Pascanu, Piotr Koniusz, Marzyeh Ghassemi, Nancy Chen, Iván Vladimir Meza Ruíz, and Arturo Loaiza-Bonilla, editors, Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025.DOI
  10. [11]Spencer Frei, Niladri S. Chatterji, and Peter L. Bartlett. Random feature amplification: Feature learning and generalization in neural networks. J. Mach. Learn. Res., 24:303:1–303:49, 2023.arxiv.org/abs/2202.07626
  11. [12]Pulkit Gopalani and Wei Hu. What happens during the loss plateau? understanding abrupt learning in transformers. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025, 2025.arxiv.org/abs/2506.13688
  12. [13]Yaomengxi Han and Debarghya Ghoshdastidar. Transformers probably learn sparse xor with polylogarithmic parameters, 2026. URL https://arxiv.org/abs/2502.07553.
  13. [14]Jiri Hron, Yasaman Bahri, Jascha Sohl-Dickstein, and Roman Novak. Infinite attention: NNGP and NTK for deep attention networks. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 4376–4386. PMLR, 2020.arxiv.org/abs/2006.10540
  14. [15]Ruiquan Huang, Yingbin Liang, and Jing Yang. How transformers learn regular language recognition: A theoretical study on training dynamics and implicit bias. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, volume 267 of Proceedings of Machine Learning Research. PMLR / OpenReview.net, 2025.arxiv.org/abs/2505.00926
  15. [16]Anthony W. Lin and Pablo Barceló. The role of logic and automata in understanding transformers. In Pierre Ganty and Alessio Mansutti, editors, Reachability Problems - 19th International Conference, RP 2025, Madrid, Spain, October 1-3, 2025, Proceedings, volume 16230 of Lecture Notes in Computer Science, pages 17–30. Springer, 2025.arxiv.org/abs/2509.24024
  16. [19]Kaifeng Lyu and Jian Li. Gradient descent maximizes the margin of homogeneous neural networks. In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net, 2020.arxiv.org/abs/1906.05890
  17. [20]Pierre Marion, Raphaël Berthier, Gérard Biau, and Claire Boyer. Attention layers provably solve single-location regression. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025. URL https://openreview.net/forum?id=DVIpP7Jd7P.arxiv.org/abs/2410.01537
  18. [21]Eshaan Nichani, Alex Damian, and Jason D. Lee. Provable guarantees for nonlinear feature learning in three-layer neural networks. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.arxiv.org/abs/2305.06986
  19. [22]Zhenmei Shi, Junyi Wei, and Yingyu Liang. Provable guarantees for neural networks via gradient feature learning. In Alice Oh, Tristan Naumann, Amir Globerson, Kate Saenko, Moritz Hardt, and Sergey Levine, editors, Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.arxiv.org/abs/2310.12408
  20. [23]Aaditya K. Singh, Ted Moskovitz, Felix Hill, Stephanie C. Y. Chan, and Andrew M. Saxe. What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formation. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 45637–45662. PMLR / OpenReview.net, 2024.arxiv.org/abs/2404.07129
  21. [24]Lena Strobl, William Merrill, Gail Weiss, David Chiang, and Dana Angluin. What formal languages can transformers express? A survey. Trans. Assoc. Comput. Linguistics, 12:543–561, 2024. doi: 10.1162/TACL_A_00663.DOI
  22. [25]Davoud Ataee Tarzanagh, Yingcong Li, Christos Thrampoulidis, and Samet Oymak. Transformers as support vector machines. In NeurIPS 2023 Workshop on Mathematics of Modern Machine Learning, 2023.
  23. [26]Yuandong Tian, Yiping Wang, Beidi Chen, and Simon S. Du. Scan and snap: Understanding training dynamics and token composition in 1-layer transformer. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023.arxiv.org/abs/2305.16380
  24. [27]Joel A. Tropp. An introduction to matrix concentration inequalities. CoRR, abs/1501.01571, 2015. doi: 10.48550/ARXIV.1501.01571. URL https://doi.org/10.48550/arXiv.1501.01571.
  25. [28]Zixuan Wang, Stanley Wei, Daniel Hsu, and Jason D. Lee. Transformers probably learn sparse token selection while fully-connected nets cannot. In Ruslan Salakhutdinov, Zico Kolter, Katherine A. Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp, editors, Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pages 51854–51912. PMLR / OpenReview.net, 2024.arxiv.org/abs/2406.06893
  26. [29]Kaiyue Wen, Huaqing Zhang, Hongzhou Lin, and Jingzhao Zhang. From sparse dependence to sparse attention: Unveiling how chain-of-thought enhances transformer sample efficiency. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025. OpenReview.net, 2025. URL https://openreview.net/forum?id=AmEgWDhmTr.arxiv.org/abs/2410.05459
  27. [30]Hongru Yang, Bhavya Kailkhura, Zhangyang Wang, and Yingbin Liang. Training dynamics of transformers to recognize word co-occurrence via gradient flow analysis. In Amir Globerson, Lester Mackey, Danielle Belgrave, Angela Fan, Ulrich Paquet, Jakub M. Tomczak, and Cheng Zhang, editors, Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, 2024.arxiv.org/abs/2410.09605

Paper details

vlnc:W_gnu4z5un
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents