Linear Complementary Dual Codes Constructed from Reinforcement Learning

Yansheng Wu, Jin Ma, Shandong YangJ. Syst. Sci. Complex 2024

TL;DR

This paper introduces a novel approach to constructing Linear Complementary Dual (LCD) codes by leveraging reinforcement learning (RL) with a curiosity-driven exploration mechanism. The proposed method successfully generates binary and ternary LCD codes that exhibit competitive or even superior error-correction performance compared to traditional methods, while also offering greater flexibility and automation.

What Problem Does This Paper Address?

The reliable transmission of data is a cornerstone of modern communication. Error-correcting codes (ECCs) are crucial for achieving this reliability, but their design and construction can be complex, often requiring deep expertise in coding theory. Linear Complementary Dual (LCD) codes, a specific class of linear codes, have gained significant attention due to their desirable properties for error resistance and security. However, constructing optimal or near-optimal LCD codes with desired parameters (length, dimension, minimum distance) is challenging. Traditional methods often rely on intricate mathematical principles, can be inflexible, and may struggle to optimize multiple performance criteria simultaneously. This paper addresses the need for a more automated, flexible, and potentially more performant method for constructing LCD codes, particularly by exploring the synergy between artificial intelligence and coding theory.

Methods

The core of this paper lies in its innovative application of reinforcement learning (RL) for constructing LCD codes. The authors frame the code construction process as a sequential decision-making problem, where an RL agent learns to modify a generator matrix to produce an LCD code.

Key methodological components include:

  • Constructor-Evaluator Framework: This framework consists of a "Constructor" (the RL agent) that proposes modifications to the generator matrix and an "Evaluator" that assesses the quality of the proposed code.
  • Reinforcement Learning (RL): The authors employ a policy gradient (PG) based RL algorithm, specifically the REINFORCE algorithm, to train the constructor agent. The agent learns a policy to map states (generator matrix) to actions (modifications).
  • Reward Function: The reward signal is crucial for guiding the agent. It combines an external reward (based on the block error rate (BLER) of the constructed code) and an intrinsic reward.
  • Curiosity-Driven Exploration (RND): To address the challenge of vast state spaces in code construction and encourage exploration, the paper integrates the Random Network Distillation (RND) algorithm. RND provides an intrinsic reward signal based on the agent's ability to predict the consequences of its actions, encouraging exploration of novel states.
  • Binary and Ternary LCD Code Construction: The method is adapted for both binary (using sigmoid activation) and ternary (using softplus activation and modulo 3 arithmetic) LCD codes.
  • Generator Matrix Representation: The generator matrix of the code is used as the state representation, and actions involve modifying this matrix.

Datasets

The paper does not explicitly mention or create new datasets for training. Instead, it focuses on the construction of codes. The evaluation of these constructed codes is performed using simulated data under an Additive White Gaussian Noise (AWGN) channel, with the Block Error Rate (BLER) calculated by an Ordered Statistics Decoding (OSD) device. The performance is benchmarked against existing "almost optimal" LCD codes constructed via traditional coding theory methods and common linear codes constructed via RL.

Key Insights and Ideas

  • RL as a Code Constructor: The paper demonstrates that RL can be effectively used not just for decoding but also for the construction of error-correcting codes, including structured codes like LCD codes.
  • Curiosity Enhances Exploration: Integrating RND significantly improves the agent's exploration capabilities, leading to better performance and helping it avoid local optima in the complex code construction space.
  • Flexibility Beyond Binary: The RL approach is shown to be adaptable to different finite fields, successfully constructing both binary and ternary LCD codes, overcoming limitations of some AI-based coding methods.
  • Automated and Flexible Design: The RL-based method automates the code construction process, reducing reliance on manual calculations and offering greater flexibility in parameter choices compared to traditional methods.
  • Performance Gains: The constructed LCD codes, particularly those using the RND module, show competitive or slightly superior error-correction performance (lower BLER) compared to existing benchmark codes.

Key Results

  • The proposed RL-based method successfully constructs binary and ternary LCD codes.
  • Experimental results (Figure 3) show that the learned LCD codes achieve a slightly lower BLER than "almost optimal" LCD codes constructed by traditional coding theory methods under AWGN channel conditions for a [24, 12] code.
  • The use of the RND module leads to a higher average reward during training (3.23% higher in the last 100 rounds for a [20, 8] LCD code) and helps the agent avoid local optima.
  • The paper presents examples of newly found LCD codes with specific minimum distances, some of which meet or approach theoretical bounds (Tables 1 and 2).

Limitations and Future Work

  • Computational Cost: While RL automates construction, the training process for RL agents can be computationally intensive.
  • Parameter Tuning: The performance of the RL agent is sensitive to hyperparameter settings, such as the variance parameter $\sigma^2$ (Figure 4), requiring careful tuning.
  • Generalizability: While the method is shown for binary and ternary fields, further exploration into other finite fields and more complex code structures could be beneficial.
  • Future Work: The authors suggest exploring more advanced RL algorithms, different reward functions, and applying the method to construct other types of structured codes beyond LCD codes. Investigating the impact of different RND parameter settings and exploring the construction of codes with specific properties (e.g., higher minimum distances) are also promising directions.

Summary updated

BibTeX
@article{wu2024linear,
  author = {Yansheng Wu and Jin Ma and Shandong Yang},
  title = {{Linear Complementary Dual Codes Constructed from Reinforcement Learning}},
  journal = {J. Syst. Sci. Complex.},
  year = {2024},
}
Figure