KA-Conv: Kolmogorov-Arnold Convolutional Networks with Various Basis Functions
Project description
ConvKAN-Zoo: Convolutional Kolmogorov-Arnold Networks with Various Activation Formulations
Overview
The ConvKAN-Zoo repository offers implementations of Convolutional Kolmogorov-Arnold Networks (ConvKAN) with different activation formulations. This project aims to extend and refine the ConvKAN framework by integrating various activation functions and providing comparative performance metrics.
Implementation Details
Our repository includes the following variations of ConvKAN:
- EfficientKANLinear: Implemented as per EfficientKANLinear
- FastKANLinear: Implemented as per FastKANLinear
- Custom KANConv Layers: Our own implementation, offering several activation functions including Polynomial, Chebyshev, Fourier, BSpline, and Radial Basis Function (RBF).
Comparative Results
The following table presents the comparative results of different ConvKAN implementations using various activation functions. Key metrics include accuracy, parameter count, and throughput.
| Conv Layer | Activation | Hidden Layers | Accuracy (%) | Parameters (B) | Throughput (image/s) |
|---|---|---|---|---|---|
| nn.Conv2d | nn.relu | [32,32] | 65.75 | 13,162 | nan |
| convkan (with efficientKANLinear) | Bspline | [32,32] | 68.55 | 69,332 | nan |
| convkan (with FastKANLinear) | RBF | [32,32] | 69.8 | 68,508 | nan |
| kanconv (ours) | BSpline | [32,32] | nan | 65,076 | nan |
| kanconv small (ours) | BSpline | [8,32] | nan | 27,180 | nan |
| kanconv tiny (ours) | BSpline | [8,16] | nan | 14,156 | nan |
| kanconv (ours) | Chebyshev | [32,32] | 63.09 | 65,076 | nan |
| kanconv small (ours) | Chebyshev | [8,32] | 59.33 | 27,180 | nan |
| kanconv tiny (ours) | Chebyshev | [8,16] | 56.79 | 14,156 | nan |
| kanconv (ours) | Fourier | [32,32] | 50.5 | 65,076 | nan |
| kanconv small (ours) | Fourier | [8,32] | 49.38 | 27,180 | nan |
| kanconv tiny (ours) | Fourier | [8,16] | 45.48 | 14,156 | nan |
| kanconv (ours) | Poly | [32,32] | 62.93 | 65,076 | nan |
| kanconv small (ours) | Poly | [8,32] | 58.17 | 27,180 | nan |
| kanconv tiny (ours) | Poly | [8,16] | 57.48 | 14,156 | nan |
| kanconv (ours) | RBF | [32,32] | 69.58 | 65,076 | nan |
| kanconv small (ours) | RBF | [8,32] | 65.81 | 27,180 | nan |
| kanconv tiny (ours) | RBF | [8,16] | 61.95 | 14,156 | nan |
Result Analysis
Performance
Currently, with the same hidden layer setups, KANConv with RBF and BSpline activations outperform the original nn.Conv2d. However, KANConv also adds extra complexity, leading to more parameters and lower throughput. When reducing the number of parameters of the model to the same level as that of the model implemented with nn.Conv2d, the performance of the model implemented with KANConv is lower.
Efficiency
TODO
Upcoming Release
We are comparing the performance of the model on larger datasets and larger models, such as ResNet on ImageNet. The results will be released soon.
Acknowledgements
This model is built upon FastKAN. We extend our gratitude to the creators of the original KAN for their pioneering work in this field.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kanconv-0.1.0.tar.gz.
File metadata
- Download URL: kanconv-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
163e7bc6741195cd82bb7a47f9df8b02757b4da663c1e9b0c7d241390a9a1548
|
|
| MD5 |
057f45c96e7fad224c0d65ff25308544
|
|
| BLAKE2b-256 |
c05c199ef985b60c563a4e5625c8c1d0b0f39becdd223c4bc8b80de21cc7eb43
|
File details
Details for the file kanconv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kanconv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0e3b6de752e24a79802b9768f0122da2adbc707079e19e8fbd9a09f246e2068
|
|
| MD5 |
b8c7b18e01c4bf320e9df2a658288b7f
|
|
| BLAKE2b-256 |
db863cea644da871a5d24c30850b35e0a0d626b8c134ec525e2569f5c8ed75d9
|