Can KANs Do It? Toward Interpretable Deep Learning-Based Side-Channel Analysis

Kota Yoshida, Sengim Karayalcin, Stjepan Picek

This paper explores the application of a new neural network architecture to the field of hardware security, specifically targeting the "black box" problem in deep learning-based side-channel analysis.

TL;DR

The authors introduce Kolmogorov-Arnold Networks (KANs) to side-channel analysis, demonstrating that they can break cryptographic masking countermeasures with performance comparable to standard neural networks. Crucially, KANs offer superior interpretability, allowing researchers to visually "see" the mathematical strategies the model uses to recombine secret shares from power consumption traces.

What Problem Does This Paper Address?

Side-channel analysis (SCA) involves extracting secret cryptographic keys by observing physical leakages, such as power consumption or electromagnetic emissions. While Deep Learning-based SCA (DLSCA) has proven incredibly effective at bypassing security countermeasures like "masking" (where a secret is split into multiple random shares), these models are notoriously difficult to interpret.

Existing interpretability tools like saliency maps or heatmaps can tell a researcher where a model is looking in a power trace, but they fail to explain how the model is combining those points to defeat the countermeasure. This paper tackles the challenge of creating a "white-box" profiling attack that reveals the underlying logic of the adversary.

Methods

The researchers replace the traditional Multi-Layer Perceptron (MLP) with Kolmogorov-Arnold Networks (KANs).

  • The KAN Difference: In a standard MLP, nodes have fixed activation functions (like ReLU) and edges have simple weights. KANs flip this: they have learnable activation functions (parameterized as B-splines) on the edges and simply sum the results at the nodes.
  • Symbolic Regression: Because the activation functions are univariate and plotted on edges, they can often be simplified into symbolic mathematical expressions.
  • SCA Application: The authors trained KANs to predict intermediate values (like the output of an AES S-box) from both simulated traces and real-world power measurements. They then visualized the learned edge functions to reverse-engineer the model's "attack strategy."

Datasets

The study utilizes two primary types of data:

  1. Simulated Traces: Generated to represent Boolean masking (bitwise XOR) and Hamming Weight (HW) leakage models with varying levels of noise.
  2. ASCADv1: The industry-standard benchmark for DLSCA. It consists of power traces from an 8-bit AVR microcontroller running a masked implementation of AES-128. The authors tested both the "fixed key" and "variable key" versions of this dataset.

Key Insights and Ideas

  • Visualizing the XOR: For bitwise masking, the KANs naturally learned sinusoid-like periodic functions. The authors show that this is the model's way of implementing a modulo-2 addition (XOR) to recombine shares—a fundamental requirement for breaking Boolean masking.
  • The EVM Strategy: When attacking Hamming Weight leakages, the KANs learned an "Expected Value Maximization" (EVM) strategy. The model identifies specific biased frequencies in the combined shares to make a prediction, achieving ~53% accuracy on 2-share masking where a random guess would be 50%.
  • Inherent Feature Selection: KANs proved robust against "uninformative samples" (noise or irrelevant data points). The sensitivity analysis showed that the model automatically focused on the exact time samples where the secret shares were being processed.
  • Revealing Hardware Bias: By analyzing the KAN's performance across different bits, the authors confirmed that the ASCAD dataset has an "imbalanced" leakage where the Least Significant Bit (LSB) contributes more to power consumption than others.

Key Results

  • Competitive Performance: KANs performed similarly to MLPs in terms of attack efficiency. On the ASCADv1 fixed-key dataset, KANs required approximately 315 traces to reach a "Guessing Entropy" of zero (successfully retrieving the key), compared to 222 traces for a highly optimized MLP.
  • Accuracy: KANs achieved a classification accuracy of 61.18% on the ASCAD fixed-key test set, slightly outperforming the baseline MLP's 60.46%.
  • Parameter Efficiency: KANs achieved these results with significantly fewer trainable parameters than typical deep learning models used in the field.

Limitations and Future Work

The primary drawback identified is computational overhead. In the authors' environment, training a KAN on 1,400 input samples took 13 hours, whereas a standard MLP finished in just 15 minutes. This is largely due to the current lack of optimized software libraries for KANs compared to the highly mature ecosystems for MLPs and CNNs.

Future work suggested by the authors includes:

  • Optimizing KAN implementations to reduce training time.
  • Integrating KAN layers into larger architectures, such as Convolutional Neural Networks (CNNs), to handle longer, more complex traces.
  • Exploring other labeling techniques, such as "Identity labeling," to see if KANs can maintain their interpretability on more complex classification tasks.

Summary updated

BibTeX
@inproceedings{yoshida2025can,
  author = {Kota Yoshida and Sengim Karayalcin and Stjepan Picek},
  title = {{Can KANs Do It? Toward Interpretable Deep Learning-Based Side-Channel Analysis}},
  booktitle = {ACNS Workshops},
  year = {2025},
  doi = {10.1007/978-3-032-01799-4\_3},
}
Figure