NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Minimax-Optimal Transformer Classification for Functional Data with Dense-Sparse Phase Transition

Shuoyang Wang, Yidan Tian, Guanqun Cao

NeurIPS page · Open on the map

Category: Interpretability & Model Adaptation › Transformer In-Context Reasoning · Type: new method · Keywords: functional data classification, transformer architecture, minimax optimal rates, dense-sparse phase transition, expanding attention window

Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Attention Replacement and Stabilization

Summary

The paper introduces a minimax-optimal transformer classifier for functional data that uses an expanding attention window and achieves optimal rates with a dense-to-sparse phase transition.

Explained to a 5-year-old

We study how to classify curves, like drawings or signals, using a special kind of brain-inspired computer model. This model looks at more and more parts of the data as it learns, which helps it understand both dense and sparse data. It works as well as the best possible method, even when data is limited. The theory shows when it works best and when it slows down. Experiments show it works well on real data.

Explained to a 5-year-old, longer

The paper looks at a kind of data that is like smooth curves, such as temperature changes over time or handwriting shapes. Classifying these curves means deciding which category they belong to, like “healthy” or “sick”. Traditional methods often need to reduce the data to a smaller size before they can be used. Transformers, which are inspired by how the brain processes information, have become popular for many tasks but were not well understood for curves. The authors built a new transformer that gradually expands the part of the curve it pays attention to as it learns. This gradual expansion helps the model capture both when data points are plentiful (dense) and when they are scarce (sparse). They proved mathematically that this model can achieve the best possible performance, up to a small logarithmic factor, even in very high-dimensional settings. They also discovered a sharp change: if you have enough data points relative to the number of samples, the model reaches optimal speed; otherwise, its speed drops. Simulations, which are computer experiments that mimic the theory, show the model behaves as predicted. Real-world data experiments confirm that the model works well on actual datasets. The findings give confidence that transformers can be used reliably for functional data tasks. This opens the door for more theoretically grounded uses of transformers in scientific and engineering applications.

For a technical reader

The paper presents a transformer-based classifier for functional data that attains minimax-optimal statistical rates without explicit dimension reduction. It uses an expanding attention window in the latent space, which automatically adapts to dense versus sparse sampling regimes and yields a clear phase transition in performance. Theoretical analysis proves excess-risk bounds up to logarithmic factors and characterizes the critical sampling threshold. Empirical evaluations on simulated and real datasets confirm the theoretical predictions and demonstrate competitive accuracy compared to existing baselines. The work provides both a practical framework for functional classification and a rigorous foundation for future transformer designs in high-dimensional settings.

Problem

Developing theoretically grounded transformer models for functional data classification, where the statistical properties and optimal rates under dense and sparse sampling regimes are not well understood.

Method

The approach employs a transformer architecture with an expanding attention window in the latent space, trained to achieve minimax-optimal excess-risk rates for infinite-dimensional functional classification without explicit dimension reduction.

Contributions

It provides a rigorous statistical framework for transformer-based functional classifiers, establishes minimax-optimal rates, and characterizes a dense-to-sparse phase transition in sampling regimes.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction