Consistency Flow Model Achieves One-step Denoising Error Correction Codes

Haoyu Lei, Chin Wa Lau, Kaiwen Zhou, Nian Guo, Farzan Farnia

TL;DR

Diffusion-based neural decoders achieve state-of-the-art error correction performance, but their iterative sampling introduces too much latency for real-time communications. ECCFM (Error Correction Consistency Flow Model) overcomes this bottleneck by adapting consistency models to linear block codes, mapping noisy channel inputs to clean codewords in a single step. By replacing discrete parity check counts with a smooth soft-syndrome time condition, ECCFM achieves equal or superior bit-error rates compared to diffusion models while speeding up inference by 30× to 100×.

What Problem Does This Paper Address?

In digital communications, Error Correction Codes (ECC) protect transmitted data against channel noise (such as Additive White Gaussian Noise, or AWGN). Neural network decoders—especially Transformer-based models—have emerged as competitive alternatives to classic belief propagation algorithms.

Recently, generative diffusion decoders (like DDECC) treated the physical channel noise as a forward diffusion process and reversed it iteratively, achieving impressive Bit Error Rates (BER). However, iterative diffusion decoders require dozens to hundreds of denoising steps per codeword. In practical communication systems requiring microsecond-scale latencies and gigabit throughputs, this iterative overhead is a non-starter.

Methods

ECCFM reformulates reverse denoising as a Probability Flow Ordinary Differential Equation (PF-ODE) that can be solved in a single step using consistency modeling:

  • Continuous Soft-Syndrome Time Condition: Standard Consistency Models (CMs) require a continuous, differentiable time variable $t$ indexing the noise trajectory. In ECC, noise levels were previously measured via discrete parity-check syndrome error counts ($e_t = \sum s(x_t)_i$). Because hard syndrome counts jump abruptly between integer values, naive consistency models fail to converge. The authors instead introduce a differentiable soft-syndrome $e^\dagger_t$ computed from received signal log-likelihood ratios via a mean-field approximation, producing a smooth trajectory from noise to valid codewords.
  • Error Correction Consistency Loss ($L_{\text{EC-CM}}$): Unlike generative image models that draw arbitrary samples from a distribution, decoding seeks a specific ground-truth codeword $x_0$. ECCFM optimizes the Binary Cross-Entropy (BCE) between trajectory predictions and $x_0$. The authors prove (via Pinsker’s inequality) that this BCE objective provides a valid upper bound on the standard Total Variation consistency loss.
  • Soft-Syndrome Regularization: A secondary loss term penalizes non-zero soft syndromes in the decoder’s output, guiding early training toward the valid codeword manifold.
  • Architecture-Agnostic Single-Step Inference: At test time, given a noisy input $y$ and its soft syndrome $e_t^\dagger$, the model outputs $\hat{x}_0 = f_\theta(y, e_t^\dagger)$ in a single forward pass.
       [Noisy Channel Signal y] 
                  │
        (Soft-Syndrome Calculator)
                  ├───> Differentiable noise level e†_t
                  │
                  ▼
   [Consistency Neural Decoder f_θ] ─── (Single Forward Pass) ───> [Decoded Codeword x̂_0]

Datasets

The authors evaluated ECCFM on standard benchmark linear block codes across code lengths $n \in [61, 529]$, code rates $k/n$, and Signal-to-Noise Ratios ($E_b/N_0$ from 2 dB to 6 dB):

  • BCH Codes: BCH(63,36), BCH(63,45)
  • Polar Codes: Polar(64,32), Polar(64,48), Polar(128,64), Polar(128,86), Polar(128,96), Polar(512,384)
  • LDPC Variants: Standard LDPC (121,60), (121,70), (121,80), (204,102), (408,204), (529,440); MacKay(96,48); CCSDS(128,64); and WRAN(384,320)
  • Channels Tested: Additive White Gaussian Noise (AWGN) and Rayleigh Fading channels.

Key Insights and Ideas

  • Hard Syndromes Break Consistency Training: Discrete syndrome counts produce plateaus and sudden jumps along the reverse trajectory. Multiple distinct noisy states map to identical integer error counts ($e_t = e_r$), causing gradient instability. Differentiable soft syndromes provide the continuity needed for differential ODE formulation ($df/dt = 0$).
  • Supervised Ground Truth Over Relative Self-Consistency: Vanilla consistency models penalize differences between neighboring ODE steps ($f_\theta(x_t) \approx f_\theta(x_r)$). In ECC decoding, the target point mass $\delta(x - x_0)$ is known during training. Directly penalizing distance to $x_0$ yields stronger gradients and tighter theoretical bounds.
  • Multi-Step Sampling Hurts Rather Than Helps: In image generation, 2-to-4-step consistency sampling often improves visual fidelity. In ECC decoding, adding a 2-step re-noising loop degraded BER because intermediate rounding and re-noising steps introduced error accumulation on discrete codeword constellations. Single-step decoding performed best.

Key Results

  • Inference Speedup: On medium-to-long codes (e.g., LDPC-529, Polar-512), iterative diffusion (DDECC) requires up to 123 sequential steps. ECCFM achieves a 30× to 100× speedup, matching the high throughput of single-pass autoregressive models (CrossMPT).
  • Decoding Accuracy: In terms of $-\ln(\text{BER})$ across BCH, Polar, and LDPC codes, ECCFM consistently achieves the best or second-best error rates among all neural baselines. Gains are particularly noticeable on longer block lengths ($n > 200$) and lower SNR regimes.
  • Model Agnostic: When swapped from a CrossMPT backbone to a standard ECCT backbone, ECCFM maintained its BER improvements over the original ECCT baseline, confirming the training framework is backbone-independent.

Limitations and Future Work

  • Channel Diversity: The mathematical framework relies primarily on AWGN-derived formulations; while initial tests on Rayleigh fading show robustness, broader real-world channel impairments (e.g., phase noise, frequency-selective fading) require further study.
  • Code-Dependent Trajectories: Smoothness and convergence properties depend on the parity-check matrix structure; designing adaptive trajectories tailored to arbitrary code families remains an open challenge.

Summary updated

BibTeX
@inproceedings{lei2026consistency,
  author = {Haoyu Lei and Chin Wa Lau and Kaiwen Zhou and Nian Guo and Farzan Farnia},
  title = {{Consistency Flow Model Achieves One-step Denoising Error Correction Codes}},
  booktitle = {ML4Wireless @ AAAI},
  year = {2026},
  url = {https://openreview.net/forum?id=tSFwdxtFOu},
}
Figure