Abstract
Field-Programmable Gate Arrays (FPGAs) are essential for low-latency AI inference but are often constrained by the heavy computational demands of traditional Multi-Layer Perceptrons (MLPs). KANELÉ introduces a hardware-software co-design framework that leverages the unique additive structure of Kolmogorov-Arnold Networks (KANs) to create ultra-efficient FPGA implementations. By replacing complex spline calculations with direct mapping to native hardware Lookup Tables (LUTs), KANELÉ achieves a 2700x speedup and a 4000x reduction in resource usage compared to prior KAN-on-FPGA implementations, while maintaining high clock frequencies and superior performance in symbolic and control tasks.
Introduction
Real-time AI applications, particularly in high-energy physics and robotics, require the extreme low latency provided by FPGAs. However, traditional MLPs rely on massive matrix multiplications (MAC operations) that consume significant power and specialized Digital Signal Processor (DSP) resources. Kolmogorov-Arnold Networks (KANs) have recently emerged as a promising alternative. Unlike MLPs, which use fixed activation functions on nodes, KANs employ learnable univariate functions on the edges.
While mathematically elegant, early attempts to deploy KANs on FPGAs were hindered by the high computational cost of calculating complex splines in real-time. KANELÉ addresses this by demonstrating that KANs are inherently "LUT-native," making them potentially better suited for FPGA logic fabric than traditional MLPs.
The KANELÉ Framework
KANELÉ provides an end-to-end toolflow from PyTorch to synthesizable VHDL. The framework's efficiency stems from three primary innovations:
1. Direct LUT Mapping
The core breakthrough of KANELÉ is the realization that the learned 1D activation functions in a KAN can be pre-calculated and stored directly in the FPGA's native LUTs. This transforms a complex mathematical evaluation into a simple memory read followed by an addition. Because the function is the lookup table, there is no approximation error between the trained model and the hardware implementation.
2. Quantization-Aware Training (QAT)
Using the Brevitas library, KANELÉ trains models to operate within the precision limits of the target hardware. This ensures that the quantized inputs to the LUTs do not degrade model accuracy.
3. Norm-Based Pruning
The additive nature of KANs allows for highly effective pruning. Since each edge contributes independently to the final sum, unnecessary connections can be removed without the complex logic entanglement found in traditional node-based LUT networks. This independence makes pruning mathematically natural and hardware-efficient.
Experimental Results
The framework was evaluated across diverse benchmarks, including MNIST, high-energy physics classification (CERNBox), and real-time reinforcement learning (OpenAI Gym HalfCheetah).
- Efficiency: KANELÉ achieved a 2700x speedup and reduced resource usage by over 4000x compared to previous KAN-on-FPGA research.
- Resource Utilization: The implementation completely eliminates the need for BRAM and DSP blocks, relying entirely on the FPGA's logic fabric.
- Performance: In the HalfCheetah control task, a quantized KAN policy used 5x fewer parameters than an MLP baseline while achieving higher rewards.
- Throughput: The designs consistently sustain clock frequencies above 800 MHz, with some reaching up to 1.7 GHz.
Conclusion
KANELÉ proves that Kolmogorov-Arnold Networks are not just a theoretical curiosity but a highly practical architecture for FPGA-based AI. By rethinking implementation from the ground up using LUT-based evaluation, KANELÉ offers a superior Area-Delay trade-off for scientific computing and real-time control systems. Future work will explore extending this framework to Convolutional KANs and transformer-style architectures.
Summary updated