SDC-causing Error Detection Based on Lightweight Vulnerability Prediction

Cheng Liu, Jingjing Gu, Zujia Yan, Fuzhen Zhuang, Yunyun Wang

Introduction

As semiconductor technology scales down, hardware is increasingly susceptible to "soft errors"—random bit-flips caused by environmental factors like cosmic radiation. Among these, Silent Data Corruption (SDC) is particularly insidious because the program completes without error messages but produces incorrect results. Traditional mitigation strategies, such as full instruction duplication, incur prohibitive performance overheads (often >100%). This paper presents DFRMR (Deep Forest Regression based Multi-granularity Redundancy), a lightweight approach that predicts instruction-level vulnerability to selectively apply redundancy.

Methodology

The DFRMR framework consists of four integrated stages designed to identify and protect the most critical instructions within a program.

The DFRMR framework overview, illustrating the pipeline from data collection to fault tolerance.
  1. Feature Extraction: Using the LLVM compiler, instructions are analyzed across seven feature clusters, including address-related, arithmetic, and loop-info features.
  2. Sliding Window Scanning: To account for error propagation between adjacent instructions, a sliding window concatenates features from 10 consecutive instruction instances into an expanded vector.
  3. Deep Forest Regression: A cascade forest (gcForest) model is employed to predict vulnerability scores. Unlike standard Deep Neural Networks, the Deep Forest architecture is robust on smaller datasets and requires minimal hyperparameter tuning.
  4. Multi-granularity Redundancy: Based on predicted scores, users can define a protection granularity (e.g., top 20% most vulnerable instructions). The system then automatically duplicates these instructions and inserts comparison logic.

Experimental Evaluation

The model was trained on 3,400 SDC vulnerability samples and evaluated using the Mibench benchmark suite (including Isqrt, FFT, and Dijkstra). Performance was compared against traditional machine learning (Random Forest, LightGBM) and deep learning (RNN, LSTM) baselines.

Results and Analysis

A key finding of this research is that SDC vulnerability is highly dependent on the instruction type. As shown in Figure 2, arithmetic instructions like fadd and fsub have a high propensity for SDC, whereas address-related instructions often lead to crashes or "masked" errors (where the error does not affect the final output).

SDC profiles across different instruction types, demonstrating varying vulnerability levels.

Quantitatively, DFRMR achieved:

  • High Accuracy: A Mean Squared Error (MSE) of 0.0204, significantly outperforming Random Forest (0.0444) and RNNs (0.0958).
  • Effective Coverage: At 30% redundancy, the method achieved an average SDC detection rate of 86.2%.
  • Low Overhead: At 20% granularity, DFRMR maintained a time overhead of 41.2%, which is more efficient than the frequency-based "Hotpath" method (~52.8%) while providing superior protection.

Discussion and Future Work

While DFRMR demonstrates significant improvements in error detection efficiency, several limitations remain. The current model focuses on single-threaded applications and assumes a single bit-flip error model. Furthermore, the scope is limited to processor registers rather than main memory or cache. Future research will explore multi-threaded environments and more complex multi-bit fault models to enhance the robustness of software-level fault tolerance.

Summary updated

BibTeX
@inproceedings{liu2019sdc,
  author = {Cheng Liu and Jingjing Gu and Zujia Yan and Fuzhen Zhuang and Yunyun Wang},
  title = {{SDC-causing Error Detection Based on Lightweight Vulnerability Prediction}},
  booktitle = {ACML},
  year = {2019},
}
Figure