Manuscript Offprint
arXiv:2610.33559Joint End-to-End Training of Weighted BP Decoder Ensembles
Felix Krieg , Paul Bezner , and Stephan ten Brink
Institute of Telecommunications, University of Stuttgart, Germany
{krieg, bezner, tenbrink}@inue.uni-stuttgart.de
Abstract—Ensemble decoding improves decoding reliability by combining component decoders with complementary failure events. Existing approaches typically obtain this diversity from code-specific structure, such as code automorphisms, multiple parity-check representations, or targeted modifications of the message-passing graph. In this work, we instead learn the diversity of an ensemble of weighted belief propagation decoders by jointly optimizing trainable Tanner-graph edge weights. A central design question is how the training objective should distribute gradient among the ensemble members to promote complementary decoding behavior. To this end, we compare four ensemble objectives under direct gradient-based optimization and identify best-member training as the most effective approach. For a (64, 32) progressive edge-growth (PEG) low-density parity-check (LDPC) code, the resulting ensemble outperforms the considered trained and untrained belief-propagation-based ensemble baselines. With 10 members, it provides a gain of approximately 0.66 dB over a single belief propagation decoder at a target frame error rate (FER) of . Similar behavior is observed for a (128, 64) CCSDS LDPC code, indicating that the learned complementarity is not specific to PEG. Although the ensemble performance improves substantially, all trained members show a higher standalone FER. The gain therefore results from learned specialization and complementary failure events rather than uniformly improved component decoders.
Index Terms—ensemble decoding, weighted belief propagation, ensemble training, short block codes
I. INTRODUCTION
Ensemble decoding improves the frame error rate (FER)-performance of short block codes by exploiting diversity among several constituent decoders and selecting the most likely candidate from their combined output list [1]. Conventional approaches create such diversity structurally, e.g., through multiple parity-check representations [2], code automorphisms [3], or decoder-side modifications of the message-passing process [4]. In contrast, learned message-passing decoders, like weighted belief propagation (WBP), improve an individual iterative decoder by optimizing trainable parameters of the decoding algorithm [5], [6].
The two concepts have also been combined. In [7], belief propagation (BP) recurrent neural network (RNN) decoders are trained for predefined error classes associated with absorbing

Fig. 1. Trainable ensemble model. The E weighted BP members decode the same channel LLRs. Syndrome-valid candidates are compared using the channel metric (1), and the ML-in-list decision returns . During training (orange), per-frame member losses are aggregated according to the considered objective or routing rule.
sets and combined in an ensemble. In [8], a decoder is trained on words that remain uncorrected by a preceding learned decoder. Both approaches therefore promote specialization through prescribed or sequentially defined training subsets.
In this work, we consider an ensemble of WBP decoders, and their training without expert knowledge. The member specialization instead emerges from the joint optimization. This distinguishes ensemble training from single-decoder training: improving every member on average typically does not lead to the best improvement of the ensemble, because the final decision benefits from members that correct different frames. Conversely, assigning every frame equally to every member encourages similar decoding behavior.
The central question is therefore whether the ensemble objective itself can induce member specialization under ordinary gradient-based optimization. We compare four objectives that differ in how each frame distributes gradients across the members. The resulting trajectories show that the objective choice materially affects the trained ensemble. In particular, independent initialization jitter breaks member symmetry, while the best-member objective assigns each frame to its currently lowest-loss member.
The contributions of this work are summarized as follows:
P. Bezner and F. Krieg contributed equally to this work.
This work is supported by the German Federal Ministry of Research, Technology and Space (BMFTR) within the project Open6GHub+ (grant no. 16KIS2406).
- We introduce a framework for joint end-to-end training of decoder ensembles that learns complementary member behavior directly from data, without requiring code- or
LLM agents from Anthropic and OpenAI were used to write source code for this work and to assist with language editing.
decoder-specific expert knowledge.
• We formulate four ensemble-training objectives and characterize both their relation to the final ML-in-list FER and their behavior under direct gradient-based optimization.
• We show that the considered objectives lead to substantially different training outcomes. Objectives that route each training sample to a selected member outperform objectives that update the entire ensemble simultaneously.
• We evaluate the proposed training approach on the CCSDS(128, 64) and progressive edge-growth (PEG)(64, 32) low-density parity-check (LDPC) codes. For the PEG(64, 32) code, the resulting ensemble achieves an FER of at 0.23 dB lower signal-to-noise ratio (SNR) than a specialized ensemble baseline and provides a gain of approximately 0.66 dB over a single BP decoder.
• We provide evidence that the learned gains arise from member specialization. The member failure sets have lower overlap and the ensemble FER improves, even though the standalone FER of every individual member degrades.
Sec. II introduces the decoding model, notation, reference methods, and experimental setup, while Sec. III defines the candidate ensemble-training objectives. Secs. IV-A and IV-B analyze the objective values and their optimization, respectively. Sec. IV-C compares complete training rules, and Sec. IV-D analyzes the resulting member specialization.
A. Code, channel, and notation
Vectors and matrices are denoted by boldface lowercase and uppercase letters, respectively, 0 denotes the all-zero vector, 1 the all-one vector, and estimates carry a hat. The indicator equals one if its argument is true and zero otherwise. The index denotes a code-bit position, whereas indexes a member of an ensemble of size .
We consider a binary linear code
defined by the parity-check matrix (PCM) . The coded bits are mapped to and transmitted using binary phase-shift keying (BPSK) over an additive white Gaussian noise (AWGN) channel,
The corresponding channel LLR is
and the are collected in . All FER estimates are based on at least 200 observed frame errors.
B. Weighted belief-propagation decoding
A WBP decoder retains the message-passing structure of conventional BP while introducing trainable multiplicative weights into the decoding graph [5]. We denote the trainable parameter vector of one decoder by w and write
for the posterior LLRs after iterative decoding. The hard-decision candidate is
The decoder considered in this work uses trainable weights for the channel contributions and exchanged messages, shared across decoding iterations. Unit weights recover the corresponding untrained BP decoder.
C. Ensemble decoding
An ensemble decoder applies E related decoders to the same channel observation. Member e has parameters , posterior LLRs
and candidate . Its per-frame training loss is denoted by and is specified in Sec. III. Hence, diversity between WBP ensemble members is entirely determined by differences between their parameter vectors and, consequently, their decoding trajectories.
Only syndrome-valid candidates, are considered for the final decision. For each valid candidate, we define the channel metric
and collect the member metrics in . The final ensemble decision is
For BPSK transmission over the AWGN channel, this corresponds to ML selection among the candidates in L and is the standard selection rule used for ensemble decoding [1]. If we output a frame error. Unless stated otherwise, FER refers to the error rate of this final ML-in-list decision. When a member is evaluated individually, we explicitly refer to its standalone FER.
D. Reference methods and experimental setup
The main experiments use the (64, 32) PEG LDPC code referred to as Code 1 in [7]; in the following, we denote it as the PEG code [9]. To assess whether the observed behavior also occurs for another LDPC code, we additionally consider the (128, 64) CCSDS LDPC code [10], denoted as Code 2 in [7]. We consider ensembles of up to E = 10 recurrent WBP decoders. Each decoder uses one trainable weight per channel-LLR contribution and exchanged message, shared across iterations, resulting in 256 trainable parameters per member. Unless stated otherwise, training is performed with ten decoding iterations and evaluation with 25 iterations to match the setup of [7]. The training-objective analysis and the training-rule comparison are performed at 4.0 dB; the resulting decoders are subsequently evaluated over the considered SNR range. The non-equivariant automorphism-groups of general LDPC codes – like the PEG and CCSDS code – are typically not known. Hence, ensemble diversity cannot be obtained from an automorphism-based construction and must instead result from other differences between the constituent decoders.
We compare the proposed training procedure with the following reference methods.
Single WBP: A single decoder with the same architecture and parameterization as an ensemble member is trained conventionally on channel realizations using the bit-wise binary cross-entropy (BCE) loss [5]. This baseline distinguishes gains due to ensemble complementarity from gains already obtainable by optimizing a single decoder.
Specialized BP-RNN ensemble: The authors of [7] obtain decoder diversity by training BP-RNN decoders specialized to error classes associated with absorbing-set structures. Their resulting ensemble is denoted by . We use the specialized BP-RNN ensemble for the PEG code as a learned-ensemble reference and apply the same ML-in-list selection as in (1). In particular, denotes their ten-member ensemble used in the ensemble-size comparison.
Boosting-based training: The approach of [8] is to divide the WBP decoder into a base decoder and a post decoder, which is specialized on words that remain uncorrected by the base decoder. Iteratively, a bigger ensemble is built using this approach.
Row-boosted ensemble: The row-boosted ensemble of [4] creates decoder diversity without changing the code or using trainable parameters. All members use the same PCM and decoding kernel, but strengthen the outgoing messages of different subsets of parity-check rows. The resulting perturbed message-passing trajectories produce a set of candidate codewords that is again combined using (1). We use the optimized row-boosted ensemble as a BP-ensemble reference with minimal learning and parameter overhead.
OSD-3: Finally, ordered-statistics decoding (OSD) [11] is evaluated directly from and serves as an approximate ML reference (with OSD order 3). It is included to indicate the remaining coding gain and is not intended as a matched-complexity baseline for the WBP ensembles.
III. TRAINABLE WEIGHTED BP ENSEMBLES
A. Ensemble training objective
For a transmitted codeword c, the per-frame loss of member e is the bit-wise BCE of its posterior LLRs,
which decreases when the posterior LLRs move toward the signs of the transmitted bits with increasing magnitude.
Training an individual decoder directly minimizes (2). For an ensemble, however, the final decision depends on the collection of candidates rather than on any individual member. We therefore express the per-frame ensemble objective as
where the detached coefficients determine how the gradient of a frame is distributed among the members. The decoder parameters and the assignment coefficients are distinct: gradients propagate through , but not through the computation of .
B. Candidate member assignments
We consider four assignments that differ only in how member losses contribute to (3).
The uniform BCE objective assigns every frame equally to all members,
This corresponds to independently training all members on the same channel distribution and does not explicitly encourage complementary decoding behavior.
The metric-selected objective assigns the frame to the member whose candidate is returned by the final ensemble selector,
Hence, only the member responsible for the current ensemble decision receives gradient. If , .
A differentially motivated relaxation of this assignment is the soft metric objective,
where for syndrome-valid candidates and otherwise; thus, invalid candidates receive zero weight as long as at least one member converged. We use in all experiments. If , the metric-selected objective assigns the frame to the member with the smallest and the ensemble decision itself remains a frame error.
Finally, the best-member objective assigns the frame according to the member losses themselves,
This assignment is analogous to the hard winner assignment of adaptive mixtures of experts [12]: for each frame, the currently best member (i.e., the one that is closest to decoding this noise sample) receives the corresponding gradient.
C. Ensemble-training
We train the ensemble in a conventional manner: At every optimizer step, a batch of fresh channel realizations is decoded by all members, the selected per-frame losses are averaged once over the complete batch, and one joint Adam step updates all member parameter vectors. A member that is not selected by any frame in a batch consequently receives zero gradient

(4):
(5):
(6):
(7):

Fig. 2. Ensemble FER versus loss function at 4.0 dB for the four losses. PEG code with E = 10 WBP members. Circles denote the linear interpolation from the common initialization to the selected best-member configuration, while squares show direct Adam trajectories. Gray markers indicate local perturbations.
in that update. Applied to the best-member assignment (7), the same direct procedure forms the proposed training method detailed in Algorithm 1. An exactly symmetric initialization remains invariant for permutation-symmetric objectives because identical members process the same observations and receive identical gradients. A hard assignment can break a tie arbitrarily, but its outcome would then depend on the arbitrary implementation of the tie-breaking rule. To avoid this, we initialize every member from unit BP weights with an independent Gaussian perturbation of standard deviation .
IV. RESULTS
A. Loss value versus ensemble FER
Training an ensemble requires specifying how the member-wise training losses are combined. For conventional WBP decoding, the bit-wise BCE is the standard training objective [5], [6]. Applying the same objective to an ensemble by averaging the member losses, however, does not explicitly account for the final ensemble decision. We therefore compare four ensemble objectives derived from the same per-member BCE.
We first investigate how the scalar objective values relate to the resulting ensemble FER. Figure 2 evaluates BP-weight configurations along the linear interpolation between the common jittered initialization and the genie-selected best-member checkpoint (circles), together with local perturbations around

Fig. 3. Validation FER versus training steps for direct Adam optimization of the four candidate objectives from a common jittered initialization.
this path (gray circles). This interpolation provides a controlled path through parameter space toward a known good ensemble and is not generated by an optimizer. For comparison, the squares show configurations obtained by direct Adam optimization of the respective objective, with local perturbations shown as gray squares. The common initialization is marked by ◇, whereas ★ denotes the genie configuration.
The four objectives differ substantially in how their scalar values relate to the ensemble FER. The uniform BCE is anticorrelated with FER ( ), since averaging the member losses does not distinguish between improvements on the same frames and improvements on complementary error events. Consequently, a low average member loss can coincide with a comparatively high ensemble FER.
The strongest positive correlation is obtained for the best-member objective (7) with , followed by the soft metric objective (6) with and the metric-selected objective (5) with . The weaker correlation of the metric-selected objective results from its hard member selection: small changes in the decoder weights can switch the selected candidate and thus change the objective value abruptly, while the ensemble FER changes only marginally. Thus, the correlation characterizes how well the scalar objective orders the sampled configurations, but does not directly characterize the gradients encountered during optimization.
B. Optimization with candidate objectives
To separate the relation between the scalar objective value and the resulting optimization behavior, we train the same ensemble with each of the four objectives for 20,000 Adam updates. All runs start from the same jittered unit-weight initialization, use a learning rate of , and process batches of 128 channel realizations at 4.0 dB (drawn fresh each time; no sample is used twice during training). Training is performed with ten decoding iterations, while each checkpoint is evaluated with 25 iterations on a fixed validation set. The square trajectories in Fig. 2 show one checkpoint every 1000 updates, and Fig. 3 resolves the 20,000 updates in more detail.
The four objectives lead to clearly different optimization behavior. The validation FER of the uniform-BCE objective increases, whereas the soft metric objective reduces it slightly. The two hard-decision based losses perform best. Despite its

(a) PEG(64, 32).
(b) CCSDS(128, 64).
single BP (untrained)
RBE (untrained) [4]
[prop.]
single WBP [5]
residual [8]
specialists [7]
Fig. 4. Validation FER versus cumulative training-sample exposure at an SNR of 4 dB for E = 10 ensembles using minibatches of 128 samples.
low Pearson coefficient, yields strong ensemble performance. This discrepancy is caused by the final part of the interpolation path toward the genie configuration in Fig. 2: several configurations achieve a slightly lower ensemble FER while exhibiting a substantially larger loss, which weakens the overall linear correlation.
Since each optimizer step uses newly generated channel realizations, the degradation of performance for longer training cannot be attributed to overfitting to a finite training set. Instead, it may result from the mismatch between training and inference depth: weights optimized for ten decoding iterations do not necessarily preserve their performance when the decoder is unfolded to 25 iterations.
More importantly, the best-member trajectory demonstrates that direct joint optimization alone can substantially reduce the ensemble FER. The similarly strong performance of the metric-selected objective, despite its small Pearson coefficient, further shows that the scalar loss–FER correlation is useful for characterizing an objective, but does not by itself predict its optimization performance.
C. Training rules under matched data exposure
To compare the learned methods under a common training budget, we use optimizer sample exposure. Each frame entering a shared minibatch is counted once, independent of the number of ensemble members that receive gradient from it, while samples not used in an optimizer update are excluded. This measure therefore reflects the number of channel realizations contributing to gradient updates without scaling joint ensemble updates by the ensemble size.
Rosseel et al. [7] deliberately train with ten iterations and evaluate with 25 iterations, reporting a performance gain for this configuration. We observed that this mismatch can instead degrade performance for some training objectives. Nevertheless, we retain the same setup to ensure comparability with [7] and across the considered baselines.

(dB)
Fig. 5. FER versus for checkpoints selected on the PEG code after training as shown in Fig. 4 (a).
Algorithm 1: Joint WBP ensemble training via
Input: ensemble size E; jitter ; batch size B; number of updates U; learning rate
Output: trained parameters
// initialize diverse members around conventional BP
1 for do
2
3
4 end
5 for do
6 draw B independent channel realizations
;
7 for do
8 for do
9
10 end
11 ; // no gradient
through assignment; ties resolved randomly
12 end
13 ;
14 update jointly using Adam on
with learning rate ;
15 end
For the proposed method in Algorithm 1, we use , , , and Adam with a learning rate of at 4.0 dB. All members remain trainable for 20,000 joint updates, corresponding to training samples. As shown in Fig. 4, direct best-member training reduces the validation FER rapidly and achieves the lowest value among the considered learned methods for both codes.
Figure 5 evaluates the checkpoints with minimal FER in Fig. 4 on fresh channel realizations over the considered SNR range. The directly trained best-member ensemble achieves the lowest FER among the considered BP-based methods throughout this range, demonstrating that the gain is not

Fig. 6. Required SNR for FER versus ensemble size E for the PEG code. The specialists curve reproduces Fig. 6 of [7].
limited to the training SNR.
Figure 6 shows the required SNR for different ensemble sizes E. For the proposed method, the SNR decreases rapidly with increasing E and remains below that of the untrained specialist ensembles for all considered ensemble sizes. At , it reaches 5.02 dB, compared with 5.25 dB for [7].
D. Member specialization and ensemble complementarity
To assess whether the ensemble gain results from stronger individual decoders or increased complementarity, we evaluate all members before and after the proposed training. Fig. 7 shows the FER of the ensemble and the respective standalone FER of the members. Although the ensemble FER improves from to , the respective standalone FER increases, indicating complementarity.
Let denote the set of frames not decoded by member . We quantify pairwise failure overlap by the Jaccard index
For channel realizations at 4.0 dB, the mean Jaccard index over all 45 member pairs decreases from 0.885 to 0.315.
Thus, the ensemble gain is accompanied by substantially less overlap between the member failure sets. The best-

Fig. 7. Standalone and ensemble FER before and after joint training for the PEG code with WBP members at 4.0 dB. Markers denote the standalone member FERs, dashed lines the complete ensemble FER.
member assignment (7) promotes this specialization by updating the member with the lowest loss on each frame rather than improving all members jointly. Consequently, the trained ensemble benefits from complementary frame-specific behavior despite degraded standalone member performance.
V. CONCLUSION
Training complementary WBP decoder ensembles requires an objective that promotes member specialization. For the considered PEG code, the four investigated objectives differ substantially in both their scalar relation to the ensemble FER and their behavior under direct optimization. The best-member objective achieves the strongest correlation and the lowest trained FER, while the competitive performance of the metric-selected objective despite its weak correlation shows that correlation of scalar loss and FER alone does not predict trainability. Using joint best-member training from independently jittered unit-weight initializations, the resulting ensemble achieves the lowest FER among the considered BP-based methods throughout the evaluated SNR range and requires 0.23, dB less SNR than the published specialized ensemble at FER . At 4.0, dB, the ensemble FER improves by a factor of 2.9 although the standalone FER of every member increases. Together with the reduced overlap of the member failure sets, this shows that the ensemble gain results from learned specialization and complementary error events rather than uniformly improved constituent decoders.
REFERENCES
[1] F. Krieg, J. Clausius, M. Rübenacke, and S. ten Brink, “A comparative study of ensemble decoding methods for short length ldpc codes,” in 2025 14th International ITG Conference on Systems, Communications and Coding (SCC). IEEE, 2025, pp. 1–6.
[2] T. Hehn, J. B. Huber, O. Milenkovic, and S. Laendner, “Multiple-bases belief-propagation decoding of high-density cyclic codes,” IEEE Transactions on Communications, vol. 58, no. 1, 2010.
[3] M. Geiselhart, A. Elkelesh, M. Ebada, S. Cammerer, and S. ten Brink, “Automorphism ensemble decoding of reed–muller codes,” IEEE Transactions on Communications, vol. 69, no. 10, 2021.
[4] P. Bezner, F. Krieg, and S. ten Brink, “Row-boosted ensemble belief propagation for short LDPC codes,” 2026, unpublished manuscript.
[5] E. Nachmani, E. Marciano, L. Lugosch, W. J. Gross, D. Burshtein, and Y. Be'ery, "Deep learning methods for improved decoding of linear codes," IEEE Journal of Selected Topics in Signal Processing, vol. 12, no. 1, 2018.
[6] S. Cammerer, J. Hoydis, F. Aït Aoudia, and A. Keller, “Graph neural networks for channel decoding,” in Proc. IEEE Global Communications Conference Workshops (GLOBECOM Workshops), 2022.
[7] J. Rosseel, V. Mannoni, I. Fijalkow, and V. Savin, “Decoding short LDPC codes via BP-RNN diversity and reliability-based post-processing,” IEEE Transactions on Communications, vol. 70, no. 12, 2022.
[8] H.-Y. Kwak, D.-Y. Yun, Y. Kim, S.-H. Kim, and J.-S. No, “Boosting learning for LDPC codes to improve the error-floor performance,” in Advances in Neural Information Processing Systems, 2023.
[9] X.-Y. Hu, E. Eleftheriou, and D. M. Arnold, “Regular and irregular progressive edge-growth tanner graphs,” IEEE Transactions on Information Theory, vol. 51, no. 1, 2005.
[10] Consultative Committee for Space Data Systems, “TC Synchronization and Channel Coding,” CCSDS, Recommended Standard CCSDS 231.0-B-4, Jul. 2021.
[11] M. P. C. Fossorier and S. Lin, “Soft-decision decoding of linear block codes based on ordered statistics,” IEEE Transactions on Information Theory, vol. 41, no. 5, 1995.
[12] R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, “Adaptive mixtures of local experts,” Neural Computation, vol. 3, no. 1, 1991.