Introduction
Deep Neural Networks (DNNs) are increasingly integrated into safety-critical domains, from autonomous driving to medical diagnostics. Despite their predictive power, these models are vulnerable to hardware-level fault injections, such as bit-flip attacks executed via Rowhammer exploits. By altering a minute fraction of model weights in DRAM, an attacker can catastrophically degrade a model's accuracy, effectively rendering it useless.
Current defensive strategies often involve retraining models with specific constraints or deploying auxiliary "checker" models. However, these approaches frequently incur significant accuracy penalties or computational overheads that are prohibitive for resource-constrained embedded systems. HASHTAG (Hash Signatures for Online Detection) addresses this gap by providing a non-intrusive, lightweight, and provably accurate framework for real-time fault detection.
The HASHTAG Framework
HASHTAG operates through a bifurcated approach consisting of an offline pre-processing phase and an online execution phase. This design ensures that the heavy lifting of vulnerability analysis is performed once, while the runtime monitoring remains extremely efficient.
Pre-processing (Offline)
The first stage involves Layer Sensitivity Analysis. Not all layers in a DNN are equally critical to its final output. HASHTAG utilizes a Taylor-expansion-based sensitivity metric, calculating the product of each weight and its corresponding gradient ($p_n \times \frac{\partial \mathcal{L}}{\partial p_n}$). Layers with the highest average sensitivity are identified as "checkpoint layers."
Once these layers are selected, the system generates Ground-truth Hashes. HASHTAG employs the Pearson hash, an 8-bit hashing algorithm optimized for speed on commodity hardware. To prevent attackers from crafting "hash-neutral" weight changes, a secret reordering rule (permutation) is applied to the weights before they are hashed. This ensures that even if the hashing algorithm is known, the final signature remains unpredictable to an external adversary.
Online Execution (Runtime)
During standard inference, the system performs Hash Extraction in parallel with the DNN's operations. The runtime hashes for the designated checkpoint layers are calculated and compared against the stored ground-truth signatures. If a discrepancy is detected, a validation alarm is triggered immediately, allowing the system to enter a safe state before a compromised prediction can be used.
Experimental Evaluation
The authors evaluated HASHTAG using standard computer vision benchmarks, including CIFAR10 and ImageNet, across diverse architectures such as VGG11, ResNet20, AlexNet, and MobileNetV2. The framework was tested against the "Progressive Bit-Flip Attack" (BFA), a state-of-the-art attack that targets the most vulnerable bits to maximize damage with minimal intervention.
Key Results and Discussion
The primary strength of HASHTAG lies in its combination of high security and low overhead. The framework achieved a 100% detection rate with zero false positives across all experimental configurations.
As shown in the evaluation of CIFAR10 models, the detection rate reaches 100% with as few as two checkpoint layers. This efficiency is a direct result of the sensitivity analysis, which ensures that the most "attractive" targets for an attacker are the ones most rigorously monitored.
Furthermore, HASHTAG demonstrates exceptional performance metrics:
- Near-Zero Overhead: Runtime overhead was measured at less than 1% on an NVIDIA Jetson TX2 embedded GPU.
- Minimal Storage: The storage footprint for signatures and reordering rules is less than 1.3 KB, fitting easily within secure on-chip SRAM.
- Theoretical Guarantees: The mathematical properties of the Pearson hash guarantee that any single-value change in the input stream will result in a different hash, providing a robust defense against sparse bit-flip attacks.
Conclusion
HASHTAG represents a significant advancement in DNN security, offering a practical solution for real-time fault detection. By focusing on the "vulnerability bottleneck" of sensitive layers and leveraging the efficiency of Pearson hashing, it provides a robust defense without the need for model retraining or expensive hardware. While it requires secure storage for its small signature set, its performance and 100% detection rate make it an ideal candidate for securing safety-critical embedded AI systems.
Summary updated