Papers
Topics
Authors
Recent
Search
2000 character limit reached

Pairwise KAN Matrix (PKAN)

Updated 18 April 2026
  • PKAN is a matrix-based tool for quantifying and visualizing nonlinear associations between variable pairs using learnable, spline-based mappings derived from Kolmogorov–Arnold theory.
  • It computes a normalized association strength score and extracts explicit functional forms via a streamlined, single-layer KAN approach for each input–target pair.
  • PKAN overcomes the limitations of linear and mutual information measures by revealing asymmetric, explicit nonlinear relationships for better feature selection and model interpretation.

The Pairwise KAN Matrix (PKAN) is a matrix-based tool for quantifying and visualizing nonlinear associations between ordered pairs of variables in a dataset. Derived from the theoretical foundations of the Kolmogorov–Arnold representation theorem and implemented using the Kolmogorov–Arnold Network (KAN) architecture, PKAN provides a color-coded summary of both the strength and the explicit functional form of each pairwise relationship, thereby addressing the limitations of classical linear and information-theoretic association measures (Fuente et al., 12 Dec 2025).

1. Theoretical Foundation

PKAN is grounded in the Kolmogorov–Arnold representation theorem, which asserts that any continuous multivariate function f(x1,,xn)f(x_1,\ldots,x_n) can be written as a finite superposition of continuous univariate functions:

f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)

where ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R} and Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R} are continuous functions. The KAN architecture provides a parametric, learnable analogue to these ϕij\phi_{ij} and Φi\Phi_i functions, typically using spline-based single-layer neural networks and training via standard prediction losses such as mean squared error.

PKAN specifically utilizes a simplified KAN, omitting the outer Φi\Phi_i layer and learning only a single univariate mapping for each input–target pair. The learned mapping Pij()ϕij()P_{ij}(\cdot)\approx \phi_{ij}(\cdot) characterizes the predictive relationship and the form of nonlinearity between xjx_j and xix_i.

2. Formal Definition

Given a set of f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)0 variables f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)1, PKAN constructs an f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)2 matrix where each entry f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)3 encodes the fit of a single-input single-output network predicting f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)4 from f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)5:

f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)6

Two outputs are obtained from each fit:

  • Functional form: The learned univariate f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)7, representing the explicit relationship.
  • Association strength: A normalized scalar f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)8 quantifying the degree to which f(x1,,xn)=i=12n+1Φi(j=1nϕij(xj))f(x_1,\ldots,x_n) = \sum_{i=1}^{2n+1} \Phi_i \left( \sum_{j=1}^n \phi_{ij}(x_j) \right)9 predicts ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}0.

Strength calculation involves:

  • Computing prediction loss ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}1 (e.g., MSE) on held-out data.
  • Converting ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}2 to a predictive strength score using the Nash–Sutcliffe Efficiency (NSE) or similar:

ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}3

  • Estimating the KAN attribute score ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}4 as the ratio of standard deviation of activation through ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}5 to the total at the node.
  • Calculating raw strength ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}6.
  • Rescaling ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}7 for all pairs to ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}8:

ϕij:RR\phi_{ij}:\mathbb{R}\rightarrow\mathbb{R}9

with Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}0 for diagonal elements.

3. Algorithmic Construction

PKAN computation follows these steps:

  1. Preprocessing: Optionally normalize each variable to Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}1.
  2. Model fitting: For each ordered pair Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}2 with Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}3, fit a univariate KAN mapping Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}4 via mean squared error minimization.
  3. Output computation:
    • Evaluate Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}5 on held-out data.
    • Compute Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}6 as per Liu et al.
    • Obtain Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}7.
  4. Normalization: Transform Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}8 to Φi:RR\Phi_i:\mathbb{R}\rightarrow\mathbb{R}9 as above.
  5. Storage: Record ϕij\phi_{ij}0 and the learned curve ϕij\phi_{ij}1 (sampled over a grid) for visualization.

The diagonal ϕij\phi_{ij}2 is set to ϕij\phi_{ij}3 and the identity function is stored for reference.

Step Operation Output
Preprocess Normalize ϕij\phi_{ij}4 (optional) Normalized variables
KAN Fit Train ϕij\phi_{ij}5 for ϕij\phi_{ij}6 Parameters ϕij\phi_{ij}7
Evaluate Compute ϕij\phi_{ij}8 Raw strength ϕij\phi_{ij}9
Normalize Convert Φi\Phi_i0 to Φi\Phi_i1 PKAN matrix Φi\Phi_i2
Visualize Store Φi\Phi_i3 curves Heatmap overlay

4. Visualization and Interpretation

PKAN is rendered as an Φi\Phi_i4 color-coded matrix:

  • Rows Φi\Phi_i5: target variables Φi\Phi_i6
  • Columns Φi\Phi_i7: input variables Φi\Phi_i8
  • Cell Φi\Phi_i9: color encodes Φi\Phi_i0 (white for Φi\Phi_i1, dark red for Φi\Phi_i2); a curve is overlaid to show Φi\Phi_i3

Interpreting a cell:

  • Color intensity (magnitude) indicates how strongly Φi\Phi_i4 alone predicts Φi\Phi_i5
  • Curve shape (form) reveals monotonicity, nonlinearity, symmetry, or injectivity
  • Directional asymmetry is manifest as Φi\Phi_i6 except for mutually injective mappings

5. Comparative Evaluation with Classical Metrics

PKAN provides a richer characterization compared to standard association measures:

  • Pearson correlation Φi\Phi_i7: Captures only linear, symmetric dependence; fails for nonlinear monotonic relationships (e.g., Φi\Phi_i8 on symmetric domains with Φi\Phi_i9).
  • Mutual information Pij()ϕij()P_{ij}(\cdot)\approx \phi_{ij}(\cdot)0: Detects nonlinearity and is symmetric, but unable to represent directionality or explicit function shape, and becomes computationally challenging as Pij()ϕij()P_{ij}(\cdot)\approx \phi_{ij}(\cdot)1 increases.
  • PKAN: Encodes strength (asymmetrically), explicit function form, and directionality. It remains robust to collinearity by isolating each predictor.

Empirical demonstrations include:

  • Quadratic/cubic: PKAN captures Pij()ϕij()P_{ij}(\cdot)\approx \phi_{ij}(\cdot)2, Pij()ϕij()P_{ij}(\cdot)\approx \phi_{ij}(\cdot)3 accurately in strength and learned curve; Pearson and MI miss essential features.
  • Heteroscedastic noise: PKAN scores track Pearson but with curve shape reflecting the true underlying relation.
  • Lagged sinusoids: PKAN recognizes cyclic structure and directionality, which Pearson and MI cannot fully recover.

PKAN thus provides both an interpretable score of association and direct visualization of the relationship, serving as a tool for pre-processing (feature selection, redundancy analysis), post-processing (model explanation), and discovery of physical patterning in data (Fuente et al., 12 Dec 2025).

6. Applications and Broader Significance

PKAN supports multiple stages in the model development workflow:

  • Exploratory data analysis: Rapid assessment of all pairwise relationships in high-dimensional data.
  • Feature selection and redundancy analysis: Identification of inputs with non-trivial, possibly nonlinear predictive value.
  • Physical insight: Visualization of explicit functional forms to guide scientific hypothesis formation.
  • Model explanation: Post hoc interrogation of black-box models via analogous association patterns.

Case studies, such as analysis on the CAMELS hydrology dataset and large-eddy simulations of river flow, corroborate the robustness, informativeness, and interpretability advantages of PKAN over prior approaches (Fuente et al., 12 Dec 2025).

Plausible implications: The combined strength-and-form rendering aids in domain-informed modeling and hypothesis-driven discovery, particularly under high-dimensional and collinear regimes where conventional statistics may obscure essential structure.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

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 Pairwise KAN Matrix (PKAN).