pykan icon indicating copy to clipboard operation
pykan copied to clipboard

KAN for images?

Open albusdemens opened this issue 9 months ago • 7 comments

Hello, first of all, congratulations for the great work! As far as you know, is it possible to extend the Kolmogorov-Arnold theorem to images? Something like "If IM is a multivariate continuous (?) [2D] function on a bounded domain, it can be written as a finite composition of continuous [2D] functions". If that holds, then KANs have the potential to take as input images too! Taking as a starting point what you observed for PDE, KANs could turn out to be more accurate and more parameter-efficient than MLPs, and potentially CNNs.

I am testing if things work, codewise.

albusdemens avatar May 06 '24 06:05 albusdemens

Hello, I don’t know how your test results are. I am also very concerned about whether KAN can be applied to images. Can you share it?

yingzhige00 avatar May 08 '24 02:05 yingzhige00

Hello, I have a deadline this friday so I didn't have any time for this. Next week should be better. I'll let you know ASAP

albusdemens avatar May 08 '24 03:05 albusdemens

me too!@yingzhige0,@albusdemens.

epicgzs1112 avatar May 08 '24 03:05 epicgzs1112

I am waiting for all discussions

hailuu684 avatar May 08 '24 06:05 hailuu684

Me too!

lacie-life avatar May 08 '24 08:05 lacie-life

@yingzhige00 @epicgzs1112 @hailuu684 @lacie-life I wrote down my thoughts, trying to explain the intuition I got, and listed the points that should be considered/tested/solved. Feel free to let me know if you have any comments :) If anyone is interested, we could team up and test things.

To be clear, there could be fundamental reasons why using KANs to process images is not possible. Anyway, it could be worth exploring further.

KAN_images.pdf

albusdemens avatar May 08 '24 13:05 albusdemens

Here is the basic implementation of the convolutional layer with KAN, which seems to work just fine on the mnist dataset. https://github.com/StarostinV/convkan

StarostinV avatar May 09 '24 19:05 StarostinV