Jump, It Is Easy: JumpReLU Activation Function in Deep Learning-based Side-channel Analysis

Abraham Basurto-Becerra, Azade Rezaeezade, Stjepan Picek

TL;DR

This paper explores the JumpReLU activation function for deep learning-based side-channel analysis (DLSCA). They found that while simply replacing existing activation functions with JumpReLU doesn't significantly improve performance, using it during hyperparameter tuning leads to more architectures that can break cryptographic targets and often requires fewer attack traces.

What Problem Does This Paper Address?

Side-channel analysis (SCA) is a powerful class of attacks that exploits physical leakage (like power consumption or electromagnetic emissions) from devices to extract sensitive information, such as cryptographic keys. Deep learning has emerged as a potent tool for SCA, often outperforming traditional methods. However, finding the optimal deep learning architecture and hyperparameters for SCA is a significant challenge, requiring extensive experimentation. Activation functions, which introduce non-linearity into neural networks, play a crucial role in their performance. While ReLU is a common choice, researchers are exploring alternatives. This paper investigates whether JumpReLU, an activation function designed to improve model robustness, can enhance the performance of DLSCA models, particularly in the context of hyperparameter optimization.

Methods

The researchers explored JumpReLU in two main scenarios:

  1. Retrofitting: They tested replacing the activation function of already trained models with JumpReLU, using it only during the inference phase.
  2. Training with JumpReLU: They trained models from scratch using JumpReLU as the activation function.

They also conducted a hyperparameter search to find the optimal "jump" threshold ($\kappa$) for JumpReLU. Their methodology involved:

  • Acquiring Baseline Models: Training existing, well-performing CNN and MLP architectures (often using ReLU or SeLU) on standard SCA datasets.
  • Evaluating Baseline Performance: Measuring the success of these baseline models in breaking the target using metrics like Guessing Entropy (GE) and the number of attack traces (NT).
  • Re-training with JumpReLU: Replacing the activation function of the baseline models with JumpReLU and re-training them, tuning the $\kappa$ parameter.
  • Comparing Performance: Analyzing whether JumpReLU-equivalent models (tuned JumpReLU models) outperformed their original counterparts.
  • Random Model Search: Generating a large number of random CNN and MLP models and comparing the average performance of those trained with ReLU/SeLU versus those trained with JumpReLU.

Datasets

The study utilized two well-known publicly available datasets for side-channel analysis:

  • ASCAD-Fixed: This dataset contains traces from a software-protected AES implementation with a fixed key.
  • ASCAD-Variable: This dataset uses the same implementation but with a key that changes for each trace.

Both datasets were used in their original (desynchronized, N[0]=0) and desynchronized versions (N[0]=50 and N[0]=100) to simulate real-world scenarios where leakage signals might be misaligned.

Key Insights and Ideas

  • JumpReLU as a Tuning Aid, Not a Direct Replacement: The most significant finding is that simply swapping ReLU for JumpReLU in an already trained model doesn't offer substantial benefits. The real advantage emerges when JumpReLU is considered during the hyperparameter tuning process.
  • Improved Robustness Against Desynchronization: JumpReLU appears to offer better performance, particularly in scenarios with desynchronized traces, suggesting it can handle noisy or misaligned leakage signals more effectively.
  • More Architectures Break the Target: When JumpReLU is part of the hyperparameter search, a larger number of generated models are capable of successfully breaking the cryptographic target.
  • Fewer Traces Needed for Top Performers: For the most successful models, JumpReLU can sometimes reduce the number of attack traces required to recover the secret key.
  • Threshold Tuning Matters: While JumpReLU's performance is less sensitive to the exact threshold value ($\kappa$) than one might expect, finding the right range is still important for optimal results.

Key Results

  • Retrofitting: Using JumpReLU at inference time on pre-trained models showed no significant performance improvement and, in some cases, slightly worse performance compared to ReLU.
  • Training with JumpReLU: When models were trained with JumpReLU, especially during hyperparameter search, the number of architectures that achieved a Guessing Entropy (GE) of 0 increased.
  • For ASCAD-Fixed, JumpReLU enabled more MLP and CNN models to break the target compared to ReLU and SeLU.
  • For ASCAD-Variable, JumpReLU also showed an advantage in the number of successful models, particularly for CNNs without desynchronization, reducing the minimal number of attack traces.
  • Desynchronization Impact: JumpReLU demonstrated more robustness in the face of desynchronization, with some models failing to break the target with ReLU/SeLU but succeeding with JumpReLU.
  • Threshold Sensitivity: The study tested $\kappa$ values in ranges like {0.001, 0.002, 0.003, 0.004, 0.005}. While performance varied slightly, the general trend was consistent across these values, indicating that JumpReLU is not overly sensitive to the precise threshold within a reasonable range.

Limitations and Future Work

  • Limited Improvement in Retrofitting: The paper acknowledges that the "retrofit" strategy (using JumpReLU only at inference) did not yield significant gains.
  • SeLU Still Competitive: For some specific architectures and scenarios, SeLU still achieved comparable or even better results than JumpReLU.
  • Future Work: The authors suggest exploring JumpReLU's effectiveness against other hiding countermeasures like Gaussian noise or jitter. They also note its potential in combination with sparse autoencoders for future DLSCA research.

Summary updated

BibTeX
@article{basurtobecerra2025jump,
  author = {Abraham Basurto-Becerra and Azade Rezaeezade and Stjepan Picek},
  title = {{Jump, It Is Easy: JumpReLU Activation Function in Deep Learning-based Side-channel Analysis}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2025},
}

Loading related content...

Figure