Papers
Topics
Authors
Recent
Search
2000 character limit reached

Sequence Length Independent Norm-Based Generalization Bounds for Transformers

Published 19 Oct 2023 in stat.ML and cs.LG | (2310.13088v1)

Abstract: This paper provides norm-based generalization bounds for the Transformer architecture that do not depend on the input sequence length. We employ a covering number based approach to prove our bounds. We use three novel covering number bounds for the function class of bounded linear transformations to upper bound the Rademacher complexity of the Transformer. Furthermore, we show this generalization bound applies to the common Transformer training technique of masking and then predicting the masked word. We also run a simulated study on a sparse majority data set that empirically validates our theoretical findings.

Authors (2)
Definition Search Book Streamline Icon: https://streamlinehq.com
References (26)
  1. Layer normalization. arXiv preprint arXiv:1607.06450.
  2. Spectrally-normalized margin bounds for neural networks. Advances in neural information processing systems, 30.
  3. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805.
  4. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929.
  5. Dudley, R. M. (1967). The sizes of compact subsets of hilbert space and continuity of gaussian processes. Journal of Functional Analysis, 1(3):290–330.
  6. Inductive biases and variable creation in self-attention mechanisms. In International Conference on Machine Learning, pages 5793–5831. PMLR.
  7. l∞\infty∞ vector contraction for rademacher complexity. arXiv preprint arXiv:1911.06468, 6.
  8. What can a single attention layer learn? a study through the random features lens. arXiv preprint arXiv:2307.11353.
  9. Generalization and representational limits of graph neural networks. In International Conference on Machine Learning, pages 3419–3430. PMLR.
  10. Size-independent sample complexity of neural networks. In Conference On Learning Theory, pages 297–299. PMLR.
  11. On the complexity of linear prediction: Risk bounds, margin bounds, and regularization. Advances in neural information processing systems, 21.
  12. Gpt-4 passes the bar exam. Available at SSRN 4389233.
  13. Fat-shattering dimension of k𝑘kitalic_k-fold maxima. arXiv preprint arXiv:2110.04763.
  14. Probability in Banach Spaces: isoperimetry and processes, volume 23. Springer Science & Business Media.
  15. Generalization bounds for convolutional neural networks. arXiv preprint arXiv:1910.01487.
  16. Comparison of lstm, transformers, and mlp-mixer neural networks for gaze based human intention prediction. Frontiers in Neurorobotics, 17:1157957.
  17. Pisier, G. (1981). Remarques sur un résultat non publié de b. maurey. Séminaire d’Analyse fonctionnelle (dit” Maurey-Schwartz”), pages 1–12.
  18. Understanding Machine Learning: From Theory to Algorithms. Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press.
  19. Truong, L. V. (2022). On rademacher complexity-based generalization bounds for deep learning. arXiv preprint arXiv:2208.04284.
  20. Attention is all you need. Advances in neural information processing systems, 30.
  21. Learning deep transformer models for machine translation. arXiv preprint arXiv:1906.01787.
  22. Statistically meaningful approximation: a case study on approximating turing machines with transformers. Advances in Neural Information Processing Systems, 35:12071–12083.
  23. Multistep short-term wind speed forecasting using transformer. Energy, 261:125231.
  24. Understanding and improving layer normalization. Advances in Neural Information Processing Systems, 32.
  25. Zhang, T. (2002). Covering number bounds of certain regularized linear function classes. Journal of Machine Learning Research, 2(Mar):527–550.
  26. An analysis of attention via the lens of exchangeability and latent variable models. arXiv preprint arXiv:2212.14852.
Citations (7)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.