Papers
Topics
Authors
Recent
Search
2000 character limit reached

Functional Input Neural Networks (FNN)

Updated 4 July 2026
  • Functional Input Neural Networks (FNNs) are neural architectures that incorporate continuous input functions directly through operators like integrals and convolution kernels.
  • They integrate advanced techniques such as basis expansion, functional inner products, and measure integration to maintain the continuous nature of data.
  • Empirical evaluations and theoretical guarantees highlight FNNs’ improved performance in regression, classification, and distribution regression tasks.

Searching arXiv for recent and foundational papers on functional-input neural networks and adjacent formulations. Functional Input Neural Networks (FNNs) are neural-network models in which the input is not restricted to a finite-dimensional feature vector but may instead be a function x(t)x(t), a collection of functions, a probability measure, or the weights of another neural network. The unifying idea is to replace the ordinary input map by an operator that is native to the input space—for example a functional inner product, a continuous integral transform, a convolution kernel u(st)u(s-t), a learned basis projection, a measure-integration layer, or a permutation-equivariant attention mechanism on weight space—while retaining end-to-end optimization by backpropagation (0709.3641, Thind et al., 2020, Heinrichs et al., 2023, Yao et al., 2021, Shi et al., 2023, Zhou et al., 2023).

1. Historical development and terminological scope

Early work in this area arose from functional data analysis (FDA), where spectra, temporal series, and related objects are treated as elements of L2L^2 rather than as raw sampled vectors. Rossi et al. showed how to extend both RBFN and MLP models to functional data observed through noisy input-output pairs (tji,yji)(t_j^i,y_j^i), using basis expansion, functional principal component analysis, functional centering and reduction, and differential operators before applying neural models in coefficient space (0709.3641). In that formulation, the functional aspect is introduced through representation and preprocessing, while the downstream learner remains close to a classical neural network.

Subsequent work made the functional structure part of the network architecture itself. Wang et al. introduced a densely connected feed-forward network for scalar responses with multiple functional and scalar covariates, in which each first-layer neuron carries a dynamic functional weight βik(t)\beta_{ik}(t) and produces an activation from a functional inner product βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt (Thind et al., 2020). Thind, Multani and Cao developed the same idea for classification, coupling a functional first layer with a softmax output and cross-entropy training (Thind et al., 2020). Other strands then expanded the term further: shift-invariant functional CNN/MLP architectures for EEG (Heinrichs et al., 2023), continuous-hidden-layer function-on-function models (Rao et al., 2021, Rao et al., 2021), adaptive basis layers whose basis functions are themselves micro neural networks (Yao et al., 2021), neural functionals on weight space via Transformers (Zhou et al., 2023), and fully connected networks with a measure-integration layer for distribution regression (Shi et al., 2023).

A recurring source of confusion is that the abbreviation “FNN” does not denote a single canonical model. In the cited literature it names several related constructions that all modify the network so that functional structure is handled explicitly rather than discarded at preprocessing time. This suggests that FNN is best read as a family of architectures rather than a single fixed design.

2. Canonical scalar-output FNNs with functional covariates

The best-known scalar-on-function formulation uses a standard feed-forward network whose first hidden layer accepts functional covariates xk(t)x_k(t) and optional scalar covariates zjz_j. For neuron ii in layer 1, the activation is

vi(1)  =  g ⁣(k=1KTβik(t)xk(t)dt  +  j=1Jwij(1)zj  +  bi(1)),v_i^{(1)} \;=\; g\!\Bigl(\sum_{k=1}^K \int_{\mathcal T}\beta_{ik}(t)\,x_k(t)\,\mathrm{d}t \;+\;\sum_{j=1}^J w_{ij}^{(1)}\,z_j\;+\;b_i^{(1)}\Bigr),

with u(st)u(s-t)0 an activation such as ReLU or sigmoid, u(st)u(s-t)1 ordinary scalar weights, and u(st)u(s-t)2 biases. After this functional layer, the network proceeds through one or more ordinary dense layers and produces a scalar output u(st)u(s-t)3 for regression or class logits for classification (Thind et al., 2020, Thind et al., 2020).

Because u(st)u(s-t)4 is infinite-dimensional, it is approximated in a finite basis,

u(st)u(s-t)5

Substitution yields

u(st)u(s-t)6

where the quantities u(st)u(s-t)7 are precomputed numerically, for example by Simpson’s rule (Thind et al., 2020). The functional input therefore enters the network as a learned linear projection of the curve, but the coefficients are tied so as to define a smooth weight function over the domain.

In classification-oriented versions, the deeper layers are purely multivariate,

u(st)u(s-t)8

followed by logits

u(st)u(s-t)9

softmax probabilities

L2L^20

and the decision rule L2L^21 (Thind et al., 2020). Relative to naive discretization, the key distinction is that the first layer parameterizes how the network “looks” across the continuum.

3. Major architectural variants

The literature now includes several distinct FNN families, which differ primarily in whether they reduce functions to coefficients immediately, preserve function-valued hidden states, or generalize the notion of “functional input” to measures or neural-network weights.

Variant Defining mechanism Representative paper
Functional preprocessing + classical RBFN/MLP Basis expansion, fPCA, centering/reduction, or differential operators produce coefficient vectors L2L^22 for standard neural models (0709.3641)
Functional-input first layer First-layer neurons use L2L^23, then standard dense layers (Thind et al., 2020, Thind et al., 2020)
Functional MLP / functional CNN Hidden layers output functions; shift-invariance enforced by L2L^24 (Heinrichs et al., 2023)
FDNN / FBNN or FFDNN / FFBNN Continuous hidden layers with weight surfaces L2L^25, either learned directly or via basis coefficients (Rao et al., 2021, Rao et al., 2021)
Adaptive basis FNN Basis Layer with nodes L2L^26, learned end-to-end (Yao et al., 2021)
Distribution-input FNN Measure-integration layer L2L^27 inserted into a ReLU network (Shi et al., 2023)
Neural Functional Transformers Weight entries of a primary network are treated as tokens for a permutation-equivariant Transformer (Zhou et al., 2023)

In the shift-invariant functional CNN of “Functional Neural Networks: Shift invariant models for functional data with applications to EEG classification,” the hidden representation remains functional: L2L^28 with L2L^29 supported on (tji,yji)(t_j^i,y_j^i)0, so translations (tji,yji)(t_j^i,y_j^i)1 are handled by construction up to boundary effects (Heinrichs et al., 2023).

In FDNN/FBNN and their function-on-function extensions, each neuron is itself a continuous operator. A typical hidden unit has output

(tji,yji)(t_j^i,y_j^i)2

where (tji,yji)(t_j^i,y_j^i)3 is a weight surface and (tji,yji)(t_j^i,y_j^i)4 a bias function. The basis versions replace the surfaces by finite coefficient arrays in chosen bases such as B-splines, wavelets, or Fourier functions (Rao et al., 2021, Rao et al., 2021).

AdaFNN modifies the first-layer projection more radically by learning the basis functions themselves. Each basis node is a micro-MLP,

(tji,yji)(t_j^i,y_j^i)5

so the network jointly learns a parsimonious embedding (tji,yji)(t_j^i,y_j^i)6 and the downstream predictor (Yao et al., 2021).

The most abstract generalizations no longer take temporal curves as input. In distribution regression, the input is (tji,yji)(t_j^i,y_j^i)7, and the network inserts the expectation layer

(tji,yji)(t_j^i,y_j^i)8

after which ordinary ReLU layers continue on this integrated representation (Shi et al., 2023). In Neural Functional Transformers, the input is a set of weight tensors (tji,yji)(t_j^i,y_j^i)9 from a feedforward network, each scalar or channel-vector weight becomes a token, and self-attention is designed to be equivariant exactly to neuron-permutation symmetries (Zhou et al., 2023).

4. Estimation, preprocessing, regularization, and interpretability

Training procedures depend on the architectural family, but several components recur. Functional covariates are often smoothed and normalized before entering the network. In the EEG-oriented functional CNN/MLP framework, the observed multivariate time series are smoothed into continuous functions by local polynomial smoothing, derivatives may be estimated, and each smoothed function is normalized to zero mean and unit βik(t)\beta_{ik}(t)0-norm (Heinrichs et al., 2023). In preprocessing-oriented models, basis expansion on B-splines or Fourier functions, Cholesky rescaling of Gram matrices, fPCA, and differential operators turn sampled curves into coordinates compatible with neural training while preserving βik(t)\beta_{ik}(t)1 inner products and norms (0709.3641).

Optimization in first-layer functional-input FNNs is standard backpropagation through precomputed integrals. For scalar-response regression, one minimizes

βik(t)\beta_{ik}(t)2

over parameters βik(t)\beta_{ik}(t)3, and updates follow

βik(t)\beta_{ik}(t)4

with mini-batch Adam or stochastic gradient descent (Thind et al., 2020). Classification models use cross-entropy loss with optional weight decay, together with mini-batch gradient descent, learning-rate decay, early stopping, and dropout (Thind et al., 2020).

Continuous-hidden-layer models require functional gradients. In FDNN/FBNN and function-on-function FFDNN/FFBNN, Fréchet derivatives are derived for weight surfaces βik(t)\beta_{ik}(t)5 and bias functions, and numerical training discretizes βik(t)\beta_{ik}(t)6 and βik(t)\beta_{ik}(t)7 so that dot products are replaced by numerical integrals on a grid (Rao et al., 2021, Rao et al., 2021). Regularization can include weight decay, dropout, early stopping, direct low-dimensional basis truncation, and roughness penalties such as

βik(t)\beta_{ik}(t)8

for first-layer weight functions or

βik(t)\beta_{ik}(t)9

for continuous hidden layers (Thind et al., 2020, Rao et al., 2021).

Interpretability is one of the distinguishing claims of these models. Because the first-layer weights are themselves smooth functions, practitioners can visualize βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt0 across epochs, or average across neurons via

βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt1

The resulting peaks, valleys, and zero-crossings can be read analogously to a classical functional linear coefficient, but they are learned within a nonlinear network. Reported behavior includes validation error plateauing after approximately 100 epochs and βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt2 settling into a stable shape (Thind et al., 2020).

5. Theoretical properties

Several FNN lines are accompanied by explicit approximation or generalization guarantees. The classification-oriented functional-input architecture is argued to retain the expressive power of a fully connected network: by Csáji-type arguments and a Fubini-projection trick, the model is described as having universal approximation capacity while using basis-projected functional inputs (Thind et al., 2020).

AdaFNN provides a more direct consistency statement. If the target map factorizes as

βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt3

where βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt4 is linear and continuous and βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt5 is continuous, then under accurate quadrature and sufficient width/depth of the micro-net basis nodes and downstream network, for any βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt6 there exists a parameter choice such that

βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt7

The same work also states a generalization-error result for stochastic gradient descent under Lipschitz and compactness assumptions (Yao et al., 2021).

For distribution regression, the input-space theory is more explicit. The hypothesis class augments a ReLU network with a measure layer, and constructive approximation theorems show that ridge-type functionals and more general composite-polynomial functionals can be approximated at rate βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt8 by networks of types βik(t)xk(t)dt\int \beta_{ik}(t)x_k(t)\,dt9 and xk(t)x_k(t)0, respectively. A two-stage error decomposition—reflecting both the sampling of distributions and the sampling from each distribution—then yields almost-optimal learning rates up to logarithmic factors, with

xk(t)x_k(t)1

under the stated sample-size conditions (Shi et al., 2023).

Neural Functional Transformers add a different type of theory: their weight-space attention construction is paired with a minimal-equivariance theorem. The attention pattern—rows, columns, and a global term, plus a learned per-layer position encoding—is proved to be equivariant exactly to the neuron-permutation group xk(t)x_k(t)2 and to no larger subgroup of permutations (Zhou et al., 2023). This is a structural guarantee rather than an approximation result, but it addresses a central identifiability issue in neural functionals on weight space.

6. Empirical performance, software, and limitations

Empirical evaluations span regression, classification, function-on-function prediction, EEG decoding, chemometrics, environmental data, and neural-network weight-space tasks.

Setting Reported result Paper
Bike rentals, daily count from hourly temperature curves Cross-validated MSPE xk(t)x_k(t)3, xk(t)x_k(t)4; baselines had xk(t)x_k(t)5 in xk(t)x_k(t)6 (Thind et al., 2020)
Tecator spectroscopy, fat prediction Six-layer FNN with approximately 4,000 parameters achieved normalized test-error xk(t)x_k(t)7 (Thind et al., 2020)
Canadian weather, precipitation from daily temperature Leave-one-out MSPE xk(t)x_k(t)8, xk(t)x_k(t)9 (Thind et al., 2020)
EEG classification Best FNN achieved approximately zjz_j0 accuracy with approximately zjz_j1k parameters on BCI Competition IV 2A; in sliding-window classification FNN(40) achieved zjz_j2 accuracy versus EEGNet’s zjz_j3 (Heinrichs et al., 2023)
Spectrographic and phoneme classification Wine zjz_j4, orange juice zjz_j5, fungi zjz_j6, phoneme zjz_j7 (Thind et al., 2020)
INR classification with Neural Functional Transformers MNIST zjz_j8 versus zjz_j9, FashionMNIST ii0 versus ii1, CIFAR-10 ii2 versus ii3, up to ii4 (Zhou et al., 2023)
FuncNN package case studies Gasoline data tuned MSPE approximately ii5; tecator classification accuracy approximately ii6 on hold-out test (Thind et al., 2020)

Simulation evidence is equally prominent. In scalar-on-function regression, FNNs were reported to recover the true ii7 comparably to a functional linear model when the true link is linear, and far more accurately under exponential, logistic, and log links; across 100 replicates in four nonlinear scenarios they consistently achieved or rivaled the best MSPE against multivariate methods such as MLR, LASSO, random forests, boosting, and PPR as well as standard functional approaches (Thind et al., 2020). In the classification setting, three simulated designs with 150 replicates each showed lower MSPE for FNN than both a standard functional linear model and a conventional neural network on raw discretized curves (Thind et al., 2020). FDNN/FBNN and FFDNN/FFBNN studies likewise reported superior out-of-sample RMSE in increasingly nonlinear data-generating regimes and gains on Tecator, Berkeley growth curves, TIMIT phoneme data, electricity demand, and bike rentals (Rao et al., 2021, Rao et al., 2021).

Software support has concentrated in R on top of Keras. The regression paper announced a forthcoming R package built on Keras for general use (Thind et al., 2020). “FuncNN: An R Package to Fit Deep Neural Networks Using Generalized Input Spaces” described an R library presented as the first such package in any programming language, with user-facing functions including fnn.fit, fnn.predict, fnn.fnc, fnn.cv, and fnn.tune, plus diagnostics such as training-history plots and estimated average coefficient functions ii8 (Thind et al., 2020).

Limitations are reported consistently across the literature. Additional hyperparameters—basis size, hidden layers, neurons, activation functions, regularization, and learning-rate schedules—require careful tuning; training is slower than simple functional regression; stochastic initialization can introduce variance in ii9; and overfitting remains a concern when models are deep and sample sizes are limited (Thind et al., 2020, Thind et al., 2020). Some models depend heavily on basis selection, whereas others such as AdaFNN are motivated precisely by the inadequacy of fixed, a priori bases for task-relevant variation (Yao et al., 2021). Another common misconception is that FNNs are simply ordinary MLPs fed discretized curves. The published formulations show otherwise: the defining mechanisms are architectural and operator-theoretic, not merely representational, and may involve functional inner products, continuous neurons, convolutional weight functions, adaptive bases, measure integration, or symmetry-preserving attention (Heinrichs et al., 2023, Shi et al., 2023, Zhou et al., 2023).

Taken together, the literature positions Functional Input Neural Networks as a broad interface between FDA and deep learning. Their central contribution is to preserve the structure of continuous or function-like inputs inside the network itself, thereby combining nonlinear predictive modeling with smoothness, equivariance, or interpretability constraints that are native to the underlying data domain.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Functional Input Neural Networks (FNN).