FlashKAN: 절단 멱함수 형태를 통한 B-스플라인 KAN
FlashKAN: B-Spline KANs via Truncated Power Form
한국어 초록
콜모고로프-아놀드 네트워크(KAN)는 노드의 고정된 활성화 함수 대신 네트워크 엣지에 학습 가능한 B-스플라인(B-spline) 활성화 함수를 배치합니다. 표준 콕스-드 부어(Cox-de Boor) 재귀는 k차 스플라인에 대해 k회의 순차적 패스를 통해 이러한 활성화를 평가하므로, 순전파(forward-pass) 시간의 90% 이상을 소비합니다. FlashKAN은 이 재귀를 근사 이론의 고전적 결과인 절단 멱함수 형태(truncated power form)로 대체하며, 이는 각 균일 3차 B-스플라인을 이동된 매듭(knot) 위치에서의 5개 (x)_+^3 항으로 표현합니다. 본 논문은 세 가지 기여를 제공합니다: (1) 이러한 연산들을 단일 GPU 커널로 융합하여 모든 재귀, 구간 탐색(span lookup) 및 스캐터-개더(scatter-gather) 연산을 제거하는 torch.compile 기반 융합 구현, (2) 정규화된 입력을 [0, k+1]로 클램핑하여 역사적으로 콕스-드 부어 재귀의 개발 동기가 되었던 치명적 소거(catastrophic cancellation)를 방지하는 유계 좌표 안정화 기법, (3) 기존 KAN 레이어를 즉시 대체할 수 있는 드롭인(drop-in) 형태의 프로덕션 수준 오픈소스 패키지(pip install flashkan).
원문 초록
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.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.01956v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.