Papers
Topics
Authors
Recent
Search
2000 character limit reached

Group Rational KANs (GR-KANs)

Updated 11 November 2025
  • Group Rational KANs are neural architectures that tie rational-function activations across input groups, reducing computational overhead while preserving expressivity.
  • They integrate equivariant linear layers and gated rational activations to systematically enforce symmetry priors in both feed-forward and Transformer models.
  • GR-KANs deliver state-of-the-art performance in symmetry-critical tasks and medical imaging by achieving high data efficiency and parameter economy.

Group Rational Kolmogorov–Arnold Networks (GR-KANs) are a class of neural architectures that combine rational-function-based Kolmogorov–Arnold activation units with groupwise parameter sharing to deliver high expressivity, parameter efficiency, and systematic incorporation of symmetry priors in both conventional and Transformer-based deep learning models. GR-KANs generalize classical KANs by grouping input channels and tying the underlying nonlinear functions across each group, offering computational and statistical benefits relative to vanilla per-edge KAN parameterizations. By incorporating equivariant linear layers, gated rational activations, and explicit group decomposition, they provide a principled mechanism for encoding arbitrary matrix group symmetries within dense neural architectures.

1. Mathematical Foundations: From KANs to Group Rational KANs

Kolmogorov–Arnold Networks (KANs) realize the classical superposition theorem by learning a direct sum of univariate nonlinearities along each input-output “edge” in the feed-forward network. In their rational-function instantiation, each univariate function φ(x)\varphi(x) is parameterized as

φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}

where P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m, Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n (typically m=3,n=4m=3, n=4), and wRw\in\mathbb{R} is a learnable scalar weight.

In vanilla KANs, each input-to-output connection (or “edge”) maintains its bespoke rational map Fk,iF_{k,i}, resulting in O(dindout)O(d_{\text{in}} \cdot d_{\text{out}}) such maps per layer. GR-KANs introduce a grouping scheme: partitioning dind_{\text{in}} input channels into GG (typically φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}0) groups, and tying the rational basis function per group. For input φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}1, GR-KAN computes layer output φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}2 as

φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}3

where φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}4 indexes the assigned group for channel φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}5 and φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}6 is the rational base for that group.

This mechanism preserves the universal approximation property of rational KANs while substantially reducing the number of unique nonlinear activations and their associated computational overhead. It also serves as an inductive bias whereby channels deemed a priori similar—based on spatial, semantic, or learned criteria—share their nonlinear characteristics.

2. Grouping Strategies and Parameter Efficiency

The grouping mechanism in GR-KANs reduces both parameter count and inference-time floating-point operations. The standard approach partitions the φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}7 input dimensions into φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}8 groups of size φ(x)=wF(x)=wP(x)1+Q(x)\varphi(x) = w \cdot F(x) = w \cdot \frac{P(x)}{1 + |Q(x)|}9, assigning channels P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m0 to group 1, P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m1 to group 2, etc. Each group possesses a single set of rational coefficients P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m2, typically initialized with small Gaussians. Each “edge” from input to output retains its own scalar weight P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m3.

The resulting parameter allocation is as follows:

Component Vanilla KAN GR-KAN (G groups)
Rational params P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m4 P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m5
Linear weights (P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m6) P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m7 P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m8
Total P(x)=a0+a1x++amxmP(x) = a_0 + a_1 x + \dots + a_m x^m9 Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n0

At inference, the rational base function Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n1 is evaluated Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n2 times per group, rather than once per edge, with Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n3 rational op count per forward pass versus Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n4 for the vanilla KAN.

The grouping both regularizes the model and allows for practical deployment of rational-KAN activations in deep architectures such as Transformers, where the full cost of per-edge rational activations would be prohibitive.

3. Equivariance and Symmetry: Group-Equivariant Linear Layers

To encode invariance or equivariance to arbitrary matrix groups Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n5, GR-KANs extend the feed-forward structure by:

  • Using gated rational-spline activation functions that are scalar-valued and hence commute trivially with group action.
  • Replacing standard linear layers with Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n6-equivariant maps. Let Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n7 and Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n8 be real representation spaces of Q(x)=b1x++bnxnQ(x) = b_1 x + \dots + b_n x^n9. Linear operator m=3,n=4m=3, n=40 is m=3,n=4m=3, n=41-equivariant if

m=3,n=4m=3, n=42

These constraints can be encoded as a homogeneous linear system using the Kronecker product, whose null space yields an orthonormal basis m=3,n=4m=3, n=43 of intertwining operators; the most general equivariant m=3,n=4m=3, n=44 is a linear combination of these.

  • Introducing a lift layer to map raw data (in a trivial representation) into a direct sum of scalar and tensor representations of m=3,n=4m=3, n=45, so that subsequent layers operate in a symmetry-aware space.

The final architecture consists of stacked blocks, each comprising a group-gated rational activation and an equivariant linear transformation, with outputs projected to the desired target representation (such as an invariant scalar or equivariant tensor).

4. Implementation in Transformer Architectures

GR-KANs are deployed beyond feed-forward settings by integrating into self-attention architectures. In the UKAST design (Sapkota et al., 6 Nov 2025), the core enhancements occur in the Swin Transformer encoder, where the standard two-layer MLP (feed-forward network, FFN) is replaced by a GR-KAN block. The modified block workflow is:

  1. Residual convolution projection (3×3 Conv + BN + ReLU).
  2. Windowed-MSA (multi-head self-attention), layer-norm.
  3. GR-KAN (shared-group rational activation + linear), layer-norm, skip connection.
  4. Shifted-window MSA, layer-norm.
  5. Second GR-KAN, layer-norm, skip connection.

Group count m=3,n=4m=3, n=46 is typical (higher values yield marginal returns beyond m=3,n=4m=3, n=47). Polynomial orders in the rational basis are m=3,n=4m=3, n=48/m=3,n=4m=3, n=49 with Safe Padé Activation Unit implementation.

Training employs AdamW optimizer, batch size 24, cosine annealing learning rate schedule, and standard data augmentation (random crop, flips, rotations, Gaussian noise). Inference uses overlapping patch-based windows, making the design scalable for 2D/3D medical image segmentation.

5. Empirical Performance and Data Efficiency

Empirical analyses on scientific tasks with strong symmetry priors and on medical image segmentation corroborate the theoretical advantages of GR-KANs.

  • Particle scattering (wRw\in\mathbb{R}0 Lorentz invariance): Test MSE wRw\in\mathbb{R}1 with wRw\in\mathbb{R}2435K params (EKAN-wRw\in\mathbb{R}3), outperforming EMLP (test MSE wRw\in\mathbb{R}4, 450K params) by two orders on wRw\in\mathbb{R}5 samples.
  • Three-body dynamics (wRw\in\mathbb{R}6 equivariance): Test MSE wRw\in\mathbb{R}7 at 11K params, compared to wRw\in\mathbb{R}8 for MLP (100K params) and similar MSE for EMLP with 5× parameters.
  • Top-quark tagging (wRw\in\mathbb{R}9 invariance): EKAN-Fk,iF_{k,i}0 reaches Fk,iF_{k,i}176.9% accuracy at 34K params, vs EMLP’s 77.1% (133K) and MLP’s 69.3% (83K).
  • On four 2D/3D medical image segmentation benchmarks, UKAST with GR-KAN achieves or exceeds state-of-the-art Dice accuracy without increasing parameter count over SwinUNETR.
  • Replacing MLP with GR-KAN (without RC): GFLOPs Fk,iF_{k,i}2 (Fk,iF_{k,i}3 parameters).
  • Data efficiency: Under 10%/25%/50%/100% of training data, UKAST consistently outperforms SwinUNETR and KAN-based variants (UKAT, U-KAN).
  • Ablation studies: ViT + GR-KAN yields increases of Fk,iF_{k,i}4 (2D), Fk,iF_{k,i}5 (3D) mean Dice over ViT + MLP; SwinT + GR-KAN yields Fk,iF_{k,i}6/Fk,iF_{k,i}7 gains.

Collectively, these results demonstrate that GR-KANs enable state-of-the-art performance in both symmetry-aware and data-scarce regimes with minimal computational penalty.

6. Analysis, Limitations, and Prospects

GR-KANs inherit the expressivity of rational-function activations, capable of approximating sharp transitions and mild singularities more efficiently than polynomial or spline basis alone. By tying nonlinear functions within groups, they reduce overfitting risk and enhance data efficiency, especially in scenarios where learning a full matrix of rational functions is unnecessary or impractical.

The computational benefits—O(Fk,iF_{k,i}8) reduction of rational ops compared to vanilla KANs—make them suitable for large-scale, multi-head, or deep architectures. In practice, group assignments are static (block-wise); a plausible implication is that input-dependent or learned grouping could allocate capacity more efficiently, suggesting a direction for future work.

Current designs typically fix rational orders (Fk,iF_{k,i}9, O(dindout)O(d_{\text{in}} \cdot d_{\text{out}})0); adaptive per-group order selection could further enrich the representable function classes. Combining group rational bases with attention mechanisms may advance the synergy between grouping and learned gating.

7. Summary and Outlook

Group Rational KANs provide a systematic architecture merging the compositional nonlinearity of rational-based KANs with parameter and computational efficiency via channel grouping, alongside rigorous enforcement of group-theoretic equivariance. Their demonstrated impact on scientific data analysis and medical imaging, resource savings, and formal symmetry guarantees suggest substantial utility for future equivariant models across data modalities and architectures. Extensions to dynamic grouping, adaptive basis order, and hybrid attention are promising vectors for ongoing research.

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

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 Group Rational KANs (GR-KANs).