WorksComputer Science
On the Multi-Weight Shift-Sum Iterative Decoding of Short BCH Codes
Abstract
This paper investigates a shift-sum decoding algorithm that employs dual codewords. Existing dual codeword shift-sum decoding schemes mainly rely on minimum-weight dual codewords. However, the number of such codewords is often limited, which restricts the amount of reliability information available to the decoder. To address this issue, we extend the component counting mechanism from minimum-weight dual codewords to dual codewords whose Hamming weights lie within a prescribed upper bound. We further introduce a normalized component counting rule to suppress the overcounting bias caused by the much larger populations of higher-weight classes. Based on this framework, we develop a hard-decision iterative error reduction decoder and a soft information-aided iterative error reduction decoder. Numerical results show that the proposed method consistently outperforms existing minimum-weight shift-sum baselines especially for short codes where additional dual codeword information is particularly valuable.
Introduction
As classic linear cyclic block codes, Bose-Chaudhuri-Hocquenghem (BCH) [1] codes serve as a cornerstone of channel coding theory, and their encoding and decoding algorithms have long been a core research focus in communication theory [2]. BCH codes have been widely applied in high reliability scenarios of both digital communications and data storage [3], owing to their well defined algebraic structure and precisely tunable error correcting capability [4]. Among classic algorithms, Berlekamp-Massey (BM) algorithm achieves hard-decision decoding by iteratively solving syndrome equations, making it the most classic fundamental scheme in engineering applications [5, 6, 7, 8]. In scenarios where decoders can receive soft information, such as future wireless and optical communications, soft-decision decoding significantly improves error correcting performance compared to hard-decision decoding [9]. The Chase algorithm and Ordered Statistical Decoding (OSD) generate multiple test vectors for verification using soft information, which significantly improves decoding performance but at the cost of increased computational complexity [10, 11, 12]. The Belief Propagation (BP) algorithm iteratively updates bit probability information based on the Tanner graph, exhibiting excellent performance [13]. In recent years, a series of new decoding schemes have emerged continuously, such as neural network decoding [14], Guessing Random Additive Noise Decoding (GRAND) [15] and shift-sum decoding based on minimum weight dual codewords [16].
Shift-sum decoding is particularly attractive because it can be implemented by finite-field polynomial multiplication and simple comparison operations, which makes it hardware friendly [16], [17]. In early work, Bossert showed that dual codeword structure can support hard- and soft-decision decoding beyond half the minimum distance [18]. In recent years, [19] designed an efficient decoding scheme for cyclic codes, which obtains reliability information through cyclic shifts and component counting to further improve decoding performance. Subsequently, [16] further extended such decoding schemes to various code types, including BCH codes, Reed-Muller (RM) codes, and Reed-Solomon (RS) codes. Meanwhile, [17], [20], [21] proposed new shift-sum decoding methods suitable for non-binary cyclic codes based on the statistical distribution characteristics of frequency matrices.
However, most of the existing works rely only on minimum-weight dual codewords, and the number of such codewords is often too small to provide sufficiently rich reliability information [17]. In our prior work within the vector operation framework of linear block codes, we extended the decoding method relying solely on minimum-weight dual codewords to a decoding theory based on multi-weight dual codewords [22]. However, it cannot be directly adapted to cyclic codes constructed via polynomial operations. This paper addresses this limitation while preserving the original shift-sum decoding framework. Instead of restricting the decoder to minimum-weight dual codewords, we extend the component counting mechanism to dual codewords within a prescribed weight range. This extension enables the acquisition of more reliability information, and thus boosts the decoding algorithm performance. At the same time, we introduce a normalized component counting rule so that the decoder benefits from additional dual codewords without being dominated by high-cardinality weight classes. Based on this flexible weight framework, we further introduce a hard-decision decoder, namely Iterative Error Reduction Decoding (IERD), and one soft information aided decoder, namely Soft Iterative Error Reduction Decoding (SIERD). Simulation results demonstrate that the performance of the proposed hard-decision decoding algorithm IERD is closer to the theoretical Hamming bound than that of the aforementioned hard-decision decoding algorithms, and its error correction capability of BCH codes.
Prerequisites
The primary research object of this paper is the binary primitive BCH code, hereinafter referred to as BCH code for brevity. Given positive integers and satisfying and , there always exists a BCH code with block length and number of parity bits . The designed minimum distance of this code is , enabling it to correct all bit errors of magnitude less than or equal to during transmission. For this reason, it is also termed a BCH code.
Given and , let denote a primitive element of the finite field . For , let represent the minimal polynomial of , which can also be characterized as a cyclotomic coset. The generator polynomial of the corresponding BCH code is then given by
where LCM denotes the least common multiple of polynomials. The generator polynomial is a product of irreducible polynomials. The parity-check polynomial of the BCH code is denoted by , satisfying . A corresponding codeword is expressed as , where is an information polynomial of degree less than .
The generator polynomial of the dual code of the BCH code is , which forms a BCH code. A codeword of the dual code is given by , where is an information polynomial of degree less than . Therefore, the product of any codeword and any dual codeword equals zero, i.e.,
It is shown in [23] that for a BCH code, if it is capable of correcting errors (which requires satisfying ), then the following inequality holds
where denotes the maximum number of codewords in the codebook with , and is the total number of binary vectors of length (i.e., all possible received vectors). This inequality is also referred to as the Hamming Bound in coding theory. Thus, the maximum number of errors correctable by the hard-decision decoding scheme for a BCH code is given by:
Decoding Based On The Dual Codewords
At the receiving end, we assume the received vector is , where is an error polynomial with weight , and is the transmitted codeword. We can calculate
Since the dual code is cyclic, we can select a dual codeword with weight in the form of . According to (2), the product , which equals . The polynomial can be expressed as the sum of cyclic shifts of [16], i.e.,
where the exponents are calculated modulo . Selecting a dual codeword with a coefficient of 1 for the zero-degree term ensures that, in the absence of shift errors, the coefficient of corresponding to the error position is 1. This makes the probability that the coefficient corresponding to an error position is 1 greater than that of a non-error position. This forms the basis of our subsequent decoding algorithm. Next, we will sequentially present the probability that the coefficient of at a non-error position is 1 and the probability that the coefficient of at an error position is 1.
Different from [17], which derives the corresponding probabilities from the distribution of error positions for a fixed minimum dual codeword weight, we formulate the analysis from the possible non-zero positions of a generic dual codeword with weight . This formulation accommodates dual codewords of multiple weights. For a position where the coefficient of the error polynomial is 0, to make the corresponding coefficient of at this position 1 (e.g., ), we need an odd number of the positions corresponding to the non-zero degree coefficients of the dual codewords overlap with the other $\tau non-zero positions of the error polynomial such that . We assume that only non-zero positions in the error polynomial overlap with the positions corresponding to the non-zero degree coefficients of the dual codeword with weight . The corresponding probability can be expressed as the ratio of the product of the number of combinations of choosing positions from positions and the number of combinations of choosing positions from positions to the number of combinations of directly choosing positions from positions, as shown in the following formula

Figure 1. Expected probability in BCH().
Thus, the expected probability that the coefficient of at a non-error position is 1 is
For an error position (e.g., ), since the zero-degree coefficient of the selected dual codewords is fixed to 1, we can stably obtain a coefficient of 1 for without cyclic shifting. Thus, to make the coefficient of at this position 1, it is required that an even number of combinations of the other non-zero positions of the error polynomial and the other positions of the dual codewords are shifted to . The corresponding probability is
For the idea of shift-sum decoding based on dual codewords, the most important thing to obtain effective key reliability information is that the probability that the coefficient corresponding to an error position is 1 is greater than that of a non-error position. However, this point may not have been effectively proven for cyclic codes. Therefore, we need to prove the following equation holds
Next, based on our prior work [22 Theorem 1], under the condition , we have
Moreover, is monotonically increasing with respect to . Therefore
Thus, under conditions, also holds.
Remark 1 (Consistency Between Theoretical Analysis and Simulation Results). As shown in Fig. 1 for , the theoretical probabilities in (8) and (9) agree well with the simulation results. More importantly, the foregoing analysis show that the distinction between error and non-error positions based on component counting is not restricted to minimum-weight dual codewords, but remains valid for dual codewords within the derived range of Hamming weights. This observation provides the theoretical basis for exploiting multi-weight dual codewords in the subsequent shift-sum decoding algorithms.
Next, we present the specific method to calculate the component counting . Let be a set of BCH codewords, and its dual codewords are defined as
Within the dual codewords , we define the set
where denotes the number of elements in , and the elements of set are also referred to as decoding vectors.
Given the received codeword , where and is the error polynomial, the calculation of component counting can be expressed as
where is approximately equal to the value in the following formula. The larger is, the higher the consistency between the calculated value and the theoretical value.
where represents the coefficient of in . Since for any dual codeword , the probability that the coefficient corresponding to an error position is 1 is greater than that of a non-error position, the position with a larger coefficient in has a higher probability of being an error position.
Decoding Algorithm
In our our proposed schemes, the first step is to randomly generate the set of relevant dual codewords with weight bounded above by , where the value of and are determined by the code length and the desired decoding performance. At the receiver, we compute and sort the obtained values according to their reliability. Since the dual codewords adopted herein have multiple weights, the number of dual codewords with larger weights may be far greater than that of dual codewords with the minimum weight. Therefore, dual codewords with larger weights may exert a more significant influence on the decoding process. However, as analyzed earlier, the information provided by dual codewords with smaller weights is more effective in distinguishing error positions from non-error positions. To mitigate the degradation of decoding performance caused by the disparity in codeword counts, we introduce a modification to the calculation of here. We use to record the number of dual codewords for each distinct weight, where the element value corresponding to denotes the number of dual codewords with weight . Thus, can be computed as:
The value of obtained in this manner approximates the expression given below. The larger the non-zero element values

Figure 1.
in , the higher the consistency between the calculated value and the theoretical value.
Next, we propose two decoding schemes for BCH. IERD Scheme: Iterative Error Reduction Decoding (IERD) is a hard-decision decoding method. In each iteration, the unreliable positions identified based on are flipped to compute a new received vector, as detailed in Algorithm 1. Furthermore, the position corresponding to indicates the most probable error position where . Based on this, we can iteratively reduce the number of errors by flipping these positions. When , we update the received vector as and continue the iteration. When , it indicates that the correct transmitted codeword has been found. IERD can identify error positions in each iteration but requires recomputing every time.
Soft IERD (SIERD) Scheme: Algorithm 1 only utilizes the intrinsic information derived from dual codewords and fails to fully exploit the soft information available at the receiver. By incorporating soft information, for instance, in an Additive White Gaussian Noise (AWGN) channel, the received vector can be expressed as , where is the transmitted signal vector and is the Gaussian noise vector with each component following a normal distribution with a mean 0 and variance . We note that a larger magnitude of each component in the received vector corresponds to higher reliability of that position. This constitutes the soft information we can leverage. By fusing soft information with intrinsic information, we obtain the comprehensive information
where . Similar to Algorithm 1, this comprehensive information is used to identify the most probable error positions where . It is further employed to update the a priori information for the -th position in the next iteration as , where is a scaling factor. Compared with IERD, SIERD can significantly improve the accuracy of error position location, especially when the number of errors is large, thereby enhancing the decoding performance.
Numerical Results
For a given BCH(, , ) code, we first determine the maximum number of potentially correctable errors by calculating (4). We then determine the maximum weight of the required dual codewords from (13). Finally, a set of dual codewords is obtained through a random generation method. In all presented figures, higher index numbers appended to the proposed algorithm indicate an increased number of adopted dual codewords .
Figure 2 depicts the Block Error Rate (BLER) performance of the proposed algorithm for the BCH(63, 39) code over the Binary Symmetric Channel (BSC), while Figure 3 analyzes the BLER performance of the algorithm for the BCH(63, 30) code over an AWGN channel. The results demonstrate that, with the same algorithm architecture, the scheme incorporating dual codewords of multiple weights achieves significantly superior performance compared with the one only utilizing dual codewords of the minimum weight (Error Reduction Decoding (ERD) in [16]). In particular, it can be observed from Figure 3 that as the number of dual codewords involved in iteration increases, the performance curve of the proposed algorithm approaches the Hamming bound closely. This indicates that the algorithm can accurately correct up to errors for the

Figure 2. BLER performance of BCH(63, 39) over BSC channel.

Figure 3. BLER performance of hard-decision decoding algorithms for the BCH(63, 30) code over an AWGN channel.
BCH(63, 30) code, whose error correcting capability exceeds the theoretical design limit of this code type. In addition, if the decoding process is assisted by the soft information of the channel, the algorithm can obtain better performance with fewer dual codewords, thereby reducing the computational complexity effectively. Figure 4 further verifies the effectiveness of the proposed algorithm for the BCH code with code length with different code rates. Although the increase in code length will increase the difficulty of searching for dual codewords with specific weights, the algorithm still maintains good applicability in the scenarios of medium and short code lengths, and it outperforms the classical BM algorithm. In terms of complexity, each iteration of the IERD scheme requires at most finite field multiplications, and thus yields a worst-case computational complexity of . The SIERD scheme benefits from fewer iterations compared to the IERD scheme. Furthermore, all the algorithms we designed can be implemented merely through polynomial multiplication and a small number of comparison operations, thus facilitating efficient hardware implementation in practical scenarios.

Figure 4. BLER performance of BCH(127, 64) and BCH(127, 85) codes over AWGN channel.
Conclusion
This paper studies multi-weight shift-sum decoding for short BCH codes. By extending the component counting analysis from minimum-weight dual codewords to dual codewords within a prescribed Hamming-weight range, we characterize the statistical distinction between error and non-error positions and enable additional reliability information to be exploited in decoding. A normalized component counting rule is further introduced to suppress the bias caused by high-cardinality weight classes, based on which the IERD and SIERD algorithms are developed. Numerical results show that IERD approaches the Hamming bound and can correct beyond the designed error correction capability of short BCH codes, while SIERD further improves decoding performance by incorporating channel soft information with fewer dual codewords.
Acknowledgement
This work was supported by the Henan Natural Science Foundation for Excellent Young Scholar under Grant 242300421169, the Sun Yat-sen University Talent Initial Funds under Grant 76160-12256017 and 76160-12266015.
References
- [1]R. C. Bose and D. K. Ray-Chaudhuri, “On a class of error correcting binary group codes,” Inf. Control, vol. 3, no. 1, pp. 68–79, Mar. 1960.
- [2]H. Xu, X. Wu, W. Lu, and X. Cao, “The sufficient and necessary conditions for the minimum distance of the BCH Code C(q,q+1,3,h) to be 3 and 4,” IEEE Trans. Inf. Theory, vol. 71, no. 6, pp. 4206–4213, Jun. 2025.DOI
- [3]L. Zhang, T. Li, and T. Endoh, “Small area and high throughput error correction module of STT-MRAM for object recognition systems,” IEEE Trans. Ind. Inform., vol. 20, no. 5, pp. 7777–7786, May. 2024.
- [4]R. Zheng, N.-S. Sze, and Z. Huang, “The dimension and bose distance of certain primitive BCH codes,” IEEE Trans. Inf. Theory, vol. 71, no. 10, pp. 7670–7687, Oct. 2025.DOI
- [5]J. Massey, “Shift-register synthesis and BCH decoding,” IEEE Trans. Inf. Theory, vol. 15, no. 1, pp. 122–127, Jan. 1969.DOI
- [6]G. Daniel, H. Zhang, I. Ali, and J. Ha, “One-step ahead decoding for symmetric block-wise concatenated BCH codes,” IEEE Trans. Commun., vol. 73, no. 9, pp. 6993–7006, Sept. 2025.DOI
- [7]A. Y. Sukmadji and F. R. Kschischang, “Performance-complexity-latency trade-offs of concatenated RS-BCH codes,” IEEE Trans. Commun., vol. 72, no. 7, pp. 3829–3841, July. 2024.DOI
- [8]J.-H. Hu and H.-A. Loeliger, “Partial inverses mod m(x) and reverse Berlekamp–Massey decoding,” IEEE Trans. Inf. Theory, vol. 62, no. 12, pp. 6737–6756, Dec. 2016.
- [9]B. Chen, W. Yin, Y. Lei, Q. Huang, and X. Li, “Hybrid decoding of asymmetric product codes with systematic polar and BCH codes,” IEEE Commun. Lett., vol. 28, no. 10, pp. 2223–2227, 2024.DOI
- [10]M. Fossorier and S. Lin, “Soft-decision decoding of linear block codes based on ordered statistics,” IEEE Trans. Inf. Theory, vol. 41, no. 5, pp. 1379–1396, Sept. 1995.
- [11]D. Chase, “Class of algorithms for decoding block codes with channel measurement information,” IEEE Trans. Inf. Theory, vol. 18, no. 1, pp. 170–182, Jan. 1972.
- [12]L. Yang, J. Zhao, X. Li, L. Chen, H. Zhang, and J. Tong, “Efficient ordered statistics decoding of BCH codes without gaussian elimination,” IEEE Trans. Inf. Theory, vol. 71, no. 11, pp. 8294–8311, Nov. 2025.DOI
- [13]Y. Shen, Z. Li, E. Boutillon, W. Song, Y. Ren, C. Zhang, X. You, and A. Burg, “Belief propagation decoding for short codes on structured sparse parity-check matrices,” in ISIT 2025, Ann Arbor, MI, USA, Jun. 2025, pp. 1–6.DOI
- [14]F. Nadeem, C. Yue, K. Wang, and M. Shirvanimoghaddam, “Low complexity early termination HARQ for URLLC: Analysis and neural network design,” IEEE Trans. Commun., vol. 74, pp. 123–138, Jan. 2026.DOI
- [15]K. R. Duffy, W. An, and M. Médard, “Ordered reliability bits guessing random additive noise decoding,” IEEE Trans. Signal Process., vol. 70, pp. 4528–4542, Aug. 2022.
- [16]M. Bossert, R. Schulz, and S. Bitzer, “On hard and soft decision decoding of BCH codes,” IEEE Trans. Inf. Theory, vol. 68, no. 11, pp. 7107–7124, Nov. 2022.DOI
- [17]J. Xing, M. Bossert, L. Chen, J. Yuan, and S. Bitzer, “Shift-sum decoding of non-binary cyclic codes,” IEEE Trans. Inf. Theory, vol. 70, no. 2, pp. 980–994, Feb. 2024.DOI
- [18]M. Bossert and F. Hergert, “Hard- and soft-decision decoding beyond the half minimum distance—an algorithm for linear codes,” IEEE Trans. Inf. Theory, vol. 32, no. 5, pp. 709–714, Sep.1986.DOI
- [19]M. Bossert, “An iterative hard and soft decision decoding algorithm for cyclic codes,” in Proc. 12th Int. ITG Conf. Syst. Commun. Coding (SCC), VDE, Feb. 2019, pp. 1–6.
- [20]J. Yuan, J. Xing, and L. Chen, “Plausibility analysis of shift-sum decoding for cyclic codes,” in IEEE ISIT 2021, Melbourne, Australia, Jul. 2021, pp. 652–657.DOI
- [21]J. Xing, M. Bossert, S. Bitzer, and L. Chen, “Iterative decoding of non-binary cyclic codes using minimum-weight dual codewords,” in IEEE ISIT 2020, Los Angeles, CA, USA, Jun. 2020, pp. 333–337.DOI
- [22]D. Zhang, Y. Yang, Z. Liu, S. Jia, K. Lee, and Z. Zhang, “Low complexity weight flexible decoding schemes of linear block code for 6G xURLLC,” IEEE Trans. Veh. Technol., pp. 1–6, Oct. 2025.arxiv.org/abs/2510.06768
- [23]F. J. MacWilliams and N. J. A. Sloane, The theory of error-correcting codes. Elsevier, Dec. 1977, vol. 16.