NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Deep Learning Framework for Scalar-on-Function Models

Ruiqi Liu, Suneel Babu ChatlaNeurIPS 2026

TL;DR

Predicting a single number from messy, irregularly sampled curves—like forecasting daily energy spikes from room temperature trajectories—usually forces a frustrating choice between rigid statistical models and black-box neural networks with weak theoretical guarantees. This paper bridges that gap by feeding numerically approximated Fourier coefficients into standard ReLU networks, proving that simple architectural tweaks (like adding an early bottleneck layer) achieve near-optimal error rates while remaining effortless to train.

What Problem Does This Paper Address?

Imagine trying to predict a patient's cognitive test score (a scalar) using continuous brain scan profiles (functions). In statistics, this is called scalar-on-function regression.

In the real world, we don't observe smooth, infinite-resolution curves; we get discrete, noisy snapshots on grids that might be irregular and vary from subject to subject. Traditional linear functional models struggle when these curves interact nonlinearly. Deep neural networks (DNNs) excel at capturing nonlinearities, yet existing theoretical work for functional DNNs often makes unrealistic assumptions: either pretending we observe the entire continuous curve perfectly (ignoring discretization error) or requiring sparse network architectures where you have to optimize over a rigid, pre-defined wiring pattern—a nightmare for standard gradient descent.

The authors ask: Can we build an easy-to-implement deep learning framework that handles multiple irregularly sampled curves, accounts for every source of real-world approximation error, and still hits the theoretical speed limit for statistical learning?

Methods

The proposed pipeline is refreshingly pragmatic:

  1. Feature Extraction via Trapezoids: Since the underlying continuous curves are only observed at discrete time points, the authors approximate the leading $D$ orthonormal basis (e.g., Fourier) coefficients for each curve using the classic trapezoidal rule for numerical integration.
  2. Standard ReLU Networks: Those estimated coefficients are concatenated into a finite-dimensional feature vector and fed into a fully connected ReLU network trained via least squares (with output clipping for theoretical stability).

Instead of relying on hard-to-train sparse networks, the authors explore how simple, dense architectures map to two distinct statistical regimes:

  • Equal-Width (EW) DNN: Every hidden layer has the exact same width $W$. Used for general, continuous nonlinear functionals.
  • Bottleneck-Equal-Width (BEW) DNN: Designed for functional multiple-index models—scenarios where high-dimensional curves secretly project down into a few scalar "indices" before passing through an unknown nonlinear link function. BEW mimics an autoencoder's compression step: a narrow first hidden layer ($W_1$) captures those low-dimensional projections, followed by wider layers ($W$) to learn the nonlinear link.
Figure 1: Comparison of an equal-width DNN and a bottleneck-equal-width DNN.

Datasets

Beyond synthetic simulations testing various sample sizes, grid densities, and interaction strengths, the authors evaluate their models on two real-world benchmarks (using 200 out-of-bag bootstrap replications):

  • UCI Appliances Energy Prediction: 4.5 months of smart-home data recorded every 10 minutes (144 points/day). Four daily curves (kitchen and living room temperature and humidity) are used to predict the 95th percentile of daily appliance energy use.
  • Diffusion Tensor Imaging (DTI2): Brain imaging data from the refund R package. Two diffusivity profiles along white-matter tracts (sampled at 93 and 55 locations) are used to predict Paced Auditory Serial Addition Test (PASAT) cognitive scores.

No new benchmark datasets are introduced.

Key Insights and Ideas

  • A Four-Part Error Budget: The authors derive a unified nonasymptotic excess risk bound that cleanly splits total prediction error into four intuitive buckets: statistical error (network complexity vs. sample size), truncation error (dropping higher-order Fourier frequencies), discretization error (approximating integrals from finite grid points), and network approximation error (ReLU expressivity).
  • More Features Can Backfire on Coarse Grids: Looking at the discretization error reveals a neat catch-22: retaining more basis coefficients ($D$) reduces truncation error, but higher-frequency basis functions wiggle faster, making trapezoidal integration less accurate unless your time-grid resolution ($M_i$) grows denser too.
  • Architecture as Statistical Regularization: In multiple-index models, an EW network wastes parameters connecting all $D$ input coefficients to a wide first layer ($O(DW)$ parameters). By squeezing inputs through a narrow bottleneck of width $W_1 \ge 2d$ (where $d$ is the number of true underlying indices), BEW slashes input-layer complexity to $O(D)$ without losing approximation power—achieving a strictly faster convergence rate when the link function is smooth.

Key Results

  • Theoretical Optimality: When curves are densely observed, the EW estimator achieves a convergence rate that is minimax optimal up to a $\log\log(n)$ factor for continuous models. For multiple-index models, BEW hits the minimax optimal polynomial rate up to a $\log(n)$ factor—tuning just four numbers ($D, W_1, W, L$) instead of enforcing network sparsity.
  • Simulations: When curves don't interact nonlinearly, the simpler EW network often wins. Once nonlinear interactions kick in—especially with larger samples and denser grids—BEW pulls ahead of both EW and a competing functional principal component (FPC) neural network approach.
  • Real-World Benchmarks: BEW achieves modest but consistent improvements in out-of-bag Mean Squared Error (MSE) across both datasets:
  • Appliances: BEW reaches a mean MSE of 1.0736 (median 1.0366), edging out EW at 1.0867 (median 1.0410) and FPC at 1.1327 (median 1.0993).
  • DTI2: BEW achieves a mean MSE of 1.2780 (median 1.1099), beating FPC at 1.3120 (median 1.1193) and EW at 1.3211 (median 1.1196).

Limitations and Future Work

  • Synchronized Subject Grids: The theory assumes that for a given subject $i$, all $q$ functional predictors are measured on the exact same time grid $T_i$ (though in the DTI2 experiment, the two tracts had different resolutions). Allowing asynchronous grids across different variables for the same subject is possible in practice, though tracking the math gets messy.
  • Prediction Over Interpretability: In multiple-index models, linear combinations or transformations of the index functions can be absorbed into the nonlinear link function. Thus, BEW guarantees accurate predictions, not recovery of the true underlying index curves.
  • Light-Tailed Noise: The concentration bounds rely on conditionally sub-Gaussian noise. Extending the theory to handle heavy-tailed outliers remains an open avenue for future work.

Summary updated

BibTeX
@inproceedings{liu2026deep,
  author = {Ruiqi Liu and Suneel Babu Chatla},
  title = {{A Deep Learning Framework for Scalar-on-Function Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=wkb5E1ietO},
}
Figure