acceptodds
Published as a conference paper at NeurIPS 2026

Learning Theory of Transformers: Local-to-Global Approximation via Softmax Partition of Unity

Zhongjie Shi, Wenjing Liao

Abstract

This paper investigates the learning theory of Transformer networks for regression tasks on the compact Euclidean domain and -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. This 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. From 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 -approximation error for -H\"older continuous functions with using total parameters. Building upon this approximation guarantee, we establish a near minimax-optimal generalization error bound of order for the empirical risk minimizer, where is the training data size. The Transformer architecture studied in this paper is dense, shallow and wide, and employs softmax activation and sinusoidal positional encodings, closely reflecting practical implementations.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_61LDOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
3
Significance
4
Read review
Summary

The paper proves new results for approximating Hölder-smooth functions with transformer architectures. The key tool is a partition-of-unity representation via the softmax operator, which is native to the transformer architecture. Additional results for manifold support and a generalization analysis for statistical estimation are provided as well.

Strengths and weaknesses

I don't have much to criticize about this paper, only a few minor niggles (see Questions below). Most aspects are strong:

  • The question of which types of functions realistic transformer architectures can represent efficiently is important and timely.
  • The main mathematical results are sharp (matching minimax bounds up to log factors), efficient (only two layers required), and - opposed to some prior results - use transformer architectures, close to those used in practice (sinusoidal encoding, softmax).
  • The theoretical ideas and proofs are presented well. I read through a large part of the arguments and didn spot any errors.
  • The partition-of-unity approach is neat and likely to be reused in future works on the topic.
Questions
  • Section 3.2: The risk functional E(f)\mathcal E(f) is defined, buzt never used. On the other hand, the ∥⋅∥ρ\| \cdot \|_\rho-norm is never defined. I assume it is the natural L2(ρX)L_2(\rho_X)-norm?
  • Section 3.2: It may be worth mentioning that πB(t)\pi_{B}(t) can be implemented by a simple ReLU-layer.
  • Section 5: There is recent work on ReLU-approximations with manifold support that does not require depth of order Ω(log⁡(1/ϵ))\Omega(\log (1/\epsilon)): https://arxiv.org/abs/2602.03539
Limitations

yes

Paper formatting concerns

None.

Final justification

The submitted paper was already in very good shape, and the authors addressed all my concerns and those of the other reviewers in the rebuttal. This is a clear accept.

Reviewer_x45kOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes a Softmax POU scheme to approximate Hölder-smooth continuous functions on compact Euclidean domains and Riemannian manifolds, proving 'near minimax-optimal' generalization rates using shallow (L=2), wide, dense Transformers. The algebraic observation as to why softmax attention can implement spatial localization without explicit grid construction is interesting.

Strengths and weaknesses

Strengths

  • The paper is well-written with ample discussion on related works. The proofs are rigorous and elaborately stated.
  • As stated in Table 1, the use of standard sinusoidal positional encodings and native softmax attention in a 2-block Transformer is a notable improvement over prior theoretical analyses, which routinely require hardmax attention, non-standard positional encodings, or O(log⁡1/ε)O(\log{1/\varepsilon})-depth architectures.

Weaknesses

  • The headline claim (a 2-block Transformer) obscures a critical architectural parameter: the sequence length PP, which scales as O(ε−d/α)O(\varepsilon^{−d/\alpha}). As such, the number of heads itself scales similarly (the number of attention heads in the first block is H1=P+2H_1 = P + 2). This, in turn, drives the total parameter count to be exponential in dd. In my opinion, this cannot be called a shallow architecture in any operationally meaningful sense. Depth has been traded for width/sequence-length in a way that entirely circumvents the practical constraint that real Transformers have fixed (small numbers of heads). The paper should be more careful in claiming this as a validation of "practical" architectures, particularly given the language in the abstract, such as "closely reflecting practical implementations." In contrast, the depth dependence is more explicit in [1], and the architectural constraints are stated more honestly, whereas [2] uses the Kolmogorov-Arnold structure to avoid direct exponential width scaling in certain cases.

  • The claimed "near minimax-optimal" rate (the minimax-optimal rate for α\alpha-Hölder functions in dd dimensions under squared L2L^2 loss is O(n−2α/(2α+d))O(n^{−2\alpha/(2\alpha+d)})) incurs an extra log⁡n\log{n} factor. For context, classical kernel regression, local polynomial estimators, and standard deep ReLU network estimators achieve the exact minimax rate for this function class. As it seems, the log⁡n\log{n} factor arises from the covering number bound in Lemma 9 (which has a 26th-power dependence on MmaxM_{max}, itself scaling as ε−2d/αlog⁡(1/ε)\varepsilon^{−2d/\alpha} \log(1/\varepsilon). This produces a covering number bound with extremely large constants. Subsequently, the compounding of polynomial factors in the Lipschitz constant (Lemma 9 yields Lparam=O(P4D22Mmax25)L_{param} = O(P^4 D^{22} M^{25}_{max})) results in extremely loose intermediate bounds (compared to classical nonparametric rates). Perhaps a comparison with those achievable by competing methods would be beneficial.

  • The paper absorbs a factor of ε−56d/αlog⁡(1/ε)26\varepsilon^{−56d/\alpha} \log(1/\varepsilon)^{26} inside the logarithm of the covering number into the constant CνC_{\nu} (in the proof of Theorem 2), which is combinatorially enormous and grows rapidly with dimension. The "constant" C4C_4 in the final bound is therefore not actually dimension-free. A rigorous comparison with existing results should track these constants explicitly.

[1] Shokichi Takakura and Taiji Suzuki. Approximation and estimation ability of transformers for sequence-to-sequence functions with infinite-dimensional input. In International Conference on Machine Learning, pages 33416–33447. PMLR, 2023.

[2] Yuling Jiao, Yanming Lai, Yang Wang, and Bokai Yan. Transformers can overcome the curse of dimensionality: A theoretical study from an approximation perspective. Journal of Machine Learning Research, 27(50):1–34, 2026.

Questions
  • Given the amplified sequence length (though in the absence of a lower bound), does the theory find itself positioned to allude to token explosion?

  • To the best of my understanding, the core technical novelty is not the approximation scheme itself but rather the observation that its algebraic form maps exactly onto the dot-product attention mechanism. While this structural alignment is worth formalizing, the approximation error bound in Lemma 1 (establishing that Shepard-type interpolation achieves ε\varepsilon-error for Hölder-smooth functions) is not new. The paper should more carefully delineate what is new in the approximation theory versus what is a known result being reused in the case of Transformers.

  • The term IIII in the proof of Lemma 3 is controlled by exponential decay in ambient distance. Does this directly guarantee that the function gg (which is Hölder in the geodesic metric) has controlled variation at pairs (x,ci)(x, c_i) that are close in ambient distance but far in geodesic distance (which can happen on highly curved manifolds with reach τ\tau close to the covering radius)?.

Limitations

The paper does not have a dedicated section/discussion outlining limitations. Kindly refer to my questions and stated 'Weaknesses' for the same.

Paper formatting concerns

There are no immediate formatting concerns.

Final justification

Based on the author's responses to my questions and taking into consideration other discussions, the merit of the paper outweighs the concerns raised.

Reviewer_TqQWOpenReview ↗
Rating
4
Clarity
3
Confidence
2
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes using the Softmax Partition of Unity to explain the local-to-global approximation capability of the Transformer. The authors demonstrate that a two-layer, dense Transformer using standard softmax attention and sinusoidal PE can approximate the Hölder function and achieve a near-minimax generalization error rate. This framework can also be extended to low-dimensional Riemannian manifolds, where the rate depends on the intrinsic dimension rather than the context dimension.

Strengths and weaknesses

Strengths:

  1. Architecture resembles a real Transformer: It uses softmax attention, sinusoidal PE, and dense parameters. The theoretical chain is complete.

  2. Compared to some existing works, this work avoids hard max and manual PE.

Weaknesses: 1: The proof states that "such a Transformer exists," but it doesn't explain whether training can learn it.

2: It requires a large sequence length and attention heads.

Questions

1: What is the essential difference between Softmax POU and previous methods?

2: Is Sinusoidal PE a core necessary condition or a technical tool in the proof?

Limitations

The paper emphasizes that its construction requires only a constant depth, but this appears to be achieved at the cost of a larger sequence length and a greater number of attention heads. It is unclear what substantial advantages this shallow-wide trade-off offers compared to existing depth-dependent constructions.

Paper formatting concerns

No Paper Formatting Concerns

Final justification

The rebuttal addressed my main questions and clarified the scope of the theoretical claims. The shallow-wide construction still has practical limitations, but I view the paper as technically solid overall and maintain my score of 4.

Comments on the paper

1 comment
Meta-review

The following is my initial meta-review, subject to change after rebuttals.

All the reviewers agreed that this paper is technically solid in proving new results for approximating Hölder-smooth functions with transformer architectures, using the partition-of-unity tool via the softmax operator. All the reviewers tend to accept the paper, but the authors should still address the detailed questions raised by the three reviewers.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.