<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alireza Afzal Aghaei on Medium]]></title>
        <description><![CDATA[Stories by Alireza Afzal Aghaei on Medium]]></description>
        <link>https://medium.com/@alirezaafzalaghaei?source=rss-a9c02e252e74------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MOPQ-7cTaiE8GCQQ6ugaCA.jpeg</url>
            <title>Stories by Alireza Afzal Aghaei on Medium</title>
            <link>https://medium.com/@alirezaafzalaghaei?source=rss-a9c02e252e74------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:57:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alirezaafzalaghaei/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fractional Kolmogorov-Arnold Networks (fKANs)]]></title>
            <link>https://medium.com/@alirezaafzalaghaei/fractional-kolmogorov-arnold-networks-fkans-edf713da5425?source=rss-a9c02e252e74------2</link>
            <guid isPermaLink="false">https://medium.com/p/edf713da5425</guid>
            <category><![CDATA[physics-informed]]></category>
            <category><![CDATA[activation-functions]]></category>
            <category><![CDATA[kolmogorov-arnold-network]]></category>
            <category><![CDATA[physics-informed-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Alireza Afzal Aghaei]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 13:33:04 GMT</pubDate>
            <atom:updated>2024-06-12T13:33:04.223Z</atom:updated>
            <content:encoded><![CDATA[<p>The world of neural network design has been revolutionized with the advent of Kolmogorov-Arnold Networks (KANs), known for their interpretability, and precision. Today, we delve into an exciting new development in this field — the Fractional Kolmogorov-Arnold Networks (fKANs).</p><h3>Understanding Kolmogorov-Arnold Networks</h3><p>KANs are based on the <a href="https://www.google.com/search?q=Kolmogorov-Arnold+representation+theorem">Kolmogorov-Arnold representation theorem</a>, which states that a multivariate continuous function can be expressed as a finite composition of continuous functions of a single variable and the binary operation of addition. Mathematically:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/0*cJg7PggXLO4qS4sa.png" /><figcaption>Kolmogorov-Arnold approximation</figcaption></figure><h3>Fractional Kolmogorov-Arnold Networks (fKANs)</h3><p>The fKAN proposes to use a fractional basis function instead of a naive one. Mathematically, for a predefined gamma:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*oWPSyJYYkKY3Sg-T.png" /><figcaption>fractional KAN</figcaption></figure><h3>Fractional Basis Functions</h3><p>In the paper <a href="https://arxiv.org/abs/2406.07456">fKAN: Fractional Kolmogorov-Arnold Networks with Trainable Jacobi Basis Functions</a>, the fractional order of orthogonal Jacobi functions is explored as the potential fractional basis function for KAN approximation. These functions are defined as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/0*CMi1R3OkkSb_KVd5.png" /><figcaption>Fractional Jacobi functions</figcaption></figure><p>Then, the fKAN basis functions (or Fractional Jacobi Neural Blocks) are formulated as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/0*uH4CupCbhKavLoTc.png" /><figcaption>Fractional Jacobi Neural Block</figcaption></figure><p>Here, ELU stands for Exponential Linear Unit, σ represents the sigmoid function, and γ, α, and β are trainable weights.</p><h3>How to use it?</h3><p>The fKAN has a <a href="https://github.com/alirezaafzalaghaei/fKAN">GitHub repo</a> as well as a <a href="https://pypi.org/project/fkan/">PyPI page</a>. Hence it can be installed using pip python package manager:</p><pre>pip install fkan</pre><p>and can be easily integrated into any deep architecture. For example in a Keras sequential model:</p><pre>from tensorflow import keras<br>from tensorflow.keras import layers<br>from fkan.tensorflow import FractionalJacobiNeuralBlock as fJNB<br><br>model = keras.Sequential(<br>    [<br>        layers.InputLayer(input_shape=input_shape),<br>        layers.Conv2D(32, kernel_size=(3, 3)),<br>        fJNB(3),<br>        layers.MaxPooling2D(pool_size=(2, 2)),<br>        layers.Flatten(),<br>        layers.Dropout(0.5),<br>        layers.Dense(16),<br>        fJNB(2),<br>        layers.Dense(num_classes, activation=&quot;softmax&quot;),<br>    ]<br>)</pre><p>or in PyTorch sequential API:</p><pre>import torch.nn as nn<br>from fkan.torch import FractionalJacobiNeuralBlock as fJNB<br><br>model = nn.Sequential(<br>    nn.Linear(1, 16),<br>    fJNB(3),<br>    nn.Linear(16, 32),<br>    fJNB(6),<br>    nn.Linear(32, 1),<br>)</pre><h3>Results</h3><p>The fKAN achieves more accurate predictions in less time compared to KANs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8EMFy5Q_u8QasqXxL1NsA.png" /><figcaption>fKAN vs other alternatives</figcaption></figure><p>It also demonstrates excellent accuracy in image classification, image denoising, and sentiment analysis tasks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NsIncXMcRXQ54hidoB-FkA.png" /><figcaption>MNIST classification using fKAN</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TYvvBHI6m6EjeAbI2lXDhg.png" /><figcaption>Image denoising using fKAN</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JfnPccN4n3Q1JP7n2h7_eA.png" /><figcaption>IMDB sentiment analysis using fKAN</figcaption></figure><h3>Physics-informed fractional KANs</h3><p>The fKAN is also capable of solving complex physics-informed neural network (PINN) tasks. It can simulate ordinary, partial, and fractional differential equations easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*-e5hIFYB2cA3lj-gC5sK9Q.png" /><figcaption>Simulation of standard Lane-Emden singular second-order ordinary differential equation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*I_aHA8-Df6Zx31jFtlLXGg.png" /><figcaption>Simulation results of Burgers partial differential equations using fKAN</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FZLj_-oakRF93WRflJyQow.png" /><figcaption>Simulation results of a Caputo fractional delay differential equation using fKAN</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edf713da5425" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>