Table of Contents
Conclusion
Home Technology peripherals AI KAN, which replaces MLP, has been extended to convolution by open source projects

KAN, which replaces MLP, has been extended to convolution by open source projects

Jun 01, 2024 pm 10:03 PM
Model theorem

Early this month, researchers from MIT and other institutions proposed a very promising alternative to MLP - KAN.

KAN outperforms MLP in terms of accuracy and interpretability. And it can outperform MLP running with a larger number of parameters with a very small number of parameters. For example, the authors stated that they used KAN to reproduce DeepMind's results with a smaller network and a higher degree of automation. Specifically, DeepMind's MLP has about 300,000 parameters, while KAN only has about 200 parameters.

KAN has the same strong mathematical foundation as MLP, which is based on the universal approximation theorem, while KAN is based on the Kolmogorov-Arnold representation theorem.

As shown in the figure below, KAN has activation functions on edges, while MLP has activation functions on nodes. KAN seems to be more parameter efficient than MLP, but each KAN layer has more parameters than MLP layers. picture: [Figure 1: Schematic diagram] Brief explanation: KAN is an edge-based neural network structure, and each node has an edge weight and activation function. It realizes the transmission and update of information through edge propagation. MLP is a node-based neural network structure, each node has an input Extended to convolutional neural networks, the classic linear transformation of convolution is changed to a learnable nonlinear activation function in each pixel, and KAN convolution (CKAN) is proposed and open sourced.

KAN, which replaces MLP, has been extended to convolution by open source projects

Project address: https://github.com/AntonioTepsich/Convolutional-KANs

KAN, which replaces MLP, has been extended to convolution by open source projectsKAN Convolution

KAN Convolution is very similar to convolution, but instead of applying a dot product between a kernel and the corresponding pixel in the image, a learnable nonlinearity is applied to each element Activate the functions and then add them together. The kernel of the KAN convolution is equivalent to the KAN linear layer with 4 input and 1 output neurons. For each input i, applying the ϕ_i learnable function, the resulting pixel of this convolution step is the sum of ϕ_i (x_i).

Parameters in KAN convolution

KAN, which replaces MLP, has been extended to convolution by open source projects

Assume there is a KxK kernel , for each element of the matrix, there is a ϕ, whose parameter count is: gridsize 1, ϕ is defined as:

This is the activation Function b provides more expressibility, and the parameter count of the linear layer is gridsize 2. Therefore, KAN convolution has a total of K^2(gridsize 2) parameters, while ordinary convolution only has K^2.

KAN, which replaces MLP, has been extended to convolution by open source projectsInitial evaluation

The different architectures tested by the author are:

Connection KAN convolutional layer (KKAN) to KAN linear layer

KAN convolutional layer (CKAN) connected to MLP
  • In convolution CKAN (CKAN_BN) with batch normalization between
  • ConvNet (classic convolution connected to MLP) (ConvNet)
  • Simple MLP
  • The author stated that the implementation of KAN convolution is a promising idea, although it is still in its early stages. They conducted some preliminary experiments to evaluate the performance of KAN convolutions.

KAN, which replaces MLP, has been extended to convolution by open source projectsIt is worth noting that the reason for publishing these "preliminary" results is because they hope to introduce this idea to the outside world as soon as possible and promote broader research in the community.

#Each element of the list in the convolutional layer contains the convolution number and the corresponding kernel size.

Based on the 28x28 MNIST dataset, it can be observed that the KANConv & MLP model achieves acceptable accuracy compared to ConvNet (large). However, the difference is that KANConv & MLP requires 7 times the number of parameters than standard ConvNet. Furthermore, KKAN’s accuracy is 0.04 lower than ConvNet Medium, while the number of parameters (94k vs. 157k) is almost half that of ConvNet Medium, which shows the potential of this architecture. We also need to conduct experiments on more data sets to draw conclusions on this.

In the coming days and weeks, the authors will also thoroughly tune the model and the hyperparameters of the models used for comparison. While some hyperparameter and architecture variations have been tried, this is only heuristic and does not follow any precise approach. They have not yet worked with large or more complex data sets due to computational power and time constraints, and are working on solving this problem.

In the future, the authors will conduct experiments on more complex data sets, which means that the parameter amount of KANS will increase because more KAN convolutional layers need to be implemented.

Conclusion

Currently, compared with traditional convolutional networks, the author stated that he has not seen a significant improvement in the performance of KAN convolutional networks. . Their analysis believes that this is due to the use of simple data sets and models. Compared with the best architecture tried (ConvNet Big, this comparison is unfair based on the scale factor), the advantage of this architecture is that it has good control over parameters. The requirements are much less.

Comparison between 2 identical convolutional layers and a KAN convolutional layer with the same MLP connected at the end shows that the classic method is slightly better, with an accuracy improvement of 0.06, The number of parameters of the KAN convolutional layer and KAN linear layer is almost half that of the classic method, but the accuracy is reduced by 0.04.

The authors stated that as the complexity of the model and data set increases, the performance of the KAN convolutional network should improve. At the same time, as the input dimension increases, the number of parameters of the model will also grow faster.

The above is the detailed content of KAN, which replaces MLP, has been extended to convolution by open source projects. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The world's most powerful open source MoE model is here, with Chinese capabilities comparable to GPT-4, and the price is only nearly one percent of GPT-4-Turbo The world's most powerful open source MoE model is here, with Chinese capabilities comparable to GPT-4, and the price is only nearly one percent of GPT-4-Turbo May 07, 2024 pm 04:13 PM

Imagine an artificial intelligence model that not only has the ability to surpass traditional computing, but also achieves more efficient performance at a lower cost. This is not science fiction, DeepSeek-V2[1], the world’s most powerful open source MoE model is here. DeepSeek-V2 is a powerful mixture of experts (MoE) language model with the characteristics of economical training and efficient inference. It consists of 236B parameters, 21B of which are used to activate each marker. Compared with DeepSeek67B, DeepSeek-V2 has stronger performance, while saving 42.5% of training costs, reducing KV cache by 93.3%, and increasing the maximum generation throughput to 5.76 times. DeepSeek is a company exploring general artificial intelligence

KAN, which replaces MLP, has been extended to convolution by open source projects KAN, which replaces MLP, has been extended to convolution by open source projects Jun 01, 2024 pm 10:03 PM

Earlier this month, researchers from MIT and other institutions proposed a very promising alternative to MLP - KAN. KAN outperforms MLP in terms of accuracy and interpretability. And it can outperform MLP running with a larger number of parameters with a very small number of parameters. For example, the authors stated that they used KAN to reproduce DeepMind's results with a smaller network and a higher degree of automation. Specifically, DeepMind's MLP has about 300,000 parameters, while KAN only has about 200 parameters. KAN has a strong mathematical foundation like MLP. MLP is based on the universal approximation theorem, while KAN is based on the Kolmogorov-Arnold representation theorem. As shown in the figure below, KAN has

Hello, electric Atlas! Boston Dynamics robot comes back to life, 180-degree weird moves scare Musk Hello, electric Atlas! Boston Dynamics robot comes back to life, 180-degree weird moves scare Musk Apr 18, 2024 pm 07:58 PM

Boston Dynamics Atlas officially enters the era of electric robots! Yesterday, the hydraulic Atlas just "tearfully" withdrew from the stage of history. Today, Boston Dynamics announced that the electric Atlas is on the job. It seems that in the field of commercial humanoid robots, Boston Dynamics is determined to compete with Tesla. After the new video was released, it had already been viewed by more than one million people in just ten hours. The old people leave and new roles appear. This is a historical necessity. There is no doubt that this year is the explosive year of humanoid robots. Netizens commented: The advancement of robots has made this year's opening ceremony look like a human, and the degree of freedom is far greater than that of humans. But is this really not a horror movie? At the beginning of the video, Atlas is lying calmly on the ground, seemingly on his back. What follows is jaw-dropping

AI subverts mathematical research! Fields Medal winner and Chinese-American mathematician led 11 top-ranked papers | Liked by Terence Tao AI subverts mathematical research! Fields Medal winner and Chinese-American mathematician led 11 top-ranked papers | Liked by Terence Tao Apr 09, 2024 am 11:52 AM

AI is indeed changing mathematics. Recently, Tao Zhexuan, who has been paying close attention to this issue, forwarded the latest issue of "Bulletin of the American Mathematical Society" (Bulletin of the American Mathematical Society). Focusing on the topic "Will machines change mathematics?", many mathematicians expressed their opinions. The whole process was full of sparks, hardcore and exciting. The author has a strong lineup, including Fields Medal winner Akshay Venkatesh, Chinese mathematician Zheng Lejun, NYU computer scientist Ernest Davis and many other well-known scholars in the industry. The world of AI has changed dramatically. You know, many of these articles were submitted a year ago.

Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training Apr 01, 2024 pm 07:46 PM

The performance of JAX, promoted by Google, has surpassed that of Pytorch and TensorFlow in recent benchmark tests, ranking first in 7 indicators. And the test was not done on the TPU with the best JAX performance. Although among developers, Pytorch is still more popular than Tensorflow. But in the future, perhaps more large models will be trained and run based on the JAX platform. Models Recently, the Keras team benchmarked three backends (TensorFlow, JAX, PyTorch) with the native PyTorch implementation and Keras2 with TensorFlow. First, they select a set of mainstream

Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecasting Time Series Forecasting NLP Large Model New Work: Automatically Generate Implicit Prompts for Time Series Forecasting Mar 18, 2024 am 09:20 AM

Today I would like to share a recent research work from the University of Connecticut that proposes a method to align time series data with large natural language processing (NLP) models on the latent space to improve the performance of time series forecasting. The key to this method is to use latent spatial hints (prompts) to enhance the accuracy of time series predictions. Paper title: S2IP-LLM: SemanticSpaceInformedPromptLearningwithLLMforTimeSeriesForecasting Download address: https://arxiv.org/pdf/2403.05798v1.pdf 1. Large problem background model

Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! Tesla robots work in factories, Musk: The degree of freedom of hands will reach 22 this year! May 06, 2024 pm 04:13 PM

The latest video of Tesla's robot Optimus is released, and it can already work in the factory. At normal speed, it sorts batteries (Tesla's 4680 batteries) like this: The official also released what it looks like at 20x speed - on a small "workstation", picking and picking and picking: This time it is released One of the highlights of the video is that Optimus completes this work in the factory, completely autonomously, without human intervention throughout the process. And from the perspective of Optimus, it can also pick up and place the crooked battery, focusing on automatic error correction: Regarding Optimus's hand, NVIDIA scientist Jim Fan gave a high evaluation: Optimus's hand is the world's five-fingered robot. One of the most dexterous. Its hands are not only tactile

FisheyeDetNet: the first target detection algorithm based on fisheye camera FisheyeDetNet: the first target detection algorithm based on fisheye camera Apr 26, 2024 am 11:37 AM

Target detection is a relatively mature problem in autonomous driving systems, among which pedestrian detection is one of the earliest algorithms to be deployed. Very comprehensive research has been carried out in most papers. However, distance perception using fisheye cameras for surround view is relatively less studied. Due to large radial distortion, standard bounding box representation is difficult to implement in fisheye cameras. To alleviate the above description, we explore extended bounding box, ellipse, and general polygon designs into polar/angular representations and define an instance segmentation mIOU metric to analyze these representations. The proposed model fisheyeDetNet with polygonal shape outperforms other models and simultaneously achieves 49.5% mAP on the Valeo fisheye camera dataset for autonomous driving

See all articles