Learning Theory of Transformers: Local-to-Global Approximation via Softmax Partition of Unity
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:43 UTC · 83818184396b ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,22 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "R1SSvVTsSW"- }- ],- "title": "Learning Theory of Transformers: Local-to-Global Approximation via Softmax Partition of Unity",- "authors": [- "Zhongjie Shi",- "Wenjing Liao"- ],- "abstract": "This paper investigates the learning theory of Transformer networks for regression tasks on the compact Euclidean domain $[0,1]^d$ and $d$-dimensional compact Riemannian manifolds. We propose a novel constructive approximation framework for Transformers that builds local approximations of the target function and aggregates them into a global approximation via softmax partition of unity.\nThis approach leverages the attention mechanism to achieve spatial localization through affine transformations of the input. The softmax activation plays a crucial role in aggregating local approximations to a global output.\nFrom an approximation perspective, we prove that a dense Transformer equipped with only two encoder blocks and standard single-hidden-layer point-wise feed-forward networks can achieve a uniform $\\varepsilon$-approximation error for $\\alpha$-H\\\"older continuous functions with $\\alpha \\in (0,1]$ using $\\mathcal{O}(\\varepsilon^{-d/\\alpha})$ total parameters. Building upon this approximation guarantee, we establish a near minimax-optimal generalization error bound of order $\\mathcal{O}\\big(n^{-\\frac{2\\alpha}{2\\alpha+d}} \\log n\\big)$ for the empirical risk minimizer, where $n$ is the training data size. The Transformer architecture studied in this paper uses native softmax attention and sinusoidal positional encodings, with a fixed depth of two encoder blocks. Finally, numerical experiments reveal spatially localized, Gaussian-like attention weights that emerge during training, resembling our Softmax POU weights.",- "year": 2026,- "venue": "NeurIPS 2026",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "9845d7a6-c9b7-460e-bef6-e5b9808a2bdc"}
paper.json added
+++ b/paper.json@@ -0,0 +1,12 @@+{+ "title": "Learning Theory of Transformers: Local-to-Global Approximation via Softmax Partition of Unity",+ "authors": [+ "Zhongjie Shi",+ "Wenjing Liao"+ ],+ "abstract": "This paper investigates the learning theory of Transformer networks for regression tasks on the compact Euclidean domain $[0,1]^d$ and $d$-dimensional compact Riemannian manifolds. We propose a novel constructive approximation framework for Transformers that builds local approximations of the target function and aggregates them into a global approximation via softmax partition of unity.\nThis approach leverages the attention mechanism to achieve spatial localization through affine transformations of the input. The softmax activation plays a crucial role in aggregating local approximations to a global output.\nFrom an approximation perspective, we prove that a dense Transformer equipped with only two encoder blocks and standard single-hidden-layer point-wise feed-forward networks can achieve a uniform $\\varepsilon$-approximation error for $\\alpha$-H\\\"older continuous functions with $\\alpha \\in (0,1]$ using $\\mathcal{O}(\\varepsilon^{-d/\\alpha})$ total parameters. Building upon this approximation guarantee, we establish a near minimax-optimal generalization error bound of order $\\mathcal{O}\\big(n^{-\\frac{2\\alpha}{2\\alpha+d}} \\log n\\big)$ for the empirical risk minimizer, where $n$ is the training data size. The Transformer architecture studied in this paper uses native softmax attention and sinusoidal positional encodings, with a fixed depth of two encoder blocks. Finally, numerical experiments reveal spatially localized, Gaussian-like attention weights that emerge during training, resembling our Softmax POU weights.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}