Minimax-Optimal Transformer Classification for Functional Data with a Dense-Sparse Phase Transition
Shuoyang Wang, Yidan Tian, GUANQUN CAO
NeurIPS 2026
TL;DR. We develop a theoretically grounded transformer framework for functional data classification, establishing near-minimax excess-risk rates across dense and sparse sampling regimes and revealing the phase transition between them.
Abstract. Despite the remarkable empirical success of transformer models in natural language processing, their theoretical foundations for functional data classification remain largely unexplored. This paper takes a first step toward closing this gap by developing a rigorous statistical framework for transformer-based functional classifiers. We show that a transformer architecture with an expanding attention window in the latent representation attains minimax-optimal excess-risk rates up to logarithmic factors in infinite-dimensional functional classification, without relying on conventional dimension-reduction procedures. Our analysis further reveals a dense-to-sparse phase transition: when the sampling frequency exceeds a critical threshold relative to the sample size, the proposed classifier achieves the optimal dense-observation rate; otherwise, we precisely characterize the degradation in convergence under sparse sampling. Extensive simulations and real-data experiments support the theory and demonstrate that transformers provide a competitive and theoretically justified approach to functional classification.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper develops a theoretical framework for Transformer-based classification of functional data. It proposes a Functional Transformer that works with basis-representation coefficients and derives near-minimax excess-risk rates for infinite-dimensional classification problems.
The reviewers generally agree that the main strength of the paper is its rigorous theoretical analysis. The results are presented clearly, and the upper bounds are supported by nearly matching lower bounds, which makes the theoretical contribution fairly complete.
The main concern, however, is the gap between the theory and the experiments. The paper highlights a dense-to-sparse phase transition, but the experiments do not systematically vary the sampling frequency or directly test the predicted threshold. More broadly, several quantities and scaling relationships introduced in the theory are not validated numerically. Furthermore, there are also some concerns about novelty. One reviewer points out that the general idea of projecting functional data onto basis coefficients and then applying a neural network has already appeared in prior work. This makes the paper feel more like an extension of existing methods to Transformers, with the main novelty coming from the theoretical analysis rather than the architecture itself. The experimental comparison is also somewhat limited because several standard functional classification baselines are missing.
Addressing the following points would substantially improve the quality of the paper. The authors should provide a clearer explanation of the technical challenges involved in extending existing theoretical frameworks to Transformer architectures, including which architectural properties prevent a direct application of prior analyses. Stronger empirical evidence is also needed to support the main theoretical claims, particularly the dense-to-sparse phase transition and the predicted scaling behavior, together with qualitative justification explaining how the observed empirical trends align with the theoretical derivations, as suggested by multiple reviewers. In addition, the paper would benefit from a discussion of the practical guidance that can be derived from the theoretical analysis and existing literature, such as how practitioners should select the network architecture, depth, width, attention-window size, and truncation level.
Final justification
The rebuttal substantially addressed the main concerns raised during the initial review. In particular, the authors added resolution-sweep experiments across all six DGPs to provide direct qualitative evidence for the predicted dense-to-sparse transition.
One remaining concern is the practical implication of the dense-to-sparse phase transition. While the dense-to-sparse phase transition is theoretically interesting, its immediate practical guidance remains limited. The critical sampling threshold depends on unknown quantities that may be difficult to estimate in practice. As a result, it is unclear how a practitioner could use the theory to decide, for example, how densely to sample a new dataset or when additional measurements would no longer be beneficial.
Read meta-review
Meta-review
The paper develops a theoretical framework for Transformer-based classification of functional data. It proposes a Functional Transformer that works with basis-representation coefficients and derives near-minimax excess-risk rates for infinite-dimensional classification problems.
The reviewers generally agree that the main strength of the paper is its rigorous theoretical analysis. The results are presented clearly, and the upper bounds are supported by nearly matching lower bounds, which makes the theoretical contribution fairly complete.
The main concern, however, is the gap between the theory and the experiments. The paper highlights a dense-to-sparse phase transition, but the experiments do not systematically vary the sampling frequency or directly test the predicted threshold. More broadly, several quantities and scaling relationships introduced in the theory are not validated numerically. Furthermore, there are also some concerns about novelty. One reviewer points out that the general idea of projecting functional data onto basis coefficients and then applying a neural network has already appeared in prior work. This makes the paper feel more like an extension of existing methods to Transformers, with the main novelty coming from the theoretical analysis rather than the architecture itself. The experimental comparison is also somewhat limited because several standard functional classification baselines are missing.
Addressing the following points would substantially improve the quality of the paper. The authors should provide a clearer explanation of the technical challenges involved in extending existing theoretical frameworks to Transformer architectures, including which architectural properties prevent a direct application of prior analyses. Stronger empirical evidence is also needed to support the main theoretical claims, particularly the dense-to-sparse phase transition and the predicted scaling behavior, together with qualitative justification explaining how the observed empirical trends align with the theoretical derivations, as suggested by multiple reviewers. In addition, the paper would benefit from a discussion of the practical guidance that can be derived from the theoretical analysis and existing literature, such as how practitioners should select the network architecture, depth, width, attention-window size, and truncation level.
Final justification
The rebuttal substantially addressed the main concerns raised during the initial review. In particular, the authors added resolution-sweep experiments across all six DGPs to provide direct qualitative evidence for the predicted dense-to-sparse transition.
One remaining concern is the practical implication of the dense-to-sparse phase transition. While the dense-to-sparse phase transition is theoretically interesting, its immediate practical guidance remains limited. The critical sampling threshold depends on unknown quantities that may be difficult to estimate in practice. As a result, it is unclear how a practitioner could use the theory to decide, for example, how densely to sample a new dataset or when additional measurements would no longer be beneficial.
1 comment
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses the lack of theoretical foundation for Transformers in functional data classification by establishing, for the first time, a rigorous statistical learning framework. The authors propose a Transformer architecture with extended attention windows that achieves minimax-optimal excess risk bounds for infinite-dimensional functional classification problems without relying on traditional dimensionality reduction steps. The core theoretical contribution lies in revealing the "dense-sparse phase transition" phenomenon: when the sampling frequency exceeds a critical threshold relative to the sample size, the classifier attains optimal dense observation rates; conversely, the paper precisely characterizes the degradation of convergence rates under sparse sampling. Both simulation and real-world experiments validate the theoretical predictions, demonstrating that Transformers offer a novel approach to functional classification that is both competitive and theoretically sound.
Strengths and weaknesses
Strengths:
- Quality: The paper constructs a fairly complete theoretical framework, from defining the nonparametric class of functional data classification problems to introducing the Functional Transformer architecture and further establishing minimax optimality under dense observations and phase transition characterization under sparse observations. The three theorems form a closed-loop theoretical argument.
- Clarity: The overall organizational structure is well-designed, and the symbol definitions are comprehensive.
- Significance: The Transformer is widely used in functional data analysis, but it lacks the support of statistical learning theory. This paper is the first to provide the minimax optimality theory for functional classification of the Transformer, which provides a theoretical basis for the application of the Transformer in the FDA field.
- Originality: For the first time, the approximate theory of the Transformer was applied to the functional classification problem. This combination is original. Weaknesses:
- Quality: The core highlight of the theory is the dense-to-sparse phase transition, but the experimental part does not seem to have verified this phase transition phenomenon. In addition, the experiment compared FDNN, ViT, CNN, QD, and NB, but did not include classic functional classification methods such as FPCA + LDA and functional support vector machines.
- Clarity: Section 2.1's description of the FT architecture contains numerous mathematical symbols and parameters. It is recommended to add a brief conceptual explanation to clarify the function of each component.
- Significance: The FT architecture of this paper essentially applies the Transformer to the projection scores of the function basis (such as the Fourier basis). This "projection first, then Transformer" approach is not a completely new architectural paradigm; many existing functional deep learning methods also adopt a similar approach. The main innovation of this paper lies in the theoretical proof rather than the architecture design itself.
- Originality: There have been numerous studies on the paradigm of using function basis projection + neural network in FDA (FPCA + NN, FDNN, etc.). FT essentially applies Transformer to the coefficient sequence after basis projection, which is similar to the operation approach of ViT on image patches. The functional specificity of the architecture is mainly reflected in the design of the embedding layer, but the degree of innovation is limited.
Questions
- The most distinctive theoretical contribution of the paper is the dense-sparse phase transition phenomenon revealed in Theorem 3.3, which provides the critical sampling frequency threshold. However, the experimental part (sections 4-5) never changed the sampling frequency m to verify this prediction. Readers cannot know whether the phase transition threshold truly exists and whether FT is indeed superior to other methods in sparse sampling. It is recommended to change the sampling frequency (m = 5, 10, 20, 50, 100, 200), and draw the curves of the misclassification rate of FT, FDNN, and a classic method (such as FPCA + LDA) varying with m.
- The comparison with other methods in the sparse sampling scenario is lacking. The comparison methods used in the experiment all operate under dense sampling. If one of the core advantages of FT is sparse scenarios, then when m is very small, will FT still be superior to FDNN and the classic FDA methods?
Limitations
Yes
Final justification
I recommend accepting this paper. The reason is that it is the first to establish a rigorous minimax optimality theory for the Transformer in functional data analysis and reveals an unknown "dense-sparse phase transition" phenomenon, fundamentally answering the core application question of "can sampling more density leverage the advantages of the Transformer". The technical depth of the paper is impressive. It not only completely abandons the strong assumption of traditional methods relying on limited truncation, allowing the decision boundary to depend on an infinite number of potential directions, but also proves its statistical non-improvability through matched upper and lower bounds; even more commendable is that the authors precisely couple the reconstruction error of discrete observations with the classification margin loss, deriving the critical threshold between the sampling frequency and the sample size , providing quantitative guidance for actual sensor deployment. The experimental design is efficient and highly persuasive. In non-Gaussian, complex interaction simulation scenarios and zero-shot video tasks with severe motion blur, this classifier significantly outperforms existing methods, fully verifying the robustness predicted by the theory. This work fills a significant gap between Transformer theory and infinite-dimensional non-parametric classification, and its insight into the adaptive expansion of the attention window with the sample size has a profound impact on future architecture design.
Formatting concerns
No
3 comments
Rebuttal
We thank the reviewer for recognizing the completeness of the theoretical framework. We address the phase-transition evidence, additional baselines, presentation, and novelty below.
-
W1, Q1, and Q2. Phase-transition experiment and classical baselines.
We completed the requested resolution sweep for all six DGPs. The 1D settings use , the 2D settings use , and the 3D settings use , with throughout. Every method is re-tuned at each resolution.
Table 1 reports FT's resolution path for every DGP and sample size. Table 2 compares FT with FDNN, the two added FPCA baselines, and the strongest remaining comparator at the low- and high-resolution endpoints for .
Table 1. FT misclassification rates (%) from the lowest to the highest resolution. Each cell reports low resolution high resolution.
| DGP | Resolution change | ||||
|---|---|---|---|---|---|
| DGP1 | 30.01→17.93 | 25.94→16.30 | 24.71→15.87 | 21.65→13.72 | |
| DGP2 | 43.38→19.75 | 39.65→12.74 | 38.41→11.86 | 35.15→9.56 | |
| DGP3 | 22.88→16.30 | 21.18→14.41 | 16.17→13.23 | 14.06→12.31 | |
| DGP4 | 13.44→13.26 | 13.38→12.97 | 12.92→12.45 | 12.72→12.25 | |
| DGP5 | 15.73→15.72 | 11.40→10.57 | 10.21→8.33 | 8.38→8.07 | |
| DGP6 | 6.40→6.24 | 5.75→5.89 | 5.68→5.78 | 5.59→5.60 |
Table 2. Low- to high-resolution comparison at . Entries are misclassification rates (%). “Best other” is the strongest method other than FT, FDNN, FPCA+LDA, and FPCA+SVM at each endpoint. Bold marks the lowest error at each endpoint.
| DGP | Resolution | FT | FDNN | FPCA+LDA | FPCA+SVM | Best other |
|---|---|---|---|---|---|---|
| DGP1 | 21.65→13.72 | 23.10→15.07 | 38.03→38.50 | 49.22→49.11 | 36.98 (QD)→36.75 (QD) | |
| DGP2 | 35.15→9.56 | 35.17→20.40 | 49.83→49.86 | 43.74→43.97 | 38.56 (NB)→38.51 (NB) | |
| DGP3 | 14.06→12.31 | 15.26→12.74 | 42.27→41.61 | 15.80→15.50 | 13.14 (ViT)→13.16 (CNN) | |
| DGP4 | 12.72→12.25 | 12.41→12.30 | 28.72→29.02 | 14.37→14.11 | 12.23 (ViT)→12.28 (CNN) | |
| DGP5 | 8.38→8.07 | 8.89→9.11 | 23.63→23.16 | 11.34→10.26 | 6.78 (CNN)→7.92 (CNN) | |
| DGP6 | 5.59→5.60 | 5.63→5.74 | 27.67→28.05 | 6.39→6.45 | 5.57 (CNN)→5.61 (CNN) |
FT improves with resolution in 21 of 24 comparisons. The three exceptions all occur in DGP6, where the increases are only 0.14, 0.10, and 0.01 percentage points for and . We interpret DGP6 as nearly insensitive to resolution and do not claim monotone finite-sample error in . At , FT has the lowest high-resolution error in DGP1, DGP2, DGP3, DGP4, and DGP6. In DGP5, CNN remains better by 0.15 percentage points. At the lowest resolution, ViT or CNN is stronger in several multidimensional settings. We report these cases directly and do not claim universal FT superiority or exact recovery of the asymptotic threshold.
We also added FPCA+LDA and FPCA+SVM, with both fitted to FPCA scores in every dimension. For 1D data, they are reported alongside QD, NB, and FDNN. In DGP1, FT is best for every examined and . In DGP2, QD or NB can be competitive at the coarsest grids for small , but at FT improves on the strongest classical method by 19.51–28.95 percentage points. For 2D and 3D data, the FPCA-based LDA and SVM classifiers complement FDNN, CNN, and ViT. These are standard dimension-reduction-based functional baselines, not same-representation controls for FT.
On the real data, FPCA+SVM is the strongest alternative for two nearly separable speech tasks, but FT remains lower. Table 3 reports the complete real-data comparison. The full resolution tables and line plots will be incorporated in the final version.
Table 3. Real-data misclassification rates (%). Parentheses give standard errors; bold marks the lowest mean error for each task.
| Dataset | Task | FT | FDNN | ViT | CNN | QD | NB | FPCA+LDA | FPCA+SVM |
|---|---|---|---|---|---|---|---|---|---|
| Speech | aa vs ao | 19.130 (0.028) | 20.744 (0.016) | 24.465 (0.037) | 23.700 (0.025) | 25.402 (0.026) | 25.378 (0.021) | 25.410 (0.281) | 23.475 (0.260) |
| Speech | aa vs iy | 0.010 (0.001) | 0.193 (0.002) | 0.215 (0.005) | 0.330 (0.004) | 0.288 (0.005) | 0.273 (0.006) | 0.290 (0.031) | 0.035 (0.013) |
| Speech | ao vs iy | 0.010 (0.001) | 0.183 (0.004) | 0.235 (0.004) | 0.310 (0.004) | 0.578 (0.005) | 0.232 (0.005) | 0.585 (0.046) | 0.085 (0.020) |
| Chest radiographs | normal vs abnormal | 22.135 (0.019) | 25.788 (0.016) | 25.404 (0.017) | 26.587 (0.107) | -- | -- | 30.252 (0.327) | 30.412 (0.330) |
| ADNI PET | AD vs EMCI | 10.017 (0.059) | 19.567 (0.078) | 16.533 (0.074) | 10.314 (0.043) | -- | -- | 20.600 (0.341) | 16.050 (0.510) |
-
W2. Clarity of Section 2.1.
We agree that the formal presentation introduces too many symbols before giving the reader a conceptual map. We will place the following explanation before the definitions: the embedding converts a function into an ordered sequence of latent tokens; attention mixes information across latent directions; a shared neural network assigns a score to each refined token; and a weighted readout aggregates these scores into the final decision. Figure 1 will be relabeled, and a compact component table will define (retained tokens), (attention range), (heads), (embedding dimension), (network depth), and (network width).
-
W3 and W4. Significance and originality.
We agree that “basis projection followed by a neural network” is not a new architectural paradigm. We will revise the Introduction and contribution statement so that the claim is not attached to the projection step itself.
For a complete orthonormal basis, the mapping is an isometric one-to-one coordinate representation of . At the population level, it does not impose finite-dimensional reduction. The posterior class can depend on infinitely many coordinates under mixed or anisotropic smoothness. The finite used in computation is only a sieve.
The closest prior theory, FDNN, studies dense functional classification under a finite-truncation approximation structure. Our theory instead derives architecture-free lower bounds for an infinite-sequence posterior class, proves that FT attains the corresponding rate up to logarithmic factors, and quantifies the additional unavoidable error under discrete observation. These are different structural and theoretical questions, even though both methods begin with functional coefficients.
Prior Transformer approximation theory also does not directly yield our result. We must connect approximation to classification excess risk under the margin condition, bound the estimation complexity of the attention class, prove matching lower bounds over the functional posterior class, and carry reconstruction error through the empirical coefficients. Attention provides a shared, data-adaptive aggregation mechanism that attains the derived rate. We do not claim that attention is the only possible rate-attaining architecture.
-
Additional evidence on representation and attention choices.
We also completed a Fourier-score versus FPCA-score Transformer comparison and an expanded joint / sensitivity analysis, reported in Tables 2 and 1, respectively, of our response to Reviewer a3fr. Fourier-score FT has lower mean error in all six DGPs at , by 0.20–11.87 percentage points. The / analysis covers representative 1D, 2D, and 3D settings. Increasing reduces the best observed error by 3.28, 6.40, and 5.14 percentage points in DGP1, DGP3, and DGP5. For every examined , the best tested local window also has lower mean error than full attention at the same representation size. These results support a sufficiently rich Fourier sieve with validation-selected locality, without claiming that Fourier or local attention is universally optimal.
The rebuttal has comprehensively addressed my main concerns. The authors added resolution-sweep experiments and classical FPCA baselines, which not only verify the predicted dense-sparse phase transition but also honestly report cases where FT is not dominant. Their clarification on theoretical novelty, distinguishing infinite-dimensional nonparametric settings from finite truncation, is convincing.
We sincerely thank the reviewer for the thoughtful follow-up and for reconsidering the assessment. We are pleased that the additional experiments and theoretical clarifications addressed the main concerns. We greatly appreciate the reviewer’s careful reading and constructive feedback throughout the review process.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies the theoretical foundations of Transformers for functional data classification. The authors propose a Functional Transformer to handle infinite-dimensional functional inputs. The main theoretical contribution of this paper is to prove that the proposed FT classifier can achieve the minimax-optimal excess-risk rate in the dense regime of fully observed functional data, up to a logarithmic factor. Meanwhile, the authors further analyze how the sampling frequency m affects the convergence rate under discretely observed functional data, and characterize a dense-to-sparse phase transition.
Strengths and weaknesses
Strengths
-
The authors characterize when the sampling frequency m no longer serves as a statistical bottleneck. When m is sufficiently large, the discretely observed problem reduces to the fully observed regime; when m is smaller, the discretization error dominates the excess risk. This conclusion is intuitive and interpretable.
-
Existing Transformer theory has mainly focused on sequence modeling, regression, or finite-dimensional inputs, whereas this paper attempts to handle infinite-dimensional functional inputs and develops an excess-risk minimax theory. This aspect is highly novel.
Weaknesses
-
The theoretical results rely on a series of architecture scaling assumptions. For example, the network depth, width, number of sparse parameters, attention window size, and number of heads all need to vary with the sample size and the target approximation level. However, in the actual experiments, these hyperparameters are mainly selected using a validation set.
-
One of the core theoretical highlights of the paper is the phase transition, but the experimental section does not systematically vary m to verify this phenomenon.
-
The sparse-regime setting is relatively idealized. The “sparse” setting in this paper is closer to finite regular-grid sampling, rather than classical sparse longitudinal functional data. This statement therefore needs to be made more cautiously.
Questions
-
Does the architecture scaling in the theory need to depend on unknown parameters such as , , , and ? If these parameters are unknown, how should the network depth, width, attention window size, and truncation level be selected in practice?
-
Can the authors provide an experiment that directly verifies the dense--sparse phase transition? For example, one could fix , gradually vary , and show how the excess risk changes from the sparse regime to the dense regime.
Limitations
Yes
Final justification
The rebuttal has addressed most of my concerns and improved my assessment of the paper, so I have raised my rating from 3 to 4.
Formatting concerns
None
4 comments
Rebuttal
We thank the reviewer for recognizing the infinite-dimensional excess-risk theory and for identifying the main theory-to-practice and empirical-validation questions.
-
W1 and Q1. Unknown scaling parameters and practical architecture selection.
We agree that the oracle scaling depends on unknown quantities. In Assumption 4, is depth, is width, is the sparsity budget, bounds parameter magnitudes, is the attention-window size, is the embedding dimension, and is the number of heads. Assumption 5 replaces the dense target accuracy by one that also depends on sampling frequency . These prescriptions prove that a suitable architecture attains the rate, but they are not exact plug-in values when are unknown.
Our practical procedure is validation-based, as stated in Algorithm 2. The theoretical orders guide the scale and relative growth of the candidate ranges, and validation selects the final depth, width, truncation, attention configuration, batch size, learning rate, and regularization. The theoretical sparsity budget is approximated through finite architecture size and regularization rather than imposed as an exact constraint. We will clarify that this is a data-driven approximation to the oracle architecture and that the paper does not establish adaptive minimaxity.
The truncation level is separate from Assumptions 4–5 and is selected as a computational sieve. Table 1 in our response to Reviewer a3fr supports using a broad candidate range for and tuning it jointly with .
-
W2 and Q2. Direct empirical examination of the phase transition.
We completed the requested experiment for all six DGPs and all . The resolutions are in 1D, in 2D, and in 3D. The underlying process is fixed within each DGP, and every method is re-tuned at each resolution.
Table 1 reports FT's resolution path for every DGP and sample size. Table 2 compares FT with FDNN and the strongest remaining comparator at the low- and high-resolution endpoints for .
Table 1. FT misclassification rates (%) from the lowest to the highest resolution. Each cell reports low resolution high resolution.
| DGP | Resolution change | ||||
|---|---|---|---|---|---|
| DGP1 | 30.01→17.93 | 25.94→16.30 | 24.71→15.87 | 21.65→13.72 | |
| DGP2 | 43.38→19.75 | 39.65→12.74 | 38.41→11.86 | 35.15→9.56 | |
| DGP3 | 22.88→16.30 | 21.18→14.41 | 16.17→13.23 | 14.06→12.31 | |
| DGP4 | 13.44→13.26 | 13.38→12.97 | 12.92→12.45 | 12.72→12.25 | |
| DGP5 | 15.73→15.72 | 11.40→10.57 | 10.21→8.33 | 8.38→8.07 | |
| DGP6 | 6.40→6.24 | 5.75→5.89 | 5.68→5.78 | 5.59→5.60 |
Table 2. Low- to high-resolution comparison at . Entries are misclassification rates (%). The final column gives the strongest method other than FT and FDNN at each endpoint. Bold marks the lowest error at each endpoint.
| DGP | Resolution | FT | FDNN | Strongest other comparator |
|---|---|---|---|---|
| DGP1 | 21.65→13.72 | 23.10→15.07 | 36.98 (QD)→36.75 (QD) | |
| DGP2 | 35.15→9.56 | 35.17→20.40 | 38.56 (NB)→38.51 (NB) | |
| DGP3 | 14.06→12.31 | 15.26→12.74 | 13.14 (ViT)→13.16 (CNN) | |
| DGP4 | 12.72→12.25 | 12.41→12.30 | 12.23 (ViT)→12.28 (CNN) | |
| DGP5 | 8.38→8.07 | 8.89→9.11 | 6.78 (CNN)→7.92 (CNN) | |
| DGP6 | 5.59→5.60 | 5.63→5.74 | 5.57 (CNN)→5.61 (CNN) |
FT improves from the lowest to the highest resolution in 21 of 24 comparisons. The three exceptions all occur in DGP6: error increases by 0.14, 0.10, and 0.01 percentage points for and . These small nonmonotone finite-sample fluctuations occur in a setting already nearly insensitive to resolution. Theorem 3.3 does not require observed finite-sample test error to be monotone in . The strongest effects occur in DGP1 and DGP2, moderate effects occur in DGP3, and DGP4–DGP6 are closer to a resolution plateau. At , FT is best at the highest resolution in five of six DGPs, but only in two of six at the lowest resolution.
We do not claim exact threshold recovery. Theorem 3.3 gives upper and lower rate bounds up to constants and logarithmic factors, not an exact finite-sample additive decomposition. We present the experiment as direct qualitative validation of the predicted resolution dependence.
-
W3. Scope of the sparse regime.
This is an important distinction. Theorem 3.3 assumes observations on a common regular grid and a reconstruction operator with a uniform approximation bound. It does not cover classical sparse-longitudinal data with subject-specific irregular observation times, varying numbers of measurements, and measurement error.
We will use “discretely observed” or “low-resolution regular-grid” for the formal setting, and reserve “sparse regime” for the rate regime in which regular-grid resolution is below that required to attain the dense-observation rate. Irregular and noisy longitudinal designs will be stated as an open extension.
Follow-up on our rebuttal
Thank you again for your careful review and constructive comments. We wanted to kindly follow up on our response and the additional results provided during the discussion period. We would be very grateful if you could let us know whether our response and additional results address your main concerns, or whether there are any remaining points that we could clarify before the discussion period concludes. Thank you very much for your time and consideration.
Overall, the rebuttal has improved my assessment of the paper, and I will therefore raise my rating from 3 to 4.
We thank the reviewer for carefully considering our rebuttal and for the positive reassessment. We greatly appreciate the reviewer’s time and thoughtful feedback.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper develops a theoretical framework for transformer-based functional data classification, establishing minimax optimality guarantees under both dense and sparse sampling regimes through a functional transformer classifier that operates on infinite-dimensional latent representations without finite truncation assumptions. The work introduces a transformer architecture that accommodates Bayes decision boundaries depending on infinitely many latent directions, establishes near-sharp minimax excess-risk bounds with matching lower bounds up to logarithmic factors, and characterizes a dense-to-sparse phase transition governed by the sampling frequency relative to sample size, revealing the critical threshold at which discretization error becomes the statistical bottleneck and precisely quantifying the convergence rate degradation under sparse sampling.
Strengths and weaknesses
Strengths
-
The paper provides a minimax theory with both upper and lower bounds, a good achievement given the novelty of applying transformers to functional data analysis.
-
The analysis of how sampling frequency influences convergence rates offers valuable practical guidance for practitioners dealing with discretely observed functional data.
Weaknesses
-
The assumption of locally structured attention with a fixed window size appears somewhat at odds with the transformer paradigm, which is celebrated precisely for its ability to capture long-range dependencies without such locality constraints.
-
The theoretical framework relies on strong regularity assumptions that may be difficult to verify or may not hold in many real-world applications.
-
The embedding layer applies a sigmoid transformation to basis expansion coefficients followed by an affine mapping. The paper neither justifies the optimality of this choice nor compares it against alternatives such as FPCA scores, spline bases, or learnable embeddings.
Questions
-
Could you comment on how the proposed architecture compares to full self-attention in terms of approximation capacity, and whether the locality assumption may limit performance on functional data with long-range correlations?
-
In practice, how is the truncation level selected, and how sensitive are the empirical results to this choice? Does the theory provide an optimal scaling of with and ?
-
The embedding layer applies a sigmoid transformation to the basis expansion coefficients. Have you considered or tested alternatives such as learnable embeddings or using FPCA scores directly?
-
The real-data experiments show that CNN outperforms FT on the ADNI PET (3D) task. Are there modifications to the architecture for 3D functional data that might close this gap?
Limitations
yes
Final justification
I would first like to thank the authors for their detailed responses to my comments. Overall, I am satisfied that the simulation components have been improved and that the connection between theory and simulation is now clearer. However, I concur with the Area Chair's assessment that the paper is borderline and leaning toward rejection. While the results may be of interest to the functional data analysis community, they may not be sufficiently compelling for the broader machine learning audience. The architecture offers limited novelty, the assumptions are somewhat strong, and the theoretical analysis does not convincingly demonstrate the advantages of Transformers for functional data. I therefore maintain my original score, though I would not oppose acceptance given the improvements made during the rebuttal period.
Formatting concerns
NA
3 comments
Rebuttal
We thank the reviewer for the careful reading and constructive questions.
-
W1 and Q1. Local attention vs. full attention, and long-range dependence.
The window is not fixed asymptotically. Under Assumption 4, , and under Assumption 5 the target accuracy depends jointly on and . Thus, the admissible interaction range expands as the problem size grows. For a practical implementation retaining tokens, recovers full self-attention exactly. Table 1 uses as the full-attention convention.
We do not claim that a local layer has the same approximation capacity as full attention at a fixed finite . Full attention contains the local class. The theoretical statement is instead that an expanding local window is sufficient to attain the near-sharp minimax rate. The local form is used because it keeps each softmax operation finite-dimensional and makes the covering-number analysis tractable. A proof for unrestricted full attention would require a different complexity analysis. We will make this tradeoff explicit in Section 2.1.
Long-range dependence in the physical domain and distance in the basis-index domain are not identical. Smooth global dependence can be concentrated in low-order Fourier coefficients, whereas a decision boundary involving widely separated latent coordinates may require a larger . The expanding-window theory addresses the latter case.
At finite samples, Table 1 reports the expanded sensitivity analysis for representative 1D, 2D, and 3D settings. Across all 15 examined values of , the best tested local window has lower mean error than full attention at the same , with differences ranging from 0.12 to 2.14 percentage points. At the largest examined , the best local and full-attention errors are 18.22% versus 20.31% for DGP1, 15.30% versus 15.86% for DGP3, and 11.02% versus 11.15% for DGP5. Across all three settings, localized attention is competitive with, and at these configurations better than, full attention at the same representation size.
Table 1. Sensitivity of FT to and . Rates are percentages; parentheses give standard deviations. Difference is full attention minus the best local rate. Bold marks the lowest local rate within each setting.
| Setting | Best local | Best local rate | Full attention | Difference (points) | |
|---|---|---|---|---|---|
| DGP1, , | 9 | 7 | 21.50 (0.05) | 23.11 (0.07) | 1.61 |
| 13 | 11 | 20.10 (0.05) | 21.55 (0.05) | 1.45 | |
| 17 | 5 | 20.05 (0.04) | 21.47 (0.08) | 1.42 | |
| 21 | 9 | 18.86 (0.05) | 20.36 (0.07) | 1.50 | |
| 25 | 11 | 18.22 (0.03) | 20.31 (0.06) | 2.09 | |
| DGP3, , | 25 | 5 | 21.70 (0.04) | 21.94 (0.04) | 0.24 |
| 81 | 15 | 19.57 (0.04) | 19.69 (0.05) | 0.12 | |
| 169 | 15 | 17.21 (0.05) | 17.79 (0.04) | 0.58 | |
| 225 | 25 | 15.87 (0.03) | 16.04 (0.04) | 0.17 | |
| 289 | 81 | 15.30 (0.02) | 15.86 (0.04) | 0.56 | |
| DGP5, , | 45 | 15 | 16.16 (0.08) | 18.26 (0.09) | 2.10 |
| 125 | 15 | 12.95 (0.05) | 15.02 (0.06) | 2.07 | |
| 245 | 15 | 11.07 (0.02) | 13.21 (0.04) | 2.14 | |
| 405 | 30 | 11.26 (0.02) | 13.09 (0.04) | 1.83 | |
| 605 | 15 | 11.02 (0.02) | 11.15 (0.03) | 0.13 |
The complete sensitivity grids over all tested values of will be included in the revised appendix.
-
W2. Strength and verifiability of the regularity assumptions.
Assumption 1 is the functional analogue of the standard Tsybakov margin condition. Assumption 2 is a structured infinite-dimensional smoothness condition that replaces exact finite truncation with regularly increasing coordinate-wise smoothness. Assumption 3 is a reconstruction condition for regular-grid observations and is satisfied by standard reconstruction procedures under corresponding trajectory smoothness.
We agree that none of these can be verified from a single observed dataset. This is also true of the smoothness and margin conditions used throughout minimax nonparametric theory. We will distinguish more carefully between a theoretical class assumption and an empirically testable condition. Assumption 2 is not uniformly weaker than every finite-dimensional model: it permits infinitely many contributing latent directions, but imposes a specific regular-decay structure, and is unlikely to hold for highly irregular, discontinuous, or subject-specific noisy designs. We will state this limitation directly.
-
W3 and Q3. Sigmoid embedding and alternative representations.
The sigmoid is a bounded link applied after the basis coefficients are computed. It maps each coefficient from to , which places the latent representation in the bounded domain used to define . Since it is strictly monotone and injective, it does not discard coordinate-wise information in exact arithmetic. We do not claim that the logistic link is optimal; another bounded strictly monotone link could play the same theoretical role.
FPCA scores, spline coefficients, wavelet coefficients, and learned embeddings concern the representation before this bounded link. Appendix A.2 permits any fixed orthonormal basis and includes a learned transformation that can map a non-oracle basis representation toward the oracle one. FPCA can also be used in practice, although a data-estimated FPCA basis introduces an additional basis-estimation error not covered by the fixed-basis argument in Appendix A.2.
We appreciate this suggestion and completed the FPCA comparison at . Table 2 shows that the Fourier-score version has lower mean error in all six DGPs, by 0.20–11.87 points. This does not establish that the Fourier basis is universally optimal, but it provides a same-architecture comparison against the proposed alternative. We were not able to add a separate spline or wavelet ablation within the rebuttal window and will state that scope limitation in the revision.
Table 2. Fourier-score versus FPCA-score FT at . Rates are percentages; parentheses give standard deviations. Difference is FPCA-score FT minus Fourier-score FT. Bold marks the lower mean error.
| DGP | Fourier-score FT | FPCA-score FT | Difference (points) |
|---|---|---|---|
| DGP1 | 13.72 (0.02) | 15.24 (0.31) | 1.52 |
| DGP2 | 9.56 (0.01) | 21.43 (0.79) | 11.87 |
| DGP3 | 12.31 (0.01) | 12.69 (0.17) | 0.38 |
| DGP4 | 12.25 (0.01) | 13.26 (0.51) | 1.01 |
| DGP5 | 8.07 (0.01) | 9.63 (0.38) | 1.56 |
| DGP6 | 5.60 (0.01) | 5.80 (0.15) | 0.20 |
-
Q2. Selection and sensitivity of the truncation level .
At the population level, the posterior may depend on infinitely many coordinates. The finite used in computation is therefore a sieve parameter rather than an assumption that the truth is -dimensional. Assumptions 4–5 do not yield an explicit optimal ; in practice, Algorithm 2 selects jointly with and the network parameters by validation, subject to the available grid resolution.
Table 1 shows that matters materially in all three functional dimensions. From the smallest to the largest examined , the best observed error decreases from 21.50% to 18.22% in DGP1, from 21.70% to 15.30% in DGP3, and from 16.16% to 11.02% in DGP5, corresponding to reductions of 3.28, 6.40, and 5.14 percentage points. The best tested window remains local at the largest in all three settings. These results support joint validation of and , not a claim that either choice is unimportant. A fully adaptive rule for selecting under unknown remains open.
-
Q4. Performance on the 3D ADNI PET task.
We broadened the validation grid for FT using the same train, validation, and test evaluation protocol. The expanded candidate grid was specified before examining the revised test results. Within each replication, the Fourier truncation level, number of Fourier tokens, attention-window size, embedding dimension, number of heads and Transformer layers, and MLP width were selected using validation data only. The held-out test data were evaluated only after the configuration had been fixed. A larger provides a richer Fourier representation and reduces information loss, while a localized window can better match dependence among nearby Fourier coefficients and control model complexity.
The revised FT mean error is 10.017%, compared with 10.314% for CNN, 16.533% for ViT, and 19.567% for FDNN. Thus, FT now has the lowest mean error on this task by 0.297 percentage points. Because the margin over CNN is modest, we report it as an improvement in mean performance rather than claim decisive dominance. These results suggest that the earlier gap was at least partly attributable to a tuning range that was not sufficiently rich or adapted to the 3D setting. We appreciate the reviewer for prompting this additional analysis. Table 3 reports the complete real-data comparison.
Table 3. Real-data misclassification rates. Values are percentages; parentheses give standard errors. Bold marks the lowest mean error for each task.
| Dataset | Task | FT | FDNN | ViT | CNN | QD | NB | FPCA+LDA | FPCA+SVM |
|---|---|---|---|---|---|---|---|---|---|
| Speech | aa vs ao | 19.130 (0.028) | 20.744 (0.016) | 24.465 (0.037) | 23.700 (0.025) | 25.402 (0.026) | 25.378 (0.021) | 25.410 (0.281) | 23.475 (0.260) |
| Speech | aa vs iy | 0.010 (0.001) | 0.193 (0.002) | 0.215 (0.005) | 0.330 (0.004) | 0.288 (0.005) | 0.273 (0.006) | 0.290 (0.031) | 0.035 (0.013) |
| Speech | ao vs iy | 0.010 (0.001) | 0.183 (0.004) | 0.235 (0.004) | 0.310 (0.004) | 0.578 (0.005) | 0.232 (0.005) | 0.585 (0.046) | 0.085 (0.020) |
| Chest radiographs | normal vs abnormal | 22.135 (0.019) | 25.788 (0.016) | 25.404 (0.017) | 26.587 (0.107) | -- | -- | 30.252 (0.327) | 30.412 (0.330) |
| ADNI PET | AD vs EMCI | 10.017 (0.059) | 19.567 (0.078) | 16.533 (0.074) | 10.314 (0.043) | -- | -- | 20.600 (0.341) | 16.050 (0.510) |
Follow-up on our rebuttal
Thank you again for your careful review and constructive comments. We wanted to kindly follow up on our response and the additional results provided during the discussion period. We would be very grateful if you could let us know whether our response and additional results address your main concerns, or whether there are any remaining points that we could clarify before the discussion period concludes. Thank you very much for your time and consideration.
Dear Reviewer,
As the deadline is approaching, please engage in the discussion at your earliest convenience and allow sufficient time for the authors to respond to any questions or concerns you may raise.
Thank you.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to the Area Chair
We sincerely thank the Area Chair for the positive assessment and for recognizing the rigorous theoretical analysis and near-matching upper and lower bounds. We address the four concerns below and report new experiments completed during rebuttal.
Phase transition and empirical scaling.
See Reviewer nq2R, W2/Q2, and Reviewer ztgh, W1/Q1/Q2.
We completed a resolution sweep for all six DGPs and all n∈{40,100,200,400}, using m∈{10,20,30,50} in 1D, 102,202,302 in 2D, and 103,153,203 in 3D. Every method, including J for FT and FDNN, was re-tuned by validation at each resolution.
FT's error falls from the lowest to the highest resolution in 21 of the 24 DGP-by-n comparisons. The three exceptions are all in DGP6, where the error rises only marginally (0.14,0.10, and 0.01 points at n=100,200,400); we read this as DGP6 being nearly insensitive to resolution over the examined range rather than as a violation of the predicted trend. The reduction is substantial for DGP1, DGP2, and DGP3 (7.93−12.08,23.63−26.91, and 1.75−6.77 points, respectively), and smaller for DGP4 and DGP5. At n=400, FT attains the lowest error at the highest resolution in 5 of 6 DGPs, versus only 2 of 6 at the lowest resolution -- exactly the qualitative asymmetry the phase-transition theory predicts between the discretization-limited and dense-observation regimes.
Theorem 3.3 gives asymptotic minimax rates rather than an exact finite-sample threshold. We present these results as qualitative evidence that discretization can dominate in some settings and be negligible in others.
Scaling quantities and practical guidance.
See Reviewer a3fr, W1/Q1 and Q2, and Reviewer nq2R, W1/Q1.
Assumptions 4–5 give oracle orders for L,P,S,B,U,D, and H in terms of unknown margin, smoothness, and decay parameters. They establish rate attainment but do not determine unique plug-in hyperparameters. In practice, they guide the candidate ranges, while Algorithm 2 selects the validation-optimal configuration. Complexity is controlled through architecture size, dropout, and weight decay rather than an exact ℓ0 constraint. We will state this distinction explicitly and do not claim adaptive minimaxity.
The truncation level J is a computational sieve and is tuned jointly with U. Our sensitivity study covers representative 1D, 2D, and 3D settings. Across all 15 examined values of J, the best tested local window has lower mean error than full attention at the same J, while increasing J materially reduces error in all three settings. This supports broad candidate ranges and joint tuning of J and U.
Novelty and technical obstacles.
See Reviewer ztgh, W3/W4.
We agree that basis projection followed by a neural network is established and will not present the projection step as the primary novelty. Our contribution is the statistical framework and theory: the posterior may depend on infinitely many latent directions; FT attains a near-sharp minimax excess-risk rate with matching lower bounds up to logarithmic factors; and the discrete-observation analysis identifies a dense-to-sparse transition not covered by prior FDNN or Transformer theory.
Existing Transformer approximation results do not directly yield a classification excess-risk bound, an architecture-free minimax lower bound, or a discretization transition. Our proof connects approximation to 0–1 excess risk under the margin condition, controls the estimation complexity of the attention class, constructs lower bounds over an infinite-dimensional posterior class, and propagates reconstruction error from empirical coefficients. We will make this proof roadmap explicit.
Baselines and presentation.
See Reviewer a3fr, W3/Q3 and Q4, and Reviewer ztgh, W1/Q1/Q2 and W2.
We added FPCA+LDA and FPCA+SVM to every numerical study, with both fitted to FPCA scores. For 1D data they complement QD, NB, and FDNN; for 2D and 3D data they complement FDNN, CNN, and ViT.
FT retains the lowest mean error on all three speech tasks and on chest radiographs. For ADNI PET, we expanded the candidate grid before examining the revised test results, selected all hyperparameters using validation data only, and evaluated the held-out test data only after fixing the configuration. FT's error decreases from 11.611% to 10.017%, compared with 10.314% for CNN, 16.533% for ViT, and 19.567% for FDNN. We report the modest margin over CNN without claiming decisive dominance.
We will also revise Section 2.1 so that the conceptual pipeline precedes the notation and add a compact table defining J,U,H,D,L, and P.