A cross-layer joint design method and system for efficient video semantic communication
By employing a cross-layer joint design, selecting key frames and using a low-bit visual Transformer for semantic encoding and decoding, and combining a residual interpolation network to recover non-key frames, the problem of video semantic communication under bandwidth and computational resource constraints is solved, achieving efficient video reconstruction and low-overhead transmission.
Patent Information
- Application Number
- CN202611685359.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
Under conditions of limited bandwidth and computing resources, the end-to-end transmission and computing overhead of video semantic communication in existing technologies is difficult to control effectively. In particular, the linear operation of the visual Transformer semantic codec brings high weight storage and computing overhead, and simply reducing the bit width of the model weights is difficult to translate into a reduction in processing latency on a real computing platform.
A cross-layer joint design approach is adopted, which transmits only the semantic latent variables of key frames through key frame selection, low-bit visual Transformer semantic encoder and decoder (LBViT-SE and LBViT-SD), and recovers non-key frames through residual interpolation network. Combined with low-bit linear layer and quantized perceptual training, the weight representation and calculation process of the computation backend are optimized.
It reduces the repetitive encoding, decoding, and transmission of video frames, lowers the overhead of weight representation and bit-level operations, improves video reconstruction quality, and reduces transmission load and actual execution overhead, thus achieving efficient video semantic communication.
Smart Images

Figure CN123185362A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the fields of wireless communication, artificial intelligence and video processing technology, and specifically relates to a cross-layer (data level, model level and system level) joint design method for efficient video semantic communication, which is used for video transmission and reconstruction under conditions of limited bandwidth and computing resources. Background Technology
[0002] Video surveillance and remote visual perception require transmitting video captured by cameras to the receiving end. Semantic communication uses neural networks to extract and transmit the semantic representation of the video, reconstructing the visual content at the receiving end. When image semantic communication is directly applied to video, performing semantic encoding, transmission, and decoding on each frame separately results in repetitive processing of highly temporally related content.
[0003] The semantic codec based on the Vision Transformer extracts and recovers visual features through self-attention between image patches, but the query, key-value projection, attention output projection and feedforward projection involve a large number of linear operations, resulting in high weight storage and computational overhead.
[0004] Low-bit quantization can reduce the representation width of model weights, but its actual execution efficiency is also affected by the computing platform. On general-purpose graphics processing units (GPUs), weight unpacking, activation quantization, data transformation, and operator calls may offset some of the benefits of low-bit operations. Therefore, simply reducing the model bit width does not necessarily reduce actual processing latency.
[0005] The aforementioned issues involve video input, semantic encoding / decoding models, and their execution processes, and are interconnected. Therefore, under conditions of limited bandwidth and computing resources, the end-to-end transmission and computational overhead of video semantic communication remains difficult to control effectively. Summary of the Invention
[0006] Purpose of the Invention: The purpose of this invention is to provide a cross-layer joint design method and system for efficient video semantic communication, in order to solve the problems of repeated processing and transmission overhead caused by performing semantic encoding and decoding frame by frame in the prior art, the high weight storage and computation overhead brought about by the linear operation of the visual Transformer semantic codec, and the difficulty in realizing the reduction of processing latency on actual computing platforms by simply reducing the bit width of model weights.
[0007] Technical Solution: This invention provides a cross-layer joint design method for efficient video semantic communication, which is executed by the sending end, wireless transmission link, and receiving end, and includes the following steps:
[0008] Keyframes are selected from the acquired video segments and their indices are recorded. Among them, several keyframes are selected from fewer than the total number of frames through lightweight frame feature extraction, temporal modeling, and importance scoring.
[0009] Only the selected keyframes are input into the Low-Bit VisionTransformer-based Semantic Encoder (LBViT-SE) to generate semantic latent variables;
[0010] Semantic latent variables and keyframe indexes are transmitted via wireless link;
[0011] The received semantic latent variables are input into the Low-BitVision Transformer-based Semantic Decoder (LBViT-SD) to reconstruct keyframes;
[0012] Adjacent reconstructed keyframes are paired according to the keyframe index, interpolated by relative time position, and non-keyframes are refined by a residual interpolation network. The reconstructed video segments are then assembled in the original time order.
[0013] In both LBViT-SE and LBViT-SD, the linear projection uses a low-bit linear layer. The low-bit linear layer determines the activation quantization step size based on the maximum absolute value of the input activation and quantizes the input activation to a preset integer range. The low-bit linear layer determines the weight scale based on the average absolute value of the weights and performs binary or ternary quantization on the weights. LBViT-SE and LBViT-SD obtain parameters through quantization-aware training. Before deployment, the weights are converted into a representation that matches the computation backend. During execution, the corresponding computation backend is selected based on the actual matrix shape of the target GPU and the linear layer, and the integer accumulation results are scaled back and biased added.
[0014] Furthermore, the step of selecting multiple key frames less than the total number of frames through lightweight frame feature extraction, temporal modeling, and importance scoring includes: performing lightweight frame encoding based on a scaled-down image copy of the video segment; obtaining frame features for each frame through depthwise separable convolution and global average pooling; adding temporal position encoding to the frame features; establishing inter-frame relationships within the video segment through multi-head self-attention, feedforward networks, residual connections, and layer normalization to obtain temporal features; mapping the temporal features to scalars and converting them into importance scores; fixing and retaining the first and last frames of the video segment; selecting the frame with the highest importance score from the frames other than the first and last frames as key frames, until the number of selected key frames reaches a preset number of key frames.
[0015] Furthermore, the keyframe selection is trained as follows: a pseudo-score is constructed based on the average absolute pixel difference between two adjacent frames, where the pseudo-score of the middle frame is the sum of the differences between the two frames before and after it, and the pseudo-scores of the first and last frames are the differences between adjacent single frames plus one, respectively; the pseudo-score of each frame is divided by the maximum value within the video segment to obtain the normalized supervision target; the keyframe selection is trained using the mean square error between the predicted importance score and the normalized supervision target as the score loss.
[0016] Furthermore, the low-bit linear layer performs integer quantization of input activations, including: for each token, determining the activation quantization step size based on the maximum absolute value of each input activation within that token, and rounding and truncating each input activation of that token to the range of INT8 according to the activation quantization step size; the low-bit linear layer performs binary or ternary quantization of weights, including: determining the per-tensor weight scale based on the average absolute value of each weight within the entire weight tensor, rounding and truncating each weight to -1, 0, and +1 according to the per-tensor weight scale during ternary quantization to obtain ternary weights, and subtracting the mean of the weight tensor from each weight during binary quantization and mapping it to +1 and -1 according to positive and negative to obtain binary weights.
[0017] Furthermore, the low-bit linear layer performs integer dot product or integer matrix multiplication on the quantized input activation and the quantized weights to obtain an integer accumulation result of INT32; according to the activation quantization step size corresponding to the integer quantization per token and the tensor weight scale corresponding to the binary or ternary quantization per tensor, the integer accumulation result is multiplied element-wise, and an offset is added according to the output channel to obtain the floating-point output of the low-bit linear layer.
[0018] Furthermore, the quantization-aware training preserves the full-precision trainable weights and optimizer states in each low-bit linear layer of the LBViT-SE and the LBViT-SD. Forward propagation uses quantization to recover the scaled input activations and weights, and backpropagation passes the gradient to the full-precision trainable weights and updates the full-precision trainable weights through the pass-through estimator. Channel noise perturbation is applied to the semantic latent variables during training.
[0019] Further, the step of interpolating relative time positions and refining non-key frames through a residual interpolation network includes: for the frame to be recovered located between two adjacent reconstruction key frames, performing linear interpolation according to the relative time position of the frame to be recovered between the two adjacent reconstruction key frames to obtain a coarse reconstruction frame; expanding the relative time position into a channel position map with the same spatial size as the reconstruction key frame; stitching the two adjacent reconstruction key frames, their absolute difference maps, and the position map along the channel direction, and inputting them into the residual interpolation network to obtain a prediction residual map; adding the coarse reconstruction frame to the prediction residual map to obtain the reconstruction result of the refined frame to be recovered.
[0020] Furthermore, the step of converting the weights into a representation that matches the computation backend before deployment includes: generating discrete weights according to quantization rules before deployment, forming a compact weight layout with bit-packed data for the compact weight integer dot product backend, or forming an integer matrix layout with each weight occupying one byte for the INT8 matrix multiplication backend, and saving the weight scale and bias.
[0021] Furthermore, during the execution of LBViT-SE and LBViT-SD, operator fusion and computation graph replay are performed, including: in the attention path, layer normalization and per-token integer quantization are fused to directly output the quantized activation and its scale for use in query-key-value projection; in the feedforward path, after fusing layer normalization and per-token integer quantization, the layer enters the first low-bit linear layer, where the activation function is fused with per-token integer quantization to directly provide integer input and its scale to the second low-bit linear layer, and then residual addition is performed; with the number of keyframes, image size, and batch size fixed, the computation graphs of LBViT-SE and LBViT-SD are preheated and captured respectively, and the subsequent inputs are written into a fixed buffer before replaying the computation graph, while dynamic index pairing and wireless transmission are not incorporated into the computation graph.
[0022] Furthermore, the method also includes: folding adjacent pointwise convolutions and batch normalizations in keyframe selection into equivalent convolution parameters; and / or, concatenating the inputs of multiple frames to be recovered along the batch dimension and performing residual prediction once, and then writing back the results according to the keyframe interval and time index to which each frame to be recovered belongs.
[0023] Secondly, this invention provides an efficient video semantic communication system, comprising: a keyframe selection module for selecting keyframes from acquired video segments and recording keyframe indices, wherein multiple keyframes fewer than the total number of frames are selected through lightweight frame feature extraction, temporal modeling, and importance scoring; a semantic encoding module for inputting only the selected keyframes into LBViT-SE to generate semantic latent variables; a semantic transmission module for transmitting the semantic latent variables and keyframe indices via a wireless link; a semantic decoding module for inputting the received semantic latent variables into LBViT-SD to reconstruct keyframes; and a video restoration module for pairing adjacent reconstructed keyframes according to the keyframe indices, interpolating based on relative time positions, and refining non-keyframes through a residual interpolation network. The reconstructed video segments are assembled in the original chronological order. Both LBViT-SE and LBViT-SD employ low-bit linear projection layers. The low-bit linear layer determines the activation quantization step size based on the maximum absolute value of the input activation, quantizing the input activation to a preset integer range. The low-bit linear layer determines the weight scale based on the average absolute value of the weights, performing binary or ternary quantization on the weights. LBViT-SE and LBViT-SD obtain parameters through quantization-aware training. Before deployment, the weights are converted into a representation matching the computational backend. During execution, the corresponding computational backend is selected based on the actual matrix shape of the target GPU and the linear layer, and scale recovery and bias addition are performed on the integer accumulation results.
[0024] The aforementioned technical features work together through common data relationships: keyframe selection determines the input frames and batch size of the codec; low-bit semantic decoding results provide anchor points for residual interpolation; and the quantization scale and discrete weights of the model define the input, accumulation, and scale recovery methods of the computation backend. A fixed number of keyframes also forms a stable codec input shape for use in computation graph replay, while the specific keyframe positions of each segment are still determined by the scoring.
[0025] Beneficial effects: Compared with the prior art, the present invention has the following specific beneficial effects:
[0026] (1) Before semantic encoding, the present invention selects key frames by lightweight frame feature extraction, temporal modeling and importance scoring. Only the selected key frames are input into the semantic encoder and transmitted through the wireless link, which reduces the repeated encoding and decoding and semantic transmission of related video frames. The receiving end pairs adjacent reconstructed key frames according to the key frame index, interpolates with relative time position and refines non-key frames through the residual interpolation network, so that the untransmitted frames can be recovered by the adjacent reconstructed key frames, thereby reducing the number of transmitted frames while reconstructing the complete video segment in the original time order.
[0027] (2) The present invention uses LBViT-SE and LBViT-SD, employs integer quantization for input activation and binary or ternary quantization for weights, reducing the overhead of weight representation and bit-level equivalent operation; the tensor-by-tensor weight scale simplifies the storage and use of scale parameters and matches the operator processing during deployment.
[0028] (3) In this invention, LBViT-SE and LBViT-SD obtain parameters through quantization-aware training, enabling the reconstruction quality under low-bit representation to be compensated during training; before deployment, the weights are converted into a representation that matches the computation backend, avoiding repeated quantization of weights during inference; during execution, the corresponding computation backend is selected according to the actual matrix shape of the target GPU and the linear layer, and layer normalization and activation quantization, GELU and activation quantization, as well as scale recovery and bias addition are further fused to reduce intermediate data access and operator calls. Computation graph replay and interpolation batch processing can further reduce the scheduling overhead in the encoding / decoding and video restoration process.
[0029] (4) This invention enables the residual interpolation network to use reconstructed keyframes after low-bit encoding / decoding and channel perturbation through joint training. The keyframe reconstruction loss simultaneously constrains the anchor points on which the recovery of keyframes and non-keyframes in the final video depends. This invention reduces transmission load, model representation overhead, and actual execution overhead through cross-layer design of data, models, and systems. Attached Figure Description
[0030] Figure 1 This is a schematic diagram of the overall process of the cross-layer joint design method for efficient video semantic communication of the present invention;
[0031] Figure 2 This is a schematic diagram illustrating the video semantic communication system of the present invention and the three-layer design relationship of data, model, and system.
[0032] Figure 3 This is a schematic diagram of the processing flow for keyframe selection, semantic transmission, and video frame interpolation restoration in this invention.
[0033] Figure 4 This is a schematic diagram of the low-bit Transformer module, low-bit linear layer, and quantization method of the present invention.
[0034] Figure 5 This is a schematic diagram illustrating the low-bit weight deployment representation, computational backend allocation, and fusion tail processing of the present invention.
[0035] Figure 6 This diagram illustrates the low-bit Transformer runtime computation strategy, end-to-end computation process optimization, and GPU platform adaptation strategy of this invention. Detailed Implementation
[0036] The embodiments of the present invention are described below with reference to the accompanying drawings. The network size, image size, training parameters, and device model listed are for illustrating feasible configurations and do not limit the invention to these specific values or models. The processing units in an image patch and its feature sequence are called tokens; the video frame interpolator is used to recover non-key frames, and the residual interpolation network therein can employ... Figure 3 The residual U-Net network implementation is shown.
[0037] The cross-layer joint design method for efficient video semantic communication provided in this embodiment of the invention is executed by the sending end, the wireless transmission link and the receiving end. The overall process, system structure and the cooperation relationship between the data, model and system three-layer design are described in general below. Then, the specific implementation of this embodiment is described in terms of data level, model level and system level respectively.
[0038] like Figure 1 and Figure 2 As shown, the sending end performs video segment construction, keyframe selection, and low-bit semantic encoding, while the receiving end performs low-bit semantic decoding and video frame interpolation restoration. Figure 2 In the middle section (a), the left side represents keyframe selection and frame interpolation restoration (corresponding to the data level), the right side represents low-bit semantic encoding and decoding (corresponding to the model level), and (b) represents the corresponding GPU execution (corresponding to the system level) and wireless connectivity. The three parts together describe the same processing link, and the runtime acceleration on the right side is not an independent step located after decoding or frame interpolation.
[0039] Keyframes and their indices are jointly generated by the selector: keyframes enter the semantic encoder, and indices are transmitted as side information. The receiver first reconstructs the keyframes, then restores the frames that were not transmitted in between according to the indices. Both the sender and receiver employ computational backends adapted to their local GPUs, completing the low-bit semantic encoding and low-bit semantic decoding processes. Figure 5 , Figure 6 The low-bit computation and runtime processing are shown.
[0040] like Figure 1 As shown, in this embodiment, the cross-layer joint design method for efficient video semantic communication includes: Step S1, selecting keyframes and recording keyframe indices for the acquired video segments; Step S2, inputting only the selected keyframes into a low-bit visual Transformer semantic encoder (LBViT-SE) to generate semantic latent variables; Step S3, transmitting the semantic latent variables and keyframe indices via a wireless link; Step S4, inputting the received semantic latent variables into a low-bit visual Transformer semantic decoder (LBViT-SD) to reconstruct keyframes; Step S5, pairing adjacent reconstructed keyframes according to the keyframe indices, interpolating based on relative time positions, refining non-keyframes through a residual interpolation network, and assembling the reconstructed video segments in the original time order.
[0041] Suppose the fragment contains The frames, original frames, and reconstructed frames are denoted as follows: and .choose One keyframe The preset number of keyframes can be selected based on the total number of frames in the segment, the target bandwidth, or the reconstruction quality requirements, to meet the needs. The keyframe time indices are as follows: ,and Within a deployment configuration, the segment length, number of keyframes, and image size are preset and kept fixed; only the keyframe positions change with the segment content.
[0042] During video segment construction, consecutive video frames are first resized and normalized to the spatial dimensions required by the semantic codec. The selector then uses a scaled-down copy of the image for scoring, and keyframes of the encoded size are collected based on the frame selection index. Therefore, the low resolution of the scoring branch does not replace the input resolution of the semantic encoder.
[0043] In the overall process described above, the keyframe selection in step S1 and the non-keyframe recovery in step S5 together constitute data-level compression. The specific implementation of steps S1 and S5 is explained in detail below.
[0044] In step S1, several key frames, fewer than the total number of frames, are selected through lightweight frame feature extraction, temporal modeling, and importance scoring. The specific implementations of frame encoding, temporal modeling, scoring mapping, and key frame selection are as follows.
[0045] like Figure 3 As shown on the left, the keyframe selector sequentially performs lightweight frame encoding, temporal modeling, and frame importance scoring. The frame encoder obtains compact features for each frame through depthwise separable convolutions and global average pooling; after incorporating learnable temporal location encoding, it establishes inter-frame relationships within segments through multi-head self-attention, a feedforward network, residual connections, and layer normalization. The scoring network maps temporal features to scalars and obtains an importance score between zero and one using the sigmoid function.
[0046] In one specific implementation, the scoring input is 96×96 pixels, and the output channels of the three convolutional blocks are 64, 128, and 256, respectively. Each block contains a 3×3 depthwise convolution with a stride of 2, a 1×1 pointwise convolution, batch normalization, and Gaussian Error Linear Unit (GELU) activation. Global pooling yields 256-dimensional frame features; the temporal module uses four-head self-attention and two layers of 256-dimensional feedforward mapping, while the scoring head uses a 256-to-128-to-1 mapping.
[0047] The selector retains the first and last frames and selects the N-2 highest-scoring frames from the intermediate frames. The results are then sorted chronologically and keyframes are collected, ensuring that each untransmitted frame lies between a pair of keyframes. This process reduces the number of input frames for semantic encoding / decoding and defines boundaries for subsequent interpolation, eliminating the need for extrapolation beyond the beginning and end of segments.
[0048] Figure 3 The semantic transmission link in the middle only encodes and decodes selected keyframes, with the keyframe index transmitted as side information along with the semantic latent variables. The receiving end associates the index with the reconstructed keyframes in the same order, for pairing with adjacent keyframes on the right and for assembling the complete video. In embodiments where the beginning and end positions are known, only the middle keyframe index needs to be transmitted. For example, after converting the indices of 16 frame segments into 0-based numbers, each index can be represented by a 4-bit binary number.
[0049] Keyframe selection is achieved through training in the following way: a pseudo-score constructed from the differences between adjacent frames is used as the supervision target, and the mean squared error between the predicted importance score and this supervision target is used as the score loss, so that the score training does not depend on manually labeled keyframes. The specific implementation of this training method is as follows.
[0050] Selecting a specified number of frames based on the rating is a discrete operation, and the reconstruction loss cannot be directly used to train the rating network using the frame selection index. Therefore, Figure 3 The training branch shown by the dashed line constructs a pseudo-score based on the average absolute pixel difference between two adjacent frames: the original pseudo-score of the middle frame is the sum of the differences between its two preceding and following frames; the first and last frames are each incremented by 1 based on their respective single-frame differences. Dividing the original pseudo-score of each frame by the maximum value within that segment yields the normalized supervised target.
[0051] The rating loss is denoted as The mean squared error between the predicted score and the target is taken. This supervision does not require manual annotation of keyframes and is only used during training; the target construction branch is removed during inference. The fixed retention of the first and last frames does not depend on the predicted score, and therefore can still be used as interpolation anchors for segment boundaries during inference.
[0052] In step S5, interpolation is performed based on relative time position, and non-key frames are refined through a residual interpolation network. This includes linear interpolation of the coarse reconstructed frame, channel stitching of the location map and the absolute difference map, residual prediction, and addition of the residual map and the coarse reconstructed frame. The specific implementation in this embodiment is as follows.
[0053] Figure 3 The video frame interpolator on the right receives the reconstructed keyframes and their indices. The indices are respectively... and Adjacent keyframes and The number of frames to be recovered is determined by subtracting 1 from the difference between the two indices; if there are no missing frames, the interval is skipped. For the first frame located between the two indices... Frames, calculate relative time positions and generate coarse reconstructed frames:
[0054]
[0055] in, This indicates the relative temporal position of the frame to be recovered (i.e., the untransmitted frame between two reconstruction keyframes, also known as a non-keyframe) between the left and right keyframes. The coarse reconstructed frame is obtained by linear interpolation.
[0056] Will Expanded into a one-channel position map with the same spatial size as the keyframe. The left and right reconstructed keyframes, their absolute difference maps, and position maps are stitched together along the channel direction and then input into the residual interpolation network.
[0057]
[0058] in, Represents the residual interpolation network. Its parameters, Indicates channel splicing. To predict the residual plot, For frame reconstruction, for RGB video, two keyframes each occupy 3 channels, the difference map occupies 3 channels, and the position map occupies 1 channel, forming a total of 10 input channels.
[0059] Figure 3 The residual U-Net network in the model employs a U-shaped encoder-decoder structure: the 10-channel input undergoes convolutional blocks and downsampling, resulting in 32, 64, and 128 feature channels respectively; the decoder fuses the corresponding encoded features through bilinear upsampling and skip connections, restoring the channels to 64 and 32 respectively, and finally outputting a 3-channel residual map. Each convolutional block consists of two 3×3 convolutions and GELU, with downsampling using convolutions with a stride of 2, and the output layer using 3×3 convolutions.
[0060] Linear interpolation provides the basic transition, while the residual network supplements local motion and appearance variations. The difference map provides the appearance differences between the two sides, and the location map allows the same keyframe pair to reconstruct frames at different intermediate times. All of the above inputs and residual maps are generated at the receiving end from the reconstructed keyframes and indexes, without the need for additional transmission of non-keyframes or their residual signals. Figure 3 The addition and assembly relationship on the right adds the predicted residual to the coarse reconstruction frame, and then combines it with the reconstruction key frame in chronological order to form a complete segment.
[0061] The LBViT-SE and LBViT-SD used in steps S2 and S4 constitute the main body of model-level compression. The following section provides a detailed explanation of the low-bit implementation of linear projection in LBViT-SE and LBViT-SD, as well as the corresponding quantization and training methods.
[0062] In this embodiment, the linear projection in both LBViT-SE and LBViT-SD uses a low-bit linear layer, that is, it uses token-by-token integer quantization for input activation and tensor-by-tensor binary or ternary quantization for weights.
[0063] Figure 2 The semantic encoder in the middle divides the selected keyframes into non-overlapping image blocks, mapping them to image block tokens. After concatenating the category tokens and adding positional encoding, features are extracted through multiple Transformer modules. Subsequently, the category tokens are removed, and semantic latent variables are formed through channel projection (i.e., dimensional mapping between the Transformer feature dimension and the semantic channel dimension). At the receiver, the latent variables are reshaped into a token sequence, which is then entered into the decoding feature space through channel projection and token mapping. After adding two-dimensional positional encoding, it undergoes Transformer processing, and the keyframes are reconstructed by the image block prediction layer and reconstruction operation. Figure 4 The low-bit Transformer module used by the encoder and decoder is further shown.
[0064] like Figure 4 As shown on the left, the query-key-value projection and attention output projection of the self-attention layer, as well as the two linear projections of the feedforward network, are replaced with low-bit linear layers. In the diagram, Q, K, and V represent the query, key, and value branches, respectively. Ideally, all three are generated through a single joint projection, sharing the quantization result of the input activation. The self-attention layer and feedforward network layer retain layer normalization, corresponding computations, and residual connections, respectively, without converting all network operations to binary computations.
[0065] The low-bit linear layer employs token-by-token integer quantization for input activations and tensor-by-tensor binary or ternary quantization for weights, and performs scale recovery and bias addition on the integer accumulation results. The specific calculation methods for activation quantization step size, tensor-by-tensor weight scale, discrete weights, and linear layer outputs are explained in detail below.
[0066] Let the input activation matrix of the low-bit linear layer be... The weight matrix is .in, Represent real numbers, This represents the number of tokens after this layer has been flattened. and These represent the input and output feature dimensions, respectively. For each token, the quantization step size is determined by the maximum absolute value of its features.
[0067]
[0068] in, Indicates the first The token in the 1st Floating-point activation values on each input feature dimension Indicates to The resulting INT8 integer value after quantization For the first The quantization step size of each token It is the numerical stability constant; This indicates rounding to the nearest integer. This indicates truncation based on upper and lower limits. Quantification results. It uses INT8 representation. Each token has its own scale to accommodate its different numerical range.
[0069] Weight quantization uses the average of the absolute values of the entire weight tensor as a scale. In binary mode, the mean of the weight matrix is subtracted first, and then the weights are mapped to +1 or -1 based on the sign of the centered value. In ternary mode, the weights are mapped to -1, 0, or +1 using the following formula:
[0070]
[0071] in, Indicates the first The output feature at the th in the th The weights of each input feature, This represents the corresponding discrete weight value. For tensor-by-tensor weighting scale, and These are the output and input feature indices, respectively. In the numerical implementation, a positive lower bound can be set for the scale, and the same effective scale is used during quantization and scale recovery. The ternary mode is also often called the 1.58-bit mode; its actual compact storage uses two bits to represent the three states.
[0072] Figure 4 The quantization method on the lower right side sets a token-by-token scale for activations and a tensor-by-tensor scale for weights. Each weight matrix only needs to store one weight scale, which facilitates fusion with subsequent bias processing; the ternary mode adds zero states, providing another weight representation for the trade-off between reconstruction quality and model storage.
[0073] After selecting the weighting pattern, the discrete weights are uniformly denoted as... Low-bit linear operations first generate an integer summation result. Then restore the numerical scale and add a bias. :
[0074]
[0075] Among them, superscript Indicates transpose. Accumulate using 32-bit signed integers (INT32); This includes the quantization step size for each token. This indicates element-wise multiplication broadcast along the token dimension. Broadcast via output channel. This approximates the full-precision result for the floating-point output of the quantized linear layer. Scale recovery does not eliminate the quantization error that has already occurred.
[0076] LBViT-SE and LBViT-SD obtain parameters through quantized perception training. The quantized perception training process and reconstruction target are explained in detail below.
[0077] Figure 4 The dashed line in the lower right corner indicates that backpropagation is performed using a straight-through estimator. During training, each low-bit linear layer retains the full-precision trainable weights and optimizer state; forward propagation uses quantized scale-recovered activations and weights, while backpropagation utilizes the straight-through estimator (STE) to pass approximate gradients and update the full-precision parameters, allowing small updates to accumulate in the full-precision weights before being used for weight quantization in subsequent forward propagation.
[0078] The forward training process also includes channel perturbation of semantic latent variables and video interpolation. The interpolation network uses keyframes obtained from actual semantic decoding, rather than the raw keyframes without quantization and channel perturbation. The joint training objective is:
[0079]
[0080] in, The total training loss is used as a unified scalar objective for a single backpropagation. and The reconstruction losses are calculated separately for the complete segment and keyframes, and then averaged over the corresponding frames based on the sum of the absolute pixel errors of each frame. For rating loss; , These are the keyframe loss weights and the rating loss weights, respectively. The complete segment loss constrains the final reconstruction result, while the keyframe loss strengthens the interpolation anchors. The rating loss trains the rating network before discrete selection, and the reconstruction loss does not directly update the rating network through discrete indices. The above training process connects data selection, low-bit reconstruction, and interpolation recovery into the same forward flow, and updates the corresponding modules through the rating loss and reconstruction loss, respectively.
[0081] The following section describes system-level acceleration for low-bit semantic encoding and decoding.
[0082] Before deployment, the weights are converted into a representation that matches the computation backend. During execution, the corresponding computation backend is selected based on the actual matrix shape of the target GPU and the linear layers. The integer accumulation results are then scaled and biased, collectively constituting system-level acceleration. Preferably, the backend mapping can be determined based on the matrix shape of the target GPU and each low-bit linear layer during the deployment preparation phase, and the corresponding backend is invoked according to the mapping during the inference execution phase.
[0083] like Figure 5 As shown, the system execution consists of three parts: weight deployment representation, main computation loop, and tail processing. Before deployment, discrete weights are generated according to the quantization rules used in training, the weight scale and bias are saved, and a compact packing layout or INT8 matrix layout is formed for the selected computation backend. The weight packing or transformation shown in the figure is completed during the deployment preparation phase and is not repeated with each video segment; the weights are stored locally at the sending and receiving ends and are not transmitted with the video data.
[0084] Figure 5 The upper branch is the backend of the compact weighted integer dot product. Binary weights are represented by one bit, and eight weights are packed into one byte, corresponding to `_pack_int1()`; ternary weights are represented by two bits, and four weights are packed into one byte, corresponding to `_pack_int2()`. During computation, the packed weights are unpacked into INT8 register data and subjected to an integer dot product with the quantization activation. In the GPU implementation shown, `__dp4a()` performs multiplication and addition on four pairs of INT8 data each time and accumulates the results to INT32. This path reduces weight storage and retrieval, but requires bit extraction and unpacking.
[0085] Figure 5The lower branch is the backend for INT8 matrix multiplication. `_to_int8()` converts discrete weights to INT8 representation and transposes and stores them contiguously according to the matrix multiplication interface requirements; this conversion differs from sub-byte packing, with each weight occupying one byte, and four INT8 weights occupying a total of four bytes. The weight sequence containing zero values in the diagram corresponds to a three-valued pattern, while the two-valued pattern only contains -1 and +1. This layout performs matrix multiplication with INT8 activations, and the INT32 accumulation result can be obtained through the `torch._int_mm()` interface shown in the diagram; compared to the compact layout, its weight storage is larger, but it does not need to be unpacked in the main computation loop. The `act_int8_quant` operator in the diagram is used to perform token-by-token quantization on the input activations of the low-bit linear layer. For each token, the `act_int8_quant` operator determines the quantization scale based on the maximum absolute value of its input features, maps floating-point activations to INT8 integer activations, and outputs the quantization scale corresponding to that token.
[0086] Figure 5 The left-hand tuple represents the input and output feature dimensions of the linear layer. In this embodiment, for different low-bit linear layers in the visual Transformer encoder and decoder, the computational backend is pre-determined based on the shape of their input and output matrices. For example, in a server GPU embodiment, low-bit linear layers with input-output dimensions of 768×2304, 768×3072, and 3072×768 use an INT8 matrix multiplication backend; low-bit linear layers with input-output dimensions of 768×768, 512×1536, 512×512, 512×2048, and 2048×512 use a compact low-bit integer dot product backend. During deployment, the execution overhead of the two types of backends is compared for the target GPU and the actual matrix shape under the predetermined configuration, and the corresponding mapping rules are saved. During inference, the backends are called according to the rules, eliminating the need for retesting segment by segment. The dimensions in the figure are only for the configuration of this embodiment; when changing the network or GPU, a matching backend mapping should be used.
[0087] Figure 5 The tail processing on the right corresponds to the scale recovery and bias addition after integer accumulation. Both types of back-ends follow the low-bit linear layer output relationship of Equation (5). The compact packing back-end can complete this processing before the result is written back; the INT8 matrix multiplication back-end can be completed with a fusion post-processing operator, avoiding multiple element-wise operations. The figure fused_epilogue represents this fusion post-processing, and Y_fp32 is the 32-bit floating-point (FP32) output.
[0088] Preferably, execution overhead is reduced through adjacent operator fusion and fixed-shape computation graph replay. In this embodiment, operator fusion and computation graph replay are performed during encoding and decoding. The operators involved in fusion and their input-output relationships in the attention path and feedforward path reflect the correspondence between operator fusion and the low-bit Transformer execution path. The specific content of operator fusion matching the Transformer execution path is described in detail below.
[0089] Figure 6 In the text, ① to ⑨ are used to identify different runtime optimization methods, where: ① represents the fusion of layer normalization and INT8 activation quantization; ② represents the integer dot product calculation backend based on compact low-bit weights, corresponding to... Figure 5 The __dp4a() interface, denoted as dp4a; ③ represents the backend for integer matrix multiplication calculation based on INT8 weights, corresponding to Figure 5 The `torch._int_mm()` interface is denoted as `int8mm`; ④ represents the hybrid computation backend, which selects the corresponding computation backend from the integer dot product computation backend and the integer matrix multiplication computation backend according to the matrix shape of different low-bit linear layers; ⑤ represents the scaled dot product attention computation performed using the FP16 data format; ⑥ represents the fusion of GELU activation and INT8 activation quantization; ⑦ represents the fusion of convolution and batch normalization in the keyframe selector; ⑧ represents the computation graph capture and replay of the semantic encoder and semantic decoder; ⑨ represents the batch residual prediction of multiple frames to be recovered during video frame interpolation.
[0090] Figure 6 (a) illustrates the runtime execution path of the low-bit Transformer. In the attention path, layer normalization is fused with token-by-token INT8 quantization, directly outputting the quantized activation and its scale for use in query-key-value projection using integer dot products, INT8 matrix multiplication, or a hybrid backend. In the adapted GPU implementation, the query, key, and value are converted to 16-bit floating-point numbers (FP16), and scaled dot product attention is performed through the FlashAttention backend shown in (⑤). The attention output is still projected through a low-bit linear layer and then added to the residual branch.
[0091] exist Figure 6 In the feedforward path of (a), after normalization and INT8 quantization at the fusion layer, the input enters the first low-bit linear layer. GELU is then fused with the next INT8 quantization, directly providing the integer input and its scale to the second low-bit linear layer, followed by residual addition. Each fusion operation retains its original computational order, reducing write-back, read-back, and independent operator calls to intermediate floating-point results. The quantization granularity and scale specified by the model are reused in the fusion interface, avoiding repeated quantization of the same input.
[0092] With a fixed number of keyframes, image size, and batch size, computation graph replay is performed by warming up, capturing, writing to a fixed buffer, and replaying. Dynamic index pairing and wireless transmission are not incorporated into the computation graph. In addition, to further reduce scheduling overhead, pointwise convolution and batch normalization can be folded into equivalent convolution parameters, and the inputs of multiple frames to be recovered can be concatenated along the batch dimension before performing residual prediction at once.
[0093] Figure 6 As shown in ⑧ of (b), when the number of keyframes, image size, and batch size are fixed, the same computational process can be reused even if the selected frame positions for each segment are different. The computational graphs of the encoder and decoder are preheated and captured separately, and subsequent inputs are written to a fixed buffer before replaying. In GPU embodiments, this can be implemented using a CUDA (Compute Unified Device Architecture) graph. When configuration changes, graph instances with matching shapes are used; dynamic indexing pairing and wireless transmission are not incorporated into the aforementioned fixed computational graph.
[0094] Figure 6 As shown in ⑦ and ⑨ of (b), adjacent pointwise convolution and batch normalization parameters in the keyframe selector are folded into equivalent convolution parameters. The 10-channel input of multiple frames to be recovered is concatenated along the batch dimension, residual prediction is performed once, and the results are written back according to the keyframe interval and time index of each frame. The adapted edge GPU can use FP16 to execute the residual network. This organization method utilizes the relationship of multiple recovered frames sharing keyframe anchor points without changing the input content or reconstruction formula.
[0095] Figure 6 (c) provides adaptation configurations for two types of GPUs: the server GPU implementation uses the combination shown in ①④⑥⑧; the edge GPU implementation uses the combination shown in ①③⑤⑥⑦⑧⑨, prioritizing INT8 matrix multiplication and FP16 attention, while optimizing keyframe selection and frame interpolation recovery. The numbers above indicate the optimizations used in each configuration, not new sequential steps.
[0096] To illustrate the feasibility and synergistic effect of the aforementioned data-level, model-level, and system-level technical features, a specific implementation configuration is given below, and the technical effects are verified.
[0097] In one embodiment, the segment length is 16 frames, 4 frames are selected, and the encoded image is 224×224 pixels. The encoder uses 16×16 image blocks and 12 Transformer blocks, and the decoder uses 8 Transformer blocks and fixed two-dimensional sine and cosine position encoding, forming 196 image block tokens per frame, with a semantic channel dimension of 64. The remaining modules are constructed according to the aforementioned lightweight selector and residual U-Net network.
[0098] Training was conducted using surveillance video clips, employing quantized perceptual training and the aforementioned joint objective. Training lasted 50 epochs with a batch size of 32. The scoring network, LBViT-SE, LBViT-SD, and residual interpolation network were jointly updated in one forward and backward propagation iteration. The AdamW optimizer had an initial learning rate of 0.0004, a weight decay of 0.01, and used cosine annealing. The keyframe loss weight was 0.5, and the scoring loss weight was 0.1. During training, the signal-to-noise ratio was randomly sampled in the range of 0 to 25 dB, and additive white Gaussian noise perturbation was applied to the semantic latent variables.
[0099] Under the above implementation configuration, the technical effects produced by the cooperation of data-level, model-level, and system-level designs can be verified through the following comparative experiments.
[0100] In the VIRAT surveillance video dataset, one video was selected from each of 11 scenes, and 25 segments were extracted from each video to form an evaluation subset of 275 segments. Table 1 compares the model representation, computation, and reconstruction quality under full-frame and keyframe configurations, with the average peak signal-to-noise ratio (PSNR) statistically analyzed according to the test SNR from 0 to 25 dB.
[0101] Table 1 Comparison of the technical effects of data and model configuration
[0102]
[0103] In Table 1, the model size is statistically analyzed by weighted quantization bit width. The equivalent computational load is calculated by dividing the bit operation count by 64 and then adding it to the number of floating-point operations, and is statistically analyzed as a 16×3×224×224 segment, where G represents one billion. The channel bandwidth ratio is calculated as the ratio of the number of complex channel symbols to the number of source elements, with every two real-valued latent variable elements counted as one complex symbol, and the small indexing overhead is approximately ignored.
[0104] In the FP32 configuration, the keyframe mechanism reduces the channel bandwidth ratio from 4.17% to 1.04%, the equivalent computational load from 735.48 G to 344.10 G, and the average PSNR from 34.30 dB to 34.68 dB. Under the keyframe configuration, the binary model further reduces the model representation size from 436.79 MiB to 29.92 MiB, the equivalent computational load to 181.62 G, and the average PSNR to 32.78 dB; the ternary mode achieves 33.82 dB with a model representation of 43.04 MiB. These results demonstrate the benefits and accuracy costs of reducing the number of processing frames and lowering the model bit width.
[0105] The PSNR gain of the keyframe configuration relative to the full-frame configuration is 0.38 dB in FP32 and 1.06 dB in the binary model. This comparison demonstrates the complementary effect of keyframe guided recovery and low-bit encoding / decoding under the tested surveillance video conditions.
[0106] Table 2 compares the GPU processing latency of the corresponding models on RTX 5090 and Jetson Orin NX. The keyframe binary models were executed using both unadapted execution and customized low-bit runtime methods to distinguish the role of the model representation from the actual execution method.
[0107] Table 2 Comparison of GPU processing latency for different configurations
[0108]
[0109] When using only the binary model, the processing latency actually increases compared to the keyframe FP32 configuration. After adding custom system-level acceleration, the latency for both types of GPUs decreased from 21.07 ms and 326.23 ms to 10.69 ms and 158.61 ms, respectively, representing reductions of approximately 49.3% and 51.4%. Compared to the full-frame FP32 baseline, the complete solution achieves speedups of approximately 1.79x and 3.69x, respectively, with single-frame processing power consumption reduced by approximately 61.0% and 79.2%, respectively. These latency and power consumption results correspond to the configuration where the computation backend, operator fusion, and computation graph replay are all enabled.
[0110] The two sets of comparisons show that: the data layer reduces the number of frames entering the codec and wireless link; the model layer reduces the linear computation and weight representation overhead of these keyframes; and the system layer maps the corresponding low-bit representation to the actual GPU execution benefit. These three elements form a seamless processing chain through keyframes, quantization representations, and corresponding execution paths.
[0111] In addition to the experimental configurations described above, the implementation examples of this invention deployed in actual video acquisition and transmission scenarios are as follows.
[0112] The network camera provides a video stream to the transmitting Jetson Orin NX via Ethernet. The transmitting end selects and encodes keyframes, and transmits semantic latent variables and indices via Wi-Fi. The receiving Jetson Orin NX decodes the keyframes, performs batch interpolation, and assembles the video before outputting it to the display terminal. Under the conditions of a 12 fps video stream, a 2 Mbps bandwidth, and a 5 dB signal-to-noise ratio set by the software, the reconstructed PSNR remains above 28 dB, and the end-to-end latency, calculated by segment, is approximately 530 ms. These channel conditions are software simulation settings, not actual measured air interface conditions; this latency differs from the GPU processing latency in Table 2.
[0113] The present invention also provides a video semantic communication system corresponding to the steps of the above method embodiments.
[0114] This embodiment provides an efficient video semantic communication system, including a keyframe selection module, a semantic encoding module, a semantic transmission module, a semantic decoding module, and a video recovery module.
[0115] The keyframe selection module is used to select keyframes from the acquired video segments and record the keyframe indexes. It selects multiple keyframes that are less than the total number of frames by using lightweight frame feature extraction, temporal modeling, and importance scoring.
[0116] The semantic encoding module is used to generate semantic latent variables by inputting only the selected keyframes into LBViT-SE.
[0117] The semantic transmission module is used to send semantic latent variables and keyframe indexes via a wireless link.
[0118] The semantic decoding module is used to input the received semantic latent variables into LBViT-SD to reconstruct keyframes.
[0119] The video restoration module is used to pair adjacent reconstruction keyframes according to the keyframe index, interpolate them with relative time positions, refine non-keyframes through a residual interpolation network, and assemble the reconstructed video segments in the original time order.
[0120] Both LBViT-SE and LBViT-SD employ low-bit linear layers for linear projection. The low-bit linear layer determines the activation quantization step size based on the maximum absolute value of the input activation, quantizing the input activation to a preset integer range. The low-bit linear layer determines the weight scale based on the average absolute value of the weights, performing binary or ternary quantization on the weights. Both LBViT-SE and LBViT-SD obtain parameters through quantization-aware training. Before deployment, the weights are converted into a representation matching the computation backend. During execution, the corresponding computation backend is selected based on the actual matrix shape of the target GPU and the linear layer, and scale recovery and bias addition are performed on the integer accumulation results.
[0121] The above embodiments illustrate the specific implementation of the technical solution. The number of model layers, segment length, number of keyframes, and hardware configuration can be adapted while maintaining the data relationship between keyframe processing, low-bit encoding / decoding, and runtime matching.
[0122] This invention has many specific applications. The above description is only a preferred embodiment of this invention. It should be noted that for those skilled in the art, several improvements can be made without departing from the principle of this invention, and these improvements should also be considered within the scope of protection of this invention.
Claims
1. A cross-layer joint design method for efficient video semantic communication, characterized in that, include: Keyframes are selected from the acquired video segments and their indices are recorded. Among them, several keyframes are selected from fewer than the total number of frames through lightweight frame feature extraction, temporal modeling, and importance scoring. Only the selected keyframes are input into the low-bit visual Transformer semantic encoder LBViT-SE to generate semantic latent variables; Semantic latent variables and keyframe indexes are transmitted via wireless link; The received semantic latent variables are input into the low-bit visual Transformer semantic decoder LBViT-SD to reconstruct keyframes; Adjacent reconstructed keyframes are paired according to the keyframe index, interpolated by relative time position, and non-keyframes are refined by a residual interpolation network. The reconstructed video segments are then assembled in the original time order. In both LBViT-SE and LBViT-SD, the linear projection uses a low-bit linear layer. The low-bit linear layer determines the activation quantization step size based on the maximum absolute value of the input activation and quantizes the input activation to a preset integer range. The low-bit linear layer determines the weight scale based on the average absolute value of the weights and performs binary or ternary quantization on the weights. LBViT-SE and LBViT-SD obtain parameters through quantization-aware training. Before deployment, the weights are converted into a representation that matches the computation backend. During execution, the corresponding computation backend is selected based on the actual matrix shape of the target GPU and the linear layer, and the integer accumulation results are scaled back and biased added.
2. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, The process involves lightweight frame feature extraction, temporal modeling, and importance scoring to select a number of key frames that are less than the total number of frames, including: Lightweight frame coding is performed on downsized image copies of video clips, and frame features of each frame are obtained through depthwise separable convolution and global average pooling. Temporal location encoding is added to the frame features, and the inter-frame relationships within the video segment are established through multi-head self-attention, feedforward network, residual connection and layer normalization to obtain temporal features; The time-series features are mapped to scalars and converted into importance scores; The first and last frames of a video clip are fixed. From the frames other than the first and last frames, the frame with the highest importance score is selected as the key frame, until the number of selected key frames reaches the preset number of key frames.
3. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, Keyframe selection is trained as follows: a pseudo-score is constructed based on the average absolute pixel difference between two adjacent frames, where the pseudo-score of the middle frame is the sum of the differences between the two frames before and after it, and the pseudo-scores of the first and last frames are the differences between adjacent single frames plus one; the pseudo-score of each frame is divided by the maximum value within the video segment to obtain the normalized supervision target; the keyframe selection is trained using the mean square error between the predicted importance score and the normalized supervision target as the score loss.
4. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, The low-bit linear layer performs integer quantization of input activations, including: for each token, determining the activation quantization step size by the maximum absolute value of each input activation within the token, and rounding and truncating each input activation of the token to the range of INT8 according to the activation quantization step size. The low-bit linear layer performs binary or ternary quantization of the weights, including: determining the per-tensor weight scale by the average of the absolute values of each weight within the entire weight tensor; rounding each weight to -1, 0, and +1 according to the per-tensor weight scale during ternary quantization to obtain ternary weights; and subtracting the mean of the weight tensor from each weight during binary quantization and mapping it to +1 and -1 according to positive and negative to obtain binary weights.
5. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, The low-bit linear layer performs integer dot product or integer matrix multiplication on the quantized input activation and the quantized weights to obtain an integer accumulation result of INT32. The integer accumulation result is multiplied element-wise according to the activation quantization step size corresponding to the integer quantization of each token and the tensor weight scale corresponding to the binary or ternary quantization of each tensor, and an offset is added according to the output channel to obtain the floating-point output of the low-bit linear layer.
6. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, The quantization-aware training preserves the full-precision trainable weights and optimizer states in each low-bit linear layer of the LBViT-SE and the LBViT-SD. Forward propagation uses quantization to recover the scaled input activations and weights, and backpropagation passes the gradient to the full-precision trainable weights and updates the full-precision trainable weights through the pass-through estimator. Channel noise perturbations are applied to the semantic latent variables during training.
7. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, The interpolation based on relative time position, and the refinement of non-key frames through a residual interpolation network, includes: For a frame to be recovered located between two adjacent reconstruction keyframes, linear interpolation is performed according to the relative time position of the frame to be recovered between the two adjacent reconstruction keyframes to obtain a coarse reconstruction frame. The relative time position is expanded into a one-channel position map with the same spatial size as the reconstructed keyframe. The two adjacent reconstructed keyframes, their absolute difference maps and position maps are stitched together along the channel direction and input into the residual interpolation network to obtain the prediction residual map. The coarse reconstructed frame is added to the predicted residual map to obtain the reconstruction result of the refined frame to be recovered.
8. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, The step of converting the weights into a representation that matches the computation backend before deployment includes: generating discrete weights according to quantization rules before deployment, forming a compact weight layout with bit-packed data for the compact weight integer dot product backend, or forming an integer matrix layout with each weight occupying one byte for the INT8 matrix multiplication backend, and saving the weight scale and bias.
9. The cross-layer joint design method for efficient video semantic communication according to claim 1, characterized in that, During the execution of LBViT-SE and LBViT-SD, operator fusion and computation graph replay are performed, including: In the attention path, layer normalization and token-by-token integer quantization are fused together to directly output the quantized activation and its scale for use in query-key-value projection; In the feedforward path, after the fusion layer is normalized and the token-by-token integer quantization is performed, it enters the first low-bit linear layer, where the activation function is fused with the token-by-token integer quantization, and the integer input and its scale are directly provided to the second low-bit linear layer, and then the residuals are added. With the number of keyframes, image size, and batch size fixed, the computation graphs of the LBViT-SE and the LBViT-SD are preheated and captured respectively. The subsequent inputs are written into a fixed buffer and then the computation graphs are replayed. Dynamic index pairing and wireless transmission are not incorporated into the computation graphs.
10. A high-efficiency video semantic communication system, characterized in that, include: The keyframe selection module is used to select keyframes from the acquired video segments and record the keyframe indices; it selects multiple keyframes less than the total number of frames by using lightweight frame feature extraction, temporal modeling and importance scoring. The semantic encoding module is used to input only the selected keyframes into the low-bit visual Transformer semantic encoder LBViT-SE to generate semantic latent variables; The semantic transmission module is used to send semantic latent variables and keyframe indexes via a wireless link; The semantic decoding module is used to input the received semantic latent variables into the low-bit visual Transformer semantic decoder LBViT-SD to reconstruct keyframes; The video restoration module is used to pair adjacent reconstructed keyframes according to the keyframe index, interpolate them with relative time positions, refine non-keyframes through a residual interpolation network, and assemble the reconstructed video segments in the original time order. In both LBViT-SE and LBViT-SD, the linear projection uses a low-bit linear layer. The low-bit linear layer determines the activation quantization step size based on the maximum absolute value of the input activation and quantizes the input activation to a preset integer range. The low-bit linear layer determines the weight scale based on the average absolute value of the weights and performs binary or ternary quantization on the weights. LBViT-SE and LBViT-SD obtain parameters through quantization-aware training. Before deployment, the weights are converted into a representation that matches the computation backend. During execution, the corresponding computation backend is selected based on the actual matrix shape of the target GPU and the linear layer, and the integer accumulation results are scaled back and biased added.
