arXiv:2610.20117cs.LGOct 2026

Manuscript Offprint

arXiv:2610.20117

KANLab: TensorFlow Playground for Kolmogorov-Arnold Networks

Lukas Niehaus, Robin Rawiel, Ulf Krumnack

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

KANLab is a browser-based visualization tool designed to interactively teach the core concepts of Kolmogorov-Arnold Networks (KAN), forked from the widely successful TensorFlow Playground. To maximize educational clarity, KANLab omits residual connections and learnable scaling parameters found in modern KAN implementations, ensuring that displayed B-spline activation curves directly correspond to their underlying trainable control points. Users can inspect and modify activation functions, initialization schemes and observe gradient descent correcting manual disruptions. Furthermore, user can explore phenomena such as activation variance, interactive pruning, and re-training within a compact 2D machine learning setting. KANLab is open-source and available at https://kanlab.app/.

1 Introduction

Combining lecture-like instructions with practical application has been shown to enhance the understanding of a variety of topics, including Artificial Intelligence (AI) [Turgunbaev, 2025]. A prime example of this is the popular TensorFlow Playground [Smilkov et al., 2017], which helps build intuition about the concepts and hyperparameters of Multi-layer Perceptrons (MLPs) by letting the user train interactively in the browser. In addition to being widely successful, it also inspired a whole branch of practice-oriented applications to improve the understanding in different fields of AI. One showcase for this is the Adversarial Playground [Norton and Qi, 2017], which focuses on education about adversarial attacks on already trained neural networks. Another browser-based rendition, GANLab [Kahng et al., 2019] allows the user to train a generator and a discriminator of a Generative Adversarial Network (GAN) on 2D distributions, while being able to observe their interplay directly. More recently, the Quantum Machine Learning Playground [Debus et al., 2024] has been released, also leveraging established interactivity and visualization methods.

A relatively new field in AI are KANs, which are popularized in their current form by [Liu et al., 2025]. They have been proposed as an interesting new tool in the repertoire of a deep learning researcher and can be used as an alternative to classical MLPs, promising more compact architecture due to more powerful activation functions, resulting in more interpretable models. MLPs layers sum up weighted inputs and then pass them through a static non-linear activation function (like ReLU) to solve non-linear problems. KANs layers, on the other hand, use trainable non-linear activation functions and sum up their results on nodes. While the primary success of KANs is in symbolic formula representation tasks [Yu et al., 2024], they are also frequently experimented with for classification tasks [Yang et al., 2025; Hadj Kilani, 2024; Jamali et al., 2024; Ibrahim et al., 2024].

Regarding KAN-specific projects, the KAN-Playground [Solovyeva, 2025] demonstrates a feature-rich Gradio implementation. While the project is readily accessible via Hugging Face Spaces, training is still computed server-side. While this enables a close-to feature-complete and high-performant experience, this API-based approach comes at the drawback of offering limited responsiveness and interactivity. For example, the architecture is represented via an image, that is updated once per epoch. Furthermore, modern KAN implementations add residual connections and learnable scaling/shifting parameters on top of the underlying univariate function. While these additions are important for performance, they distort the relationship between the activation visualization and the underlying spline parameterization, making the visualizations harder to interpret from an educational perspective.

Due to the close similarities between KANs and MLPs, and the established educational design decisions of the TensorFlow Playground, we created KANLab 1^{1} as a fork of it. This allows us to create more specialized visualizations and even enables users to drag individual control points during training and observe how gradient descent corrects these manual disruptions in real time. KANLab aims to fill the gap between people who are new to KANs and want to understand the core concepts, and KAN-experts who want to communicate or probe KAN behavior in an accessible environment.

1^{1}https://kanlab.app/

Figure

▶

Epoch

000,125

Learning rate

0.1

Spline degree

3 (Cubic)

Control points

5

Initialization

0.3 (Default)

Problem type

Classification

DATA

Which dataset do you want to use?

Figure

Ratio of training to test data: 50%

Noise: 0

Batch size: 10

REGENERATE

FEATURES

Which properties do you want to feed in?

    • 1 HIDDEN LAYER

2 Nodes

OUTPUT

Test loss 0.054

Training loss 0.048

Figure

This is a learnable univariate B-spline activation function. Hover to open; click to activate/deactivate.

This is the summation of multiple univariate B-spline activation functions. Hover to see it larger.

Colors shows data, node and output.

Show test data

Discretize output

Figure 1: Main view of KANLab, with a two layer Kolmogorov-Arnold Network (KAN) that has 2 input features (P), 2 hidden nodes (Q) and 1 output Node, represented by squares. In between these we visualize the green B-spline activation functions with rectangles. Left and right of the rectangles gray dashed lines represent the variance of the incoming (left) and outgoing (right) activation variance by contrasting levels of thickness.