arXiv:2609.05846stat.MLSep 2026

Manuscript Offprint

arXiv:2609.05846

Functional Attentive Interpretable Regression

Haixu Wang, Tianyu Guan, Jiguo Cao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In function-on-function regression, the coefficient surface β(s,t)\beta(s,t) may exhibit complex support structure—from localized patches to global patterns such as disconnected regions, bands, or rings—where effect similarity does not align with Euclidean proximity. Projection-based methods that rely on fixed basis expansions can obscure such structure, while direct smoothing approaches risk oversmoothing the surface and its boundaries. We propose Functional Attentive Interpretable Regression (FAIR), which represents β(s,t)\beta(s,t) directly through coordinate features and uses self-attention to learn effect-adaptive neighborhoods, enabling information sharing at both local and global scales. A scalar compression network maps these learned representations to the coefficient surface. Sparsity and smoothness penalties applied over these neighborhoods promote localized support with coherent boundaries. We establish a sieve equivalence to tensor-product spline spaces and derive convergence rates. Simulations and applications to oceanographic and hydrological data demonstrate that FAIR recovers support geometry more accurately than existing methods while achieving superior prediction, particularly under sparse sampling.

Keywords: Function-on-function regression, functional data analysis, coefficient surface estimation, attention mechanism, interpretable machine learning

1 Introduction

In function-on-function regression, a central modeling goal is to recover an interpretable coefficient surface β(s,t)\beta(s,t) in

Y(t)=∫SX(s) β(s,t) ds+ε(t),Y(t)=\int_{S}X(s)\,\beta(s,t)\,ds+\varepsilon(t),

because β(s,t)\beta(s,t) localizes how the predictor XX influences the response YY across the input and response domains. In many applications, the effect is not diffuse; instead, β(s,t)\beta(s,t) is supported on structured regions whose geometry can be irregular or complex. Figure 1 gives a representative example in which the active region forms an annulus embedded in a bivariate domain. Throughout the work, we will let the active region correspond to where the surface coefficient is non-zero. Such patterns are challenging for procedures that borrow strength purely through Euclidean proximity in (s,t)(s,t)-space: points can be spatially close yet belong to different effect regimes, while points far apart can share similar effects. Motivated by this observation, we introduce an attention-based space where the raw coordinates (s,t)(s,t) could be grouped not only based on the Euclidean distance but also on the effect of the coefficient β(s,t)\beta(s,t). This is done through the latent representation z(s,t)z(s,t), mapping raw coordinates to a data-driven form. As visualized in Figure 1, the representation separates nearby locations with distinct coefficient values while bringing together distant locations with similar effects, facilitating the recovery of complex, long-range structure in β(s,t)\beta(s,t). Furthermore, our goal is to retain the scientific interpretability of the linear coefficient surface while achieving competitive predictive performance.

A large body of work reduces functional predictors and/or responses to low-dimensional score vectors via basis representations and then performs multivariate regression. Functional data are projected onto fixed bases (splines, polynomials), empirical bases (functional principal component analysis, FPCA), or data-adaptive/penalized spaces (e.g., reproducing kernel

Figure

Figure

Figure 1: Motivation for an attention-based representation in function-on-function regression. (a): the true coefficient surface β(s,t)\beta(s,t) with annular support. (b): evaluation points in the input domain (s,t)(s,t) colored by β(s,t)\beta(s,t). (c): the corresponding learned representations z(s,t)\mathbf{z}(s,t), projected onto the first two principal components for visualization and colored by the same β(s,t)\beta(s,t) values. Hilbert space, RKHS). The surface coefficient is then reconstructed as a tensor product of weighted basis functions.

Within this paradigm, FPCA-based methods are among the most widely used. Regression on univariate or multivariate functional principal component scores has been studied by Yao et al. (2005) and Chiou et al. (2016); Müller and Stadtmüller (2005) extends this idea to generalized functional linear models, and Hullait et al. (2021) addresses robustness of FPCA-based regression. Alternative projection strategies include reproducing kernel Hilbert space representations (Sun et al., 2018), partial least squares (Beyaztas and Shang, 2021), factor models (Hörmann and Jammoul, 2023), and investigations into optimal basis selection for projection (Luo and Qi, 2017). Faraway (1997) proposes a multiple-regression methodology based on discretized functional data. Extensions to function-on-function regression with additional scalar covariates are considered by Wang et al. (2022), while James et al. (2009) and Goldsmith et al. (2011) discuss interpretation and penalization in functional regression, respectively. Meyer et al. (2015) proposes a Bayesian function-on-function regression model, Dette and Tang (2024) develops inference procedures for this setting, and Morris (2015) provides a comprehensive review.

These projection-based approaches are computationally efficient since the surface coefficient need not be estimated directly. However, the resulting estimate of β(s,t)\beta(s,t) is typically neither interpretable nor sparse: interpretability is limited by the choice of basis functions, there is no direct control over local patterns of the surface, and sparsity occurs in the projection coefficients rather than in the surface itself.

Another direction is to directly estimate the surface coefficient β(s,t)\beta(s,t) without resorting to projections of the functional data. These methods target β(s,t)\beta(s,t) via bivariate smoothing, including tensor products of univariate bases and related smoothers. Ramsay and Silverman (2005); Ferraty and Vieu (2006); Marx and Eilers (2005); Xiao et al. (2013) introduce surface estimation with tensor products of univariate basis functions. Lai and Schumaker (2007); Yu et al. (2019); Lai and Wang (2013) use spline smoothing over triangulations to estimate the surface coefficient, and the latter two apply the smoothing method over irregular supports and impose a smoothness penalty, respectively. Wood (2003) uses thin plate regression splines as a local smoother, and Baíllo and Grané (2009) discusses local linear regression. Direct surface estimation improves interpretability, but methods that borrow strength through Euclidean proximity in (s,t)(s,t) face a fundamental tension: global smoothness penalties may blur sharp boundaries, while increasing basis or mesh resolution to preserve boundaries introduces instability and tuning sensitivity. Across both paradigms, it remains challenging to obtain an estimator that (i) yields an explicitly interpretable coefficient surface, (ii) recovers localized regions of influence with coherent boundaries, and (iii) is not overly sensitive to hand-tuned basis or triangulation choices.

To address these challenges, we propose Functional Attentive Interpretable Regression (FAIR), a function-on-function regression framework that directly estimates an interpretable coefficient surface β(s,t)\beta(s,t) while learning an attention-based representation z(s,t)z(s,t) that defines effect-adaptive neighborhoods over the (s,t)(s,t) domain. Since both regularization and smooth-ing depend on the notion of neighborhood, learning z(s,t)z(s,t) provides a data-adaptive geometry under which these operations respect effect similarity rather than relying on Euclidean proximity alone. The main contributions are as follows.

First, we propose an attention-based representation z(s,t)z(s,t) that induces data-adaptive neighborhoods over the (s,t)(s,t) domain. These neighborhoods define how FAIR borrows strength across locations when estimating β(s,t)\beta(s,t), and they enter the regularization design by determining which locations should be encouraged to have similar coefficient values (smoothness) and which can be jointly shrunk toward zero (sparsity), enabling recovery of both localized and long-range structure with sharply bounded regions. As a result, FAIR reduces reliance on hand-designed triangulations or fixed tensor-product bases when β(s,t)\beta(s,t) exhibits irregular support. FAIR keeps the classical linear coefficient-surface interpretation, but replaces fixed geometric borrowing with learned similarity structure, while regularizing the surface itself rather than only basis coefficients.

Second, FAIR incorporates surface-level regularization to promote the interpretability of the estimated coefficient β(s,t)\beta(s,t). Specifically, we introduce a sparsity penalty that acts directly on β(s,t)\beta(s,t), encouraging localized support in the (s,t)(s,t) domain rather than sparsity only in basis or mesh coefficients. This facilitates the identification of regions where the effect of XX on YY is concentrated. In addition, we impose a smoothness penalty to suppress noisy variations and isolated speckle regions. That is, we are aiming for more coherent and connected active or non-active regions rather than having them scattered as small patches. Crucially, both sparsity and smoothness regularization are implemented with respect to a neighborhood structure induced by the learned representation z(s,t)z(s,t): locations that are close in representation space are jointly shrunk and encouraged to have similar coefficient values, so regularization respects effect similarity rather than relying solely on Euclidean proximity in (s,t)(s,t). This is a key advantage when the active region has complex geometry (e.g., annuli), where purely local smoothing over (s,t)(s,t) can blur sharp boundaries. Together, these penalties produce coefficient surfaces that are sparse yet stable, with interpretable boundary structure.

Third, we connect FAIR to classical spline-based smoothing through a sieve/approximation perspective. Viewing the FAIR function class as a flexible approximation space for bivariate coefficient surfaces yields consistency results and practical guidance on how model complexity (e.g., network width/depth and evaluation-grid resolution) should scale with sample size. Complementing this theory, we demonstrate in simulations and real data analyses that FAIR can recover localized regions with sharp boundaries (e.g., bands, rings, disks) while achieving predictive performance that is competitive with or better than existing baselines. We further assess the stability of the recovered surface under discretization and tuning choices.

The remainder of the article is organized as follows. Section 2 introduces Functional Attentive Interpretable Regression (FAIR) and the associated estimation procedure. Section 3 establishes the approximation properties and consistency results. Section 4 reports simulation studies assessing estimation and prediction performance. Section 5 presents real data analyses, and Section 6 concludes with a discussion of implications and future directions.