arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.01124cs.CV
收藏

ViKANformer:将 Kolmogorov Arnold Networks 嵌入 Vision Transformers 以实现基于模式的学习

ViKANformer: Embedding Kolmogorov Arnold Networks in Vision Transformers for Pattern-Based Learning

VIT-AP University(VIT-AP大学);School of Computer Science and Engineering(计算机科学与工程学院)

Shreyas S, Akshath M

AI总结:

提出 ViKANformer,用 Kolmogorov-Arnold Network 展开式替换 Vision Transformers 中的 MLP 子层以增强非线性建模能力,在 MNIST 上取得了超 97% 准确率,验证了该方法在小数据集上的有效性。

摘要:

Vision Transformers (ViTs) 通过在 patch embeddings 上应用自注意力机制,显著推进了图像分类。然而,每个 Transformer 层中的标准 MLP 模块可能无法最优地捕获复杂的非线性依赖关系。在本文中,我们提出了 ViKANformer,这是一种 Vision Transformer,我们用 Kolmogorov-Arnold Network (KAN) 展开式替换了 MLP 子层,包括 Vanilla KAN、Efficient-KAN、Fast-KAN、SineKAN 和 FourierKAN,同时还考察了一个 Flash Attention 变体。通过利用 Kolmogorov-Arnold 定理(该定理保证多元连续函数可以通过一元连续函数的和来表示),我们旨在提升表示能力。在 MNIST 上的实验结果表明,SineKAN、Fast-KAN 和经过良好调优的 Vanilla KAN 可以达到 97% 以上的准确率,尽管训练开销有所增加。这种权衡突显了如果计算成本可接受,KAN 展开式可能是有益的。我们详细介绍了这些展开式,给出了训练/测试准确率和 F1/ROC 指标,并提供了伪代码和超参数以确保可复现性。最后,我们在 MNIST 上将 ViKANformer 与一个简单的 MLP 和一个小型 CNN 基准进行了比较,说明了基于 Transformer 的方法即使在小型数据集上也是高效的。

英文摘要:

Vision Transformers (ViTs) have significantly advanced image classification by applying self-attention on patch embeddings. However, the standard MLP blocks in each Transformer layer may not capture complex nonlinear dependencies optimally. In this paper, we propose ViKANformer, a Vision Transformer where we replace the MLP sub-layers with Kolmogorov-Arnold Network (KAN) expansions, including Vanilla KAN, Efficient-KAN, Fast-KAN, SineKAN, and FourierKAN, while also examining a Flash Attention variant. By leveraging the Kolmogorov-Arnold theorem, which guarantees that multivariate continuous functions can be expressed via sums of univariate continuous functions, we aim to boost representational power. Experimental results on MNIST demonstrate that SineKAN, Fast-KAN, and a well-tuned Vanilla KAN can achieve over 97% accuracy, albeit with increased training overhead. This trade-off highlights that KAN expansions may be beneficial if computational cost is acceptable. We detail the expansions, present training/test accuracy and F1/ROC metrics, and provide pseudocode and hyperparameters for reproducibility. Finally, we compare ViKANformer to a simple MLP and a small CNN baseline on MNIST, illustrating the efficiency of Transformer-based methods even on a small-scale dataset.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑