![Revisit consent button](../images/body-df29beacd7496220cc94.svg)
We value your privacy
We use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking "Accept All", you consent to our use of cookies.
Customise Reject All Accept All
Customise Consent Preferences ![](../images/body-2159bb67f3de8ad870eb.svg)
We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... Show more
NecessaryAlways Active
Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.
  * Cookie
BCTempID
  * Duration
10 minutes
  * Description
No description available.


  * Cookie
__cf_bm
  * Duration
1 hour
  * Description
This cookie, set by Cloudflare, is used to support Cloudflare Bot Management. 


  * Cookie
AWSALBCORS
  * Duration
7 days
  * Description
Amazon Web Services set this cookie for load balancing.


  * Cookie
_cfuvid
  * Duration
session
  * Description
Cloudflare sets this cookie to track users across sessions to optimize user experience by maintaining session consistency and providing personalized services


  * Cookie
li_gc
  * Duration
6 months
  * Description
Linkedin set this cookie for storing visitor's consent regarding using cookies for non-essential purposes.


  * Cookie
__hssrc
  * Duration
session
  * Description
This cookie is set by Hubspot whenever it changes the session cookie. The __hssrc cookie set to 1 indicates that the user has restarted the browser, and if the cookie does not exist, it is assumed to be a new session.


  * Cookie
__hssc
  * Duration
1 hour
  * Description
HubSpot sets this cookie to keep track of sessions and to determine if HubSpot should increment the session number and timestamps in the __hstc cookie.


  * Cookie
wpEmojiSettingsSupports
  * Duration
session
  * Description
WordPress sets this cookie when a user interacts with emojis on a WordPress site. It helps determine if the user's browser can display emojis properly.


  * Cookie
BCSessionID
  * Duration
1 year 1 month 4 days
  * Description
Blueconic sets this cookie as a unique identifier for the BlueConic profile.


  * Cookie
_octo
  * Duration
1 year
  * Description
No description available.


  * Cookie
logged_in
  * Duration
1 year
  * Description
No description available.


  * Cookie
__Secure-YEC
  * Duration
past
  * Description
YouTube sets this cookie to stores the user's video player preferences using embedded YouTube video


  * Cookie
__eoi
  * Duration
6 months
  * Description
Description is currently not available.


  * Cookie
AWSALBTGCORS
  * Duration
7 days
  * Description
No description available.


  * Cookie
login-status-p
  * Duration
past
  * Description
Description is currently not available.


  * Cookie
AWSALBTG
  * Duration
7 days
  * Description
No description available.


  * Cookie
csrf_token
  * Duration
session
  * Description
No description available.


  * Cookie
token_v2
  * Duration
1 day
  * Description
Description is currently not available.


  * Cookie
D
  * Duration
1 year
  * Description
Description is currently not available.


  * Cookie
PHPSESSID
  * Duration
session
  * Description
This cookie is native to PHP applications. The cookie stores and identifies a user's unique session ID to manage user sessions on the website. The cookie is a session cookie and will be deleted when all the browser windows are closed.


  * Cookie
VISITOR_PRIVACY_METADATA
  * Duration
6 months
  * Description
YouTube sets this cookie to store the user's cookie consent state for the current domain. 


  * Cookie
cookietest
  * Duration
session
  * Description
The cookietest cookie is typically used to determine whether the user's browser accepts cookies, essential for website functionality and user experience.


  * Cookie
__Host-airtable-session
  * Duration
1 year
  * Description
This cookie is used to enable us to integrate the services of Airtable.


  * Cookie
__Host-airtable-session.sig
  * Duration
1 year
  * Description
This cookie is used to enable us to integrate the services of Airtable.


  * Cookie
m
  * Duration
1 year 1 month 4 days
  * Description
Stripe sets this cookie for fraud prevention purposes. It identifies the device used to access the website, allowing the website to be formatted accordingly.


  * Cookie
BIGipServer*
  * Duration
session
  * Description
Marketo sets this cookie to collect information about the user's online activity and build a profile about their interests to provide advertisements relevant to the user. 


  * Cookie
__cfruid
  * Duration
session
  * Description
Cloudflare sets this cookie to identify trusted web traffic.


  * Cookie
_GRECAPTCHA
  * Duration
6 months
  * Description
Google Recaptcha service sets this cookie to identify bots to protect the website against malicious spam attacks.


  * Cookie
__Secure-YNID
  * Duration
6 months
  * Description
Google cookie used to protect user security and prevent fraud, especially during the login process.


  * Cookie
cookieyes-consent
  * Duration
1 year
  * Description
CookieYes sets this cookie to remember users' consent preferences so that their preferences are respected on subsequent visits to this site. It does not collect or store any personal information about the site visitors.


Functional
Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.
  * Cookie
lidc
  * Duration
1 day
  * Description
LinkedIn sets the lidc cookie to facilitate data center selection.


  * Cookie
brw
  * Duration
1 year
  * Description
No description available.


  * Cookie
brwConsent
  * Duration
5 minutes
  * Description
Description is currently not available.


  * Cookie
WMF-Uniq
  * Duration
1 year
  * Description
Description is currently not available.


  * Cookie
loom_anon_comment
  * Duration
1 year
  * Description
No description available.


  * Cookie
loom_referral_video
  * Duration
session
  * Description
Description is currently not available.


  * Cookie
VISITOR_INFO1_LIVE
  * Duration
6 months
  * Description
A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.


  * Cookie
yt-remote-connected-devices
  * Duration
Never Expires
  * Description
YouTube sets this cookie to store the user's video preferences using embedded YouTube videos.


  * Cookie
ytidb::LAST_RESULT_ENTRY_KEY
  * Duration
Never Expires
  * Description
The cookie ytidb::LAST_RESULT_ENTRY_KEY is used by YouTube to store the last search result entry that was clicked by the user. This information is used to improve the user experience by providing more relevant search results in the future.


  * Cookie
yt-remote-device-id
  * Duration
Never Expires
  * Description
YouTube sets this cookie to store the user's video preferences using embedded YouTube videos.


  * Cookie
yt-remote-session-name
  * Duration
session
  * Description
The yt-remote-session-name cookie is used by YouTube to store the user's video player preferences using embedded YouTube video.


  * Cookie
yt-remote-fast-check-period
  * Duration
session
  * Description
The yt-remote-fast-check-period cookie is used by YouTube to store the user's video player preferences for embedded YouTube videos.


  * Cookie
yt-remote-session-app
  * Duration
session
  * Description
The yt-remote-session-app cookie is used by YouTube to store user preferences and information about the interface of the embedded YouTube video player.


  * Cookie
yt-remote-cast-available
  * Duration
session
  * Description
The yt-remote-cast-available cookie is used to store the user's preferences regarding whether casting is available on their YouTube video player.


  * Cookie
yt-remote-cast-installed
  * Duration
session
  * Description
The yt-remote-cast-installed cookie is used to store the user's video player preferences using embedded YouTube video.


  * Cookie
cp_session
  * Duration
3 months
  * Description
Codepen sets this cookie for Help systems found in the website.


  * Cookie
loid
  * Duration
1 year 1 month 4 days
  * Description
This cookie is set by the Reddit. The cookie enables the sharing of content from the website onto the social media platform.


Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.
  * Cookie
__hstc
  * Duration
6 months
  * Description
Hubspot set this main cookie for tracking visitors. It contains the domain, initial timestamp (first visit), last timestamp (last visit), current timestamp (this visit), and session number (increments for each subsequent session).


  * Cookie
hubspotutk
  * Duration
6 months
  * Description
HubSpot sets this cookie to keep track of the visitors to the website. This cookie is passed to HubSpot on form submission and used when deduplicating contacts.


  * Cookie
_ga
  * Duration
1 year 1 month 4 days
  * Description
Google Analytics sets this cookie to calculate visitor, session and campaign data and track site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognise unique visitors.


  * Cookie
_ga_*
  * Duration
1 year 1 month 4 days
  * Description
Google Analytics sets this cookie to store and count page views.


  * Cookie
__Host-psifi.analyticsTrace
  * Duration
6 hours
  * Description
Description is currently not available.


  * Cookie
__Host-psifi.analyticsTraceV2
  * Duration
6 hours
  * Description
Description is currently not available.


  * Cookie
_gh_sess
  * Duration
session
  * Description
GitHub sets this cookie for temporary application and framework state between pages like what step the user is on in a multiple step form.


  * Cookie
YSC
  * Duration
session
  * Description
YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.


  * Cookie
ajs_anonymous_id
  * Duration
1 year
  * Description
This cookie is set by Segment to count the number of people who visit a certain site by tracking if they have visited before.


  * Cookie
vuid
  * Duration
1 year 1 month 4 days
  * Description
Vimeo installs this cookie to collect tracking information by setting a unique ID to embed videos on the website. 


Performance
Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.
  * Cookie
AWSALB
  * Duration
7 days
  * Description
AWSALB is an application load balancer cookie set by Amazon Web Services to map the session to the target.


  * Cookie
acq
  * Duration
past
  * Description
Description is currently not available.


  * Cookie
acq.sig
  * Duration
past
  * Description
Description is currently not available.


  * Cookie
ptc
  * Duration
2 years
  * Description
No description available.


Advertisement
Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.
  * Cookie
muc_ads
  * Duration
1 year 1 month 4 days
  * Description
Twitter sets this cookie to collect user behaviour and interaction data to optimize the website.


  * Cookie
guest_id_marketing
  * Duration
1 year 1 month 4 days
  * Description
Twitter sets this cookie to identify and track the website visitor.


  * Cookie
guest_id_ads
  * Duration
1 year 1 month 4 days
  * Description
Twitter sets this cookie to identify and track the website visitor.


  * Cookie
personalization_id
  * Duration
1 year 1 month 4 days
  * Description
Twitter sets this cookie to integrate and share features for social media and also store information about how the user uses the website, for tracking and targeting.


  * Cookie
guest_id
  * Duration
1 year 1 month 4 days
  * Description
Twitter sets this cookie to identify and track the website visitor. It registers if a user is signed in to the Twitter platform and collects information about ad preferences.


  * Cookie
bcookie
  * Duration
1 year
  * Description
LinkedIn sets this cookie from LinkedIn share buttons and ad tags to recognize browser IDs.


  * Cookie
__Secure-ROLLOUT_TOKEN
  * Duration
6 months
  * Description
YouTube sets this cookie to manage feature rollout and experimentation. It helps Google control which new features or interface changes are shown to users as part of testing and staged rollouts, ensuring consistent experience for a given user during an experiment.


  * Cookie
yt.innertube::nextId
  * Duration
Never Expires
  * Description
YouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.


  * Cookie
yt.innertube::requests
  * Duration
Never Expires
  * Description
YouTube sets this cookie to register a unique ID to store data on what videos from YouTube the user has seen.


  * Cookie
session_tracker
  * Duration
session
  * Description
This cookie is set by the Reddit. This cookie is used to identify trusted web traffic. It also helps in adverstising on the website.


  * Cookie
edgebucket
  * Duration
session
  * Description
Reddit sets this cookie to save the information about a log-on Reddit user, for the purpose of advertisement recommendations and updating the content.


  * Cookie
did
  * Duration
1 year
  * Description
Arbor sets this cookie to show targeted ads to site visitors.This cookie expires after 2 months or 1 year.


Uncategorised
Other uncategorised cookies are those that are being analysed and have not been classified into a category as yet.
No cookies to display.
Reject All Save My Preferences Accept All
Toggle Search[](https://towardsdatascience.com/)Toggle Mobile Navigation
[](https://towardsdatascience.com/)
Publish AI, ML & data-science insights to a global community of data professionals.
Sign in[Submit an Article](https://write.insightmediagroup.io)
[Latest](https://towardsdatascience.com/latest/)[Editor's Picks](https://towardsdatascience.com/tag/editors-pick/)[Newsletter](https://towardsdatascience.com/tag/the-variable/)[ShipAI](https://towardsdatascience.com/shipai/)
* * *
[Write For TDS](https://towardsdatascience.com/submissions/)
[LinkedIn](https://www.linkedin.com/company/towards-data-science/)[X](https://x.com/TDataScience)Toggle Search
[Deep Learning](https://towardsdatascience.com/category/artificial-intelligence/deep-learning/)
# Understanding Kolmogorov-Arnold Networks (KAN)
Why KANs are a potential alternative to MPLs and the current landscape of Machine Learning. Let's go through the paper to find out.
[Hesam Sheikh](https://towardsdatascience.com/author/itshesamsheikh/)
May 7, 202410 min read
# Understanding Kolmogorov–Arnold Networks (KAN)
![](../images/000.png)
A new research paper titled [**KAN: Kolmogorov–Arnold Network**](https://arxiv.org/abs/2404.19756) has stirred excitement in the Machine Learning community. It presents a fresh perspective on Neural Networks and suggests a possible alternative to Multi-Layer Perceptrons (MLPs), a cornerstone of current Machine Learning.
_✨This is a paid article. If you're not a Medium member, you can read this for free in my newsletter:_[_**Qiubyte**_](https://hesamsheikh.substack.com/) _**.**_
Inspired by the [**Kolmogorov-Arnold representation theorem**](https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Arnold_representation_theorem), KANs diverge from traditional Multi-Layer Perceptrons (MLPs) by replacing **fixed activation functions** with **learnable functions** , effectively eliminating the need for linear weight matrices.
I strongly recommend reading through this paper if you're interested in the finer details and experiments. However, if you prefer a concise introduction, I've prepared this article to explain the essentials of KANs.
  * _Note: The source of the images/figures used in this article is the "KAN: Kolmogorov–Arnold Network" paper unless stated otherwise._


Learn this step by step with the interactive [Machine Learning](https://roadmap.sh/machine-learning) roadmap.
## The Theory
The theoretical pillar of these new networks is a theory developed by two Soviet mathematicians, [Vladimir Arnold](https://en.wikipedia.org/wiki/Vladimir_Arnold) and [Andrey Kolmogorov](https://en.wikipedia.org/wiki/Andrey_Kolmogorov).
> While a student of [Andrey Kolmogorov](https://en.wikipedia.org/wiki/Andrey_Kolmogorov) at [Moscow State University](https://en.wikipedia.org/wiki/Moscow_State_University) and still a teenager, Arnold showed in 1957 that any continuous function of several variables can be constructed with a finite number of two-variable functions, thereby solving [Hilbert's thirteenth problem](https://en.wikipedia.org/wiki/Hilbert%27s_thirteenth_problem). (source: [Wikipedia](https://en.wikipedia.org/wiki/Vladimir_Arnold))
The theory that they worked on and eventually developed was based on the concept of multivariate continuous functions. According to this theory, any multivariate continuous function **f** can be written as a finite composition of continuous functions of a single variable, summed together.
![The mathematical formula of the Kolmogorov–Arnold representation theorem. \(source: Wikipedia\)](../images/001.png)
The mathematical formula of the Kolmogorov–Arnold representation theorem. (source: [Wikipedia](https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Arnold_representation_theorem))
### How Does This Theorem Fit into Machine Learning?
In machine learning, the ability to **efficiently** and **accurately** approximate complex functions is an important subject, especially as the dimensionality of data increases. Current mainstream models such as Multi-Layer Perceptrons (MLPs) often struggle with high-dimensional data - a phenomenon known as the [**curse of dimensionality**](https://en.wikipedia.org/wiki/Curse_of_dimensionality).
The Kolmogorov-Arnold theorem, however, provides a theoretical foundation for building networks (like KANs) that can overcome this challenge.
![An overview comparison of MLP and KAN.](../images/002.png)
An overview comparison of MLP and KAN.
**How can KAN avoid the curse of dimensionality?**
This theorem allows for the decomposition of complex high-dimensional functions into compositions of simpler one-dimensional functions. By focusing on optimizing these one-dimensional functions rather than the entire multivariate space, KANs reduce the complexity and the number of parameters needed to achieve accurate modeling. Furthermore, Because of working with simpler one-dimensional functions, KANs can be simple and interpretable models.
> [**Platonic Representation: Are AI Deep Network Models Converging?**](https://towardsdatascience.com/platonic-representation-hypothesis-c812813d7248)
## What Are Kolmogorov–Arnold Networks (KAN)?
Kolmogorov-Arnold Networks, a.k.a KANs, is a type of neural network architecture inspired by the Kolmogorov-Arnold representation theorem. Unlike traditional neural networks that use **fixed activation functions** , KANs employ **learnable activation** functions on the **edges** of the network. This allows every weight parameter in a KAN to be replaced by a univariate function, typically parameterized as a **spline** , making them highly flexible and capable of modeling complex functions with potentially fewer parameters and enhanced interpretability.
![KAN leverages the structure of MLP while benefiting from splines.](../images/003.png)
KAN leverages the structure of MLP while benefiting from splines.
### KAN architecture
The architecture of Kolmogorov-Arnold Networks (KANs) revolves around a novel concept where traditional weight parameters are replaced by univariate function parameters on the edges of the network. Each node in a KAN sums up these function outputs without applying any nonlinear transformations, in contrast with MLPs that include linear transformations followed by nonlinear activation functions.
![KAN vs MLP formula.](../images/004.png)
KAN vs MLP formula.
### B-Splines: The Core of KAN
Surprisingly, one of the most important figures in the paper can be missed easily. It's the description of Splines. Splines are the backbone of KAN's learning mechanism. They replace the traditional weight parameters typically found in neural networks.
![A detailed view of a spline structure.](../images/005.png)
A detailed view of a spline structure.
The flexibility of splines allows them to adaptively model complex relationships in the data by adjusting their shape to minimize approximation error, therefore, enhancing the network's capability to learn subtle patterns from high-dimensional datasets.
The general formula for a spline in the context of KANs can be expressed using B-splines as follows:
![](../images/body-5c58f72c010322efe985.png)
Here, _𝑠pline(𝑥) r_epresents the spline function. ci​ __ are the coefficients that are optimized during training, and 𝐵𝑖(𝑥) are the B-spline basis functions defined over a grid. The grid points define the intervals where each basis function 𝐵𝑖​ is active and significantly affects the shape **and sm** ooth**ness of the** spline. You can think of them as a hyperp**arameter that a** ffects the accuracy of the network. More grids mean more c**ontrol and p** recis**ion, also** resulting in more parameters to learn.
![Training a KAN through multiple steps. \(source: GitHub\)](../images/body-594447c22c87ed700592.img)
Training a KAN through multiple steps. (source: [GitHub](https://github.com/KindXiaoming/pykan))
During training, the _ci_ parameters of these splines (the coefficients of the basis functions _Bi(x)_ ) are optimized to **minimize the loss function** , thus adjusting the shape of the spline to best fit the training data. This optimization often involves techniques like [gradient descent](https://en.wikipedia.org/wiki/Gradient_descent), where each iteration updates the spline parameters to reduce prediction error.
### The Best of Two Worlds
While KAN is based on the **Kolmogorov-Arnold representation theorem,** it is just as inspired by MLPs, _"leveraging their respective strengths and avoiding their respective weaknesses_ ". KAN benefits the structure of MLP on the outside, and splines on the inside.
> As a result, KANs can not only learn features (thanks to their external similarity to MLPs), but can also optimize these learned features to great accuracy (thanks to their internal similarity to splines).
## Network Simplification
![An overview of the network symbolification.](../images/006.png)
An overview of the network symbolification.
The paper goes on to explain some methods to simplify the network and our interpretation of them. I will only proceed to refer to two of them which were fascinating to me.
  1. **Symbolification** : KAN is constructed by approximating functions using compositions of simpler, often interpretable functions. This results in their unique ability to hand over **interpretable mathematical formulas** , such as shown in the figure above.
  2. **Pruning** : The other aspect of KANs discussed in the paper is about optimizing the network architecture by **removing less important nodes** or connections after the network has been trained. This process helps in reducing the complexity and size. Pruning focuses on identifying and eliminating those parts of the network that contribute minimally to the output. This makes the network lighter and potentially more interpretable.


## Is KAN New?
Kolmogorov-Arnold representation theorem is not new**,** so why has the practice of using it in machine learning not been studied before? As the paper explains, multiple attempts have been made...
> However, most work has stuck with the original depth-2 width-(2n + 1) representation, and did not have the chance to leverage more modern techniques (e.g., back propagation) to train the networks.
![Visual representation of KAN, created by DALLE-3.](../images/007.jpg)
Visual representation of KAN, created by DALLE-3.
The novelty of the paper is to adapt this idea and apply it to the current landscape of ML. Using arbitrary network architecture (depth, width) and employing techniques such as backpropagation and pruning, KAN is closer to practical use cases than previous studies.
> the Kolmogorov-Arnold representation theorem was basically sentenced to death in machine learning, regarded as theoretically sound but practically useless.
So even though there have been attempts to use Kolmogorov-Arnold representation theorem in ML, it's fair to say KAN is a novel approach in that it is aware of where ML stands today. It's a good update to an idea explored before on a limited scale.
## 4 Fascinating Examples
The paper compares KAN and MLP on several criteria, most of which are gripping. In this part, I will proceed to list some of these interesting examples. The full details of these examples and more are in the paper.
### Fitting Symbolic Formulas
This is an example of training various MLPs and a KAN to fit certain functions of various input dimensions. As can be seen below, KAN has much better **scalability** compared to MLPs (at least in this range of parameter numbers).
> This highlights the greater expressive power of deeper KANs, which is the same for MLPs: deeper MLPs have more expressive power than shallower ones.
![](../images/body-21b2e9c8915a7003620d.png)
### Special Functions
Another example in the paper is to compare KAN and MLP on fitting 15 special functions common in math and physics. The result shows that in almost all of these functions, KANs achieve a **lower train/test loss** having the same number of parameters compared to MLPs.
![](../images/body-8cb3497e04bfde27ae1e.png)
### Continual Learning
Continual Learning is the quality of how networks can adapt to new information over time without forgetting previously learned knowledge. It is a significant challenge in neural network training, particularly in avoiding the problem of **catastrophic forgetting** , where acquiring new knowledge leads to a rapid erosion of previously established information.
KANs demonstrate an ability to retain learned information and adapt to new data without catastrophic forgetting, thanks to the **local nature** of spline functions. Unlike MLPs, which rely on global activations that might unintentionally affect distant parts of the model, KANs modify only a limited set of nearby spline coefficients with each new sample. This focused adjustment preserves previously stored information in other parts of the spline.
![](../images/body-c1656a041577276d4fd8.png)
### Partial Differential Equation solving
> PDE solving, a 2-Layer width-10 KAN is 100 times more accurate than a 4-Layer width-100 MLP (10−7 vs 10−5 MSE) and 100 times more parameter efficient (102 vs 104 parameters).
![](../images/body-c4c7d4c8aeb4e563407e.png)
* * *
The paper continues to present more experiments. One of them includes applying KANs to the problem of [**geometric knot invariant**](https://en.wikipedia.org/wiki/Knot_invariant#:~:text=A%20knot%20invariant%20is%20a%20quantity%20defined%20on%20the%20set,quantity%20defined%20on%20knot%20diagrams.), achieving **81.6%** test accuracy with a **200** -parameter KAN, while an MLP model by Google Deepmind achieves **78%** having *_~ 3_ 10⁵** parameters. This experiment was performed on the
## Final Thoughts
### Is the hype over KAN worth it?
It depends on your perspective. The reason KAN is being discussed so far is that it's a potential light at the end of the ML tunnel. I have discussed in [**"AI Is Hitting A Hard Ceiling It Can't Pass"**](https://www.linkedin.com/feed/update/urn:li:activity:7192221468741582848/) how we need fresh innovations to guide us through the future barriers of Machine Learning, namely **Data** and **Computation**. KANs, though not intentionally, can be a way out.
KAN is written with scientific applications of AI in mind, but already people are using it to mix various ML cocktails, including Multihead Attention.
_**UPDATE: You can read about my experiment of training KAN on the MNIST dataset to test it out on computer vision tasks, don't miss it 👇**_
### Tweet not found
The embedded tweet could not be found…
### KAN + LLM?
The paper focuses mainly on the **AI + Science** applications of Kolmogorov-Arnold Networks due to their ability to model and discover complex scientific laws and patterns effectively. KANs are particularly suited for tasks that require the **understanding** and **interpreting** of underlying physical principles, as their structure allows for the decomposition of functions into symbolic mathematical expressions. This makes them ideal for scientific research where discovering such relationships is crucial, unlike in large language models (LLMs) where the primary goal often revolves around processing a mammoth corpus of data for natural language understanding and generation.
### Author's Notes
I encourage you to also read the [author's notes ](https://github.com/KindXiaoming/pykan?tab=readme-ov-file#authors-note)on the GitHub page. It provides perspective on what KAN was aimed for, and what could be in the future.
> The most common question I've been asked lately is whether KANs will be next-gen LLMs. I don't have good intuition about this. KANs are designed for applications where one cares about high accuracy and/or interpretability. We do care about LLM interpretability for sure, but interpretability can mean wildly different things for LLM and for science. Do we care about high accuracy for LLMs? I don't know, scaling laws seem to imply so, but probably not too high precision. Also, accuracy can also mean different things for LLM and for science. This subtlety makes it hard to directly transfer conclusions in our paper to LLMs, or machine learning tasks in general.
![&quot;KAN: Kolmogorov–Arnold Networks&quot; paper.](../images/body-b9a3fa366c26c74c7b5e.png)
"KAN: Kolmogorov–Arnold Networks" paper.
### Conclusion
In my view, it's best to look at KAN for what it is, rather than what we like it to be. This doesn't mean KAN is **impossible** to be integrated within LLMs, already there is an efficient [**PyTorch implementation of KAN**](https://github.com/Blealtan/efficient-kan). But it has to be noted, it is too soon to call KAN _revolutionary_ or _game-changing_. KAN simply needs more experiments done by community experts.
While KANs offer significant advantages in certain contexts, they come with limitations and considerations that beget caution:
  1. **Complexity and Overfitting** : KANs can potentially overfit, especially in scenarios with limited data. Their ability to form complex models might capture noise as significant patterns, leading to poor generalization.
  2. **Computation:** KANs may face challenges with GPU optimization due to their specialized nature, which can disrupt parallel processing. This architecture could result in slower operations on GPUs, necessitating serialization and leading to inefficient memory utilization, potentially making CPUs a more suitable platform for these networks.
  3. **Applicability:** KANs are primarily designed for scientific and engineering tasks where understanding the underlying function is crucial. They might not be as effective in domains requiring large-scale pattern recognition or classification, such as image recognition or natural language processing, where simpler or more abstract models might suffice.


I have to add this has been an amazing paper to read. It's always exciting to think outside the box and KAN certainly achieves that.
💬 How do you see the potential of KAN? Is it going to niche down to science, or play a key role in our daily AI products?
* * *
**🌟 Join +1000 people learning about**
Python🐍 , ML/MLOps/AI🤖, Data Science📈 , and LLM 🗯
[**follow me**](https://medium.com/@itshesamsheikh/subscribe) and check out my **X/Twitter** , where I keep you updated **Daily** :
Thanks for reading,
— Hesam
## Register Now to Continue Reading
### Unlock Towards Data Science with a Free Account
All articles on Towards Data Science are available to registered users. Create a free account today to access this article and thousands more.
Register for freeSign in to your account
* * *
![](../images/body-2e861118b1a56d435c93.png)
Written By
## [Hesam Sheikh](https://towardsdatascience.com/author/itshesamsheikh/)
[See all from Hesam Sheikh](https://towardsdatascience.com/author/itshesamsheikh/)
[Deep Learning](https://towardsdatascience.com/tag/deep-learning/)[Kan](https://towardsdatascience.com/tag/kan/)[Machine Learning](https://towardsdatascience.com/tag/machine-learning/)[ML](https://towardsdatascience.com/tag/ml/)[Neural Networks](https://towardsdatascience.com/tag/neural-networks/)
Share This Article
  * [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Ftowardsdatascience.com%2Fkolmogorov-arnold-networks-kan-e317b1b4d075%2F&title=Understanding%20Kolmogorov-Arnold%20Networks%20\(KAN\))
  * [](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Ftowardsdatascience.com%2Fkolmogorov-arnold-networks-kan-e317b1b4d075%2F&title=Understanding%20Kolmogorov-Arnold%20Networks%20\(KAN\))
  * [](https://x.com/share?url=https%3A%2F%2Ftowardsdatascience.com%2Fkolmogorov-arnold-networks-kan-e317b1b4d075%2F&text=Understanding%20Kolmogorov-Arnold%20Networks%20\(KAN\))


Towards Data Science is a community publication. Submit your insights to reach our global audience and earn through the TDS Author Payment Program.
[Write for TDS](https://towardsdatascience.com/submissions/)
## Related Articles
  * [![](../images/008.png)](https://towardsdatascience.com/a-machine-learning-engineers-tutorial-to-transfer-learning-for-multi-class-image-segmentation-b34818caec6b/)
## [A Machine Learning Engineer's Tutorial to Transfer Learning for Multi-class Image Segmentation...](https://towardsdatascience.com/a-machine-learning-engineers-tutorial-to-transfer-learning-for-multi-class-image-segmentation-b34818caec6b/)
[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)
A Debugging Guide for optimal parameterization of Segmentation models
[Dr. Sohini Roychowdhury](https://towardsdatascience.com/author/sohini_55473/)
March 11, 20218 min read
  * [![](../images/009.png)](https://towardsdatascience.com/evaluation-and-prediction-of-students-academic-performance-during-covid-19-40bb2b90141b/)
## [Evaluation and Prediction of Student's Academic Performance during Covid-19](https://towardsdatascience.com/evaluation-and-prediction-of-students-academic-performance-during-covid-19-40bb2b90141b/)
[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)
It's that time of the year again. Shifting through last minutes notes on the morning of the exam, devouring your breakfast like an ape to...
[Kartikaya Srivastava](https://towardsdatascience.com/author/kartiksrivas/)
April 20, 20214 min read
  * [![](../images/010.png)](https://towardsdatascience.com/how-major-reasoning-models-converge-to-the-same-brain-as-they-model-reality-increasingly-better/)
## [How Major Reasoning Models Converge to the Same “Brain” as They Model Reality Increasingly Better](https://towardsdatascience.com/how-major-reasoning-models-converge-to-the-same-brain-as-they-model-reality-increasingly-better/)
[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)
Because there's only one reality to model!
[Luciano Abriata](https://towardsdatascience.com/author/lucianosphere/)
May 7, 20267 min read
  * [![](../images/011.png)](https://towardsdatascience.com/understanding-and-implementing-medprompt-77bbd2777c91/)
## [Understanding and Implementing Medprompt](https://towardsdatascience.com/understanding-and-implementing-medprompt-77bbd2777c91/)
[ChatGPT](https://towardsdatascience.com/category/artificial-intelligence/chatgpt/)
Digging into the details behind the prompting framework
[Anand Subramanian](https://towardsdatascience.com/author/anand.subu10/)
July 6, 202414 min read
  * [![](../images/012.jpeg)](https://towardsdatascience.com/what-you-should-know-before-starting-a-career-in-data-analytics-4a39e80bafa0/)
## [What You Should Know Before Starting a Career in Data Analytics](https://towardsdatascience.com/what-you-should-know-before-starting-a-career-in-data-analytics-4a39e80bafa0/)
[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)
Expectations versus reality
[Vicky Yu](https://towardsdatascience.com/author/madfordata/)
February 6, 20214 min read
  * [![](../images/013.jpeg)](https://towardsdatascience.com/is-online-poker-dead-647b2a78cae9/)
## [Is Online Poker Dead?](https://towardsdatascience.com/is-online-poker-dead-647b2a78cae9/)
[Artificial Intelligence](https://towardsdatascience.com/category/artificial-intelligence/)
The Next Casualty for AI
[Jye Sawtell-Rickson](https://towardsdatascience.com/author/jyesr/)
September 17, 20193 min read
  * [![](../images/014.jpg)](https://towardsdatascience.com/building-robust-credit-scoring-models-part-3/)
## [Building Robust Credit Scoring Models (Part 3)](https://towardsdatascience.com/building-robust-credit-scoring-models-part-3/)
[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)
Handling outliers and missing values in borrower data using Python.
[JUNIOR JUMBONG](https://towardsdatascience.com/author/jumbongjunior1999/)
March 20, 202615 min read
  * [![](../images/015.jpg)](https://towardsdatascience.com/how-to-accelerate-your-pytorch-training-with-xla-on-aws-3d599bc8f6a9/)
## [How to Accelerate your PyTorch GPU Training with XLA](https://towardsdatascience.com/how-to-accelerate-your-pytorch-training-with-xla-on-aws-3d599bc8f6a9/)
[Deep Learning](https://towardsdatascience.com/category/artificial-intelligence/deep-learning/)
The Power of PyTorch/XLA and how Amazon SageMaker Training Compiler Simplifies its use
[Chaim Rand](https://towardsdatascience.com/author/chaimrand/)
October 17, 202211 min read
  * [![](../images/016.jpg)](https://towardsdatascience.com/data-preparation-guide-for-detecting-histopathologic-cancer-detection-7b96d6a12004/)
## [Data Preparation Guide for detecting Histopathologic Cancer Detection](https://towardsdatascience.com/data-preparation-guide-for-detecting-histopathologic-cancer-detection-7b96d6a12004/)
[Machine Learning](https://towardsdatascience.com/category/artificial-intelligence/machine-learning/)
Guide on how to prepare data for model training for Kaggle's Histopathologic Cancer Detection.
[Abdul Qadir](https://towardsdatascience.com/author/aq-abdulqadir/)
October 26, 20207 min read


  * [YouTube](https://www.youtube.com/c/TowardsDataScience)
  * [X](https://x.com/TDataScience)
  * [LinkedIn](https://www.linkedin.com/company/towards-data-science/)
  * [Threads](https://www.threads.net/@towardsdatascience)
  * [Bluesky](https://bsky.app/profile/towardsdatascience.com)


[](https://towardsdatascience.com/)
Your home for data science and AI. The world's leading publication for data science, data analytics, data engineering, machine learning, and artificial intelligence professionals.
Subscribe to Our Newsletter[Write For TDS](https://towardsdatascience.com/submissions/)•[About](https://towardsdatascience.com/about-towards-data-science-d691af11cc2f/)•[Advertise](https://contact.towardsdatascience.com/advertise-with-towards-data-science)•[Privacy Policy](https://towardsdatascience.com/privacy-policy/)•[Terms of Use](https://towardsdatascience.com/website-terms-of-use/)
© Insight Media Group, LLC 2026•[The New Stack](https://thenewstack.io)•[roadmap.sh](https://roadmap.sh)•[Creator Network](https://insightmediagroup.io/creator-network)
####  Recommended Articles 
Close
  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607686/image?etag=1782161464448&width=500&height=500) How Relevance Models Foreshadowed Transformers for NLP ](https://towardsdatascience.com/how-relevance-models-foreshadowed-transformers-for-nlp/ "How Relevance Models Foreshadowed Transformers for NLP")
  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607639/image?etag=1781250125848&width=500&height=500) Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1 ](https://towardsdatascience.com/javascript-fatigue-you-dont-need-js-to-build-chatgpt/ "Javascript Fatigue: HTMX Is All You Need to Build ChatGPT — Part 1")
  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/607930/image?etag=1782124566054&width=500&height=500) The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs ](https://towardsdatascience.com/subset-sum-problem-solved-in-linear-time-for-dense-enough-inputs/ "The Subset Sum Problem Solved in Linear Time for Dense Enough Inputs")
  * [ ![](https://h030.towardsdatascience.com/rest/v2/contentStores/d7d3a4ab-7caf-4383-bbd2-fbf7fb4f1787/items/3660/image?etag=1780176246070&width=500&height=500) Does Your Company Have a Data Strategy? ](https://towardsdatascience.com/does-your-company-have-a-data-strategy-e8944dbec4ae/ "Does Your Company Have a Data Strategy?")


