KO codes: inventing nonlinear encoding and decoding for reliable wireless communication via deep-learning

Ashok Vardhan Makkuva, Xiyang Liu, Mohammad Vahid Jamali, Hessam Mahdavifar, Sewoong Oh, Pramod Viswanath

Reliable wireless communication relies on error-correcting codes that map data bits to longer sequences (codewords) to combat noise. For decades, linear algebraic codes like Reed-Muller (RM), Turbo, and Polar codes have dominated the field. While mathematically elegant and near-optimal for very long sequences, they often fall short in the "short-to-medium block length" regime—a critical area for emerging technologies like the Internet of Things (IoT) and Ultra-Reliable Low Latency Communication (URLLC).

The challenge lies in the astronomical space of possible codes; for a simple 100-bit message, there are $2^{100}$ possible codewords. Previous attempts to use "black-box" neural networks to discover new codes failed due to a lack of structural inductive bias, rendering them unable to generalize or be decoded efficiently.

To address this, researchers have introduced KO codes (named after the Kronecker Operation central to RM and Polar codes). KO codes are a novel family of deep-learning-driven nonlinear error-correcting codes that generalize classical RM and Polar codes. By replacing traditional linear algebraic operations with neural networks within a recursive "Plotkin tree" structure, KO codes achieve state-of-the-art reliability for short-to-medium block lengths while maintaining efficient $O(n \log n)$ decoding complexity.

Methods: The Plotkin Tree as a Neural Skeleton

The key innovation behind KO codes is utilizing the recursive structure of classical codes—specifically the Plotkin tree—as a skeleton for a neural architecture.

  • KO Encoder: Instead of using linear XOR operations to combine bits, the KO encoder employs small neural networks ($g_i$) at each node of the Plotkin tree. These networks perform nonlinear mappings directly to transmit symbols, allowing the code to explore a much richer space of nonlinear structures.
  • KO Decoder: To match the encoder, the authors designed a differentiable "Soft-MAP" decoder inspired by Dumer’s recursive algorithm. By replacing hard-coded Log-Likelihood Ratio (LLR) functions with neural networks ($f_i$), the decoder learns the optimal way to process noisy signals for the specific nonlinear code.
  • End-to-End Training: The encoder and decoder are trained jointly over a simulated Additive White Gaussian Noise (AWGN) channel using cross-entropy loss as a surrogate for Bit Error Rate (BER).
Plotkin tree structure for RM and KO encoders/decoders.

Key Insights

  • The Power of Nonlinearity: KO codes outperform linear codes primarily because they can map information bits to transmit symbols in ways that linear algebra cannot.
  • Mimicking Gaussian Codebooks: Theoretically, a random Gaussian codebook is optimal for reliability, but it is computationally impossible to decode efficiently. Surprisingly, the pairwise distance distribution of KO codes closely matches that of a random Gaussian codebook, yet they remain efficiently decodable due to their tree structure.
  • Error Balancing: In classical RM decoding, certain branches of the tree are much more prone to error than others. KO codes automatically learn to "balance" these error contributions across the tree, leading to significantly lower overall Block Error Rates (BLER).
  • Channel Agnosticism: Unlike traditional decoders that require precise knowledge of channel statistics (like noise variance), the KO decoder operates directly on received signals and learns the necessary statistics from the data itself.

Key Results

The study primarily utilizes simulated AWGN channels for training and benchmarking, alongside robustness tests on Rayleigh fast fading and bursty noise channels to ensure the codes generalize to real-world conditions without retraining.

  • Superior Reliability: KO codes demonstrate significant performance gains over state-of-the-art baselines. For instance, KO(9, 2) substantially outperforms the classical RM(9, 2) code in both BER and BLER. When compared to Polar codes, KO codes achieve a gain of approximately 0.7 dB at a BER of $10^{-4}$.
KO codes significantly improve upon RM(9,2) performance in terms of Error Rate vs SNR.
  • Optimality and Robustness: The KO decoder's performance nearly matches that of an optimal, computationally expensive MAP decoder. Furthermore, codes trained on simple AWGN channels maintain their performance edge when tested on complex fading or bursty noise channels, proving they are not merely overfitting to a specific noise model.

Limitations and Future Work

While highly effective for short-to-medium lengths, the current training approach may face challenges scaling to very large block lengths (e.g., thousands of bits). Additionally, KO codes naturally produce real-valued symbols. Although a binarized version (KO-b) was tested, it incurs a minor performance penalty, suggesting a need for better "quantization-aware" training. Finally, extending KO codes to work with advanced algorithms like List Decoding or Belief Propagation represents a promising direction for future research.

Summary updated

BibTeX
@inproceedings{makkuva2021ko,
  author = {Ashok Vardhan Makkuva and Xiyang Liu and Mohammad Vahid Jamali and Hessam Mahdavifar and Sewoong Oh and Pramod Viswanath},
  title = {{KO codes: inventing nonlinear encoding and decoding for reliable wireless communication via deep-learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure