Skip to content

Paper note

BCH, LDPC and the RBER aggregation trap

Published 2026-10-11 · updated 2026-11-26

A drive-wide raw error rate cannot reveal the hardest codeword. How to compare BCH and LDPC evidence without confusing fleet telemetry with decoder limits.

On this page11 sections
Decoder evidence
Example codes and simulation, not a modern SSD benchmark
Field evidence
Google production telemetry, with generation-dependent counters
Aggregation
Across-drive percentiles are not within-page error distributions
Hesela contribution
A reproducible counterexample, explicitly synthetic

Numbers

Keep the measurement boundary attached to each value.

Keep the measurement boundary attached to each value.
MeasureValueUnitPopulation or scopeSource
Example BCH RBER1.0e-3raw error ratioUBER target 1e-16; Figure 32Source 2
Example soft-LDPC RBER5.0e-3raw error ratioSame target; extrapolated curveSource 2
Additional reads0.28percentFour codewords/page; 0.01% fail hard decoding, on distinct pages; seven extra readsSource 2
First-generation model medians5.8e-10 to 3.2e-8reported raw error ratioTable 3; worst-chunk telemetry, not page mediansSource 3
Maximum counter undercount factor16ratioSection 4; equal errors in every chunk, not a measured typical factorSource 3
Worst-case response-time increaseover 100 to below 20percentTrace simulation before/after proposed techniquesSource 1

Selected source-specific figures, not a ranking of products. The decoding curves and field counters are not interchangeable measurements.

Method

Source audit of Cai et al. section 6.3 and Figure 32, Schroeder et al. sections 4 and 5.2, and Zhao et al.'s evaluation. These are a survey, a production study and a chip-informed trace simulation, respectively. The separate synthetic example below is exact arithmetic over constructed error counts, not a reproduction of any paper or a fitted reliability model. The decoder-contract section adds a source review of coding-theory definitions, Linux v6.12 bch_decode and a documented soft-BCH algorithm; it is not a new decoder or hardware experiment. The follow-up separates payload/parity API results, algebraic Chase work and modeled NAND sensing costs using pinned kernel code, Shany and Berman (2022 v2) and Dong et al. (2011). The finite-budget extension derives sharp integer bounds from a complete error total and checks their endpoints against exhaustive small-domain allocations. It is elementary counting, not new empirical flash evidence. The overdispersion section reviews Taranalli et al. (2016), sections III, V.C-D and VI. Its separate two-point mixture is exactly enumerated, not a fitted 2-BBM channel, empirical estimate or decoder simulation. The companion capacity paper is reviewed at Theorems 1-2 and section IV; no capacity fit or chip experiment is performed.

Limits

A rate aggregates a numerator over a denominator; it does not preserve where errors occurred. Codeword size, code rate, decoding method, sensing conditions and error distribution must be matched before inferring correction margin. A count above a chosen budget is not a measured decoding failure. No confidence interval applies to the deterministic illustration, and no fleet failure probability is estimated.

What the sources support

Cai et al.'s Figure 32 compares example BCH and LDPC codes with rates 0.935 and 0.936. The soft-LDPC endpoint is an extrapolation, not a universal correction threshold. Their UBER convention divides codeword failure probability by codeword length. The 0.28% read overhead belongs to a separate operating point with twice the BCH RBER tolerance, not the fivefold endpoint.

Schroeder et al.'s Table 3 reports percentiles across drives within each model, not across pages. First-generation telemetry counts only the most corrupted of 16 chunks per page: its RBER is a lower bound, potentially 16 times lower in the extreme equal-error case. This is not a blanket correction factor. Section 5.2 finds RBER was not predictive of uncorrectable errors in this fleet; it does not establish that every modern implementation behaves the same way.

Zhao et al. study 25 nm MLC using chip characterization and trace-driven SSD simulation. Their techniques reduce the reported worst-case response-time increase from over 100% to below 20%. This is a latency result under that experimental setup, not a conversion of additional flash reads into an equivalent percentage of application latency.

Background on drive types is on the drive technology card. Warning signs before a failure are also covered in the SMART failure signals analysis.

What decoder success establishes

A BCH code with designed distance 2t + 1 supports a t-error correction guarantee per codeword, given a suitable decoder. That bound is not a fleet-average RBER threshold. The coding-theory distance bound and the aggregate arithmetic below answer different questions.

An error syndrome checks code constraints. A zero syndrome identifies a valid codeword, not necessarily the originally stored word. Beyond a decoder's guaranteed radius, rejection is not the only possible outcome: decoding can select the wrong valid word. That is miscorrection, distinct from a reported decoding failure.

A concrete API boundary is visible in Linux v6.12 bch_decode. It reports located errors, -EBADMSG on decoding failure or -EINVAL for invalid parameters. It does not modify the input data; its caller applies the returned locations. The implementation returns zero when calculated and received ECC match. Its result is not a physical bit-error counter with access to the original stored word, nor does it verify the intended block address or generation. This is a source-level contract, not a measured SSD failure rate.

The returned locations cover payload bits and ECC bits. Locations below 8 * len select payload bits; locations at or above it select ECC. A positive return is therefore not necessarily the number of payload bits to flip. The control structure also distinguishes ecc_bits, the generator polynomial degree, from ecc_bytes, the maximum parity-buffer size. Buffer allocation is not a correction budget.

Keep the code family separate from the sensing and decoding policy. Cai et al.'s 2017 survey describes an example hard-decision BCH flow with read-retry, alongside staged LDPC decoding. BCH itself is not restricted to hard inputs: a documented Chase-style BCH decoder uses reliability information to choose candidate inputs. This establishes an algorithmic possibility, not its use in any particular SSD. Compare code parameters, decoder behavior, additional reads and residual error detection before comparing products.

Shany and Berman's 2022 preprint makes another boundary explicit: Chase trials alter candidate patterns on unreliable coordinates, and fast variants share computations across trials. These are decoder operations, not NAND read commands. Its complexity analysis counts finite-field work; translating that into flash reads or application latency requires a separate implementation and sensing model.

At the sensing layer, Dong, Xie and Zhang (2011) model likelihoods using threshold-voltage distributions and cell-to-cell interference, then simulate nonuniform sensing with LDPC on hypothetical 2-bits/cell NAND. Reading interfering pages can supply more information but adds sensing, transfer and energy costs. This is a modeled trade-off, not a measured modern-SSD speedup. Together, these sources show why decoder work and evidence acquisition need separate accounting.

Ask what rejects a wrong codeword

Miao, Rapp and Schmalen analyze an ideal decoder that rejects every wrong candidate using the transmitted word. Their practical decoder instead uses reliability scores. These are different information contracts, not interchangeable guarantees. The study uses a binary-input Gaussian-noise channel; it does not measure NAND failure rates. [sections II-IV]

When reviewing a decoder evaluation, ask whether its acceptance rule can run without the original data. Report correct recovery, declared failure and accepted wrong output separately. A zero syndrome or a correction count alone cannot supply that ground truth. This is an engineering checklist, not a new device measurement.

Same average, different correction demand

Synthetic example: each of 100 codewords contains 1000 bits and is read once. Choose an illustrative budget of 4 errors per codeword. Distribute the same 100 errors evenly, then concentrate them in ten codewords. Nothing about the aggregate numerator or denominator changes.

Equal aggregate RBER does not imply equal per-codeword correction demand.
Constructed distributionErrors / bits readRBERCodewords above budget
Spread: one error in each codeword100 / 100,0001e-30 / 100
Clustered: ten errors in ten codewords100 / 100,0001e-310 / 100

The count above budget describes correction demand, not observed data loss. This is not a BCH or LDPC decoder: it models neither code construction nor soft information, retries, miscorrection or redundancy. It demonstrates only that an aggregate rate cannot uniquely recover the distribution from which it came. A low fleet median therefore cannot establish the correction margin of its hardest codeword.

A counter can lose information before averaging

Construct 16 chunks with only one containing four errors: the worst-chunk counter records 4, and the full count is 4. Give every chunk four errors instead: the counter still records 4, but the full count is 64. With the same bits-read denominator, these are different rates behind identical telemetry. Multiplying all recorded counts by 16 would be wrong for the first construction. These invented counts illustrate a bound, not Google's observed distribution.

Reproduce both tables and bounds with the public calculation module. The page imports that exact module at build time; no random sampling or external data is involved. Inputs reject negative, fractional, out-of-range and unsafe counts.

What an exact total can still bound

An aggregate loses the distribution, but not every constraint. Let E be the exact total raw errors across N equally sized codeword-read observations, each with B bits, and let t be a common integer error budget. For 0 <= t < B, the possible count q of observations with more than t errors has these sharp endpoints:

q_min = max(0, ceil((E - N*t)/(B - t)))

q_max = min(N, floor(E/(t + 1)))

Each above-budget observation needs at least t + 1 errors, giving the upper bound. Below-budget observations can hold at most N*t errors in total; each observation allowed above budget adds at most B - t, giving the lower bound. Both endpoints are attainable by integer allocations. If t = B, exceeding the budget is impossible. No independent-error assumption is used.

Synthetic counts: N = 100 observations, B = 1000 bits, t = 4 errors. These are logical bounds, not confidence intervals.
Total raw errorsMinimum above budgetMaximum above budget
100020
401180
100000100100

For the original 100-error example, zero through 20 above-budget observations are possible. One error in each word reaches the lower endpoint; five errors in each of 20 words and zero in the other 80 reaches the upper endpoint. The ten-word cluster shown earlier is one compatible allocation, not the maximum.

These are Hesela's elementary counting deductions, not results reported by the FAST study. Its sections 4 and 5.1 explain two input hazards: worst-chunk telemetry is not a full error total, and repeated reads can recount a persistent corrupted bit before a page is rewritten. N therefore counts read observations, not necessarily distinct physical codewords. Do not insert a lower-bound counter or a rounded fleet percentile as exact E.

The bounds do not predict decoder failures, unique damaged cells or future data loss. They require a complete count, consistent codeword boundaries and one fixed budget. The downloadable module computes the displayed endpoints with exact integer division. Exhaustive small-domain tests check 82,174 combinations of allocations and budgets, and 1,150 endpoint pairs; the proof, not that finite test grid, supports the general formula.

Matching the average can still miss the tail

Taranalli, Uchikawa and Siegel (2016) found overdispersion: error counts varied more between ECC frames than a fixed-probability channel predicted. Their 1X-nm and 2Y-nm MLC experiments used continuous room-temperature P/E cycling. A model matching mean RBER still underestimated frame-error rates. Their 2-Beta-Binomial model varies directional error probabilities between frames; it improved the fit, with a remaining low-FER mismatch in one page population.

The low-FER comparisons had few observed failures. Section VI.B reports at least 400 frame errors per simulated FER estimate, not 400 tested frames. For the lowest empirical QC-LDPC estimates in Figure 12, vendor A's lower and upper pages contributed six and four failures; vendor B's lower pages contributed four. Its upper-page result was omitted because no frame errors were observed. Zero observed failures does not establish zero population risk. A different vendor-B chip supplied the additional Figure 12 data. These event counts are not exposure denominators and do not supply a confidence interval by themselves. These are specific chips and decoders, not evidence that one fitted distribution describes every NAND generation.

A separate, exactly enumerable illustration

Let K count errors in a hypothetical 16-bit word. Model A uses independent bit errors with p = 1/16. Model B first chooses p = 0 or p = 1/8 with equal probability once per word, then draws independent bit errors conditional on that p. Both have E[K] = 1 and mean raw error ratio 1/16, but their variances and probabilities of more than four errors differ.

Exact finite probability calculation; displayed percentages rounded to six decimals. Not device measurements or a decoder simulation.
Constructed modelMean errorsVariance (errors squared)P(K > 4)
Fixed p = 1/1610.93750.232425%
Equal mixture: p = 0 or 1/8 per word11.8752.033095%

For a fixed p = 1/d, each count k has probability C(16,k) * (d - 1)^(16-k) / d^16. Sum k = 5 through 16. The mixture tail is half that sum with d = 8; its other half contributes only zero-error words. Integer arithmetic in the public calculation module retains exact probability numerators and denominators. An independent test enumerates every 16-bit error pattern for both models.

Drawing a fresh p separately for every bit would erase the shared word-level variation and recover Model A, so the mixing unit matters. This two-point teaching mixture is not the paper's beta-binomial model. P(K > 4) is a chosen-budget exceedance probability, not FER or UBER. Unlike the previous distribution-free bounds, these probabilities depend on explicit assumptions. Neither higher variance alone nor mean RBER determines every tail probability; inspect the distribution and decoder. At a zero-error budget the ordering reverses: the mixture has a smaller P(K > 0), despite its larger variance. The module accepts every integer budget from 0 through 16; exact tests cover all 17 thresholds.

A fitted error model is not a capacity guarantee

In a companion paper, the same authors show that the untruncated BBM model has zero compound-channel capacity. Its support includes p = q = 1/2, where the output is independent of the input. A code required to work across all supported states cannot guarantee a positive rate. This is a consequence of the model and guarantee, not a claim that an SSD stores zero useful bits.

Their truncated-support model restricts the allowed error probabilities. With both upper endpoints below 1/2, its capacity is set by the noisiest supported channel. Truncation is consequential: narrowing the support can inflate capacity estimates and distort frame-error predictions. Report support assumptions alongside fit quality; neither is a device warranty.

What to ask before comparing rates

  • What is counted: erroneous bits, failed codewords, failed sectors or days with an error?
  • What was read, over which interval, and before or after which recovery stages?
  • Is the number a full counter, a lower bound, a model output or an across-device percentile?
  • What evidence connects the observed aggregate to the decoder's hardest inputs?

Definitions: raw bit error rate, codeword, error-correcting code and UBER. For sensing and decoding costs, see LDPC and the read cost of confidence.

Correction, 12 October 2026: the earlier version wrongly described an across-drive median as the condition of a typical page and inferred decoder use from it. Those inferences have been removed. The revised note also separates the fivefold extrapolated tolerance endpoint from the lower-overhead operating point.

Sources

  1. 01LDPC-in-SSD: Making Advanced Error Correction Codes Work Effectively in Solid State Drives, Zhao, Zhao, Sun, Zhang, Zhang, and Zheng, USENIX FAST 2013, pages 243 to 256 (USENIX PDF) · accessed 2026-10-12
  2. 02Cai et al. Error Characterization, Mitigation, and Recovery in Flash-Memory-Based Solid-State Drives. Proceedings of the IEEE (2017), section 6.3, Figure 32. · accessed 2026-10-12
  3. 03Schroeder, Lagisetty and Merchant. Flash Reliability in Production: The Expected and the Unexpected. USENIX FAST 2016, section 4, Table 3, and sections 5.1-5.2. · accessed 2026-11-06
  4. 04H. C. A. van Tilborg: Coding Theory, a First Course, sections 2.1-2.2 and 4.2 · accessed 2026-10-25
  5. 05Linux v6.12 lib/bch.c: bch_decode return values, caller correction and syndrome processing · accessed 2026-10-25
  6. 06A. Agarwal (2025): Interpretable Machine Learning and Trustworthy Uncertainty Quantification, Appendix C, p. 167 · accessed 2026-10-25
  7. 07Linux v6.12 include/linux/bch.h: exact parity bits and maximum parity-buffer bytes · accessed 2026-10-25
  8. 08Y. Shany and A. Berman: Fast syndrome-based Chase decoding of binary BCH codes through Wu list decoding, arXiv:2204.02330v2 (2022), sections 5.1 and 5.4 · accessed 2026-10-25
  9. 09G. Dong, N. Xie and T. Zhang: On the Use of Soft-Decision Error-Correction Codes in NAND Flash Memory, IEEE TCAS-I 58(2), 429-439 (2011), DOI 10.1109/TCSI.2010.2071990, sections III-IV · accessed 2026-10-25
  10. 10Taranalli et al. (2016): Channel Models for Multi-Level Cell Flash Memories Based on Empirical Error Analysis. DOI 10.1109/TCOMM.2016.2584602. · accessed 2026-11-06
  11. 11Taranalli, Uchikawa and Siegel (2016): On the Capacity of the Beta-Binomial Channel Model for Multi-Level Cell Flash Memories. DOI 10.1109/JSAC.2016.2603660. · accessed 2026-11-06
  12. 12Miao, Rapp and Schmalen (2022): Improved Soft-aided Decoding of Product Codes with Dynamic Reliability Scores, sections II-IV · accessed 2026-11-26

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. BCH, LDPC and the RBER aggregation trap. Hesela. 2026-11-26. https://hesela.com/analyses/nand-ecc-bch-vs-ldpc/