Repository navigation
KAN layers as dense GEMMs in JAX: a small Neural QMC experiment (FermiKAN) #41020
Unanswered
Samu-Physicist
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone! I’m an R&D researcher at a chemical manufacturer. I usually rely on commercial quantum chemistry solvers, but Neural QMC caught my eye—theoretically, it offers highly accurate quantum mechanics evaluation at$\mathcal{O}(N^4)$ computational cost!
I started experimenting with DeepMind’s FermiNet and successfully reached chemical accuracy for H2 and LiH systems. That got me thinking: what if we replaced the MLPs with KANs (Kolmogorov-Arnold Networks) acting as a learnable physical basis set on single-electron orbitals? This could potentially demonstrate a "Glass-Box" AI, highly interpretable and compatible with LLMs (Neuro-Symbolic approach).
Thanks to JAX's incredible expressiveness, implementing these complex basis function expansions was elegant. By replacing branching B-splines with orthogonal polynomials and utilizing jnp.einsum, I was able to compile the KAN architecture into GEMMs. I built this entirely as a weekend project, pairing with Gemini as my coding partner to push the limits of what I could do with JAX.
Here are the results from my H2 PoC:
This is a personal, non-peer-reviewed project. I've written a detailed breakdown of the architecture, the math, and my struggles here:
👉 Link to GitHub Repo
👉 Link to Hashnode Article
I’d love to hear your thoughts! I’m especially hoping to collaborate with JAX/XLA wizards (I’d really appreciate some advice on overcoming the K-FAC integration issue) and domain experts!
All reactions