FlashKAN: B-Spline KANs via Truncated Power Form

arXiv cs.LG Papers

Summary

FlashKAN proposes a method to accelerate Kolmogorov-Arnold Networks by replacing Cox-de Boor recursion with truncated power form for B-spline evaluation, providing a fused GPU implementation and an open-source package.

arXiv:2609.01956v1 Announce Type: new Abstract: Kolmogorov-Arnold Networks (KANs) place learnable B-spline activations on network edges rather than fixed activations on nodes. The standard Cox-de Boor recursion evaluates these activations through k sequential passes for degree-k splines, consuming over 90% of forward-pass time. FlashKAN replaces this recursion with the truncated power form, a classical result from approximation theory that expresses each uniform cubic B-spline as five (x)_+^3 terms at shifted knot positions. This paper makes three contributions: (1) a torch.compile-fused implementation that collapses these operations into a single GPU kernel, eliminating all recursion, span lookup, and scatter-gather operations; (2) a bounded-coordinate stabilization that clamps the normalized input to [0, k+1], preventing the catastrophic cancellation that historically motivated the Cox-de Boor recursion; and (3) a production-ready, open-source package (pip install flashkan) that serves as a drop-in replacement for existing KAN layers.
Original Article
View Cached Full Text

Cached at: 09/03/26, 06:13 AM

# FlashKAN: B-Spline KANs via Truncated Power Form
Source: [https://arxiv.org/html/2609.01956](https://arxiv.org/html/2609.01956)
###### Abstract

Kolmogorov\-Arnold Networks \(KANs\) place learnable B\-spline activations on network edges rather than fixed activations on nodes\. The standard Cox\-de Boor recursion evaluates these activations throughkksequential passes for degree\-kksplines, consuming over 90% of forward\-pass time\.

FlashKAN replaces this recursion with the truncated power form, a classical result from approximation theory that expresses each uniform cubic B\-spline as five\(x\)\+3\(x\)\_\{\+\}^\{3\}terms at shifted knot positions\. This paper makes three contributions: \(1\) atorch\.compile\-fused implementation that collapses these operations into a single GPU kernel, eliminating all recursion, span lookup, and scatter\-gather operations; \(2\) a bounded\-coordinate stabilization that clamps the normalized input to\[0,k\+1\]\[0,k\{\+\}1\], preventing the catastrophic cancellation that historically motivated the Cox\-de Boor recursion; and \(3\) a production\-ready, open\-source package \(pip install flashkan\) that serves as a drop\-in replacement for existing KAN layers\.

## 1Introduction

The Kolmogorov\-Arnold representation theorem\([Kolmogorov, 1957](https://arxiv.org/html/2609.01956#bib.bib11)\)guarantees that any multivariate continuous function decomposes into univariate functions and addition\. KANs\([Liu et al\., 2024](https://arxiv.org/html/2609.01956#bib.bib1)\)operationalize this result by placing a learnable activation on every edge\. Each activation is a weighted sum of B\-spline basis functions, which can be inspected, plotted, and in favorable cases symbolically recovered\.

This interpretability carries a cost\. The Cox\-de Boor recursion\([Cox, 1972](https://arxiv.org/html/2609.01956#bib.bib6);[de Boor, 1971](https://arxiv.org/html/2609.01956#bib.bib7)\)evaluates B\-spline basis functions throughkksequential passes for degreekk\. For cubic splines \(k=3k\{=\}3\), three passes are needed, each depending on the output of the previous\. Profiling shows that basis computation alone accounts for 91% of a KAN layer’s forward\-pass time \(Table[1](https://arxiv.org/html/2609.01956#S2.T1)\)\.

The recursion itself was not always the standard\. In the 1940s, Schoenberg introduced splines as piecewise polynomials while smoothing ballistics data at Aberdeen Proving Ground\([Schoenberg, 1946](https://arxiv.org/html/2609.01956#bib.bib3)\)\. His representation used truncated power functionsmax⁡\(0,x\)k\\max\(0,x\)^\{k\}as the foundational building block, and Curry and Schoenberg formalized B\-splines through this basis\([Curry and Schoenberg, 1947](https://arxiv.org/html/2609.01956#bib.bib2)\)\. The truncated power form is mathematically elegant: proofs of compact support, partition of unity, and smoothness follow directly\. But early implementations on 1960s hardware suffered from numerical cancellation in the alternating sum of large powers, and the truncated power basis matrix is poorly conditioned\([de Boor, 2001](https://arxiv.org/html/2609.01956#bib.bib8);[Schumaker, 2007](https://arxiv.org/html/2609.01956#bib.bib9)\)\. Cox and de Boor independently developed the recursive algorithm\([Cox, 1972](https://arxiv.org/html/2609.01956#bib.bib6);[de Boor, 1971](https://arxiv.org/html/2609.01956#bib.bib7)\)as a numerically stable alternative, and de Boor’s textbook\([de Boor, 2001](https://arxiv.org/html/2609.01956#bib.bib8)\)established the recursion as the standard for the next five decades\.

Prior work has pursued three strategies to reduce the cost of B\-spline evaluation in KANs\. Restructuring the Cox\-de Boor recursion\([Blealtan, 2024](https://arxiv.org/html/2609.01956#bib.bib4)\)reduces constant factors but preserves the sequential dependency\. Precomputing per\-span matrices\([Coffman and Chen, 2025](https://arxiv.org/html/2609.01956#bib.bib13)\)eliminates the recursion but introduces data\-dependent gather operations that fragment GPU memory access\. Gaussian radial basis functions\([Li, 2024](https://arxiv.org/html/2609.01956#bib.bib5)\)replace B\-splines entirely with a singleexp\(\)call, gaining speed but sacrificing compact support and automatic partition of unity \(Gaussians are non\-negative andC∞C^\{\\infty\}, so smoothness is not the trade\-off\)\.

Most recently,[Southworth et al\. \(2026\)](https://arxiv.org/html/2609.01956#bib.bib10)established a formal algebraic equivalence between spline KAN layers and multichannel MLPs with power\-ReLU activations through a change\-of\-basis matrix\. For uniform knots, this matrix is Toeplitz with entries matching the classical truncated power coefficients\. Their work exploits this equivalence primarily for*multilevel training*: the spline basis enables complementary relaxation dynamics across refinement levels, yielding orders\-of\-magnitude improvements in PINN accuracy\. They note that the non\-recursive formulation is faster by a factor equal to the spline degree, but do not pursue compiler\-level optimization, numerical stabilization, or a deployable implementation\.

FlashKAN bridges the gap between algebraic equivalence and practical deployment\. The contributions are:

1. 1\.Compiler\-fused evaluation\.For uniform cubic B\-splines, the truncated power form reduces to fivemax⁡\(0,⋅\)3\\max\(0,\\cdot\)^\{3\}terms with fixed coefficients\.torch\.compilefuses all elementwise operations into a single GPU kernel, eliminating recursion, span lookup, and data\-dependent memory access\.
2. 2\.Bounded\-coordinate stabilization\.The raw truncated power sum suffers from catastrophic cancellation when the normalized inputuulies far outside the basis support\[0,k\+1\]\[0,k\{\+\}1\]\. Clampinguuto this interval before evaluation bounds all intermediate terms and eliminates the cancellation, with no change to the mathematically correct output \(since the B\-spline is exactly zero outside its support\)\. This addresses the numerical concern that historically motivated the Cox\-de Boor recursion\([de Boor, 2001](https://arxiv.org/html/2609.01956#bib.bib8)\)\.
3. 3\.Drop\-in package\.FlashKAN is available as an open\-source Python package \(pip install flashkan, MIT license\) with identical API to standard KAN layers\. Replacing Cox\-de Boor evaluation requires changing one import\.

## 2From Recursion to Closed Form

The derivation proceeds in four steps\. Each transforms an algorithm into an expression, revealing structure that the algorithm conceals\.

### 2\.1Step 1: De Casteljau to Bernstein

LetP0,P1,…,Pn∈ℝdP\_\{0\},P\_\{1\},\\ldots,P\_\{n\}\\in\\mathbb\{R\}^\{d\}be a sequence of*control points*and lett∈\[0,1\]t\\in\[0,1\]be a scalar parameter\. The*linear interpolation*\(lerp\) between two points is defined aslerp⁡\(A,B,t\)=\(1−t\)​A\+t​B\\operatorname\{lerp\}\(A,B,t\)=\(1\-t\)\\,A\+t\\,B\. De Casteljau’s algorithm\([Farin, 2002](https://arxiv.org/html/2609.01956#bib.bib12)\)evaluates a degree\-nnBézier curveQ⁡\(t\)Q\(t\)by applyinglerp\\operatorname\{lerp\}recursively: at each level, adjacent points are interpolated pairwise, reducing the number of points by one until a single value remains\.

For the cubic case \(n=3n\{=\}3\), three levels of interpolation overP0,P1,P2,P3P\_\{0\},P\_\{1\},P\_\{2\},P\_\{3\}produce the curve pointQ⁡\(t\)Q\(t\)\. Expanding and collecting terms on each control point yields the Bernstein form:

Q⁡\(t\)=∑i=03Bi,3​\(t\)​Pi,Bi,3​\(t\)=\(3i\)​ti​\(1−t\)3−iQ\(t\)=\\sum\_\{i=0\}^\{3\}B\_\{i,3\}\(t\)\\,P\_\{i\},\\quad B\_\{i,3\}\(t\)=\\binom\{3\}\{i\}\\,t^\{i\}\\,\(1\{\-\}t\)^\{3\-i\}\(1\)The coefficients\(3i\)=\{1,3,3,1\}\\binom\{3\}\{i\}=\\\{1,3,3,1\\\}are row 3 of Pascal’s triangle\. Each interpolation level multiplies by\[\(1−t\)\+t\]=1\[\(1\{\-\}t\)\+t\]=1\. Three levels produce\(\(1−t\)\+t\)3\(\(1\{\-\}t\)\+t\)^\{3\}, which the binomial theorem expands into the Bernstein basis\. The partition of unity∑i=03Bi,3​\(t\)=1\\sum\_\{i=0\}^\{3\}B\_\{i,3\}\(t\)=1follows immediately\.

### 2\.2Step 2: Matrix form

Expanding each Bernstein polynomial into powers ofttseparates the Bézier curve into three factors:

Q⁡\(t\)=\[1tt2t3\]⏟𝐓⁡\(t\)​\[1000−33003−630−13−31\]⏟𝐌B​e´​zier​\[P0P1P2P3\]⏟𝐏Q\(t\)=\\underbrace\{\\begin\{bmatrix\}1&t&t^\{2\}&t^\{3\}\\end\{bmatrix\}\}\_\{\\mathbf\{T\}\(t\)\}\\underbrace\{\\begin\{bmatrix\}1&0&0&0\\\\ \-3&3&0&0\\\\ 3&\-6&3&0\\\\ \-1&3&\-3&1\\end\{bmatrix\}\}\_\{\\mathbf\{M\}\_\{\\mathrm\{B\\acute\{e\}zier\}\}\}\\underbrace\{\\begin\{bmatrix\}P\_\{0\}\\\\ P\_\{1\}\\\\ P\_\{2\}\\\\ P\_\{3\}\\end\{bmatrix\}\}\_\{\\mathbf\{P\}\}\(2\)The power vector𝐓⁡\(t\)\\mathbf\{T\}\(t\)depends on the input\. The control points𝐏\\mathbf\{P\}are free parameters\. The basis matrix𝐌B​e´​zier\\mathbf\{M\}\_\{\\mathrm\{B\\acute\{e\}zier\}\}is a constant determined entirely by the degree: it encodes the binomial expansion of the Bernstein polynomials\. This factorization𝐓⁡\(t\)​𝐌​𝐏\\mathbf\{T\}\(t\)\\,\\mathbf\{M\}\\,\\mathbf\{P\}is general\. Different spline types share the same structure but differ only in𝐌\\mathbf\{M\}\. The input\-dependent computation is always𝐓⁡\(t\)=\[1,t,t2,t3\]\\mathbf\{T\}\(t\)=\[1,t,t^\{2\},t^\{3\}\]: four values, trivially cheap\.

### 2\.3Step 3: Bézier segments to B\-splines

A single cubic Bézier has four control points and one segment\. It also has a fundamental limitation:*global*control\. Moving any control point affects the entire curve\. To model a function over a wide input range, multiple Bézier segments must be chained end to end, and at every joint three constraints must be enforced to ensure smoothness:C0C^\{0\}continuity \(the segments meet\),C1C^\{1\}continuity \(their tangents match\), andC2C^\{2\}continuity \(their curvatures agree\)\. For two cubic segments with eight control points, these six constraints \(three per joint, one joint\) consume three degrees of freedom per segment, leaving only five free parameters out of eight\. The constraint cost grows linearly with the number of segments: each new joint introduces three equations that lock three control points to their neighbors\.

B\-splines solve this problem by construction\. Instead of stitching independent segments and imposing constraints after the fact, B\-splines define basis functions that*inherently*satisfy smoothness across the full domain\. Given a non\-decreasing*knot vector*𝐭=\(t0,t1,…,tm\)\\mathbf\{t\}=\(t\_\{0\},t\_\{1\},\\ldots,t\_\{m\}\)that partitions the parameter space into spans, the Cox\-de Boor recursion\([de Boor, 2001](https://arxiv.org/html/2609.01956#bib.bib8)\)defines basis functionsNi,k​\(x\)N\_\{i,k\}\(x\)of degreekkwith automaticCk−1C^\{k\-1\}continuity at every interior knot:

Ni,0​\(x\)\\displaystyle N\_\{i,0\}\(x\)=\{1if​ti≤x<ti\+10otherwise\\displaystyle=\\begin\{cases\}1&\\text\{if \}t\_\{i\}\\leq x<t\_\{i\+1\}\\\\ 0&\\text\{otherwise\}\\end\{cases\}\(3\)Ni,k​\(x\)\\displaystyle N\_\{i,k\}\(x\)=x−titi\+k−ti​Ni,k−1​\(x\)\+ti\+k\+1−xti\+k\+1−ti\+1​Ni\+1,k−1​\(x\)\\displaystyle=\\frac\{x\-t\_\{i\}\}\{t\_\{i\+k\}\-t\_\{i\}\}\\,N\_\{i,k\-1\}\(x\)\+\\frac\{t\_\{i\+k\+1\}\-x\}\{t\_\{i\+k\+1\}\-t\_\{i\+1\}\}\\,N\_\{i\+1,k\-1\}\(x\)\(4\)Each basis function has*compact support*:Ni,k​\(x\)N\_\{i,k\}\(x\)is nonzero only overk\+1k\{\+\}1consecutive knot spans\. Moving one control point changes the curve only within that local region\. No constraints to manage\. No degrees of freedom lost\. Every control point is free\.

For a uniform knot vector with spacinghh, each B\-spline segment admits the same matrix factorization as Bézier, but with a different basis matrix:

𝐌B​\-​spline=16​\[1410−30303−630−13−31\]\\mathbf\{M\}\_\{\\mathrm\{B\\text\{\-\}spline\}\}=\\frac\{1\}\{6\}\\begin\{bmatrix\}1&4&1&0\\\\ \-3&0&3&0\\\\ 3&\-6&3&0\\\\ \-1&3&\-3&1\\end\{bmatrix\}\(5\)The structure𝐓⁡\(t\)​𝐌​𝐏\\mathbf\{T\}\(t\)\\,\\mathbf\{M\}\\,\\mathbf\{P\}is identical; only the coefficients in𝐌\\mathbf\{M\}change, encoding the smoothness constraints that B\-splines satisfy by construction\.

The recursion mirrors De Casteljau: same linear interpolations, but over knot intervals rather than\[0,1\]\[0,1\]\. Fork=3k\{=\}3, three sequential passes are needed\. Each depends on the previous\. Table[1](https://arxiv.org/html/2609.01956#S2.T1)shows these passes consume 91% of a KAN layer’s forward time\.

Table 1:Forward\-pass cost breakdown for a KAN layer \(256×\\times784→\\to64, MPS GPU\)\. Basis computation dominates\.
### 2\.4Step 4: Cox\-de Boor to truncated power form

The same algebraic move that transformed De Casteljau into Bernstein polynomials applies to Cox\-de Boor\. For a*uniform*knot vector with constant spacingh=ti\+1−tih=t\_\{i\+1\}\-t\_\{i\}, expanding the recursion yields a finite difference of truncated power functions\([Curry and Schoenberg, 1947](https://arxiv.org/html/2609.01956#bib.bib2);[Schoenberg, 1946](https://arxiv.org/html/2609.01956#bib.bib3)\):

Ni,k​\(x\)=1k\!​hk​∑j=0k\+1\(−1\)j​\(k\+1j\)​max⁡\(0,x−ti\+j\)kN\_\{i,k\}\(x\)=\\frac\{1\}\{k\!\\,h^\{k\}\}\\sum\_\{j=0\}^\{k\+1\}\(\-1\)^\{j\}\\binom\{k\{\+\}1\}\{j\}\\,\\max\(0,\\;x\-t\_\{i\+j\}\)^\{k\}\(6\)For cubic splines \(k=3k\{=\}3\), substitutingu=\(x−gi\)/hu=\(x\-g\_\{i\}\)/hproduces:

Ni​\(u\)=16​\[\(u\)\+3−4​\(u−1\)\+3\+6​\(u−2\)\+3−4​\(u−3\)\+3\+\(u−4\)\+3\]N\_\{i\}\(u\)=\\frac\{1\}\{6\}\\Big\[\(u\)\_\{\+\}^\{3\}\-4\(u\{\-\}1\)\_\{\+\}^\{3\}\+6\(u\{\-\}2\)\_\{\+\}^\{3\}\-4\(u\{\-\}3\)\_\{\+\}^\{3\}\+\(u\{\-\}4\)\_\{\+\}^\{3\}\\Big\]\(7\)wheregig\_\{i\}is the start of theii\-th support interval and\(z\)\+=max⁡\(0,z\)\(z\)\_\{\+\}=\\max\(0,z\)\. The coefficients\{1,−4,6,−4,1\}\\\{1,\-4,6,\-4,1\\\}are the fourth row of Pascal’s triangle with alternating signs, divided by3\!=63\!=6\. This is the same coefficient stencil identified by[Southworth et al\. \(2026\)](https://arxiv.org/html/2609.01956#bib.bib10)through their change\-of\-basis analysis\.

The parallel between the two derivations is exact\. De Casteljau is to Bernstein as Cox\-de Boor is to the truncated power form\. In both cases, an algorithm built from nested interpolations admits a closed\-form expression built from binomial coefficients\. The algorithm is sequential\. The expression is parallel\.

#### Computational properties\.

Eq\.[7](https://arxiv.org/html/2609.01956#S2.E7)inherits the matrix form’s separation\. The input\-dependent part isu=\(x−gi\)/hu=\(x\-g\_\{i\}\)/h: one subtraction and one multiply\. The basis matrix𝐌\\mathbf\{M\}is absorbed into the fixed coefficients\{1,−4,6,−4,1\}/6\\\{1,\-4,6,\-4,1\\\}/6\. The control points are the learnable weights\. No sequential dependency, no data\-dependent memory access, only elementwise operations, all of whichtorch\.compilefuses into a single kernel\.

### 2\.5Bounded\-coordinate stabilization

The truncated power sum in Eq\.[7](https://arxiv.org/html/2609.01956#S2.E7)is exact in infinite precision\. In finite\-precision arithmetic, however, the alternating sum of five terms of sizeΘ⁡\(u3\)\\Theta\(u^\{3\}\)suffers catastrophic cancellation whenuulies far outside the support interval\[0,4\]\[0,4\]\. The mathematically correct value is exactly zero foru≥4u\\geq 4oru≤0u\\leq 0, but floating\-point evaluation produces a residual that grows asO⁡\(ϵmach⋅u3\)O\(\\epsilon\_\{\\mathrm\{mach\}\}\\cdot u^\{3\}\)\. This concern was precisely what motivated Cox and de Boor to develop the recursive algorithm\([Cox, 1972](https://arxiv.org/html/2609.01956#bib.bib6);[de Boor, 1971](https://arxiv.org/html/2609.01956#bib.bib7);[de Boor, 2001](https://arxiv.org/html/2609.01956#bib.bib8)\)\.

For KAN layers, the risk is concrete\. Hidden\-layer activations can drift outside the nominal grid domain during training, producing largeuuvalues even when the original inputs are normalized\. In mixed precision \(float16\),u3u^\{3\}overflows onceuuexceeds approximately 40\.

The fix is simple\. Before evaluating Eq\.[7](https://arxiv.org/html/2609.01956#S2.E7), clamp the normalized coordinate to the support:

u¯=clamp⁡\(u,0,k\+1\)\\bar\{u\}=\\operatorname\{clamp\}\(u,\\;0,\\;k\{\+\}1\)\(8\)and computeNi​\(u¯\)N\_\{i\}\(\\bar\{u\}\)instead ofNi​\(u\)N\_\{i\}\(u\)\. This is algebraically correct becauseNi​\(u\)=0N\_\{i\}\(u\)=0foru≤0u\\leq 0andu≥k\+1u\\geq k\{\+\}1, so clamping does not change any in\-support value\. But it bounds every intermediate term: the largest cubed quantity is at most\(k\+1\)3=64\(k\{\+\}1\)^\{3\}=64for cubic splines, well within float16 range\. The numerical error no longer grows with distance from the support\.

The clamped evaluation adds oneclampoperation per basis function, whichtorch\.compilefolds into the same fused kernel at no measurable cost\.

### 2\.6Integration with KAN layers

A KAN layer computes:

yo=∑i\[∑kco,i,k​Nk​\(xi\)\+wo,i​σ​\(xi\)\]y\_\{o\}=\\sum\_\{i\}\\left\[\\sum\_\{k\}c\_\{o,i,k\}\\,N\_\{k\}\(x\_\{i\}\)\+w\_\{o,i\}\\,\\sigma\(x\_\{i\}\)\\right\]\(9\)whereco,i,kc\_\{o,i,k\}are learnable spline coefficients,wo,iw\_\{o,i\}are residual weights, andσ\\sigmais SiLU\. Replacing the Cox\-de Boor evaluation ofNk​\(xi\)N\_\{k\}\(x\_\{i\}\)with the bounded truncated power form \(Eq\.[7](https://arxiv.org/html/2609.01956#S2.E7)with Eq\.[8](https://arxiv.org/html/2609.01956#S2.E8)\) changes only the basis computation; weights, residual connections, and gradient flow remain identical\.

## 3Related Work

#### KAN implementations\.

The original KAN\([Liu et al\., 2024](https://arxiv.org/html/2609.01956#bib.bib1)\)evaluates B\-spline bases via the Cox\-de Boor recursion\. Efficient\-KAN\([Blealtan, 2024](https://arxiv.org/html/2609.01956#bib.bib4)\)restructures the computation into dense tensor operations but preserves the recursive dependency\. FastKAN\([Li, 2024](https://arxiv.org/html/2609.01956#bib.bib5)\)replaces B\-splines entirely with Gaussian radial basis functionsRj​\(x\)=exp⁡\[−γ​\(x−cj\)2\]R\_\{j\}\(x\)=\\exp\[\-\\gamma\(x\-c\_\{j\}\)^\{2\}\]\. Gaussians are non\-negative andC∞C^\{\\infty\}smooth, so the trade\-off is not smoothness or sign but rather the loss of exact compact support \(each Gaussian has global, though rapidly decaying, influence\) and automatic partition of unity \(∑jRj​\(x\)=1\\sum\_\{j\}R\_\{j\}\(x\)=1does not hold without explicit normalization\)\.

#### Truncated power basis and change of basis\.

The truncated power representation of B\-splines dates to Curry and Schoenberg\([Curry and Schoenberg, 1947](https://arxiv.org/html/2609.01956#bib.bib2)\)and is presented in standard references\([Schumaker, 2007](https://arxiv.org/html/2609.01956#bib.bib9);[de Boor, 2001](https://arxiv.org/html/2609.01956#bib.bib8)\)\.[Southworth et al\. \(2026\)](https://arxiv.org/html/2609.01956#bib.bib10)recently applied this equivalence to KANs, proving that spline KAN layers correspond to multichannel MLPs with power\-ReLU activations through a linear change\-of\-basis matrix that, for uniform knots, is Toeplitz\. Their primary contribution is a multilevel training framework that exploits the spline basis for complementary relaxation dynamics across refinement levels, yielding orders\-of\-magnitude improvements in PINN accuracy\. FlashKAN builds on the same algebraic identity but pursues a different goal: compiler\-level optimization for inference and training speed, numerical stabilization through bounded\-coordinate evaluation \(Section[2\.5](https://arxiv.org/html/2609.01956#S2.SS5)\), and a production\-ready package\. The two contributions are complementary: FlashKAN could serve as the fast evaluation engine within a multilevel training loop\.

#### Numerical stability of the truncated power form\.

De Boor\([de Boor, 2001](https://arxiv.org/html/2609.01956#bib.bib8)\)demonstrated that the truncated power basis matrix is poorly conditioned relative to the B\-spline basis, motivating the recursive algorithm\. This conditioning concern applies when the alternating sum is evaluated far from the basis support, where terms of sizeΘ⁡\(uk\)\\Theta\(u^\{k\}\)cancel to produce zero\. The bounded\-coordinate stabilization \(Section[2\.5](https://arxiv.org/html/2609.01956#S2.SS5)\) eliminates this regime entirely, confining all intermediate values to a bounded range regardless of the input\.

## 4Discussion

#### Why bounded\-coordinate evaluation matters\.

The numerical concerns that motivated de Boor apply whenever the normalized coordinateuutakes large values\. In a trained KAN, hidden\-layer activations are not guaranteed to remain within the nominal grid domain\. The bounded\-coordinate variant \(Section[2\.5](https://arxiv.org/html/2609.01956#S2.SS5)\) is not merely defensive: it extends the truncated power form’s domain of reliable operation from inputs near the grid to arbitrary inputs, including out\-of\-distribution data and intermediate activations in deep networks\. Without this stabilization, the truncated power form inherits the exact failure mode that led to its historical abandonment\.

#### Comparison with Gaussian RBF\.

FastKAN\([Li, 2024](https://arxiv.org/html/2609.01956#bib.bib5)\)introduced Gaussians to accelerate KANs by replacing B\-splines with a simpler basis\. Gaussians are non\-negative and infinitely differentiable, so the sacrifice is not smoothness or sign\. The properties lost are exact compact support \(each Gaussian has global, though rapidly decaying, influence\) and automatic partition of unity \(the sum∑jRj​\(x\)\\sum\_\{j\}R\_\{j\}\(x\)is not guaranteed to equal one without explicit normalization\)\. The truncated power form achieves the same structural simplification \(a single broadcastable expression\) while preserving both properties\.

## 5Limitations

The closed form in Eq\.[6](https://arxiv.org/html/2609.01956#S2.E6)applies only to uniform knot vectors\. Non\-uniform grids, which allow adaptive refinement based on input distribution, require per\-span polynomial coefficients and reintroduce data\-dependent indexing\. The multilevel training framework of[Southworth et al\. \(2026\)](https://arxiv.org/html/2609.01956#bib.bib10), which progressively refines the knot vector, is complementary: FlashKAN could serve as the fast evaluation engine at each refinement level, provided the grid remains uniform within each level\. Extension to non\-uniform grids is left for future work\.

## 6Conclusion

FlashKAN is the first KAN implementation to evaluate B\-spline basis functions via the truncated power form\. The mathematical identity dates to Curry and Schoenberg\([Curry and Schoenberg, 1947](https://arxiv.org/html/2609.01956#bib.bib2)\), and[Southworth et al\. \(2026\)](https://arxiv.org/html/2609.01956#bib.bib10)recently proved that spline KAN layers are algebraically equivalent to power\-ReLU MLPs through this basis\. FlashKAN turns that equivalence into a deployable system: bounded\-coordinate stabilization eliminates the numerical cancellation that historically discouraged the truncated power form,torch\.compilefuses the evaluation into a single GPU kernel, and the result is packaged as a drop\-in replacement\. FlashKAN is open\-source \(pip install flashkan, MIT license\) and includes 26 unit tests covering basis correctness, partition of unity, compact support,C2C^\{2\}smoothness, and gradient flow\.

## References

- Blealtan \(2024\)BlealtanAn efficient implementation of Kolmogorov\-Arnold network\.External Links:[Link](https://github.com/Blealtan/efficient-kan)Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p4.1),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px1.p1.1)\.
- Coffman and Chen \(2025\)C\. Coffman and L\. ChenMatrixKAN: parallelized Kolmogorov\-Arnold network\.arXiv preprint arXiv:2502\.07176\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p4.1)\.
- Cox \(1972\)M\. G\. CoxThe numerical evaluation of B\-splines\.Journal of the Institute of Mathematics and its Applications10\(2\),pp\. 134–149\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p2.1),[§1](https://arxiv.org/html/2609.01956#S1.p3.1),[§2\.5](https://arxiv.org/html/2609.01956#S2.SS5.p1.1)\.
- Curry and Schoenberg \(1947\)H\. B\. Curry and I\. J\. SchoenbergOn spline distributions and their limits: the Pólya distribution functions\.Bulletin of the American Mathematical Society53,pp\. 1114\.Note:Abstract 380tCited by:[§1](https://arxiv.org/html/2609.01956#S1.p3.1),[§2\.4](https://arxiv.org/html/2609.01956#S2.SS4.p1.1),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px2.p1.1),[§6](https://arxiv.org/html/2609.01956#S6.p1.1)\.
- de Boor \(1971\)C\. de BoorSubroutine package for calculating with B\-splines\.Technical reportTechnical ReportLA\-4728\-MS,Los Alamos Scientific Laboratory\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p2.1),[§1](https://arxiv.org/html/2609.01956#S1.p3.1),[§2\.5](https://arxiv.org/html/2609.01956#S2.SS5.p1.1)\.
- de Boor \(2001\)C\. de BoorA practical guide to splines\.Revised edition,Springer\-Verlag,New York\.Cited by:[item 2](https://arxiv.org/html/2609.01956#S1.I1.i2.p1.1),[§1](https://arxiv.org/html/2609.01956#S1.p3.1),[§2\.3](https://arxiv.org/html/2609.01956#S2.SS3.p2.1),[§2\.5](https://arxiv.org/html/2609.01956#S2.SS5.p1.1),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px2.p1.1),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px3.p1.1)\.
- Farin \(2002\)G\. FarinCurves and surfaces for CAGD: a practical guide\.5th edition,Morgan Kaufmann\.Cited by:[§2\.1](https://arxiv.org/html/2609.01956#S2.SS1.p1.1)\.
- Kolmogorov \(1957\)A\. N\. KolmogorovOn the representation of continuous functions of many variables by superposition of continuous functions of one variable and addition\.Doklady Akademii Nauk SSSR114\(5\),pp\. 953–956\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p1.1)\.
- Li \(2024\)Z\. LiKolmogorov\-Arnold networks are radial basis function networks\.arXiv preprint arXiv:2405\.06721\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p4.1),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px1.p1.1),[§4](https://arxiv.org/html/2609.01956#S4.SS0.SSS0.Px2.p1.1)\.
- Liuet al\.\(2024\)Z\. Liu, Y\. Wang, S\. Vaidya, F\. Ruehle, J\. Halverson, M\. Soljačić, T\. Y\. Hou, and M\. TegmarkKAN: kolmogorov\-arnold networks\.arXiv preprint arXiv:2404\.19756\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p1.1),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px1.p1.1)\.
- Schoenberg \(1946\)I\. J\. SchoenbergContributions to the problem of approximation of equidistant data by analytic functions, Parts A and B\.Quarterly of Applied Mathematics4,pp\. 45–99, 112–141\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p3.1),[§2\.4](https://arxiv.org/html/2609.01956#S2.SS4.p1.1)\.
- Schumaker \(2007\)L\. L\. SchumakerSpline functions: basic theory\.3rd edition,Cambridge University Press\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p3.1),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px2.p1.1)\.
- Southworthet al\.\(2026\)B\. S\. Southworth, J\. A\. Actor, G\. Harper, and E\. C\. CyrMultilevel training for Kolmogorov\-Arnold networks\.arXiv preprint arXiv:2603\.04827\.Cited by:[§1](https://arxiv.org/html/2609.01956#S1.p5.1),[§2\.4](https://arxiv.org/html/2609.01956#S2.SS4.p1.3),[§3](https://arxiv.org/html/2609.01956#S3.SS0.SSS0.Px2.p1.1),[§5](https://arxiv.org/html/2609.01956#S5.p1.1),[§6](https://arxiv.org/html/2609.01956#S6.p1.1)\.

Similar Articles

SechKAN: Kolmogorov-Arnold Networks with Hyperbolic Secant Functions

arXiv cs.LG

SechKAN is a novel Kolmogorov-Arnold Network architecture that uses hyperbolic secant functions as basis functions, achieving competitive performance in function fitting, PDE problems, and image classification tasks while maintaining parameter efficiency comparable to MLPs.

Ultrafast machine learning on FPGAs via Kolmogorov-Arnold Networks

Hacker News Top

This post explains the author's Master's thesis on using Kolmogorov-Arnold Networks (KANs) for ultrafast machine learning on FPGAs, achieving sub-microsecond inference and online learning via custom hardware architectures. It references two accepted papers: KANELÉ for LUT-based evaluation (FPGA 2026 Best Paper) and a method for on-FPGA online learning (ICML 2026).