Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaconv-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaconv-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file kaconv-0.1.0.tar.gz.

File metadata

  • Download URL: kaconv-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

Hashes for kaconv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5dbb8946218c8a2889784a1b82dfb2f4d5f8b1ec3999f66854f88541b2c1d0e
MD5 ef11fe4ad27c18c516461c7027f25a9a
BLAKE2b-256 364b3383b403507c3a8ca3e307b5eaa78c4c7c68316d625633b61916a435ab9a

See more details on using hashes here.

File details

Details for the file kaconv-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kaconv-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

Hashes for kaconv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b435051fa299aff70860820f67e2db32ee1ce95b8c5ab94edf0db02f528e67c
MD5 d2b735a9fe797cf089864837d1a3b9b7
BLAKE2b-256 266fedcea554fae1e22dcdaa1833580dcb205e4c67a7e85633539e859161f7d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page