A retransmission method for semantic communication

By using the Transformer model for semantic encoding and decoding in semantic communication, combined with retransmission information, the problem of low retransmission accuracy in semantic communication is solved, and higher retransmission accuracy and resource saving are achieved.

CN114564963BActive Publication Date: 2024-08-30ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210063290.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2024-08-30
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

The existing technology lacks an effective retransmission solution in semantic communication, making it difficult to improve the retransmission accuracy in the face of transmission errors.

Method used

Using the semantic communication retransmission method based on Transformer, by training multiple decoders and single decoders, the previously transmitted information is used for semantic encoding and decoding, combined with the retransmission information, to improve the accuracy of retransmission, and aggregated through the dimensional integration module information to optimize channel resource utilization.

Benefits of technology

It effectively improves the accuracy of semantic communication retransmission, saves the memory usage of the receiver, and provides multi-decoder and single-decoder optimization solutions to deal with different signal-to-noise ratios and retransmission times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564963B
    Figure CN114564963B
Patent Text Reader

Abstract

The present invention proposes a retransmission method for semantic communication and a retransmission method based on semantic communication. Compared with directly retransmitting information when an error occurs, this method effectively utilizes the previously transmitted information and effectively improves the accuracy of retransmission by integrating the retransmitted information with the initially transmitted information. Two specific retransmission schemes are proposed. One scheme is a multi-decoder method, which uses decoders with different input dimensions. When retransmitting, a decoder with a larger input dimension is used to integrate multiple transmissions and perform one information decoding. Another scheme is a single decoder method, which directly uses a decoder with a large input dimension. When the information is not retransmitted, an automatic zero-filling method is used for the remaining empty dimensions, thereby saving the memory usage of the receiver.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of semantic communication, and in particular to a retransmission method for semantic communication. Background Art

[0002] According to the information theory proposed by Shannon and Weaver, communication can be divided into three levels. The first level is the transmission problem, which mainly studies how to accurately transmit communication symbols. The second level is the semantic problem, which mainly studies how to accurately convey the semantics in communication symbols. The third level is the utility problem, which mainly solves the problem of how the received semantics can effectively affect behavior in the expected way. Due to the limitations of the times, in the more than 70 years since Shannon established information theory, many scholars have made a lot of attempts to approach the Shannon limit, but these works are mainly focused on the first level of communication, that is, how to accurately transmit communication symbols. In recent years, the development of related technologies such as artificial intelligence and natural language processing has made it possible to explore the second level of semantic communication, and semantic communication will gradually become a major research trend in the field of communication.

[0003] In the process of communication, when facing different complex signal-noise situations, transmission errors are inevitable. When encountering transmission errors, we can often avoid the errors encountered in the transmission process by continuously retransmitting information. In traditional communications, we can use the characteristics of different coding methods and adopt the HARQ method to combine the retransmitted information with the previously transmitted information while saving channel resources and improving the transmission accuracy. However, in terms of semantic communication, there is no good solution to the problem of information retransmission. Therefore, a semantic communication retransmission method based on Transformer is proposed to give full play to the powerful computing power of neural networks. In addition to retransmitting information, it fully utilizes the previously transmitted information and combines the two to improve the accuracy of retransmission. Summary of the invention

[0004] The purpose of the present invention is to provide a retransmission method for semantic communication to overcome the deficiencies in the prior art.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The present application discloses a retransmission method for semantic communication, comprising the following steps:

[0007] S1, training retransmission mode, the retransmission mode includes a multi-decoder mode and a single decoder mode;

[0008] S2. Based on the common knowledge of the receiving parties, all the words that may be used in the transmission process between the two parties are numbered to create a dictionary;

[0009] S3, using the input sentence embedding module to embed the input sentence and add the position vector; using the target sentence word embedding module to embed the target sentence and add the position vector; obtaining the word vector with the position vector corresponding to the input sentence and the word vector with the position vector corresponding to the target sentence;

[0010] S4, semantic encoding: The word vector with the position vector corresponding to the input sentence passes through the semantic encoding layer, and the semantic encoding is completed through the Encoder layer of Transformrer to obtain the semantic encoding vector;

[0011] S5, passing the semantic coding vector through a wireless channel;

[0012] S6, semantic decoding: The semantic coding vector passing through the wireless channel is passed through the decoding layer of Transformer for semantic decoding, and the decoded semantic text is output after probabilistic logistic regression processing;

[0013] S7, the receiving party makes a retransmission decision based on the received semantic text; if retransmission is required, a retransmission instruction is sent to the sending party, and the sending party selects a retransmission mode, and sends the semantic coding vector in step S4 to the wireless channel again to obtain the retransmitted semantic coding vector; if retransmission is not required, the transmission ends;

[0014] S8, combining the retransmitted semantic coding vector and the previously received semantic coding vector, and aggregating them through the dimension integration module to obtain an aggregated semantic coding vector; passing the aggregated semantic coding vector through the decoding layer of the Transformer for semantic decoding, and outputting the decoded semantic text after probabilistic logistic regression processing, and returning to step S7;

[0015] Preferably, the multi-decoder method includes the following training process:

[0016] A11. Train an encoder and decoder that can transmit normally under various signal-to-noise ratios;

[0017] A12, fix the encoder in step A11, create a second decoder, the input of the second decoder is twice that of the decoder in step S1, and the second decoder is provided with a dimension integration module; the dimension integration module is composed of a fully connected layer;

[0018] A13, transmitting the encoding results of the encoder twice, splicing the two after passing through the wireless channel, sending the spliced ​​result to the second decoder, integrating it using the dimension integration module in the second decoder, and the second decoder performing corresponding decoding operations on the integrated information;

[0019] A14. According to step A12 and step A13, a new Nth decoder is created, wherein N is a natural number greater than 2, and the input of the Nth decoder is N times the input of the decoder in step A11;

[0020] A15. After training is completed, during the transmission process, the decoders are started in sequence according to the sequence number of the decoders according to the number of retransmissions required.

[0021] Preferably, the single decoder method includes the following training process:

[0022] B11. Establish an encoder and a decoder, wherein the decoder is provided with a dimension integration module, and the performance of the decoder under different retransmission times is tested according to the transmission channel required and the text used for training, and the maximum number of retransmissions N allowed is determined according to the performance, and the input dimension of the dimension integration module in the decoder is determined according to the maximum number of retransmissions N; the input dimension of the dimension integration module is N+1 times the output dimension of the encoder;

[0023] B12. During the training process, randomly determine the number of retransmissions required, which is less than the maximum number of retransmissions, and concatenate the retransmitted information with the original information as the input dimension of the dimension integration module, and perform a zero padding operation on the remaining empty dimensions;

[0024] B13. Repeat step B12 to obtain a single decoder that can be used for multiple retransmissions.

[0025] Preferably, the step S2 specifically includes the following:

[0026] S21, read in the entire text file for transmission;

[0027] S22, performing word segmentation processing on the entire text, counting the number of times each word in the text is used, numbering each word, and removing words with too low a number of times;

[0028] S23, adding a start or end character to the entire dictionary;

[0029] S24. Output the dictionary.

[0030] Preferably, the specific steps in step S3 are as follows:

[0031] S31. Create an embedding layer, send the sentence to be transmitted into the embedding layer, and convert it into a word vector of corresponding dimension;

[0032] S32, calculate and add the position vector;

[0033] S33. Add the word vector to the position vector to obtain a word vector with position information.

[0034] Preferably, the specific steps in step S4 are as follows:

[0035] S41, define three matrices, and perform three linear changes on the word vector with the position vector corresponding to the input sentence according to the three matrices to obtain a query vector, a key vector, and a value vector;

[0036] S42, performing self-attention calculation on the query vector, the key vector and the value vector to obtain an attention vector;

[0037] S43, performing a residual connection, adding the attention vector to the word vector with the position vector corresponding to the input sentence, and performing a layer normalization operation on the obtained result to obtain a residual vector;

[0038] S44, feed-forward transmission operation is performed on the obtained residual vector, and a semantic coding vector is obtained by activating it through two layers of linear mapping and using the activation function ReLU.

[0039] Preferably, the specific steps in step S6 are as follows:

[0040] S61, input the word vector with position vector corresponding to the target sentence obtained in S3 into the multi-head self-attention layer for decoding;

[0041] S62, inputting the encoded information received through the wireless channel and the output information of the multi-head self-attention layer in the previous step into the multi-head attention layer for decoding;

[0042] S63, after the target sentence passes through the multi-head self-attention layer and the multi-head attention layer, it passes through the feed-forward transmission layer to obtain a semantic decoding vector;

[0043] S64. Perform probabilistic logistic regression through the Softmax function and output the sentence.

[0044] Beneficial effects of the present invention:

[0045] 1. A retransmission method based on semantic communication is proposed. Compared with directly retransmitting information when an error occurs, this method effectively utilizes the previously transmitted information and effectively improves the accuracy of retransmission by integrating the retransmitted information with the initially transmitted information.

[0046] 2. Two specific retransmission schemes are proposed. One is a multi-decoder method, which uses decoders with different input dimensions. When retransmitting, a decoder with a larger input dimension is used to integrate multiple transmissions and perform an information decoding. The other is a single decoder method, which directly uses a decoder with a large input dimension. When the information is not retransmitted, the remaining empty dimensions are automatically filled with zeros. Both methods save memory usage on the receiver.

[0047] The features and advantages of the present invention will be described in detail through embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic diagram of the framework structure of a retransmission method for semantic communication of the present invention;

[0049] Figure 2 is a schematic diagram of the structure of a multi-decoder method according to an embodiment of the present invention;

[0050] Figure 3 It is a schematic diagram of the structure of a single decoder method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below through the accompanying drawings and embodiments. However, it should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the scope of the present invention. In addition, in the following description, the description of known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0052] See also Figure 1 , an embodiment of the present invention provides a retransmission method for semantic communication,

[0053] Step 1: Based on the shared knowledge of the receiving parties, all the words that may be used in the transmission process between the two parties are numbered to create a dictionary;

[0054] The process of creating a dictionary is:

[0055] Step 1: Read the entire text file for transmission;

[0056] Step 2: Segment the entire text, count the number of times each word is used in the text, number each word, and remove those words with too low a number of uses;

[0057] Step 3: Add characters with special meanings such as start or end to the entire dictionary;

[0058] Step 4: Output the dictionary.

[0059] Step 2: Use the input sentence embedding module to embed the input sentence and add the position vector; use the target sentence word embedding module to embed the target sentence and add the position vector; obtain the word vector with the position vector corresponding to the input sentence and the word vector with the position vector corresponding to the target sentence;

[0060] Word embedding and position encoding, the specific process is:

[0061] Step 1: Create an embedding layer, send the sentence to be transmitted into the embedding layer, and convert it into a word vector of corresponding dimension;

[0062] Step 2: Add the position vector. The formula is as follows:

[0063]

[0064]

[0065] Among them, pos refers to the position of a word in a sentence, and its value range is [0, L), where L is the length of the sentence, i refers to the dimension number of the subvector, and its value range is [0, embedding_dimension / 2), where embedding_dimension is the embedding dimension, and d model Refers to the value of the embedding dimension embedding_dimension of the Embedding layer;

[0066] Step 3: After obtaining the word vector of each word and its corresponding position vector, add the two together to get the word vector X with position information. Embedding .

[0067] Step 3: Semantic encoding: After the transmitted sentence passes through the semantic encoding layer, it passes through the Encoder layer of Transformrer to complete the semantic encoding according to the semantic information of the sentence. The specific process is as follows:

[0068] Step 1: Define three matrices W Q ,W K ,W V ,According to these three matrices, the word vector X obtained in the previous step Embedding Perform three linear changes to obtain the query vector Q, key vector K, and value vector V;

[0069] Step 2: Perform a self-attention calculation on the three vectors obtained above;

[0070]

[0071] Get vector X attention , where d k Represents the dimension of the vector;

[0072] Step 3: Perform residual connection and convert the X attention and X obtained in the second step Embedding Add and normalize the result to get the residual vector X' attention , where X' attention=layernorm(X+X attention );

[0073] Step 4: Get the residual vector X' attention Perform feedforward transmission operation, obtain vector X through two layers of linear mapping and activation with activation function ReLU hidden

[0074] X hidden =Linear(ReLU(Linear(X attention )));

[0075] Step 4: Send the semantically encoded sentence through a wireless channel;

[0076] Step 5: Semantic decoding: The sentence texts that have completed the two denoising methods are subjected to semantic decoding by the decoding layer of the general Transformer, and the decoded sentence texts are processed by probabilistic logistic regression and then output; the specific process is as follows:

[0077] Step 1: Input the word embedding vector of the target sentence obtained in step 2 into the multi-head self-attention layer for decoding;

[0078] Step 2: Input the encoded information received through the wireless channel and the output information of the multi-head self-attention layer in the previous step into the multi-head attention layer for decoding;

[0079] Step 3: After the target sentence passes through the multi-head self-attention layer and the multi-head attention layer, it passes through the feed-forward transmission layer to obtain the semantic decoding vector;

[0080] Step 4: Perform probabilistic logistic regression through the Softmax function and output the sentence.

[0081] Step 6: The receiver determines whether the received sentence needs to be retransmitted. If retransmission is required, the receiver sends retransmission information to the sender.

[0082] Step 7: The sender repeats the operation of step 4 and sends the sentence with semantic encoding completed in step 3 to the wireless channel again;

[0083] Step 8: The receiver combines the retransmitted information with the previously received information, aggregates the information through a fully connected layer, and then repeats step 5 until the transmission is successful or the maximum number of retransmissions is reached;

[0084] Specifically: Step 1, repeat the operation of step 4, and send the information that has completed semantic encoding into the channel again;

[0085] Step 2: The receiver concatenates the retransmitted information with the previously received information and sends it to a fully connected layer for information aggregation.

[0086] Step 3: Send the information-aggregated vector obtained in the previous step to the decoder and repeat the operation in step 5.

[0087] See also Figure 2 , a multi-decoder method is used for retransmission, and its training process is:

[0088] A11. Train an encoder and decoder that can transmit normally under various signal-to-noise ratios;

[0089] A12, fix the encoder in step A11, create a second decoder, the input of the second decoder is twice that of the decoder in step S1, and the second decoder is provided with a dimension integration module; the dimension integration module is composed of a fully connected layer;

[0090] A13, transmitting the encoding results of the encoder twice, splicing the two after passing through the wireless channel, sending the spliced ​​result to the second decoder, integrating it using the dimension integration module in the second decoder, and the second decoder performing corresponding decoding operations on the integrated information;

[0091] A14. According to step A12 and step A13, a new Nth decoder is created, wherein N is a natural number greater than 2, and the input of the Nth decoder is N times the input of the decoder in step A11;

[0092] A15, after training is completed, during the transmission process, the decoders are started in sequence according to the sequence number of the decoders according to the number of retransmissions required;

[0093] See also Figure 3 , a single decoder is used for retransmission, and its training process is:

[0094] B11. Establish an encoder and a decoder, wherein the decoder is provided with a dimension integration module, and the performance of the decoder under different retransmission times is tested according to the transmission channel required and the text used for training, and the maximum number of retransmissions N allowed is determined according to the performance, and the input dimension of the dimension integration module in the decoder is determined according to the maximum number of retransmissions N; the input dimension of the dimension integration module is N+1 times the output dimension of the encoder;

[0095] B12. During the training process, randomly determine the number of retransmissions required, which is less than the maximum number of retransmissions, and concatenate the retransmitted information with the original information as the input dimension of the dimension integration module, and perform a zero padding operation on the remaining empty dimensions;

[0096] B13. Repeat step B12 to obtain a single decoder that can be used for multiple retransmissions.

[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A retransmission method for semantic communication, characterized in that: The steps include: S1, training retransmission mode, the retransmission mode includes a multi-decoder mode and a single decoder mode; S2. Based on the common knowledge of the receiving parties, all the words that may be used in the transmission process between the two parties are numbered to create a dictionary; S3, using the input sentence embedding module to embed the input sentence and add the position vector; Use the target sentence word embedding module to embed the target sentence and add the position vector; Get the word vector with position vector corresponding to the input sentence and the word vector with position vector corresponding to the target sentence; S4, semantic encoding: The word vector with the position vector corresponding to the input sentence passes through the semantic encoding layer, and the semantic encoding is completed through the Encoder layer of Transformrer to obtain the semantic encoding vector; The specific steps in step S4 are as follows: S41, define three matrices, and perform three linear changes on the word vector with the position vector corresponding to the input sentence according to the three matrices to obtain a query vector, a key vector, and a value vector; S42, performing self-attention calculation on the query vector, the key vector and the value vector to obtain an attention vector; S43, performing a residual connection, adding the attention vector to the word vector with the position vector corresponding to the input sentence, and performing a layer normalization operation on the obtained result to obtain a residual vector; S44, performing a feed-forward transmission operation on the obtained residual vector, and obtaining a semantic coding vector through two-layer linear mapping and activation with an activation function ReLU; S5, passing the semantic coding vector through a wireless channel; S6, semantic decoding: The semantic coding vector passing through the wireless channel is passed through the decoding layer of Transformer for semantic decoding, and the decoded semantic text is output after probabilistic logistic regression processing; The specific steps in step S6 are as follows: S61, input the word vector with position vector corresponding to the target sentence obtained in S3 into the multi-head self-attention layer for decoding; S62, inputting the encoded information received through the wireless channel and the output information of the multi-head self-attention layer in the previous step into the multi-head attention layer for decoding; S63, after the target sentence passes through the multi-head self-attention layer and the multi-head attention layer, it passes through the feed-forward transmission layer to obtain a semantic decoding vector; S64, perform probabilistic logistic regression through the Softmax function and output the sentence; S7, the receiving party makes a retransmission decision based on the received semantic text; if retransmission is required, a retransmission instruction is sent to the sending party, and the sending party selects a retransmission mode, and sends the semantic coding vector in step S4 to the wireless channel again to obtain the retransmitted semantic coding vector; If retransmission is not necessary, the transmission ends; S8, combining the retransmitted semantic coding vector and the previously received semantic coding vector, and aggregating them through the dimension integration module to obtain an aggregated semantic coding vector; passing the aggregated semantic coding vector through the decoding layer of the Transformer for semantic decoding, and outputting the decoded semantic text after probabilistic logistic regression processing, and returning to step S7; The multi-decoder method includes the following training process: A11. Train an encoder and decoder that can transmit normally under various signal-to-noise ratios; A12, fix the encoder in step A11, create a second decoder, the input of the second decoder is twice that of the decoder in step S1, and the second decoder is provided with a dimension integration module; the dimension integration module is composed of a fully connected layer; A13, transmitting the encoding results of the encoder twice, splicing the two after passing through the wireless channel, sending the spliced ​​result to the second decoder, integrating it using the dimension integration module in the second decoder, and the second decoder performing corresponding decoding operations on the integrated information; A14. According to step A12 and step A13, a new Nth decoder is created, wherein N is a natural number greater than 2, and the input of the Nth decoder is N times the input of the decoder in step A11; A15, after training is completed, during the transmission process, the decoders are started in sequence according to the sequence number of the decoders according to the number of retransmissions required; The single decoder method includes the following training process: B11. Establish an encoder and a decoder, wherein the decoder is provided with a dimension integration module, and the performance of the decoder under different retransmission times is tested according to the transmission channel required and the text used for training, and the maximum number of retransmissions N allowed is determined according to the performance, and the input dimension of the dimension integration module in the decoder is determined according to the maximum number of retransmissions N; the input dimension of the dimension integration module is N+1 times the output dimension of the encoder; B12. During the training process, randomly determine the number of retransmissions required, which is less than the maximum number of retransmissions, and concatenate the retransmitted information with the original information as the input dimension of the dimension integration module, and perform a zero padding operation on the remaining empty dimensions; B13. Repeat step B12 to obtain a single decoder that can be used for multiple retransmissions.

2. A semantic communication retransmission method as claimed in claim 1, characterized in that: The step S2 specifically includes the following: S21, read in the entire text file for transmission; S22, performing word segmentation processing on the entire text, counting the number of times each word in the text is used, numbering each word, and removing words with too low a number of times; S23, adding a start or end character to the entire dictionary; S24. Output the dictionary.

3. A semantic communication retransmission method as claimed in claim 1, characterized in that: The specific steps in step S3 are as follows: S31. Create an embedding layer, send the sentence to be transmitted into the embedding layer, and convert it into a word vector of corresponding dimension; S32, calculate and add the position vector; S33. Add the word vector to the position vector to obtain a word vector with position information.