Making Strong Error-Correcting Codes Work Effectively for HBM in AI Inference

Rui Xie, Yunhua Fang, Asad Ul Haq, Linsen Ma, Sanchari Sen, Swagath Venkataramani, Liu Liu, Tong ZhangarXiv 2025 · DOI

Introduction: The HBM Cost Bottleneck

High-Bandwidth Memory (HBM) is essential for modern AI accelerators, yet its cost remains 5–10x higher than standard DRAM. A primary driver of this expense is the stringent "binning" process, where manufacturers must discard memory dies that fail to meet extremely low raw Bit Error Rates (BER). Current HBM designs rely on "on-die" Error-Correcting Code (ECC) hardwired into the memory. This rigid approach uses short, weak codes that cannot handle the noise levels of lower-grade, more affordable chips.

The economic and technical motivation for REACH: relaxing BER constraints to reduce cost while bridging the implementation gap.

Transitioning strong, long-span ECC to the memory controller typically introduces two major challenges: Write Amplification, where updating small data chunks requires massive block rewrites, and Hardware Complexity, as long-code decoders are often too large and power-intensive for high-throughput controllers.

Methods: The REACH Architecture

The researchers propose REACH (Reliability Extension Architecture for Cost-effective HBM), a controller-side architecture that enables the use of high-BER memory without sacrificing performance. REACH employs a Two-Level Hierarchical Reed-Solomon (RS) Code:

  1. Inner Code (32B): A small local code fixes minor errors and, crucially, flags uncorrectable chunks as "erasures."
  2. Outer Code (2KB): A long-span code acts as a safety net. By utilizing the erasure flags from the inner code, the outer decoder operates in an erasure-only mode. This bypasses the computationally expensive step of locating errors, significantly reducing hardware area and power.
Decoding failure rates for various Reed-Solomon code lengths, demonstrating the superior error tolerance of long-span codes (e.g., 2048B).

To mitigate write amplification, REACH uses Differential Parity Updates, calculating the "delta" between old and new data to update only specific parity symbols. Furthermore, Importance-Adaptive Bit-Plane ECC allows the system to prioritize protection for critical bits (like exponents in BF16) while relaxing constraints on less sensitive data.

Key Results and Evaluation

The architecture was evaluated using trace-driven simulations of Large Language Models (LLMs) including LLaMA-3.1-8B, Voxtral-Mini-3B, and Qwen3-4B.

  • Error Tolerance: REACH maintains full functionality at a raw BER of $10^{-3}$, a 1,000x improvement over standard on-die ECC, which typically fails at $10^{-6}$.
  • Performance Stability: In LLaMA-3.1-8B tests, REACH preserved ~79% of ideal throughput. Unlike standard ECC, which collapses under high noise, REACH's performance remains stable as the error rate increases.
  • Hardware Efficiency: The REACH controller is 11.6x smaller and consumes 60% less power than a naive long-span ECC implementation. A full controller for a 3.56 TB/s link occupies just 15.2 $mm^2$ in a 7nm process.

Conclusion

REACH shifts the responsibility of reliability from the memory factory to the system designer. By enabling the use of "noisy" but cheaper HBM dies through an efficient hierarchical coding scheme, REACH offers a path toward significantly reducing the manufacturing cost of AI hardware. While it introduces a "parity tax" on bandwidth (~21%), the trade-off enables a massive increase in error resilience and economic feasibility for next-generation AI infrastructure.

Summary updated

BibTeX
@misc{xie2025making,
  author = {Rui Xie and Yunhua Fang and Asad Ul Haq and Linsen Ma and Sanchari Sen and Swagath Venkataramani and Liu Liu and Tong Zhang},
  title = {{Making Strong Error-Correcting Codes Work Effectively for HBM in AI Inference}},
  year = {2025},
  eprint = {2512.18152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.18152},
}
Figure