HBM Made Cheaper: Controller-Based Long ECC Codes for AI Inference

24.11.2026

A research analysis of REACH with testable questions and a cautious bridge to quantum reliability . Keywords: HBM, DRAM, ECC, Reed-Solomon, erasure decoding, AI inference, memory controller, cost per gigabyte, reliability. This research paper examines the classical reliability of HBM and ECC memory for AI inference. The connection to the quantum realm is discussed separately and only as a methodological analogy.

Content

⚙️ Detailed research option

  1. Abstract and central question
  2. Why HBM is Expensive: The Economics of Fixed Reliability
  3. The informational need for long codes
  4. Two system barriers: amplification and decoder
  5. REACH Architecture: Two-Level ECC
  6. PDF Evidence: What Exactly Is Shown
  7. Testable questions and refutation criteria
  8. Connecting with Quantum Technologies: What’s Portable and What’s Not
  9. Limitations, risks, and threats to validity
  10. Practical value and the next experiment
  11. Conclusion
  12. Sources and status of evidence

1. Abstract and central question

⚙️ Detailed research option

Abstract.  Modern inference of large language models is increasingly memory-bound, and the per-gigabyte cost of HBM is becoming a significant component of system cost. HBM stacks currently employ short-run on-die ECC, which tightens binning, increases cost, and locks in reliability policy within the device. This PDF explores whether it is possible to tolerate a significantly higher initial HBM bit error rate, for example,  10⁻³ , while maintaining end-to-end correctness and minimizing throughput loss, without changing the HBM PHY and the fixed 32-byte transaction size. We propose REACH, a controller-driven ECC architecture: internal Reed–Solomon code for each 32-byte chunk locally checks and corrects errors, and marks uncorrectable chunks as erasures; external RS code for kilobyte intervals operates only in erase mode and does not perform expensive position seeks. For random writes, differential parity update is used, and an optional bit-plane policy protects only critical fields. According to PDF, three LLMs with an 8K context preserve approximately 79% of the on-die ECC throughput at BER=0 and provide qualified operation up to a raw BER  of 10⁻³ , or approximately three orders of magnitude higher. In ASAP7, the full REACH controller occupies 15.2 mm² and consumes 17.5 W at 3.56 TB/s, while the area and power of ECC are reduced by 11.6 times and approximately 60% compared to the naive long RS-based design.

The central question of this article is:  is it possible to transform HBM reliability from a hard-coded device characteristic into a system-wide controller choice, while preserving the standard interface and gaining the right to trade higher raw BER for a lower cost per gigabyte?

Testable hypothesis:  If we split the protection into a local internal code with an erase flag and a long external code that operates only on known positions, then, with fixed 32-byte transactions, we can simultaneously limit the amplification of small accesses and remove the expensive error locator from the long code. Then, the system will be able to operate at a raw BER of approximately  10⁻³  with acceptable throughput, area, and power consumption.

Falsification Criterion:  The hypothesis would be significantly undermined if, under a realistic proportion of correlated errors, random writes, and KV-cache updates, amplification or decoder cost reduced the gain to zero; if synthesis showed unacceptable area/power; if, at BER  10⁻³,  tokens/s dropped dramatically; or if end-to-end correctness relied solely on independent bit errors that did not reflect real HBM failures.

2. Why HBM is expensive: the economics of fixed reliability

⚙️ Detailed research option

PDF starts with an economic framework. HBM remains 5-10 times more expensive per gigabyte than conventional DRAM, and this premium dominates the cost of output clusters. There are two levers: reducing the number of stored bits through compression, quantization, or sparsity, or reducing the cost of producing HBM itself. The first lever is limited by software accuracy and compatibility. PDF considers the second lever systemically: maintain the physical interface and bandwidth, but change the location and method of ensuring reliability.

The economic intuition is simple. Let  p(θ)  be the probability that a die passes the raw BER threshold  θ ;  C wafer  be the cost per wafer;  N dies  be the number of dies on the wafer;  and capacity_per_die  be the nominal capacity. Then the simplified cost per gigabyte is:

C(θ) = C wafer  / (N dies  p(θ) capacity_per_die)

Assuming only weak monotonicity—a higher permissible raw BER doesn’t reduce the proportion of passing chips—then relaxing the threshold can’t worsen the cost per usable gigabyte. This is why moving strong ECC to the controller seems like a way to turn reliability into a system parameter: the manufacturer can supply chips with a higher raw error rate, and the system will protect integrity with its own codes.

Today, HBM is protected by several layers: an interchip link with burst integrity checking, on-die ECC with background checking and scrubbing, and platform-specific RAS mechanisms. The PDF mentions that NVIDIA documents HBM ECC processing along with line remapping and channel repair, and Linux EDAC has added support for HBM line output for the AMD Instinct MI300. But these layers don’t change the fundamental issue: short code inside the device and hard binning remain a cost constraint.

PDF distinguishes between independent bit flips and correlated faults: short burst errors, row/column defects, TSV or half-channel problems. Short on-die ECC masks some of these faults, but guaranteeing coverage requires a very low raw BER, which means a more stringent process, additional redundancy, and lengthy screening. This is the hidden price of “fixed reliability.”

3. Informational necessity of long codes

⚙️ Detailed research option

The PDF is reminiscent of the basic mathematics of Reed–Solomon. An  (n,k) code  over  GF(2 m )  adds  r = n − k  check symbols. If  T sym  is the number of unknown position errors and  E sym  is the number of known erasures, then decoding is guaranteed at

2T sym  + E sym  ≤ r

A classical decoder performs syndrome generation, key equation solution, position search, and value correction. Syndromes and correction are well-streaming-oriented, the key equation is narrow and consistent within the codeword, and position search scales with code length  n and, for kilobyte codes, becomes dominant in area, power ,  and tail delay. If all bad positions are already known as erasures, then  Tsym  = 0 , and expensive position search is unnecessary.

For a fixed code rate, increasing  n  increases the minimum distance  d min  = r + 1  and reduces the decoding failure probability with the same raw BER. PDF shows a graph: at 16/17 rates, moving from tens of bytes to kilobytes per codeword reduces the failure probability by orders of magnitude. This is a key argument: if the PHY and 32-byte packet cannot be changed, then the codeword length remains the main system reliability lever.

However, directly embedding long codes into the DRAM die is impractical: logic budget, power, and conservative clock rates leave no room for wide finite fields and large arrays of locators. A practical location for strong codes is the memory controller: it can accommodate high-performance datapath blocks, select region parameters, and schedule operations based on bandwidth demand.

4. Two system barriers: amplification and decoder

⚙️ Detailed research option

Naive use of long codes in the controller creates two problems.

4.1. Amplification of small accesses

⚙️ Detailed research option

A single 32-byte request can cause a full read or read-modify-write of the entire long codeword. If a long ECC span occupies  W  bytes, contains  N = W/32  fragments, and  P  parity bytes, then a naive update of a single 32-byte fragment moves

T naive  = W + P ,     Amp naive  = (W + P)/32 = N + P/32

For  W = 2048  bytes and  P = 128  bytes, this is  2176  bytes and  68× amplification  per 32-byte update. This is independent of workload assumptions: without local verification of the target fragment, parity must be reassembled across the entire span.

4.2. Decoder complexity increase with code length

⚙️ Detailed research option

The second barrier is area and power. PDF estimates a throughput of 1 TB/s: compared to a 32-byte RS decoder, a 2-kilobyte decoder is approximately  38.6 times  more complex, and within a 2-kilobyte design, the locator takes up approximately  1.8 times  the space of the check and correction logic. It is the locator that becomes critical when moving to kilobyte codewords.

This raises two specific engineering questions: how to avoid paying for the entire span when only a few 32-byte units are touched, and how to keep long code small and fast so that the locator doesn’t eat up the area, power, and tail latency of a multi-TB/s controller.

5. REACH Architecture: Two-Level ECC

⚙️ Detailed research option

REACH doesn’t offer “stronger code in general,” but rather a separation of concerns. The controller becomes a reliability filter: most requests are served locally at the 32-byte level, and long code is only called when the back-end code explicitly marks a fragment for erasure.

5.1. Internal code for each 32-byte fragment

⚙️ Detailed research option

Each fragment is encoded as  RS(36,32) : 32 bytes of data and 4 bytes of internal parity. When reading, the internal RS decoder either accepts the fragment, corrects the error within its capabilities—up to 2 bytes according to the PDF—or rejects the fragment and marks it as erasure. When writing, the internal code generates 4 bytes of parity for a new 32-byte payload.

5.2. External code for long span

⚙️ Detailed research option

A span of  W  bytes covering  N  fragments is protected by an external RS code. The controller corrects only those fragment indices that the internal code rejected. Since the positions are known, the external decoder operates in erasure-only mode and does not perform expensive position searches. The PHY and 32-byte transmission size remain unchanged.

5.3. Random recording without complete recalculation

⚙️ Detailed research option

If the internal RS accepts or locally corrects all affected fragments, the controller updates only them and the external parity. Let  D old  and  D new  be sparse data vectors, where the old and new 32-byte payloads are at their symbolic positions, and the rest is zero. By linearity:

P new  = P old  ⊕ RS(D new ) ⊕ RS(D old )

This differential parity update concerns only  q  updated fragments and  P  parity bytes and does not depend on the total  W . Traffic and amplification:

T fast (q) = 72q + P ,     Amp fast (q) = 2.25 + P/(32q)

For  W = 2048  bytes and  P = 128  bytes, the PDF yields  6.25× ,  4.25×  , and  3.25×  for  q = 1, 2, 4  instead of the naive 68×. This is a direct consequence of linearity, not a lucky coincidence with the specific workload.

If the internal RS has rejected at least one affected fragment, the controller runs an erasure-only external repair on the marked indices, applies the payload update, recalculates the parity once, and commits the data to parity. If the number of rejected fragments is within the capacity of the external code, the repair traffic is limited to  W + P , and a second pass is not necessary. If all fragments have passed the internal code, the external code is not called at all.

When reading, the logic is similar: first, only the requested fragments are read and checked by the internal RS. If all are accepted or locally corrected, the external code is not needed. If at least one is rejected, the controller reads the entire external codeword once, corrects the marked positions, and returns the requested bytes.

5.4 Optional protection of important bit planes

⚙️ Detailed research option

The PDF also mentions an importance-adaptive bit-plane policy: for types like BF16, critical fields, such as the exponent, can be prioritized to reduce ECC overhead and overhead. This isn’t a required part of the underlying mechanism, but it’s an important example of how reliability can be tied to the meaning of the data, not just the uniform protection of all bits.

6. PDF Evidence: What Exactly is Shown

⚙️ Detailed research option

Below are the quantitative claims from the original PDF. Important: This is the REACH authors’ evidence, not an independent replication in this article.

StatementData from PDFType of evidenceWhat remains unproven
Maintaining throughput at BER=0About  79%  of on-die ECC throughputAssessment of three LLMs in the context of 8KThere is no full set of models, batches and all KV-cache modes
Working with high BERQualified to a raw BER  of 10⁻³ ; approximately  three orders of magnitude  wider acceptable rangeAnalytical boundaries plus load assessmentCorrelated and burst errors require separate testing.
Hardware priceASAP7:  15.2 mm² ,  17.5 W  at  3.56 TB/s , about  4.9 pJ/byteSynthesis of a 7-nm predictive PDKThis is not a silicon measurement; there are no leaks, no test environment, and no full PHY
Comparison with naive long RSECC area is 11.6× smaller  , power is about  60%  lowerSynthesis and modelingThe basis depends on the selected code and flow parameters
Random write amplificationNaive  68× ; REACH:  6.25× / 4.25× / 3.25×  for q=1/2/4Linear update formulasNeed to test the recording on real tracks
Decoder complexityA 2-KB decoder is  38.6×  more complex than a 32-KB one; a locator within a 2-KB design is  1.8× more complex  than check/correctArea Estimation at 1 TB/sDepends on field selection, parallelization and target frequency
Local fixRS(36,32) , up to  2  correction bytes, otherwise erase flagArchitectural descriptionNeed to check for correlated defects inside 32B

The strength of the PDF proof line is that it doesn’t promise “free reliability.” It explicitly acknowledges the cost: 79% throughput at BER=0 is a loss of approximately one-fifth of the throughput compared to on-die ECC; 15.2 mm² and 17.5 W are significant hardware budgets. The value of the idea lies elsewhere: these costs become a manageable system choice, not a hard-wired characteristic of the HBM crystal.

7. Testable questions and refutation criteria

⚙️ Detailed research option

Below is a selection of questions from the constructor adapted to the PDF topic. This isn’t “all questions at once,” but a selected set that makes the study verifiable.

No.QuestionAnswer in PDF / What to check
1What problem does the technology solve and for whom?Reducing the cost per gigabyte of HBM while maintaining end-to-end correctness for AI inference; benefits memory providers and inference cluster operators.
4How to formulate a hypothesis and what could disprove it?Hypothesis: Two-level ECC with erasure-only outer code maintains throughput and correctness at a BER  of 10⁻³ . Rebuttal: Dominance of correlated errors, unacceptable amplification or area.
7What is the underlying mechanism?Internal RS(36,32) is local; external RS by kilobyte span corrects only marked erases; differential parity limits writes.
11What are the assumptions of the model?Independent bit errors as lower bound; monotonic output curve; fixed 32-B interface; RS linearity for differential parity.
19Which platform is chosen?HBM controller; ASAP7 evaluation; LLM workloads in 8K context; comparison with on-die ECC and naive long RS.
21What are the noise sources and limitations?Correlated burst errors, row/column defects, TSV, drift, as well as repair cost and tail delay.
25How is a task translated into a formal object?RS codes over a finite field; syndromes; erasure decoding; linear parity update; amplification formulas.
31What is the error model and how well does it match the measurements?The PDF explicitly distinguishes between independent and correlated errors; the main analysis relies on the independent model, so correlated cases are the main validation issue.
33What correction methods are used?Internal RS corrects up to 2B; otherwise erase; external RS corrects erases only; differential parity for writes.
37What classical basis should we compare it with?On-die ECC as baseline and naive long RS as alternative; comparison should take into account area, power, throughput and amplification.
43What is the basis for the conclusion?Analytical formulas, LLM evaluation, ASAP7 synthesis. This is not an independent silicon experiment.
46ReproducibilityCode parameters, traces, synthesis configuration, tool versions, and error models are required. These are not reproduced independently in this article.
63Who needs results and how to measure the benefits?For HBM providers, it’s yield and $/GB; for operators, it’s tokens/s, energy per byte, controller area, and reliability.
69What remains open?Silicon prototype, correlated errors, real write traces, security, ECC policy standardization.

The key testable conclusion:  if, when switching from independent to correlated errors, the proportion of rejected 32-byte fragments remains within the outer code’s capacity, and the cost of erasure repair does not exceed the latency budget, then the architecture remains feasible. However, if correlated defects massively penetrate the inner code and cause cascading erasures, the advantage should be re-evaluated.

8. Connection with quantum technologies: what is portable and what is not

⚙️ Detailed research option

Since the original PDF is not quantum, the discipline of analogy is important here. Classical ECC and quantum error correction solve different problems and rely on different physical constraints. Nevertheless, a methodological bridge is useful.

8.1 What is transferable as a research framework

⚙️ Detailed research option

  • Distinction between the physical and logical levels.  In PDF, the physical raw BER of HBM is separated from the end-to-end correctness of the system. In the quantum domain, physical qubits must also be separated from logical ones and not interchanged.
  • Error model.  It’s impossible to evaluate a circuit solely on independent bit flips if real-world failures are correlated. Similarly, noise, leakage, and correlated error models are critical in quantum correction.
  • The cost of protection.  PDF calculates area, power, pJ/byte, and amplification. For quantum circuits, one must also calculate the number of physical qubits, syndrome measurement operations, time, and classical processing.
  • A fair comparison.  An advantage must be compared to the best suitable basis with comparable accuracy and full cost accounting. This is a direct lesson from questions 37–42 of the designer.
  • Reproducibility.  Data, code, configuration, and independent runs are required; otherwise, the result remains a demonstration, not confirmed knowledge.

8.2 What cannot be transferred directly

⚙️ Detailed research option

  • The internal RS erasure flag  has no direct quantum analogue: a quantum measurement does not copy an arbitrary state and requires a different syndrome scheme.
  • RS codes over GF(2 m )  do not replace stabilizer codes: quantum errors are continuous, and the correction works with discrete syndrome and non-commuting operations.
  • Raw BER  10⁻³  cannot be reinterpreted as the qubit error probability. These are different physical and mathematical quantities.
  • The HBM $/GB economics  do not carry over to the cost of a quantum processor: there are different resources, different yields, and a different scaling model.

In other words, it’s not the specific code that’s useful to take from the PDF, but  the engineering philosophy : strong security should be hierarchical, local on frequent paths, global only when necessary, and its cost should be calculated in terms of area, energy, delay, and amplification. For the quantum field, this is a good checklist, but not a definitive solution.

9. Limitations, risks, and threats to validity

⚙️ Detailed research option

  • Correlated errors.  The main limitation: if HBM defects cluster within 32-byte fragments or penetrate the internal code more frequently than the model predicts, external erasure repairs may become frequent rather than infrequent.
  • Lack of precise economics.  The PDF intentionally does not parameterize the yield curve  p(θ)  with manufacturer data. The conclusion that “a higher acceptable BER does not worsen $/GB” relies on monotonicity, not on a specific commercial price.
  • Synthesis, not silicon.  15.2 mm² and 17.5 W were obtained in ASAP7. This is a valuable signal, but no substitute for measuring a real chip with PHY, test environment, and leakage.
  • Limited workload.  The evaluation on three LLMs with an 8K context does not cover all scenarios: training, very long contexts, heavy KV cache updates, multi-tenancy, and peak random writes.
  • Security and policy.  Moving ECC to the controller makes trust policy part of the platform. It’s important to understand who manages it, how thresholds are audited, and how this impacts trust in the system.
  • Standardization.  Maintaining JEDEC PHY is a strength, but controller codes still require consistent policy at the system and vendor levels.

10. Practical value and the next experiment

⚙️ Detailed research option

The practical value of REACH isn’t that “ECC has become free,” but that reliability is becoming a design parameter. A vendor can choose a higher raw BER and a lower cost per gigabyte; the system trades off controller-based ECC for area, power, and some throughput loss. This is a tradeoff that was previously impossible because the policy was hardcoded into the chip.

The next crucial experiment should not be another analytical assessment, but a test on real or traceable correlated errors:

  1. Build an HBM failure model with burst errors, row/column defects, and TSV scenarios.
  2. Run REACH on LLM inference traces with KV cache updates and random metadata.
  3. Measure the proportion of fragments rejected by internal RS, the frequency of external repairs, and tail lag.
  4. Compare with on-die ECC and naive long RS for the same throughput, area and error model.
  5. Test whether the advantage holds under conservative and optimistic assumptions about the exit curve.

It is precisely this kind of experiment that will separate a beautiful architectural idea from a reproducible engineering result.

11. Conclusion

⚙️ Detailed research option

The REACH PDF poses a powerful and challenging question: why should HBM reliability be hardcoded into the chip when the system can be made responsible for end-to-end integrity? The authors’ answer is two-level ECC, in which a 32-byte inner code converts unspecified errors into known erasures, and a long outer code operates without an expensive locator. Differential parity limits the amplification of random writes, and bit planes provide additional leverage for critical fields.

The numbers are impressive, but they should be read as an engineering proposal, not a final verdict: 79% throughput at BER=0, operation up to  10⁻³ , 15.2 mm² and 17.5 W at 3.56 TB/s, 11.6x area, and about 60% power versus a naive long RS. The main scientific conclusion: long codes become practical not when they are simply added, but when the architecture has removed their most expensive part—position search—and limited amplification on frequent paths.

For readers interested in quantum technologies, the bridge lies not in transferring the RS code to qubits, but in the methodology: separating the physical from the logical level, honestly modeling errors, calculating the full cost of protection, and verifying the advantage in a reproducible experiment. This is how a single paper on HBM turns into a coherent study, not a collection of sensational promises.

12. Sources and status of evidence

⚙️ Detailed research option

  1. R. Xie, Y. Fang, A. Ul Haq, L. Ma, S. Sen, S. Venkataramani, L. Liu, T. Zhang.  Making Strong Error-Correcting Codes Work Effectively for HBM in AI Inference . Original PDF  2512.18152v1.pdf. Status: technical paper/preprint; quantitative results are taken from the PDF and not independently reproduced in this paper.
  2. JEDEC HBM interface, on-die ECC and 32-byte transactions – as cited in the original PDF (PDF references [16,17]).
  3. Controller-based ECC practice in storage systems – as summarized in PDF (ref [42] PDF).
  4. NVIDIA and Linux EDAC platform RAS mechanisms for AMD Instinct MI300 – as mentioned in the PDF (links [27,28,20] PDF).
  5. National Quantum Initiative: Quantum Science Directions.  quantum.gov  — used for methodological context only, not for HBM proofs.
  6. NIST: FIPS 203, 204, 205 approval, August 13, 2024.  csrc.nist.gov  – Post-quantum cryptography context; not a source for ECC HBM.
  7. NIST NCCoE: Migration to Post-Quantum Cryptography.  nccoe.nist.gov  —migration context; not a REACH resource.