Functional data—such as continuous time-series curves from fMRI scans, wearable sensors, or daily temperature tracking—are notoriously difficult to process with standard deep neural networks. Traditionally, researchers have had to manually select basis functions (like splines) to reduce the dimensionality of these curves before feeding them into a network.
A new architecture called the Adaptive Functional Neural Network (AdaFNN) introduces a novel "Basis Layer" that adaptively learns optimal basis functions end-to-end. By leveraging micro neural networks, AdaFNN outperforms traditional methods, requires fewer basis functions, and offers superior interpretability by focusing only on task-relevant features.
The Problem with Traditional FDA Pipelines
Functional Data Analysis (FDA) deals with data that are intrinsically infinite-dimensional and generated by smooth underlying processes. To feed these continuous curves into a standard neural network, researchers typically rely on a two-step pipeline:
- Reduce the dimensionality of the curve using pre-selected basis functions (e.g., B-splines, Fourier transforms, or Functional PCA).
- Feed the resulting coefficients into a neural network.
The primary flaw in this approach is that these basis functions are chosen a priori, completely blind to the target variable $Y$. They attempt to reconstruct the entire input curve $X(t)$—including noise and irrelevant variations—rather than extracting only the specific information needed to predict the target. Conversely, simply discretizing the curve into a massive vector ignores the underlying smoothness of the data and invites the curse of dimensionality.
Enter AdaFNN: The Adaptive Basis Layer
To solve this, the authors propose replacing manual basis expansion with a learned, end-to-end Basis Layer (BL).
Instead of using fixed mathematical functions, the Basis Layer consists of $d$ basis nodes. Each node represents a basis function $\beta_i(t)$ that is parameterized by a micro neural network (a small Multi-Layer Perceptron).
This micro network takes a single time point $t$ as input and outputs the value of the basis function at that specific time. The Basis Layer then projects the input curve $X(t)$ onto these learned bases by computing the inner product $\int \beta_i(t) X(t) dt$. In practice, this is approximated via numerical integration (such as the trapezoidal rule) over the discrete points where the curve was sampled.
Interpretability Through Regularization
To ensure the learned bases are both efficient and interpretable, the authors introduce two custom loss penalties:
- Orthogonality: Penalizes cosine similarity between basis functions so they do not learn redundant features.
- Sparsity: An $L_1$ penalty that forces the basis functions to evaluate to zero outside of relevant time windows.
This sparsity penalty effectively performs "domain selection." It allows the model to literally zero out parts of the time domain that don't matter for the prediction. Researchers can inspect the learned basis functions to see exactly when a signal is important, making the model highly interpretable.
Experimental Validation and Key Results
The authors evaluated AdaFNN across 9 distinct prediction tasks, including synthetic simulations and real-world datasets like UK electricity usage, NHANES wearable device activity, and fruit fly reproduction curves.
- Superior Accuracy: AdaFNN outperformed all baseline methods (Raw Data + NN, B-Spline + NN, and FPCA + NN) across all real-world tasks, achieving the lowest Mean Squared Error (MSE) in regression and the highest ROC AUC in classification.
- High Efficiency (Parsimony): Because the learned bases are optimized for the specific task rather than general variance explanation, AdaFNN requires drastically fewer basis functions. In one complex simulation, AdaFNN achieved an MSE of 0.207 using just 2 basis functions, whereas the FPCA baseline required 28 basis functions and still yielded a worse MSE of 0.693.
- Robustness to Noise: While feeding raw discretized data into a neural network works on clean synthetic data, it fails on noisy data. AdaFNN maintained strong performance even when Gaussian noise was injected into both the input curves and target variables.
Limitations and Future Work
While AdaFNN is mathematically proven to be statistically consistent, it does have limitations. Handling data sampled at highly irregular or non-uniform intervals requires careful tuning of the numerical integration weights. Applying this to very sparsely observed functional data remains nontrivial and might require stronger inductive biases in the micro neural networks.
Looking forward, the authors suggest the Basis Layer can be extended to handle vector-valued functional data (like spatial coordinates over time), multiple functional covariates simultaneously, or a hybrid mix of functional and standard tabular data.
Summary updated