Low density parity check code (LDPC) decoding method, apparatus and device

By combining machine learning with the LDPC decoding model and sharing and quantizing weight parameters, the problem of high complexity in LDPC decoding is solved, achieving low-complexity and high-performance decoding results.

CN117097348BActive Publication Date: 2026-11-24STATE GRID HEBEI ELECTRIC POWER CO LTD XIONGAN NEW DISTRICT POWER SUPPLY CO +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310873376.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-17
Publication Date
2026-11-24
Estimated Expiration
2043-07-17

AI Technical Summary

Technical Problem

Existing LDPC decoding technologies are characterized by high complexity and low efficiency. How can we achieve efficient and accurate LDPC decoding?

Method used

By employing machine learning methods combined with the LDPC decoding model, and through a neural network structure consisting of input, hidden, and output layers, weight parameters are shared and quantized, thereby reducing computational load and hardware complexity.

Benefits of technology

While ensuring decoding performance, the computational load and hardware complexity are significantly reduced, achieving low-complexity and high-performance LDPC decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117097348B_ABST
    Figure CN117097348B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, and device for low-density parity-check (LDPC) decoding. The method includes: acquiring a signal to be decoded; inputting the signal to be decoded into a pre-trained LDPC decoding model to obtain a decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is trained based on samples of the signal to be decoded. The method of this invention achieves low-complexity and high-performance LDPC decoding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication physical layer channel decoding technology, and in particular to a low-density parity-check code (LDPC) decoding method, apparatus, and device. Background Technology

[0002] The 3rd Generation Partnership Project (3GPP) is researching simplified physical layer algorithms for 5G, and exploring high-performance, low-complexity physical layer compromise algorithms. While the 3GPP protocol defines the coding framework, it does not specify its concrete implementation or decoding scheme. Chip design requires a balanced evaluation of performance, complexity, and efficiency to select an efficient solution and further reduce costs. Low-Density Parity Check (LDPC) codes, which carry data channels, involve significant computational demands, making LDPC decoding a crucial consideration.

[0003] In related technologies, LDPC decoding based on decoding circuits is complex and inefficient. Therefore, how to perform LDPC decoding efficiently and accurately is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0004] To address the problems in the prior art, embodiments of the present invention provide a method, apparatus, and device for decoding low-density parity-check codes (LDPC).

[0005] Specifically, the embodiments of the present invention provide the following technical solutions:

[0006] In a first aspect, embodiments of the present invention provide a low-density parity-check (LDPC) decoding method, comprising:

[0007] Obtain the signal to be decoded; input the signal to be decoded into a pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is trained based on the signal sample to be decoded.

[0008] Furthermore, the LDPC decoding model includes:

[0009] Input layer; the input layer is used for initialization processing of the signal to be decoded;

[0010] There is one hidden layer; the hidden layer includes a check node layer and an information node layer; the check node layer is used to calculate the information sent by the check nodes of the check node layer to the information nodes; the information node layer is used to calculate the information sent by the information nodes of the information node layer to the check nodes.

[0011] Output layer; the output layer is used to obtain the decoding result based on the information sent to the information node by the check node layer in the l-th hidden layer.

[0012] Furthermore, in the l hidden layers, each check node in the check node layer shares the first weight parameter in each iteration, that is, the first weight parameter assigned to the check node is the same in each iteration, but the weight parameter used in different iterations is different;

[0013] In the l hidden layers, different iteration processes share the same weight parameters, and the second weight parameters assigned to the information nodes are different in each iteration process.

[0014] Furthermore, the first weight parameter and the second weight parameter are quantized based on a codebook method.

[0015] Furthermore, the LDPC decoding model is trained in the following manner:

[0016] The signal sample to be decoded is input into the LDPC decoding model to obtain the decoding result output by the LDPC decoding model. In the LDPC decoding model, each check node layer shares a first weight parameter in each iteration, and the first weight parameter assigned to the check node is different in each iteration. Each information node layer shares a second weight parameter in each iteration, and the second weight parameter assigned to the information node is different in each iteration. The first weight parameter and the second weight parameter are quantized based on the codebook method.

[0017] Based on the decoding result, the LDPC encoded signal before noise addition, and the target loss function, the LDPC decoding model is trained to obtain the shared weight parameters and the LDPC decoding model after training based on the codebook method for quantization.

[0018] Furthermore, after obtaining the trained codebook-based quantized shared weight parameters and the LDPC decoding model, the following is also included:

[0019] The decoding results of the trained LDPC decoding model are verified using a validation set. If the bit error rate corresponding to the decoding result of the trained LDPC decoding model is less than the result of the previous iteration, the weight parameters corresponding to the trained LDPC decoding model are saved. If the bit error rate corresponding to the decoding result of the trained LDPC decoding model is greater than or equal to the result of the previous iteration, the weight parameters corresponding to the trained LDPC decoding model are discarded.

[0020] Furthermore, the inspection node layer is constructed based on the following method:

[0021]

[0022] in, This represents the information from the check node to the information node at layer l; This represents the first weight parameter shared by all check nodes in the l hidden layers; This indicates the information from other information nodes to the inspection node c after excluding the current information node v in the information node layer during (l-1) iterations; v′∈V j \i represents the set of other information nodes after excluding the current information node v in the information node layer after (l-1) iterations;

[0023] The information node layer is constructed in the following manner:

[0024]

[0025] Among them, L v Indicates the signal to be decoded; This represents the information from the l-th layer information node to the inspection node; w cv This represents the second weight parameter shared by all information node layers in l hidden layers; This represents the message from other check nodes to information node v after excluding the current check node c in the check node layer after l iterations.

[0026] Secondly, embodiments of the present invention also provide a low-density parity-check (LDPC) decoding apparatus, comprising:

[0027] The acquisition module is used to acquire the signal to be decoded;

[0028] The decoding module is used to input the signal to be decoded into a pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is trained based on the signal sample to be decoded.

[0029] Thirdly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the low-density parity-check code (LDPC) decoding method as described in the first aspect.

[0030] Fourthly, embodiments of the present invention also provide a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the low-density parity-check code (LDPC) decoding method as described in the first aspect.

[0031] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the low-density parity-check code (LDPC) decoding method as described in the first aspect.

[0032] The low-density parity-check (LDPC) decoding method, apparatus, and device provided in this invention solve communication physical layer problems by using machine learning. That is, decoding is combined with machine learning, and the LDPC decoding problem is solved based on the LDPC decoding model. While ensuring good decoding performance, the computational load and hardware complexity can be significantly reduced, achieving low-complexity and high-performance LDPC decoding. Attached Figure Description

[0033] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0034] Figure 1 This is a flowchart illustrating the low-density parity-check (LDPC) decoding method provided in an embodiment of the present invention.

[0035] Figure 2 This is a schematic diagram of the low-density parity-check code (LDPC) decoding model provided in an embodiment of the present invention;

[0036] Figure 3 This is another schematic diagram of the low-density parity-check code (LDPC) decoding model provided in this embodiment of the invention;

[0037] Figure 4 This is another schematic diagram of the low-density parity-check code (LDPC) decoding method provided in this embodiment of the invention;

[0038] Figure 5 This is a schematic diagram of the structure of the low-density parity-check code (LDPC) decoding device provided in an embodiment of the present invention;

[0039] Figure 6 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0041] The method of this invention can be applied to communication physical layer channel decoding scenarios to achieve low-complexity and high-performance LDPC decoding.

[0042] In related technologies, LDPC decoding based on decoding circuits is highly complex and inefficient.

[0043] The low-density parity-check (LDPC) decoding method of this invention solves the physical layer problem of communication by using machine learning. That is, it combines decoding with machine learning and solves the LDPC decoding problem based on the LDPC decoding model. While ensuring good decoding performance, it can significantly reduce the amount of computation and hardware complexity, and achieve low-complexity and high-performance LDPC decoding.

[0044] The following is combined with Figures 1-6 The technical solution of the present invention will be described in detail with reference to specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0045] Figure 1 This is a flowchart illustrating an embodiment of the low-density parity-check (LDPC) decoding method provided by this invention. Figure 1 As shown, the method provided in this embodiment includes:

[0046] Step 101: Obtain the signal to be decoded;

[0047] Specifically, in order to solve the problem of high complexity in LDPC decoding, the present invention first obtains the signal to be decoded; optionally, the signal to be decoded is the signal after LDPC encoding and noise addition.

[0048] Step 102: Input the signal to be decoded into the pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is trained based on the signal sample to be decoded.

[0049] Specifically, after acquiring the signal to be decoded, this application inputs the signal to be decoded into a pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model; wherein, the LDPC decoding model is used to decode the LDPC encoded signal, that is, to combine decoding with machine learning, thereby achieving low-complexity and high-performance LDPC decoding based on the LDPC decoding model.

[0050] In the above embodiments, machine learning methods are used to solve the communication physical layer problem. That is, decoding is combined with machine learning, and the LDPC decoding problem is solved based on the LDPC decoding model. While ensuring good decoding performance, the amount of computation and hardware complexity can be significantly reduced, and low-complexity and high-performance LDPC decoding can be achieved.

[0051] In one embodiment, the LDPC decoding model includes:

[0052] Input layer; The input layer is used for initialization processing of the signal to be decoded;

[0053] There is one hidden layer; the hidden layer includes a check node layer and an information node layer; the check node layer is used to calculate the information sent by the check node to the information node; the information node layer is used to calculate the information sent by the information node to the check node.

[0054] Output layer; The output layer is used to obtain the decoding result based on the information sent to the information node by the check node in the check node layer of the l-th hidden layer.

[0055] Specifically, in this embodiment, machine learning is used to solve the physical layer problem of communication. While ensuring good decoding performance, this significantly reduces computational load and hardware complexity, achieving low-complexity and high-performance LDPC decoding. Optionally, the LDPC decoding model is a 2L+2 layer deep feedforward neural network, consisting of one input layer, L check node layers, L information node layers, and one output layer. Optionally, the LDPC decoding model has three types of neuron functions: neuron I (check node layer), neuron II (information node layer), and neuron III (output layer); wherein, the input layer is used to initialize the signal to be decoded, and optionally, the initialization process includes preprocessing methods such as modulation and noise addition. The hidden layer includes a check node layer and an information node layer. The check node layer is used to calculate the information sent by the check nodes to the information nodes. Optionally, in the Lth hidden layer, the check node layer receives the message sent by the information node layer above. This message is processed by extracting the datasets connected to the check node (excluding the current information node in the (l-1)th iteration of the information node layer), and then the message from the check node to the information node is obtained. The information node layer is used to calculate the information sent by the information nodes to the check nodes. Optionally, the information node receives the message sent by the check node layer in this layer, processes it by extracting the datasets connected to the information node (excluding the current check node in the lth iteration of the check node layer), and then calculates the message from the information node to the check node. The output layer is used to obtain the decoding result based on the information sent by the check nodes in the Lth hidden layer. Optionally, the message sent by the check node layer in the last layer is added to the initialization data to obtain the output layer result. Optionally, neuron I calculates the message sent by the check nodes to the information nodes.

[0056]

[0057] in, This represents the information from the check node to the information node at layer l; This represents the first weight parameter shared by all check nodes in the l hidden layers; This indicates the information from other information nodes to the inspection node c after excluding the current information node v in the information node layer during (l-1) iterations; v′∈V j \i represents the set of other information nodes after excluding the current information node v in the information node layer after (l-1) iterations; for example, This refers to the messages from the other (v2 and v3) information nodes to the check node c after excluding information node v1 in the (l-1)th information node layer.

[0058] Neuron II computes messages sent from layer upon layer of information nodes to the inspection node:

[0059]

[0060] Among them, L v Indicates the signal to be decoded; This represents the information from the l-th layer information node to the inspection node; w cv This represents the second weight parameter shared by all information node layers in l hidden layers; This represents the message from other check nodes to information node v after excluding the current check node c in the check node layer after l iterations.

[0061] Neuron III calculates the final output:

[0062]

[0063] Among them, o i This represents the decoding result, σ represents the preset coefficient, and w cv This represents the shared weight parameters between the information node layer and the inspection node layer. This represents the information from the check node to the information node in layer l.

[0064] The method described in the above embodiment solves the LDPC decoding problem using machine learning. Specifically, the input layer of the LDPC decoding model initializes the signal to be decoded, the check node layer in the hidden layer calculates the information sent by the check node to the information node, the information node layer calculates the information sent by the information node to the check node, and finally the output layer obtains the decoding result efficiently and accurately based on the information sent by the check node in the l-th hidden layer. This significantly reduces computational load and hardware complexity while ensuring good decoding performance, achieving low-complexity and high-performance LDPC decoding.

[0065] In one embodiment, in the l hidden layers, each check node in the check node layer shares the first weight parameter during each iteration. That is, the first weight parameter assigned to the check node is the same in each iteration, but the weight parameter used in different iterations is different.

[0066] In the l hidden layers, different iterations share the same weight parameters, and the second weight parameter assigned to the information node is different in each iteration.

[0067] Specifically, in this embodiment of the invention, the hidden layers of the LDPC decoding model include check node layers and information node layers. In each of the l hidden layers, the check node layers share a first weight parameter in each iteration, but the first weight parameter assigned to the check node is different in each iteration. Similarly, in each of the l hidden layers, the information node layers share a second weight parameter in each iteration, but the second weight parameter assigned to the information node is different in each iteration. This means that the decoding process of message updates and transmission between check nodes and information nodes is expanded into a deep feedforward network, using the same correction factor w in each iteration of the LDPC decoding model. cv and w vc This allows each hidden layer to share the same weights, reducing the number of weights in the network and thus reducing the number and types of learning correction factors. This significantly reduces the number of parameters, thereby reducing computational complexity and achieving low-complexity LDPC decoding.

[0068] In one embodiment, the first weight parameter and the second weight parameter are quantized based on a codebook approach.

[0069] Specifically, such as Figure 2 As shown, in this embodiment of the invention, each check node layer in the l hidden layers of the LDPC decoding model shares a first weight parameter in each iteration, and the first weight parameter assigned to the check node is different in each iteration. Each information node layer in the l hidden layers shares a second weight parameter in each iteration, and the second weight parameter assigned to the information node is different in each iteration. That is, by sharing parameters, the number of learning parameters is reduced, thereby reducing the computational complexity. Furthermore, the use of float32 floating-point parameters in the LDPC decoding model hinders the hardware implementation of the neural network decoder. In this embodiment of the invention, the training parameters of each layer in the LDPC decoding model are quantized using a codebook-based method for quantizing the shared first and second weight parameters. This involves a two-step quantization process: first, the 32-bit floating-point weights are quantized into q-bit values; then, weight sharing is performed based on the codebook of quantized weights, further reducing the number of different weights in the network. Optionally, the codebook size is pre-set to c bits, so the number of selectable values ​​in the codebook is 2 to the power of c. If the number of selectable values ​​is less than the original number of weights, the selection of codebook weights is completed by calculating the frequency of occurrence of the weights and selecting the top 2 to the power of c. Finally, the weights are quantized to the values ​​in the codebook that are closest to them. This reduces the number of required weights and the precision of each weight, thereby effectively quantizing the parameters and reducing computational complexity and decoding latency.

[0070] Optionally, the shared weight parameters of the model are quantized during each training iteration. Using a codebook-based quantization method not only reduces the number of required weights and the precision of each weight, but also effectively reduces memory bits, lowers memory complexity, and improves decoding performance. In other words, this application reduces the number of required weights through quantization, but decoding performance does not decrease with parameter compression. Furthermore, parameter compression effectively reduces memory bits and memory complexity, thereby improving decoding performance.

[0071] The method described in the above embodiments, by employing weight parameter quantization and parameter sharing, not only reduces the number of required weights, lowers computational complexity and decoding latency, and greatly reduces decoding complexity, but also effectively improves decoding performance while ensuring error rate performance.

[0072] In one embodiment, the LDPC decoding model is trained in the following manner:

[0073] The signal sample to be decoded is input into the LDPC decoding model to obtain the decoding result output by the LDPC decoding model. In the LDPC decoding model, each check node layer shares the first weight parameter in each iteration, and the first weight parameter assigned to the check node is different in each iteration. Each information node layer shares the second weight parameter in each iteration, and the second weight parameter assigned to the information node is different in each iteration. The first weight parameter and the second weight parameter are quantized based on the codebook method.

[0074] Based on the decoding result, the LDPC encoded signal before noise addition, and the target loss function, the LDPC decoding model is trained to obtain the shared weight parameters and the LDPC decoding model after training based on the codebook method for quantization.

[0075] Specifically, to achieve low-complexity and high-performance decoding of the LDPC decoding model, this embodiment of the invention trains the LDPC decoding model in the following manner: First, the signal sample to be decoded is input into the LDPC decoding model to obtain the decoding result output by the LDPC decoding model; wherein, during iterative training, each check node layer in the LDPC decoding model shares a first weight parameter in each iteration, and the first weight parameter assigned to the check node is different in each iteration; each information node layer shares a second weight parameter in each iteration, and the second weight parameter assigned to the information node is different in each iteration; the first weight parameter and the second weight parameter are quantized based on the codebook method; and during iterative training, the cross-entropy loss function value is determined based on the decoding result, the LDPC encoded signal before noise addition, and the target loss function to train the LDPC decoding model, thereby obtaining the trained shared weight parameters and the LDPC decoding model quantized based on the codebook method.

[0076] Optionally, after obtaining the shared weight parameters and LDPC decoding model quantized based on the codebook after training, in this embodiment of the invention, the decoding result of the trained LDPC decoding model is verified by a validation set. If the bit error rate corresponding to the decoding result of the trained LDPC decoding model is less than the result of the previous iteration training, the weight parameters corresponding to the LDPC decoding model are saved; if the bit error rate corresponding to the decoding result of the trained LDPC decoding model is greater than or equal to the result of the previous iteration training, the weight parameters corresponding to the LDPC decoding model are discarded. Thus, the optimal quantization weights are learned and saved through multiple iterations. This makes the LDPC decoding model after iterative training not only reduce the number of required weights, reduce computational complexity and decoding latency, but also effectively reduce bit error rate performance and improve the decoding performance of the LDPC decoding model.

[0077] For example, the decoding process based on the LDPC decoding model in this embodiment of the invention is as follows: Figure 3 As shown:

[0078] The transmitter sends kbits of information, which is then LDPC encoded into an N-bit codeword. This codeword is then modulated using a BPSK modulator and transmitted through an AWGN channel, where it is affected by Gaussian white noise. The receiver calculates the log-likelihood ratio of the modulated signal after noise interference and inputs it into the LDPC decoding model for decoding. The LDPC decoding model estimates the transmitted information bits through the input layer, hidden layer, and output layer.

[0079] For example, the training process of the LDPC decoding model is as follows: Before decoding, the receiver first sends the received log-likelihood ratio to the input layer of the LDPC decoding model to obtain initialization data. Then, in the Lth hidden layer, the inspection node layer receives the message sent by the information node layer above. This message is processed to extract the dataset connected to information node i except for inspection node j, and then the message from the inspection node to the information node is obtained. Here, w is used. cv These are shared weight parameters. The information node receives messages from the inspection node layer, processes them, extracts the datasets connected to inspection node j (excluding information node i), and then calculates the messages from the information node to the inspection node. Here, w is used. vc The weight parameters are also shared. This operation is repeated. In the last layer, the message sent by the node layer is added to the initial data to obtain the output layer result. Hard decision is performed. After each iteration, the weights are quantized based on the codebook. Then, the training result is verified with the validation set, thereby learning and saving the best quantized weights.

[0080] For example, the decoding process of the LDPC decoding model is as follows: Figure 4 As shown: the encoded codewords are noise-added and then input into the LDPC decoding model. By updating the variable matrix and the parity check matrix, the decoding result is output.

[0081] The low-density parity check (LDPC) decoding device provided by the present invention is described below. The low-density parity check (LDPC) decoding device described below and the low-density parity check (LDPC) decoding method described above can be referred to in correspondence with each other.

[0082] Figure 5 This is a schematic diagram of the low-density parity-check (LDPC) decoding device provided by the present invention. The low-density parity-check (LDPC) decoding device provided in this embodiment includes:

[0083] The acquisition module 510 is used to acquire the signal to be decoded;

[0084] The decoding module 520 is used to input the signal to be decoded into the pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is trained based on the signal sample to be decoded.

[0085] Optionally, the LDPC decoding model includes:

[0086] Input layer; The input layer is used for initialization processing of the signal to be decoded;

[0087] There is one hidden layer; the hidden layer includes a check node layer and an information node layer; the check node layer is used to calculate the information sent by the check node to the information node; the information node layer is used to calculate the information sent by the information node to the check node.

[0088] Output layer; The output layer is used to obtain the decoding result based on the information sent to the information node by the check node in the check node layer of the l-th hidden layer.

[0089] Optionally, in the l hidden layers, each check node in the check node layer shares the first weight parameter in each iteration. That is, the first weight parameter assigned to the check node is the same in each iteration, but the weight parameter used in different iterations is different.

[0090] In the l hidden layers, different iterations share the same weight parameters, and the second weight parameter assigned to the information node is different in each iteration.

[0091] Optionally, the first weight parameter and the second weight parameter are quantized based on a codebook.

[0092] Optionally, the LDPC decoding model is trained in the following manner:

[0093] The signal sample to be decoded is input into the LDPC decoding model to obtain the decoding result output by the LDPC decoding model. In the LDPC decoding model, each check node layer shares the first weight parameter in each iteration, and the first weight parameter assigned to the check node is different in each iteration. Each information node layer shares the second weight parameter in each iteration, and the second weight parameter assigned to the information node is different in each iteration. The first weight parameter and the second weight parameter are quantized based on the codebook method.

[0094] Based on the decoding result, the LDPC encoded signal before noise addition, and the target loss function, the LDPC decoding model is trained to obtain the shared weight parameters and the LDPC decoding model after training based on the codebook method for quantization.

[0095] Optionally, after obtaining the trained shared weight parameters quantized in a codebook-based manner and the LDPC decoding model, the decoding module 520 is further configured to:

[0096] The decoding results of the trained LDPC decoding model are verified using a validation set. If the bit error rate corresponding to the decoding result of the trained LDPC decoding model is less than the result of the previous iteration, the weight parameters corresponding to the trained LDPC decoding model are saved; if the bit error rate corresponding to the decoding result of the trained LDPC decoding model is greater than or equal to the result of the previous iteration, the weight parameters corresponding to the trained LDPC decoding model are discarded.

[0097] The apparatus of this invention is used to execute the method in any of the foregoing method embodiments, and its implementation principle and technical effect are similar, so it will not be described again here.

[0098] Figure 6 A schematic diagram of the physical structure of an electronic device is provided. This electronic device may include a processor 610, a communications interface 620, a memory 630, and a communication bus 640. The processor 610, communications interface 620, and memory 630 communicate with each other via the communication bus 640. The processor 610 can call logic instructions in the memory 630 to execute a low-density parity-check (LDPC) decoding method. This method includes: acquiring a signal to be decoded; inputting the signal to be decoded into a pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is trained based on samples of the signal to be decoded.

[0099] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0100] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the low-density parity-check code (LDPC) decoding method provided by the above methods, the method comprising: acquiring a signal to be decoded; inputting the signal to be decoded into a pre-trained LDPC decoding model to obtain a decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model being used to decode the LDPC encoded signal; the LDPC decoding model being trained based on samples of the signal to be decoded.

[0101] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is implemented to perform the low-density parity-check (LDPC) decoding methods provided above. The method includes: acquiring a signal to be decoded; inputting the signal to be decoded into a pre-trained LDPC decoding model to obtain a decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is obtained by training based on samples of the signal to be decoded.

[0102] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0103] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for decoding low-density parity-check (LDPC) codes, characterized in that, include: Obtain the signal to be decoded; The signal to be decoded is input into a pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model. The LDPC decoding model is used to decode LDPC encoded signals; the LDPC decoding model is trained based on the signal samples to be decoded. The LDPC decoding model includes: Input layer; the input layer is used for initialization processing of the signal to be decoded; A hidden layer; the hidden layer includes a check node layer and an information node layer; the check node layer is used to calculate the information sent by the check nodes of the check node layer to the information nodes; the information node layer is used to calculate the information sent by the information nodes of the information node layer to the check nodes; Output layer; the output layer is used to determine the output layer based on the first... The check nodes in the hidden layer send information to the information nodes to obtain the decoding results. The In each hidden layer, each check node in the check node layer shares the same first weight parameter during each iteration. That is, the first weight parameter assigned to the check node is the same in each iteration, but the weight parameter used in different iterations is different. The In each hidden layer, different iterations share the same weight parameters, and the second weight parameters assigned to the information nodes are different in each iteration. The first weight parameter and the second weight parameter are quantized based on the codebook method; The LDPC decoding model is trained in the following manner: The signal sample to be decoded is input into the LDPC decoding model to obtain the decoding result output by the LDPC decoding model. In the LDPC decoding model, each check node layer shares a first weight parameter in each iteration, and the first weight parameter assigned to the check node is different in each iteration. Each information node layer shares a second weight parameter in each iteration, and the second weight parameter assigned to the information node is different in each iteration. The first weight parameter and the second weight parameter are quantized based on the codebook method. Based on the decoding result, the LDPC encoded signal before noise addition, and the target loss function, the LDPC decoding model is trained to obtain the shared weight parameters and the LDPC decoding model after training based on the codebook method for quantization.

2. The LDPC decoding method according to claim 1, characterized in that, After obtaining the trained codebook-based quantized shared weight parameters and the LDPC decoding model, the following is also included: The decoding results of the trained LDPC decoding model are verified using a validation set. If the bit error rate corresponding to the decoding result of the trained LDPC decoding model is less than the result of the previous iteration, the weight parameters corresponding to the trained LDPC decoding model are saved. If the bit error rate corresponding to the decoding result of the trained LDPC decoding model is greater than or equal to the result of the previous iteration, the weight parameters corresponding to the trained LDPC decoding model are discarded.

3. The LDPC decoding method according to claim 2, characterized in that, The inspection node layer is constructed based on the following method: ; in, Indicates the first The layer checks the information from the node to the information node; express The first weight parameter shared by each check node layer in each hidden layer; Indicates exclusion In the next iteration, the information from the current information node v to the inspection node c in the information node layer; Indicates exclusion The set of other information nodes after the current information node v in the information node layer of the next iteration; The information node layer is constructed in the following manner: ; in, Indicates the signal to be decoded; Indicates the first Information from layer information nodes to inspection nodes; express The second weight parameter shared by each information node layer in the hidden layer; Indicates exclusion In the next iteration, the messages from the current check node c to the information node v from other check nodes in the check node layer.

4. A low-density parity-check (LDPC) decoding apparatus, used to implement the LDPC decoding method as described in any one of claims 1 to 3, characterized in that, include: The acquisition module is used to acquire the signal to be decoded; The decoding module is used to input the signal to be decoded into a pre-trained LDPC decoding model to obtain the decoding result corresponding to the signal to be decoded output by the LDPC decoding model; the LDPC decoding model is used to decode the LDPC encoded signal; the LDPC decoding model is trained based on the signal sample to be decoded.

5. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the low-density parity check (LDPC) decoding method as described in any one of claims 1 to 3.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the low-density parity check (LDPC) decoding method as described in any one of claims 1 to 3.