This repository is the official implementation of the paper Incorporating Arbitrary Matrix Group Equivariance into KANs (ICML 2025).
To install requirements:
pip install -r requirements.txtTo install Adan:
git clone https://github.com/sail-sg/Adan.git
cd Adan
python3 setup.py install --unfusedTo download the top quark tagging dataset:
wget -P ./data/TopTagging https://zenodo.org/records/2603256/files/train.h5 https://zenodo.org/records/2603256/files/val.h5 https://zenodo.org/records/2603256/files/test.h5To train the models on the particle scattering dataset:
# EKAN
bash run_scripts/ParticleInteraction/EKAN.sh
# KAN
bash run_scripts/ParticleInteraction/KAN.shTo train the models on the three-body problem dataset:
# EKAN
bash run_scripts/3Body/EKAN.sh
# EMLP
bash run_scripts/3Body/EMLP.sh
# KAN
bash run_scripts/3Body/KAN.sh
# MLP
bash run_scripts/3Body/MLP.shTo train the models on the top quark tagging dataset (
# EKAN
bash run_scripts/TopTagging3/EKAN.sh
# EMLP
bash run_scripts/TopTagging3/EMLP.sh
# KAN
bash run_scripts/TopTagging3/KAN.sh
# MLP
bash run_scripts/TopTagging3/MLP.sh
# CGENN
cd CGENN
bash run_scripts/TopTagging3.shTo train the models on the top quark tagging dataset (
# EKAN
bash run_scripts/TopTagging10/EKAN.sh
# EMLP
bash run_scripts/TopTagging10/EMLP.sh
# CGENN
cd CGENN
bash run_scripts/TopTagging10.shTo train the models on the top quark tagging dataset (
# EKAN
bash run_scripts/TopTagging20/EKAN.sh
# EMLP
bash run_scripts/TopTagging20/EMLP.sh
# CGENN
cd CGENN
bash run_scripts/TopTagging20.shTo evaluate the test MSE of the models on the particle scattering dataset:
# EKAN
bash run_scripts/ParticleInteraction/EKAN_test.sh
# KAN
bash run_scripts/ParticleInteraction/KAN_test.shTo evaluate the equivariant error of the models on the particle scattering dataset:
# EKAN
bash run_scripts/ParticleInteraction/EKAN_test_equi.sh
# KAN
bash run_scripts/ParticleInteraction/KAN_test_equi.shTo evaluate the test MSE of the models on the three-body problem dataset:
# EKAN
bash run_scripts/3Body/EKAN_test.sh
# EMLP
bash run_scripts/3Body/EMLP_test.sh
# KAN
bash run_scripts/3Body/KAN_test.sh
# MLP
bash run_scripts/3Body/MLP_test.shTo evaluate the equivariant error of the models on the three-body problem dataset:
# EKAN
bash run_scripts/3Body/EKAN_test_equi.sh
# EMLP
bash run_scripts/3Body/EMLP_test_equi.sh
# KAN
bash run_scripts/3Body/KAN_test_equi.sh
# MLP
bash run_scripts/3Body/MLP_test_equi.shTo evaluate the test accuracy of the models on the top quark tagging dataset (
# EKAN
bash run_scripts/TopTagging3/EKAN_test.sh
# EMLP
bash run_scripts/TopTagging3/EMLP_test.sh
# KAN
bash run_scripts/TopTagging3/KAN_test.sh
# MLP
bash run_scripts/TopTagging3/MLP_test.sh
# CGENN
cd CGENN
bash run_scripts/TopTagging3_test.shTo evaluate the equivariant error of the models on the top quark tagging dataset (
# EKAN
bash run_scripts/TopTagging3/EKAN_test_equi.sh
# EMLP
bash run_scripts/TopTagging3/EMLP_test_equi.sh
# KAN
bash run_scripts/TopTagging3/KAN_test_equi.sh
# MLP
bash run_scripts/TopTagging3/MLP_test_equi.shTo evaluate the test accuracy of the models on the top quark tagging dataset (
# EKAN
bash run_scripts/TopTagging10/EKAN_test.sh
# EMLP
bash run_scripts/TopTagging10/EMLP_test.sh
# CGENN
cd CGENN
bash run_scripts/TopTagging10_test.shTo evaluate the test accuracy of the models on the top quark tagging dataset (
# EKAN
bash run_scripts/TopTagging20/EKAN_test.sh
# EMLP
bash run_scripts/TopTagging20/EMLP_test.sh
# CGENN
cd CGENN
bash run_scripts/TopTagging20_test.sh
