---
title: Symmetry-Adapted KANs
url: https://www.emergentmind.com/topics/symmetry-adapted-kans
type: topic
---

# Symmetry-Adapted KANs

Symmetry-Adapted Kolmogorov–Arnold Networks (KANs) are a class of machine learning frameworks designed to respect and efficiently encode arbitrary group symmetries—such as rotations, Lorentz transformations, and permutations—within neural architectures. In particular, recent developments have focused on two strands: (i) the extension of spline-based Kolmogorov–Arnold Networks to incorporate equivariance under arbitrary matrix groups, yielding so-called Equivariant KANs (EKANs) [2410.00435], and (ii) the use of symmetry-adapted density-correlation features for atomistic and quantum chemical property prediction, where the model outputs themselves are matrices or tensors with defined transformation rules [2109.12083]. These approaches systematically exploit symmetry priors to maximize data efficiency, generalization, and physical faithfulness in scientific machine learning.

## 1. Mathematical Construction of Equivariant Kolmogorov–Arnold Networks

EKANs generalize conventional KANs by ensuring each stage of the network is equivariant under a user-specified matrix group \( G \). The central architectural motif comprises three components:

- **Gated spline nonlinearities:** Pre-activation vectors \( v_{gi} \) are partitioned as \( (\oplus_{a=1}^{c_i} s_{i,a}) \oplus (\oplus_{a=1}^{A_i} v_{i,a}) \oplus (\oplus_{a=1}^{A_i} s'_{i,a}) \), where \( s_{i,a} \) are scalars, \( v_{i,a} \in T(p_{i,a},q_{i,a}) \) are tensors transforming under irreducible representations \( \rho_{i,a}(g) \), and \( s'_{i,a} \) are gate scalars for each non-scalar channel. The post-activation is
  $$
  v_{m,b} = \bigl[\oplus_{a=1}^{c_i} s_{i,a} B_b(s_{i,a})\bigr] \oplus \bigl[\oplus_{a=1}^{A_i} v_{i,a} B_b(s'_{i,a})\bigr]
  $$
  for each spline basis \( B_b \); a final channel applies the SiLU function. This construction ensures that the nonlinearity commutes with the group action (Theorem 3.1), i.e.,
  $$
  \forall g\in G,~ \rho_m(g) f(v_{gi}) = f(\rho_{gi}(g) v_{gi}).
  $$
- **Equivariant linear layers:** The weights \( W = [W_0, \ldots, W_{G+k}] \) must satisfy for all \( g \):
  $$
  \forall b,\quad \rho_{go}(g) W_b = W_b \rho_i(g).
  $$
  This reduces to a linear nullspace constraint on \( \mathrm{vec}(W_b) \) via a constraint matrix \( C \) formed from infinitesimal and discrete generators of \( G \). The nullspace is computed via SVD, and random weights are projected onto this subspace, exactly enforcing equivariance [2410.00435].
- **Lift layers:** The initial feature space \( U_i \) is mapped to the input space \( U_{gi} \) of the first EKAN layer by an equivariant linear "lift". Each tensor block in \( U_i \) results, via this lift map, in an associated gate scalar, so the total map maintains group equivariance by constraint.

The composition of lift, gated nonlinear, and equivariant linear layers guarantees that the entire architecture satisfies
$$
\mathrm{EKAN}(\rho_i(g)x) = \rho_o(g)\mathrm{EKAN}(x).
$$

## 2. Symmetry-Adapted N-center Density-Correlation Features for Atomistic Properties

In molecular and materials modeling, predicting quantities (e.g., Hamiltonian matrix elements) that transform nontrivially under rotations, translations, and permutations requires symmetry-adapted features. The so-called KAN features of [2109.12083] provide an explicit recipe:

- **Raw feature construction:** For a structure with atomic positions \( \{r_j\} \), the \( N \)-center feature is
  $$
  \prod_{\alpha=1}^N g(x_\alpha - r_{i_\alpha}) \times \prod_{\beta=1}^\nu\sum_{j_\beta}g(x'_\beta - r_{j_\beta})
  $$
  where \( g \) is a Gaussian of width \( \sigma_g \).
- **Translation invariance:** Achieved by integrating over global translation, leading to features expressed relative to a central atom.
- **O(3) symmetrization:** Features are averaged over \( R\in O(3) \) and expanded in real spherical harmonics and radial basis functions, yielding tensors with explicit angular-momentum labels:
  $$
  c^{(i)}_{nlm} = \sum_j \int d^3x\,\varphi_n(\|x\|) Y_{lm}(\hat x) g(x-(r_j-r_i))
  $$
- **Permutation symmetrization:** Index symmetries are imposed explicitly, symmetrizing or antisymmetrizing as relevant for the physical property.
- **Learning matrix-valued quantum properties:** The atomic-orbital Hamiltonian \( \langle i\tilde n\tilde l\tilde m|\hat H|i'\tilde n'\tilde l'\tilde m'\rangle \) is decomposed into symmetry-adapted blocks by coupling spherical harmonic indices into irreducible \( (\lambda,\mu) \) multiplets. Linear models (ridge regression) or symmetry-adapted Gaussian process regression (SA-GPR) are trained on the resulting feature blocks, block-diagonalized by symmetry.

## 3. End-to-End Architecture and Workflow

Symmetry-Adapted KANs present an end-to-end flow:

1. **Data preprocessing:** Input raw features are mapped into a group-representation space (\( U_i \)) reflecting the symmetry content of the problem.
2. **Lift operation:** Data is mapped to \( U_{gi} \), introducing appropriate gate scalars per tensorial component for the correct nonlinear gating structure.
3. **Stack of equivariant layers:** Each layer alternates a gated spline equivariant nonlinearity with an SVD-projected equivariant linear map, ensuring exact group equivariance at every stage.
4. **Final projection:** After multiple layers, the final output contains both physical feature channels and gate scalars, from which the latter are dropped to yield the final, symmetry-adapted prediction.

For atomistic-property prediction, feature construction, contraction (e.g., via PCA or the NICE contraction), and block-diagonalization by irreducible labels are key elements [2109.12083].

## 4. Empirical Performance and Benchmarks

EKANs have demonstrated substantial gains in sample complexity and parameter efficiency across physics-inspired tasks [2410.00435]. Typical results include:

| Task                         | Best EKAN Test MSE or Accuracy | Baseline Models Compared                    | Relative Parameter Efficiency      |
|------------------------------|--------------------------------|---------------------------------------------|-----------------------------------|
| Particle scattering O(1,3)   | $3.81\times 10^{-6}\,$         | MLP, KAN, EMLP-O(1,3)                       | Outperforms EMLP, MLP by 1-3 orders |
| Three-body O(2)-equivariance | $4.84\times 10^{-4}$           | MLP, KAN, EMLP-SO(2)                        | Beats others at $10^{4.5}$ params  |
| Top-quark tagging O(1,3)     | 76.93%                         | MLP, KAN, EMLP-O(1,3)                       | 26% of EMLP param count           |

EKAN achieves the lowest test MSEs in Lorentz-invariant scattering and O(2)-equivariant three-body problems with drastically fewer parameters versus existing architectures. In top-quark tagging, EKAN attains comparable or superior accuracy while using only a fraction of the parameters. Notably, vanilla KANs (without symmetry adaptation) fail to outperform MLPs in such equivariant tasks, confirming the necessity of symmetry enforcement in these domains [2410.00435].

For N-center KAN features, benchmarks include water molecule and ethanol trajectory datasets (full-matrix RMSE $\lesssim 10$ meV, eigenvalue RMSE $\lesssim 1$ meV in small training regimes), and the QM7b-CHNO chemical space (eigenvalue MAE $\sim0.15$–0.3 eV after kernel learning and PCA reduction) [2109.12083].

## 5. Practical Implementation and Guidelines

Key design and implementation principles for Symmetry-Adapted KANs:

- **Group specification:** The user defines the relevant matrix group \( G \) (e.g., O(3), SO(2), O(1,3)), the associated irreducible representations for each feature channel, and accompanying generators for constraint enforcement.
- **Spline and basis function selection:** Spline activations are used as nonlinearities, with the number of basis functions ($G+k+1$) set to control expressivity.
- **Constraint solution:** The SVD of the constraint matrix $C$ yields a basis for all allowed equivariant linear maps; all weights are projected onto this space to preserve equivariance exactly.
- **Computational optimizations:** For N-center density-correlation features, the "density trick" exploits factorization to reduce computational cost from $\mathcal{O}(J^2 n_{\text{max}}^2 l_{\text{max}}^2)$ to $\mathcal{O}(J n_{\text{max}} l_{\text{max}})$ per environment.
- **Feature reduction:** After generating full sets of high-dimensional equivariant features, iterative PCA or NICE contraction is used to retain only the leading components per symmetry channel, trading off memory footprint against information retention [2109.12083].
- **Validation:** Equivariance is validated by applying group actions (rotations, permutations) to both input and output, confirming invariance or equivariant transformations up to numerical precision.

## 6. Connections and Applications

Symmetry-Adapted KANs integrate the expressive capabilities of spline-based KANs with the systematic equivariant linear weight construction of EMLP frameworks. Applications include:

- **Physics regression tasks:** Modeling Lorentz-invariant particle scattering, O(2)-equivariant three-body problems, and hadronic jet classification.
- **Quantum chemistry:** Prediction of matrix-valued Hamiltonians, eigenvalues, and spectra in atom-centered orbital bases, requiring relationships under O(3) and permutation symmetries [2109.12083].
- **Materials science and condensed matter:** Construction of symmetry-adapted descriptors for tensorial observables, such as Hamiltonian blocks, two-center integrals, and J-couplings.

The exact preservation of physical symmetries results in physically consistent predictions, improved sample efficiency, and often dramatic reductions in required parameter count to reach baseline or superior accuracy.

## 7. Significance and Outlook

The unification of universal function approximation (via KANs) with exact group equivariance (via gating and SVD-projected linears) marks a significant advance for scientific machine learning. In regimes where high-fidelity, symmetry-respecting regression or classification is critical, such as high-energy physics, quantum chemistry, and molecular modeling, these architectures afford robust, interpretable solutions. Empirical evidence indicates that explicit symmetry adaptation is essential for leveraging the full modeling power of spline-based networks in structured scientific tasks [2410.00435, 2109.12083]. A plausible implication is that further generalization to larger groups, or to higher-order tensor-valued targets (as in higher-body interactions), will benefit from the modular, representation-theoretic formalism of the Symmetry-Adapted KAN framework.

Source: https://www.emergentmind.com/topics/symmetry-adapted-kans