TL;DR
Kolmogorov-Arnold Networks (KANs) replace scalar edge weights with parameter-heavy basis coefficient vectors, causing severe memory bloat. MetaCluster solves this by using a lightweight meta-learner during training to project edge coefficients onto a low-dimensional manifold, making them clusterable via K-means. The result is a codebook-compressed KAN that achieves up to $80\times$ memory reduction on vision tasks and $124.1\times$ on equation modeling without sacrificing accuracy or adding inference latency.
What Problem Does This Paper Address?
While standard Multi-Layer Perceptrons (MLPs) place fixed activation functions on nodes and learn scalar weights on edges, KANs place learnable univariate functions parameterized by basis coefficients (e.g., B-splines, radial basis functions, or Gram polynomials) directly on edges. This structural design drastically boosts representation power and parameter efficiency for scientific equation modeling.
However, when scaled to deeper architectures or computer vision tasks, KANs suffer from a multiplicative parameter explosion: every edge requires a vector of $|w|$ basis coefficients instead of a single scalar, making them roughly $|w|$ times larger than equivalent MLPs.
A natural solution is weight sharing (clustering parameters into a shared codebook). Yet directly applying K-means to high-dimensional coefficient vectors fails due to the curse of dimensionality—distances between vectors concentrate and become diffuse, leading to poor cluster quality and steep accuracy drops.
Methods
MetaCluster is a three-stage compression framework:
-
Manifold Learning via a Meta-Learner: Instead of directly learning free coefficient vectors $w_i \in \mathbb{R}^{|w|}$, a small neural network $M_\theta$ maps a compact low-dimensional embedding $z_i \in \mathbb{R}^{d_{emb}}$ (where $d_{emb} \in \{1, 2\}$) to the full coefficient vector: $$w_i = M_\theta(z_i) = W_2 \sigma(W_1 z_i + b_1) + b_2$$ Trained jointly on the downstream task loss, this restricts the generated activation weights to a coherent, low-dimensional manifold.
-
K-Means MetaClustering: K-means is applied directly in the coefficient space $\mathbb{R}^{|w|}$. Each edge is assigned an integer index pointing to a shared centroid codebook.
- Accuracy Recovery & Discarding: The meta-learner and the embeddings are completely discarded. Only the centroid codebook and the per-edge indices are retained. The centroids are briefly fine-tuned for a few epochs ($\beta \ll \alpha$ training epochs) to recover any residual quantization error.
Unlike inference with hypernetworks, MetaCluster reconstructs weights using a simple table lookup, incurring zero architectural or latency overhead at inference time.
Datasets
- Image Classification: MNIST, CIFAR-10, and CIFAR-100 evaluated across three basis types (B-spline KAN, RBF FastKAN, and Gram polynomial GramKAN) on both fully-connected and 4-layer convolutional (ConvKAN) architectures.
- High-Dimensional Equation Modeling: 1,000-dimensional synthetic regression tasks modeling three target functions ($f_1(x) = \exp(\frac{1}{n}\sum \sin^2(\frac{\pi x}{2}))$, $f_2(x) = \sum (x^2 + x^3)$, and $f_3(x) = \exp(-\frac{1}{n}\sum x^2)$) on the bounded domain $[-1, 1]$.
- No new benchmarks were created; all tasks follow existing KAN evaluation setups.
Key Insights and Ideas
- Amortized Index Overhead: In MLPs, weight sharing requires storing a $\log_2(k)$-bit index for every single scalar. In KANs, each centroid stores an entire $|w|$-dimensional vector. A single index therefore addresses $|w|$ weights simultaneously, reducing index storage overhead and yielding higher theoretical compression ratios than scalar weight sharing.
- Manifold Shaping is Essential: Visualizations via t-SNE demonstrate that raw KAN weights form diffuse clouds in high dimensions. The meta-learner forces them into tight 1D curves or 2D sheets, allowing standard Euclidean K-means to form compact, representative clusters.
- Hessian-Aware Methods Underperform: Testing against GPTVQ (a Hessian-weighted vector quantization method popular for LLMs) revealed that second-order Hessian information does not benefit KAN weight sharing and often degrades accuracy.
- Euclidean Distance Beats Cosine Similarity: In ablations, clustering via Euclidean distance outperformed cosine similarity because vector magnitude holds meaningful functional information for basis scaling.
Key Results
- Fully-Connected Vision Models: On CIFAR-10, MetaClusterKAN achieved a $79.9\times$ compression factor (shrinking storage from 3,064.95 KB to 38.34 KB) while preserving accuracy ($45.95\%$ vs. baseline $47.52\%$). Standard clustering without the meta-learner degraded accuracy to $43.71\%$ even with fine-tuning.
- Convolutional KANs (ConvKAN): On CIFAR-10, MetaCluster compressed FastKANConv from 13.65 MB to 428.55 KB (a $31.8\times$ reduction) while maintaining $69.10\%$ accuracy (baseline: $76.30\%$, while naive clustering collapsed to $57.45\%$).
- Equation Modeling: On 1,000-D equations, MetaCluster reduced memory by $124.1\times$ (1,303.6 KB down to 10.5 KB) while matching or slightly exceeding baseline accuracy (e.g., test MSE of $2.697 \times 10^{-5}$ vs. baseline $5.061 \times 10^{-5}$ on $f_1$).
- Computational Efficiency: Clustering overhead is negligible (0.02–0.08 seconds for fully connected networks; ~2.8 seconds for ConvKANs on an RTX 5090).
Limitations and Future Work
- Model Scale: Evaluations focus on relatively small benchmarks (two-layer fully-connected networks and shallow ConvKANs). Evaluating large vision transformers (e.g., KAT) or large-scale scientific foundation models remains untested.
- Multi-Stage Workflow: The framework requires three distinct steps (meta-training, clustering, and fine-tuning), which adds pipeline complexity relative to post-training quantization.
- Orthogonal Quantization: The paper only investigates codebook clustering ($b$-bit float centroids). Exploring low-bit integer quantization on the centroids themselves was left as future work.
Summary updated