Multivariate KAN Contribution Matrix
- MKAN is a nonlinear feature ranking tool using Kolmogorov–Arnold Networks to map individual input contributions in multivariate prediction tasks.
- It computes smooth univariate transforms and normalized scores to reveal both the functional form and magnitude of each feature's influence.
- Empirical applications, including hydrological studies, demonstrate MKAN’s ability to enhance model parsimony and interpretability over linear methods.
The Multivariate KAN Contribution Matrix (MKAN) is a nonlinear feature‐ranking and interpretability tool constructed using Kolmogorov–Arnold Networks (KANs). MKAN enables researchers to quantify, visualize, and interpret the relative contributions and functional entry forms of multiple input variables in predicting target variables in high-dimensional, potentially collinear datasets. Unlike marginal or pairwise analysis, MKAN quantifies each input’s unique predictive utility in the joint multivariate context, supporting both more robust feature selection and deeper physical insight in model development workflows (Fuente et al., 12 Dec 2025).
1. Definition and Role
MKAN is designed to summarize both the shape of each input-to-target transformation and the magnitude of its contribution in a multivariate nonlinear prediction setting. For a set of variables, each MKAN row is associated with a chosen target , and each column with an input (excluding as an input to its own prediction). Each cell encodes:
- The univariate function , as learned by the KAN for predicting , which expresses how is mapped to its effect on the target under the influence of all other variables.
- A scalar contribution score quantifying the importance of in predicting given all other inputs.
By summarizing these properties, MKAN enables automated, nonlinear feature ranking, redundancy detection, and parsimony-driven selection—tasks beyond the capacity of linear correlation or information-theoretic metrics.
2. Mathematical Construction
MKAN employs the simplest KAN architecture, in which the predictive mapping from non-target inputs to a selected target 0 takes the form:
1
where each 2 is typically a cubic spline or other smooth basis function, jointly optimized to minimize a regularized empirical loss (e.g., mean-square error).
The relative contribution of each 3 to 4 is quantified by an “attribute score” 5, defined as:
6
where 7 is an effective connectivity weight accounting for KAN network topology (see Liu et al. 2024 for details). Within each matrix row, 8 values are then linearly rescaled to 9 (min–max normalization). To reflect actual predictive skill, these are multiplied by a held-out performance metric (e.g., row-wise Nash–Sutcliffe or Kling–Gupta efficiency 0), yielding the final contribution score:
1
3. Computational Algorithm
The MKAN is constructed through the following algorithmic workflow:
| Step | Description | Notes |
|---|---|---|
| 1 | For each target 2, define input set 3 | All variables except 4 considered as inputs |
| 2 | Train a one-layer KAN with input-to-target univariate transforms 5 | Regularized to prevent overfitting |
| 3 | For each input 6, 7 | |
| 3a | Compute 8 (edge-contribution score) | Uses std-ratio and connectivity 9 |
| 3b | Normalize all 0 in the row to 1 | Min–max normalization |
| 3c | Calculate 2, the prediction skill for 3 | Held-out data |
| 3d | Set 4 | |
| 4 | Store 5 in cell 6 | Visualization included |
| 5 | Repeat for all 7 |
This results in an 8 matrix where each cell provides both a quantitative ranking and an interpretable, learned transformation.
4. Visualization and Interpretation
Each entry 9 of the MKAN contains:
- A color-coded background whose intensity reflects 0 (nearly black for 1, near-white for 2).
- An overlaid sketch of 3, conveying both sign and nonlinearity (e.g., monotonic, threshold, or complex behavior).
Key interpretive principles:
- Sign: The direction of 4 determines in which regions increases in 5 drive 6 up or down.
- Magnitude: Steepness in 7 denotes local sensitivity, but overall 8 encodes relative multivariate predictive value.
- Column comparison (within-row): Reveals which predictors most matter for a given target.
- Row comparison (within-column): Indicates which targets are most sensitive to a specific input.
5. Practical Considerations
- Computational Scaling: Training 9 independent KANs scales as 0, where 1 is the cost of fitting a single shallow network. Owing to exclusively univariate transforms, 2 is modest.
- Hyperparameters: The number of spline knots or basis functions must be chosen. Overparametrization can cause overfitting, while underparametrization can mask subtleties. Cross-validation on prediction skill 3 is advised.
- Collinearity: MKAN downweights redundant features naturally—when two inputs are collinear, the most informative or simplest (in terms of 4 complexity) dominates, and the other’s 5 approaches zero.
- Comparison to Linear Methods: MKAN captures both nonlinear effect strength and detailed functional form. Empirical benchmarks indicate that KAN-based rankings achieve parsimony and model skill unattainable via Pearson correlation or mutual information: for instance, hydrological prediction experiments attain the same model accuracy with 2–6 fewer features than Pearson‐based rankings.
6. Empirical Examples
Two illustrative cases from (Fuente et al., 12 Dec 2025) demonstrate MKAN’s utility:
- Synthetic Nonlinear Trio: For data 6, 7, 8 with 9, the MKAN row for 0 (target) yields 1 (with 2) and 3, indicating 4 supplies no independent information beyond 5 for 6.
- CAMELS Hydrology Dataset: Predicting 5th-percentile streamflow, MKAN ranks “frequency of dry days” and “mean slope” highest (7 and 8, respectively), whereas Pearson correlation misranks these monotonic effects. A random forest trained on the top 12 MKAN-ranked features achieves 9, exceeding the corresponding Pearson-based subset.
7. Significance and Research Context
MKAN enables fully nonlinear, interpretable, and multivariate attribution of feature influence in scientific datasets. The matrix structure and integrated curve visualizations support both human‐guided and automated scientific workflows, including physical insight extraction, redundancy analysis, and model parsimony validation. Empirical findings show improved robustness and interpretability over traditional correlation and mutual information tools, particularly in domains with hidden nonlinear mechanisms or substantial collinearity (Fuente et al., 12 Dec 2025).