From Bit-Position Sensitivity to Unequal Error Protection for DNN Inference Memory

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, AI Hardware & Accelerators · Depth: Expert, quick

Summary

A study characterizes per-bit-position fault sensitivity in machine learning inference across 16 diverse workloads, including transformer-based models and attention-free CNNs, and three floating-point formats. The research reveals a sharp bit-sensitivity transition: least-significant fraction bits, up to a data-type-specific threshold Xsafe, cause less than 1% degradation in task metrics. Sensitivity escalates through upper fraction bits, peaking at the exponent-mantissa boundary where a single-bit flip leads to catastrophic model collapse. This finding suggests uniform SECDED protection, incurring a 12.5% storage overhead, is overly conservative. The authors derive Xsafe floors (FP16: 6, BF16: 4, FP32: 15) and workload-aware tiers, expanding the unprotected region for resilient models and achieving ECC savings of 37.5-62.5% without retraining. This approach informs an Unequal Error Protection (UEP) codec with a dual-partition SRAM architecture for ML accelerators. Validation across 870+ fault-injection runs confirms efficacy, reducing ECC area by 27.8% and lowering BF16 read energy by approximately 17% with a 4% macro-area overhead.

Key takeaway

For AI Hardware Engineers designing memory systems for ML accelerators, you should reconsider uniform error correction strategies. By implementing an Unequal Error Protection (UEP) codec based on bit-position sensitivity, you can significantly reduce ECC area by 27.8% and lower BF16 read energy by approximately 17%. This approach, leveraging data-type specific Xsafe floors and workload-aware tiers, allows for substantial efficiency gains without retraining models, optimizing resource allocation in your next-generation designs.

Key insights

ML inference memory bits exhibit highly unequal fault sensitivity, enabling selective error protection for efficiency.

Principles

Method

An Unequal Error Protection (UEP) codec uses per-cacheline data-type tags and a dual-partition SRAM architecture for ML accelerators.

In practice

Topics

Best for: AI Scientist, Research Scientist, AI Hardware Engineer, AI Architect, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.