VideoQA-SC: Adaptive Semantic Communication for Video Question Answering
Abstract
Although semantic communication (SC) has shown its potential in efficiently transmitting multi-modal data such as text, speeches and images, SC for videos has focused primarily on pixel-level reconstruction. However, these SC systems may be suboptimal for downstream intelligent tasks. Moreover, SC systems without pixel-level video reconstruction present advantages by achieving higher bandwidth efficiency and real-time performance of various intelligent tasks. The difficulty in such system design lies in the extraction of task-related compact semantic representations and their accurate delivery over noisy channels. In this paper, we propose an end-to-end SC system for video question answering (VideoQA) tasks called VideoQA-SC. Our goal is to accomplish VideoQA tasks directly based on video semantics over noisy or fading wireless channels, bypassing the need for video reconstruction at the receiver. To this end, we develop a spatiotemporal semantic encoder for effective video semantic extraction, and a learning-based bandwidth-adaptive deep joint source-channel coding (DJSCC) scheme for efficient and robust video semantic transmission. Experiments demonstrate that VideoQA-SC outperforms traditional and advanced DJSCC-based SC systems that rely on video reconstruction at the receiver under a wide range of channel conditions and bandwidth constraints. In particular, when the signal-to-noise ratio is low, VideoQA-SC can improve the answer accuracy by 5.17% while saving almost 99.5% of the bandwidth at the same time, compared with the advanced DJSCC-based SC system. Our results show the great potential of task-oriented SC system design for video applications.
Keywords Semantic communication video question answering DJSCC bandwidth allocation multimodal task
With the development of artificial intelligence (AI) technology, many edge machines deploy AI models to process information for intelligent tasks[1, 2], which support AI-empowered applications such as remote healthcare, autonomous driving, and the Internet of Things (IoT). Semantic communication (SC) is an emerging paradigm which aims to extract task-relevant crucial information and accomplish accurate semantic delivery, ultimately completing the intelligent tasks[3]. Thanks to the effective semantic extraction by deep neural networks, SC can achieve higher data compression ratios and faster execution of intelligent tasks compared to the traditional communication. As a result, SC is widely used in many intelligent applications that require low latency and high accuracy under limited bandwidth resources, e.g., IoT networks[4, 5], intelligently connected vehicle networks[6, 7] and smart factories [8].
In a typical SC system, the transceiver is designed as a semantic codec (semantic encoder/decoder) represented by a neural network [9, 10, 11]. The semantic encoder at the transmitter needs to remove data redundancy and extract the compact semantic representation based on the structural characteristics of the source data. The semantic decoder at the receiver aims to process received semantic information to obtain results according to the specific intelligent task.
For different source data modalities (speeches, text, images, etc.), appropriate neural network architectures are essential for semantic codecs to achieve efficient SC. Long Short-Term Memorys and Transformers can be utilized to model the sequential information for text[12, 13], and convolutional neural networks can be utilized to extract local information for speeches[9, 14, 15] and images[16, 10, 17]. Furthermore, deep joint source-channel coding (DJSCC) can be integrated with SC for end-to-end (E2E) training to resist wireless noise while improving the overall performance of SC [16, 10, 17, 18].
Unlike SC for text or images, video-based SC presents greater challenges due to the extra temporal correlations presented in videos. Building on traditional video compression techniques, earlier studies [19, 11, 20, 21] break down video transmission into the sequential transmission of several frames using conditional coding. The current frame is modeled as the conditional distribution with respect to the adjacent reference frames. Then, frames are encoded and decoded sequentially based on the reference frames in actual transmission. Some studies [22, 23] segment frames into backgrounds and key points/segments for semantic extraction and transmission. However, these approaches lack spatiotemporal modeling of the whole video, leading to inefficient semantic extraction. Overall, current video-based SC research mainly focuses on video reconstruction, with few investigations and developments for other intelligent functionalities. Furthermore, research into multimodal video-based SC has yet to be extensively explored.
Video question answering (VideoQA), where machines automatically answer natural language questions with video contents, is an intelligent task in the popular visual-language understanding domain. Solving VideoQA tasks enables innovative applications in human-machine interactions such as virtual reality, smart cities, and the metaverse. The proliferation of multimedia applications and the extensive deployment of cameras have led to a significant presence of videos in machines, affecting both human-machine and machine-machine communications.
Compared with image-based visual question answering, VideoQA includes a broader range of question types. It involves not only recognition of visual objects, actions, and events, but also reasoning of spatiotemporal and causal relationships, making it more challenging [24]. The key of VideoQA is the understanding of video contents with questions, which drives extensive research on how to effectively handle videos and questions [25, 26, 27, 28, 29, 30]. Some works jointly extract frame features and motion features to get effective video representations [25, 26, 27]. The generic backbone like Vision Transformers are used to obtain general video representations in [28, 29]. Moreover, innovative loss and training methods are developed to align video and question features for multimodal fusion [26, 28, 29, 30]. However, the video features extracted by traditional VideoQA methods are usually of high dimensions, which may not meet bandwidth constraints in wireless networks. Channel fading and noise also affect the accurate transmission of video features, resulting in degradation of VideoQA performance.
Typically, the development of SC systems for VideoQA tasks encounters two key challenges:
-
1.
How to model the spatiotemporal correlations of videos to achieve efficient semantic extraction?
-
2.
How to mitigate the effects of wireless channel degradation and meet bandwidth limitations while maintaining effective VideoQA performance?
In this paper, we investigate an E2E multimodal SC system named VideoQA-SC for VideoQA tasks. The proposed VideoQA-SC mainly incorporates two customized modules to address the above challenges: a spatiotemporal video semantic encoder and a learning-based bandwidth-adaptive joint source-channel (JSC) encoder/decoder. Experimental results demonstrate that the proposed VideoQA-SC achieves noise robustness and bandwidth efficiency.
The main contributions of this paper are summarized as follows:
-
1.
An E2E SC System for VideoQA Tasks: We propose an E2E multimodal SC system called VideoQA-SC for VideoQA tasks. VideoQA-SC exploits the efficient video semantic extraction and the bandwidth-adaptive DJSCC transmission to fully leverage video information, which is noise robustness and bandwidth efficiency with promising task performance.
-
2.
Spatiotemporal Semantic Encoder: We propose a spatiotemporal semantic encoder to extract compact and comprehensive video semantics for transmission. Transformer and the graph neural network are utilized to model the temporal and spatial correlations of videos, which is beneficial for understanding video contents.
-
3.
Cross-Attention Based JSC Encoder/Decoder: We propose a dual-branch cross-attention Transformer structure as both the JSC encoder and decoder with the learnable rate embedding shared between the transmitter and receiver. The structure allows for progressive refinement of the semantics at both the transmitter and receiver by the cross-attention architecture.
-
4.
Learning-Based Adaptive Bandwidth Allocation: We develop a series of learning-based rate predictors to allocate bandwidth to video semantics for transmission. The rate predictors can learn the importance of different tokens in semantics, improving the bandwidth efficiency of SC systems. Moreover, the rate predictors allow other useful information, e.g., channel state information, to serve as additional guidance of bandwidth allocation, demonstrating good scalability for learning-based bandwidth allocation methods.
-
5.
Experimental Analysis: We verify the performance of VideoQA-SC on the TGIF-QA[31] dataset. Experiments demonstrate that VideoQA-SC outperforms traditional communication systems and other DJSCC-based SC systems under a wide range of channel conditions and bandwidth constraints. In particular, VideoQA-SC improves VideoQA accuracy while achieving nearly bandwidth savings compared with the DJSCC-based SC system over the additive Gaussian white noise (AWGN) channel at dB signal-to-noise ratio (SNR).
![Refer to caption](x1.png)
The rest of this paper is organized as follows. The system model and the process for performing VideoQA tasks are introduced in Section 1. We explain our proposed methods and the detailed network architectures in Section 2. Section 3 provides the quantified experimental results and the comparison with existing advanced methods. Finally, Section 4 summarizes this paper and gives conclusions.
Notations: In this paper, lowercase letters, e.g., , denote scalars. Bold lowercase letters, e.g., , denote vectors and bold uppercase letters, e.g., , denote matrices or tensors. denotes the identity matrix. and denote the complex Gaussian distribution and the standard Gaussian distribution with mean and covariance , respectively. denotes the logarithm to base and denotes the natural logarithm. denotes the transpose and denotes the conjugate transpose. and denote the real set and the complex set, respectively. denotes the statistical expectation operation. denotes the uniform distribution with start and end .
1 System Model
In this section, we introduce the VideoQA-SC workflow to perform VideoQA tasks and establish an optimization model for the entire system with bandwidth constraints.
Fig. 1 shows an application scenario for VideoQA-SC. There are many terminal devices simultaneously requesting access to the same surveillance videos with different questions. The transmitter, e.g., edge server, extracts video semantics containing comprehensive video contents and sends them to all terminal devices. Then, each terminal device independently completes VideoQA to predict its own answer.
Our work focuses on the multi-choice VideoQA tasks. Given the video with frames and the question with tokens, VideoQA aims to predict an answer by exploiting both video and text information:
(1) |
where is the predicted answer chosen from the candidate answers, i.e., multiple choices or a predefined global answer set, denoted as , and is the VideoQA model with the learnable vector .
![Refer to caption](x2.png)
As illustrated in Fig. 2, the whole process of VideoQA-SC mainly includes 3 parts:
1.1 Transmitter
The transmitter first extracts the low-dimensional semantics from the input video using the spatiotemporal semantic encoder with the learnable parameter vector . Then, the JSC encoder with rate predictors processes into , part of whose channels are masked as zero. and are the learnable parameter vectors of the JSC encoder and rate predictors, respectively. Non-zero channels of are flattened into continuous-valued real symbols. Finally, complex channel input symbols are obtained by converting each two real symbols into one complex symbol. The process of at the transmitter can be expressed as:
(2) |
where and are the real-to-complex and flattening operations, respectively. is imposed to satisfy the average power constraint at the transmitter.
Here, we define as the bandwidth compression ratio (BCR), which represents the average length of channel input symbols encoded for each source symbol.
1.2 Channel
The encoded channel input symbols are transmitted over the noisy wireless channel. For the AWGN channel, the received symbols can be expressed as:
(3) |
where consists of independent and identically distributed (i.i.d.) samples that follow . denotes the average noise power. For block fading channels, an additional channel gain is introduced for each :
(4) |
1.3 Receiver
The received complex channel output symbols are first converted to real symbols, which are further unflattened and padded with zeros to form . The receiver then decodes the video semantics from by the JSC decoder with the learnable parameter vector . Subsequently, the receiver utilizes the multimodal fuser with the learnable parameter vector to interact with video and text information and predicts the corresponding answer to the question . The process of answer prediction at the receiver can be expressed as:
(5) |
where , and denote zero-padding, unflattening and complex-to-real operations, respectively.
The goal of VideoQA-SC is to maximize the average accuracy of VideoQA on testing data for a given bandwidth by optimizing all learnable parameter vectors , , , and , which can be formulated as:
(6) |
where is an indicator function (1 only if and 0 otherwise).
![Refer to caption](x3.png)
2 The Proposed Method
In this section, we describe in detail the proposed VideoQA-SC system, including the spatiotemporal semantic encoder, cross-attention based JSC encoder/decoder and learning-based adaptive bandwidth allocation. Then, we introduce the training strategy of VideoQA-SC.
2.1 Spatiotemporal Semantic Encoder
We develop a spatiotemporal semantic encoder to extract the video semantics by modeling the spatial and temporal correlations of the video. The purpose of is to extract the coarse-grained semantics that is beneficial to fully understand the video content. In this way, although there may be multiple receivers with different inquiries, they are able to discern the video content pertinent to their specific questions through the processed video semantics, enabling them to perform their own analysis without video recovery.
Given that consecutive frames in a video typically have identical backgrounds, substantial spatial and temporal redundancies exist, necessitating removal to enhance semantic extraction. Inspired by VideoQA works that extracted frame features and motion features to get video representations [25, 26, 27], the proposed spatiotemporal semantic encoder operates mainly on object-level and frame-level features to capture the changes of visual objects while removing redundancy, thereby extracting compact and comprehensive semantic representations.
To reduce the use of computational and transmission resources, we initially apply uniform interval sparse sampling across each video, choosing frames to form the keyframes that make up . The keyframes are divided into clips, each with a length of frames. For simplicity, we assume that each clip operates independently, and is designed to only capture the correlations within the frames of a single clip and produce semantics for the clip.
The process of temporal and spatial modeling is illustrated in Fig. 3. For the -th clip , represents the -th frame in the clip. We first use a pre-trained object detector and ResNet to process all , obtaining the object-level feature and frame-level feature , respectively. Let be the number of detected objects in and be the channel dimension of both the object-level features and the frame-level features. We concatenate all and to get the -th clip object-level feature and the -th clip frame-level feature , respectively.
Then, each is fed into stacked Transformer blocks to facilitate the interaction of the same object features in different frames in the -th clip. Here, the number of frames in the clip corresponds to the sequence length in the original Transformer. By using self-attention mechanism, we can obtain an aggregated representation of each object within one clip to learn the object-level temporal correlations. The aggregation can be expressed as:
(7) |
where is the attention score of aggregated to .
Subsequently, following the work [27], we construct a graph for every , where each object in is a node in . Based on the constructed graph, we perform graph convolution operations on every , exploiting the structural information between different objects in one frame to utilize spatial interaction. Finally, after average pooling along the object dimension, the processed object-level feature is concatenated with the frame-level feature . The concatenated feature is fed into a linear layer to map to the video semantics . All clip-level representations are concatenated to obtain the entire video semantics .
![Refer to caption](x4.png)
2.2 Cross-Attention Based DJSCC Transmission
We apply DJSCC technology to VideoQA-SC and design a symmetric JSC encoder/decoder to overcome wireless channel degradation, enabling accurate transmission of video semantics . The learnable embedding shared between the transmitter and receiver is developed, which progressively refines in the form of cross-attention during the JSC encoding and decoding processes.
We use Transformer to construct the backbone of both the JSC encoder and decoder. In the Transformer architecture, the self-attention mechanism utilizes the learnable matrix to generate the query (), key (), and value () representations from embeddings. This process enables weighted information aggregation, effectively capturing dependencies between different embeddings in the sequence. In DJSCC, code rate guidance allows the refinement of the latent representations, thereby generating channel input symbols adapted to bandwidth constraints, which motivates us to provide code rate guidance to the encoding and decoding processes of video semantics.
Different from directly using the human-defined code rate, we design the code rate as learnable parameters and interact with the video semantics in the form of cross attention. Specifically, we introduce a learnable parameter tensor, with the same shape as , termed rate embedding , in the JSC encoder and the JSC decoder . The encoding and decoding processes of are both guided by shared between the transmitter and receiver. Furthermore, can aid the JSC encoder in achieving variable-length coding of , which will be explained in detail in Section 2.3.
Since the JSC encoder and decoder have similar network structures, we take the process of the JSC encoder as an example to describe the interaction between and . As illustrated in Fig. 4, the proposed cross-attention Transformer block consists of two symmetric branches (rate branch and feature branch) to process and , respectively. Each branch is a standard Transformer block in Vision Transformer.
Starting from the projection of two embeddings, is transformed into , and by , and is transformed into , and by . The proposed cross-attention mechanism utilizes the scaled dot-product of and to generate attention for the rate branch and the scaled dot-product of and to generate attention for the feature branch. The implementation of cross-attention for to and to can be formulated as:
(8) |
and
(9) |
respectively.
Then, the process of the entire Transformer block for the rate branch and the feature branch can be formulated as:
(10) |
and
(11) |
respectively. In Eq. (10) and (11), and denote the inputs of the -th Transformer block of the two branches, and and denote the outputs of the -th Transformer blocks of the two branches. represents function with multi-head. represents the layer normalization in the Transformer. represents two linear layers with as the activation function.
The proposed symmetric dual-branch cross-attention Transformer block allows two types of embedding ( and ) to interact information in the form of cross-attention, thereby promoting information flow across both branches. As is updated to , is also updated to , which provides dynamic rate guidance to scale each feature in in the next Transformer block. During the interaction of the two branches, and refine each other iteratively and finally contribute to the generation of real symbols .
After flattening and the real-to-complex operation, the channel input symbols are transmitted through the noisy channel. The JSC decoder has the same structure as the JSC encoder, consisting of stacked dual-branch cross-attention Transformer blocks. The JSC decoder exploits the same rate embedding and progressively decodes the video semantics based on the noisy channel output symbols at the receiver.
2.3 Learning-Based Adaptive Bandwidth Allocation
We propose a learning-based adaptive bandwidth allocation approach to generate channel input symbols of variable lengths, further improving the bandwidth efficiency of VideoQA-SC.
For the full use of limited bandwidth resources, flexible bandwidth allocation is required, e.g., more bandwidth for important information and less bandwidth for less important information. Statistical-based methods and learning-based methods can both be employed to measure the importance of features. Statistical-based methods, such as the feature entropy estimation [11], explicitly model the importance of features based on their entropy. Learning-based methods, e.g., distinguishing informative features and uninformative features with scaling factors in Batch Normalization layers [32], implicitly model the importance of features.
![Refer to caption](x5.png)
According to the cross-attention mechanism, described in Section Section 2.2 can be seen as the score metric that dynamically scales elements of , causing us to measure the importance of features based on . Our learning-based adaptive bandwidth allocation approach exploits as guidance, which sparsifies the channels of each token output by the JSC encoder to generate channel input symbols of variable lengths. Specifically, given the output of the last dual-branch Transformer block and , we develop a series of rate predictors parameterized by to predict the retained dimension for each token by . Then, a binary mask matrix is generated for channel masking, with the -th row containing the first ones followed by zeros (). is used to retain the first channels of and mask the rest channels:
(12) |
where is Hadamard product.
To facilitate the learning of bandwidth allocation by neural networks, we set up fixed candidate bandwidth for each token. In other words, for each , is selected from these fixed values (). Therefore, the channel sparsification problem can be seen as a classification problem in selecting the most suitable category from categories for each token . However, the output of the rate predictors is the probability of categories, which need to sample a specific “class” for each token. In E2E training, this sampling operation is non-differentiable, making it impossible to update the parameters of rate predictors through gradient descent. To overcome the problem, we employ the classical Gumbel-Softmax [33] trick to implement differentiable sampling operations. Next, we will elaborate on the process of channel masking.
As illustrated in Fig. 5, after every cross-attention Transformer block, a rate predictor is introduced to give a rate prediction for the current feature . Consider that we have cross-attention Transformer blocks and rate predictors. The -th () rate predictor takes the current rate embedding as input. First, the -th rate predictor projects using a linear layer to model its local information:
(13) |
where denotes the linear layer with activation function. We apply average pooling to along the token dimension to obtain the global information:
(14) |
where denotes the average pooling operation. After that, the rate predictor combines the local and global information along the channel dimension:
(15) |
where denotes the concatenation along the channel dimension. Then, are fed into multilayer perceptron (MLP) with softmax to get the -th decision score :
(16) |
where is MLP with stacked linear layers with activation function. denotes the softmax operation.
For the last rate predictor, all previous () are used as additional inputs to help this rate predictor make the final decision . The final prediction process can be formulated as:
(17) |
where is the function that aggregates the previous decision. can be attention-based aggregation or other aggregation methods. For simplicity, We utilize the average operation to implement :
(18) |
Here, represents the probability that each is classified into different fixed bandwidths. Then, we need to introduce the Gumbel-Softmax trick to solve the non-differentiable sampling problem, which is often used in network pruning.
Given the -dimensional token (), we want to draw the sample representing the chosen bandwidth from a categorical distribution with the class probability . First, the Gumbel-Max trick formulates the sampling process as:
(19) |
where all elements of follow the Gumbel distribution and is the one-hot encoding function. can be computed by:
(20) |
where consists i.i.d. samples drawn from . Then, the softmax function with temperature coefficient is used as a continuous, differentiable approximation to , obtaining the soft version of :
(21) |
Through the Gumbel-Softmax trick, we involve in the forward propagation of the network, however, during backpropagation, we update the parameters by computing the gradient of . As the temperature coefficient decreases, the soft version becomes closer to the hard version , which gradually aligns the forward and backward propagation processes of the network. However, small can lead to instability of training. Therefore, we choose a large temperature coefficient at the beginning and gradually decay it during the training process. We use to select the corresponding bandwidth for each token , indicating the number of retained channels. Note that for every , a corresponding need to be transmitted through the lossless link to indicate the number of retained channels for each token at the receiver. is generated by masking part of channels in as zero according to .
At the receiver, we first generate based on received . Then, we unflatten and zero-pad noisy real channel output symbols based on to get . The learnable vector is developed to compensate for the information lost due to the channel masking operation. For each token , if its -th channel is masked, is selected as the initial value for this channel:
(22) |
where denotes the matrix whose all elements are set to . Then, and are inputted to the JSC decoder to decode the video semantics progressively.
2.4 Content-Adaptive and SNR-Adaptive
The bandwidth allocation method described in Section 2.3 can achieve bandwidth efficiency for VideoQA-SC. The decision is only determined by a series versions of (,,…,) and a series versions of (,,…,), which indicates that the bandwidth allocation is adaptive to video semantics or video contents. Such rate predictors will make the same bandwidth allocation under different channel conditions, which is inconsistent with traditional channel coding ideas. Since content-adaptive bandwidth allocation is not robust to noise, it is difficult to support SC under diverse channel conditions.
Assume that the transmitter can obtain the perfect SNR via ideal channel estimation. By introducing channel SNR, the rate predictors can integrate video content with the current channel condition for more reasonable bandwidth allocation not only adaptive to video contents but also to SNR. Specifically, we take SNR as the additional input of all rate predictors to make decisions adapt to the current channel condition at each layer of the JSC encoder.
For SNR-adaptive bandwidth allocation, is computed by:
(23) |
and is computed by:
(24) |
In this way, as SNR is repeatedly used in rate predictors, the network is forced to learn dynamic bandwidth allocation strategies based on channel conditions, which enables VideoQA-SC robust to noise.
2.5 Multimodal Fuser
The multimodal fuser is used to interact the video and text information, and find the informative video contents with respect to the question for answer prediction.
Consider the process of a particular question-answer (QA) pair, such as the question and the candidate answers , and . The text information can be organized as a tuple including three sequences , which means each candidate answer is paired with the question to form a language sequence. is a special sign used to separate the text of the question and the answer. Then, each sequence is transformed into tokens by the tokenizer. We use a language model to capture the correlations between each token in one sequence and extract the candidate QA-pair feature from , where is the number of candidate answers and is the length of -th sequence.
Given and , the interaction of the two modal information can be achieved through attention-based weighted fusion. After linear projection, is mapped to as query and is mapped to as key. Then, we caculate the attention of to each candidate QA pair feature , and utilize attention-based fusion of and to get the QA-aware video feature , which can be formulated as:
(25) |
We add some Transformer block to refine the QA-aware feature and average pool it along the token dimension to get the global QA-aware video feature . Similarly, the candidate QA-pair feature is average pooled along the sequence length dimension to get the global text feature . We simply utilize the dot product with softmax to obtain the answer score by measuring the similarity between and :
(26) |
Finally, the answer with the highest prediction score is output as the predicted answer by the multimodal fuser :
(27) |
where is the -th element of .
2.6 Training Strategy
VideoQA-SC can be considered as a combination of the VideoQA model (, ) and the DJSCC transmission model (, ), where the VideoQA model is responsible for accurate execution of VideoQA tasks and the DJSCC model is responsible for reliable and efficient transmission of video semantics. Instead of E2E training the whole system from scratch, we adopt a progressive training strategy to ensure the stability of training process. The progressive training strategy mainly includes 4 stages:
2.6.1 VideoQA Model Training
Train the VideoQA model and without considering the noisy channel. The video semantics extracted by the video semantic encoder are losslessly inputted into multimodal fuser to predict the answer. The cross-entropy between the prediction of the VideoQA model and the one-hot form label is used as the task loss in this stage:
(28) |
where is the cross-entropy loss.
2.6.2 Fixed-Bandwidth DJSCC Transmission Training
Train the fixed-bandwidth DJSCC transmission model ( and ) without rate predictors parameters while freezing VideoQA model parameters and . Taking the noisy channel into account, the training objective of the fixed-bandwidth DJSCC transmission model is to maximize the task performance. This stage has the same loss as .
(29) |
2.6.3 Bandwidth-Adaptive DJSCC Transmission Training
Train the bandwidth-adaptive DJSCC transmission model ( and ) with parameters of rate predictors . The training objective of this stage can be formulated as the trade-off between the task performance and the bandwidth cost. Therefore, the bandwidth cost loss with the hyperparameter is introduced in this stage:
(30) |
where denotes the -th row and -th column element in the binary mask matrix , and controls the trade-off between the task performance and the bandwidth cost.
2.6.4 E2E Finetuning
Unfreezing VideoQA model parameters and . Jointly finetuning all system parameters , , , and to improve the E2E system performance. This stage has the same loss as :
(31) |
Algorithm 1 demonstrates the forward process of VideoQA-SC over the AWGN channel. Furthermore, taking SNR information into bandwidth allocation, the training process for SNR-adaptive VideoQA-SC is shown in Algorithm 2.
3 Experiments
In this section, we introduce the experimental setup and provide quantified experimental results to demonstrate the effectiveness of VideoQA-SC for performing VideoQA tasks. We compare VideoQA-SC with SC systems adopted traditional SSCC and advanced DJSCC transmission schemes under various channel conditions and bandwidth constraints.
3.1 Experimental Setup
3.1.1 Datasets
We choose the TGIF-QA dataset as the benchmark to conduct our experiments. As one of the popular datasets for VideoQA, TGIF-QA dataset consists of QA pairs chosen from animated GIFs. To evaluate the spatiotemporal reasoning ability at the video level, TGIF-QA dataset designs four unique task types, i.e., repetition count, repeating action, state transition and frame QA.
We select repeating action and state transition for experiments, which are the two most challenging tasks in the TGIF-QA dataset. The two tasks are defined as multiple choice questions. Each question has candidate answers. The questions for repeating action involves identifying the repeated action in a video. The questions for state transition involves identifying the state before or after a particular state, including facial expressions, actions, places and object properties. For convenience, we refer to the repeating action task and state transition in the TGIF-QA dataset as the TGIF-QA Action dataset and TGIF-QA Transition dataset, respectively.
To overcome serious language bias in the original TGIF-QA dataset, we use questions and answers from an enhanced version of TGIF-QA, i.e., TGIF-QA-R [34] to force reasoning based on both text and video content. TGIF-QA-R has QA pairs and QA pairs as training and testing datasets for repeating action task, respectively. It has QA pairs and QA pairs as training and testing datasets for state transition task, respectively.
3.1.2 Implementation Details
In our experiments, , , are set to , , for sparse sampling. and are set to and for spatiotemporal semantic encoder. is set to for DJSCC transmission, which also represents the maximum bandwidth that can be allocated for each token. Both the JSC encoder and the JSC decoder consist of Transformer blocks for JSC encoding/decoding. There are also rate predictors for bandwidth allocation during JSC encoding. is set to for adaptive bandwidth allocation, which denotes the set of candidate retained channels for each token is . Each question has candidate answers to form QA pairs.
In progressive training of VideoQA-SC, the training epochs for stage 1, stage 2, stage 3 and stage 4 are , , and , respectively. The learning rates for stage 1, stage 2, stage 3 and stage 4 are , , and , respectively. The Gumbel-Softmax trick is enabled in the training stage 3 and stage 4 for differentiable sampling. For stable training, we set the temperature coefficient at the beginning and decay it by a factor of after each epoch in stage 3. Similarly, we set initially and decay it by a factor of after each epoch in stage 4. We train models that satisfy different bandwidth constraints by tuning the hyperparameter .
3.1.3 Comparison Schemes
We compare the VideoQA-SC with traditional SSCC-based SC systems and DJSCC-based SC systems that perform VideoQA based on reconstructed videos. Specifically, we use SSCC and DJSCC schemes to transmit videos over the noisy wireless channel, and use the same optimized VideoQA model( and ) to perform VideoQA tasks.
For SSCC-based SC systems, we adopt the traditional video codecs () for source coding and assume that the channel capacity is achievable to obtain the upper bound of performance. The SSCC comparison schemes consist of “" and “", which denotes the combination of or and the optimal channel coding achieving channel capacity. FFmpeg is adpoted to simulate the video coding process of and .
For DJSCC-based SC systems, we adopt the advanced DJSCC-based video transmission model DVST[11] to transmit videos. Since DVST only focuses on the coding of P-frames, DJSCC-based image compression neural networks are required to encode I-frames. For a simple and fair comparison, we assume that I-frames can be transmitted losslessly and DVST is used to encode P-frames based on lossless I-frames. We only consider the average bandwidth of P-frames. Then, the performance upper bound of the DJSCC-based SC system is obtained through the optimal video reconstruction with the minimum bandwidth.
3.2 Ablation Study
![Refer to caption](x6.png)
![Refer to caption](x7.png)
![Refer to caption](x8.png)
![Refer to caption](x9.png)
VideoQA-SC enables dynamic bandwidth allocation under the guidance of multiple information to fully leverage limited bandwidth resources. We perform ablation experiments based on two bandwidth-adaptive methods (content-adaptive and SNR-adaptive bandwidth allocation) to verify their effectiveness.
We train and test our models over AWGN channels under fixed SNRs and mixed SNRs to validate the effectiveness of the two bandwidth-adaptive methods, respectively. The mixed training SNR range is from to dB. Fig. 6LABEL:sub@Fig:A_cbr and LABEL:sub@Fig:T_cbr show the accuracy of different versions of VideoQA-SC constrained by various BCRs under SNRs (, , dB). For each particular SNR, a content-adaptive VideoQA-SC is compared with a base VideoQA-SC which does not utilize rate predictors for bandwidth allocation.
It can be observed that under different BCR constraints, the accuracy of content-adaptive VideoQA-SC is consistently higher than that of the base VideoQA-SC. As the BCR decreases, the accuracy gain of content-adaptive VideoQA-SC gradually increases. It indicates that when the available bandwidth is extremely constrained, the content-adaptive bandwidth allocation can effectively utilize limited bandwidth resources to improve the overall performance of VideoQA tasks. Moreover, content-adaptive bandwidth allocation does not consider channel conditions, which allocates bandwidth to different tokens only based on video semantics. In scenarios with high SNRs, e.g., dB, the accuracy gains from content-adaptive bandwidth allocation become more pronounced because video semantics can be transmitted more accurately with less channel noise. In particular, when the SNR is dB and the BCR is constrained to (the average retained channels for each token is ), the accuracy gain is about for the content-adaptive VideoQA-SC in the TGIF-QA-R Action dataset.
By incorporating the estimated SNR into the rate predictors, VideoQA-SC can jointly consider video semantics and current channel conditions to make decisions, which is called SNR-adaptive bandwidth allocation. Fig. 7LABEL:sub@Fig:A_snr and LABEL:sub@Fig:T_snr illustrate the different bandwidth allocations of SNR-adaptive VideoQA-SC under various SNRs. For readability, The average BCR for each point in lines representing SNR-adaptive VideoQA-SCs is normalized by and marked near this point.
By observing lines representing SNR-adaptive VideoQA-SCs, a basic trend can be seen that as the SNR decreases, the SNR-adaptive VideoQA-SC tends to allocate more bandwidth for transmitting videos to resist stronger channel noise. Furthermore, two fixed-bandwidth base VideoQA-SCs are used for comparison with SNR-adaptive VideoQA-SCs with different trade-off parameter . We train the two fixed-bandwidth VideoQA-SCs based on the highest and lowest allocated bandwidths of the SNR-adaptive VideoQA-SCs under different SNRs. As SNR decreases from dB to dB, the base VideoQA-SCs experience rapid performance degradation due to the fixed bandwidth allocation. In contrast, the SNR-adaptive VideoQA-SC is able to adaptively adjust the bandwidth allocation policy according to the current SNR, thereby achieving smooth performance degradation. Particularly, when the SNR is dB, the SNR-adaptive VideoQA-SC achieves an accuracy gain up to compared with the base VideoQA-SC in the TGIF-QA-R Action dataset.
Another observation is that the SNR-adaptive VideoQA-SC not only dynamically adjusts the bandwidth allocation according to the SNR, but also outperforms the base VideoQA-SC with the same bandwidth in most cases. Fig. 7LABEL:sub@Fig:T_snr shows that SNR-adaptive VideoQA-SC outperforms even the base Video-SC with the highest fixed bandwidth under all SNRs in the TGIF-QA-R Transition dataset. This suggests that SNR-adaptive VideoQA-SC is still capable of accomplishing content-adaptive bandwidth allocation based on video semantics, which shows the powerful scalability of the proposed learning-based bandwidth allocation. By integrating SNR with video semantics for bandwidth allocation, SNR-adaptive VideoQA-SC achieves promising task performance while avoiding the need to train multiple models for specific channel conditions and the frequent model switching during practical application.
3.3 Performance comparison of different SC models
As depicted in Fig. 8 and 9, the proposed VideoQA-SC is compared with SSCC-based and DJSCC-based SC systems over the AWGN channel under different BCR constraints and SNRs. We use the optimized VideoQA model ( and ) with lossless video and text to execute VideoQA tasks as the upper bound performance of the VideoQA-SC. The lower bound performance of the VideoQA-SC is obtained by performing VideoQA tasks with only text information. For fair comparison, the same VideoQA model optimized in training stage 1 is adopted in all comparison SC schemes. Content-adaptive and SNR-adaptive VideoQA-SCs are trained and tested under fixed SNRs and mixed SNRs, respectively.
![Refer to caption](x10.png)
![Refer to caption](x11.png)
![Refer to caption](x12.png)
![Refer to caption](x13.png)
![Refer to caption](x14.png)
![Refer to caption](x15.png)
![Refer to caption](x16.png)
By comparing Fig. 8LABEL:sub@Fig:A_0dB, LABEL:sub@Fig:A_5dB and LABEL:sub@Fig:A_10dB or Fig. 9LABEL:sub@Fig:T_0dB, LABEL:sub@Fig:T_5dB and LABEL:sub@Fig:T_10dB, it can be found that the proposed VideoQA-SC outperforms other SC schemes especially in low SNRs ( dB). Since comparison SC systems need to restore the original video at the pixel level, they all have a turning point with the necessary transmission bandwidth and the corresponding minimum BCR . When the BCR constraint , comparison SC systems lack the necessary information to reconstruct the original videos, which leads to a rapid deterioration of VideoQA performance. As the SNR decreases, gradually increases, which indicates that more bandwidths are required to guarantee the basic performance of SC systems when the channel conditions are worse. The DJSCC-based video transmission model DVST also employs a bandwidth-adaptive approach and achieves excellent video reconstruction performance, e.g., peak signal-to-noise ratio with the same bandwidth. However, there are slight bandwidth savings for DJSCC-based SC systems compared with SSCC-based SC systems for VideoQA tasks. It indicates that the adopted entropy-based bandwidth allocation limited to pixel-level video reconstruction is not effective for SC systems oriented to a particular intelligent task. Besides, although DJSCC-based SC systems can avoid the cliff effect and are robust to channel noise, they still face the risk of system collapse when cannot be satisfied.
Different from comparison schemes at pixel-level, the proposed VideoQA-SC extracts and processes video semantics at the object and frame levels, and directly performs VideoQA tasks based on the reconstructed video semantics at the receiver, which results in significant bandwidth savings with guaranteed VideoQA performance. In this way, the minimum BCR of VideoQA-SC can be very low, which ensures the basic performance of VideoQA-SC under a wide range of BCR constraints. It can be seen that both types of VideoQA-SC achieve accuracy of over and under all testing SNR and BCR constraints in the TGIF-QA-R Action and Transition dataset, respectively. Benefiting from E2E joint training and SNR-adaptive bandwidth allocation, the proposed VideoQA-SC demonstrates robustness to noisy wireless channels while approaching the upper bound performance. In Fig. 8LABEL:sub@Fig:A_0dB, the accuracy of SNR-adaptive VideoQA-SC exceeds that of the DJSCC-based SC system by with almost of its bandwidth.
We further show the performance of VideoQA-SC over Rayleigh block fading channels with different fading parameters . For each , a corresponding is sampled from the Rayleigh distribution . We adjust the signal power so that the ratio of it to the simulated average noise power is . Then, the statistical SNR and the current SNR are fed into rate predictors to improve the robustness of SNR-adaptive VideoQA-SC to Rayleigh block fading channels. Fig. 10 shows that VideoQA-SC is able to achieve slow and smooth degradation of VideoQA performance with the increasing fading, however, DJSCC-based SC fails to resist noise in Rayleigh block fading channels.
Fig. 11 provides a visual example to show the robustness of VideoQA-SC to the AWGN channel. DVST is adopted as the comparison scheme for video transmission. In this case, every frames are combined into one clip for semantic extraction and video coding. The first frame is used as I-frame to give the reference of the coding of P-frames for DVST.
When the channel SNR is dB, both VideoQA-SC and DVST successfully transmit the video and help to predict the correct answer. As the SNR drops to dB, DVST makes the same bandwidth allocation decision as when the SNR is dB, failing to predict the correct answer. In contrast, due to the utilization of estimated SNR as a prior to aid bandwidth allocation, VideoQA-SC is able to dynamically adjust the number of transmission symbols allocated to each frame, ultimately overcoming the channel noise and predicting the correct answer. Although VideoQA-SC allocates more average transmission symbols for each frame under a low SNR, it is still much lower than the number of transmission symbols allocated by DVST.
![Refer to caption](x17.png)
4 Conclusion
In this paper, we have proposed an E2E multimodal SC system, VideoQA-SC, to perform VideoQA tasks in wireless networks without relying on the reconstructed original source. Taking advantage of the efficient video semantic extraction and the learning-based bandwidth-adaptive DJSCC transmission, VideoQA-SC is able to fully leverage video semantic information to improve system performance for VideoQA tasks with high bandwidth-efficiency and noise-robustness. VideoQA-SC is trained in an E2E manner with the goal of maximize the VideoQA performance under bandwidth constraints. Experiments show that the proposed VideoQA-SC outperforms traditional SSCC-based and advanced DJSCC-based SC systems under a wide range of channel conditions and bandwidth constraints. In particular, VideoQA-SC improves VideoQA accuracy while achieves nearly bandwidth savings compared with the DJSCC-based SC system over AWGN channel when SNR is dB, which demonstrates the great potential of task-oriented SC system design for video applications.
References
- [1] Jiawei Shao, Yuyi Mao, and Jun Zhang. Task-Oriented Communication for Multidevice Cooperative Edge Inference. IEEE Transactions on Wireless Communications, 22(1):73–87, 2023.
- [2] Mikolaj Jankowski, Deniz Gündüz, and Krystian Mikolajczyk. Wireless Image Retrieval at the Edge. IEEE Journal on Selected Areas in Communications, 39(1):89–100, 2021.
- [3] Xuewen Luo, Hsiao-Hwa Chen, and Qing Guo. Semantic Communications: Overview, Open Issues, and Future Research Directions. IEEE Wireless Communications, 29(1):210–219, 2022.
- [4] Hongyang Du, Jiacheng Wang, Dusit Niyato, Jiawen Kang, Zehui Xiong, Mohsen Guizani, and Dong In Kim. Rethinking Wireless Communication Security in Semantic Internet of Things. IEEE Wireless Communications, 30(3):36–43, 2023.
- [5] Zi Qin Liew, Yanyu Cheng, Wei Yang Bryan Lim, Dusit Niyato, Chunyan Miao, and Sumei Sun. Economics of Semantic Communication System in Wireless Powered Internet of Things. In ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8637–8641, 2022.
- [6] Jiawei Su, Zhixin Liu, Yuan-ai Xie, Kai Ma, Hongyang Du, Jiawen Kang, and Dusit Niyato. Semantic Communication-Based Dynamic Resource Allocation in D2D Vehicular Networks. IEEE Transactions on Vehicular Technology, 72(8):10784–10796, 2023.
- [7] Le Xia, Yao Sun, Dusit Niyato, Daquan Feng, Lei Feng, and Muhammad Ali Imran. xURLLC-Aware Service Provisioning in Vehicular Networks: A Semantic Communication Perspective. IEEE Transactions on Wireless Communications, pages 1–1, 2023.
- [8] Marios Kountouris and Nikolaos Pappas. Semantics-Empowered Communication for Networked Intelligent Systems. IEEE Communications Magazine, 59(6):96–102, 2021.
- [9] Zhenzi Weng and Zhi** Qin. Semantic Communication Systems for Speech Transmission. IEEE Journal on Selected Areas in Communications, 39(8):2434–2444, 2021.
- [10] **cheng Dai, Sixian Wang, Kailin Tan, Zhongwei Si, Xiaoqi Qin, Kai Niu, and ** Zhang. Nonlinear Transform Source-Channel Coding for Semantic Communications. IEEE Journal on Selected Areas in Communications, 40(8):2300–2316, 2022.
- [11] Sixian Wang, **cheng Dai, Zijian Liang, Kai Niu, Zhongwei Si, Chao Dong, Xiaoqi Qin, and ** Zhang. Wireless Deep Video Semantic Transmission. IEEE Journal on Selected Areas in Communications, 41(1):214–229, 2023.
- [12] Xiang Peng, Zhi** Qin, Danlan Huang, Xiaoming Tao, Jianhua Lu, Guangyi Liu, and Chengkang Pan. A Robust Deep Learning Enabled Semantic Communication System for Text. In GLOBECOM 2022 - 2022 IEEE Global Communications Conference, pages 2704–2709, 2022.
- [13] Shengshi Yao, Kai Niu, Sixian Wang, and **cheng Dai. Semantic Coding for Text Transmission: An Iterative Design. IEEE Transactions on Cognitive Communications and Networking, 8(4):1594–1603, 2022.
- [14] Tianxiao Han, Qianqian Yang, Zhiguo Shi, Shibo He, and Zhaoyang Zhang. Semantic-Preserved Communication System for Highly Efficient Speech Transmission. IEEE Journal on Selected Areas in Communications, 41(1):245–259, 2023.
- [15] Zhenzi Weng, Zhi** Qin, Xiaoming Tao, Chengkang Pan, Guangyi Liu, and Geoffrey Ye Li. Deep Learning Enabled Semantic Communications With Speech Recognition and Synthesis. IEEE Transactions on Wireless Communications, 22(9):6227–6240, 2023.
- [16] Jialong Xu, Bo Ai, Wei Chen, Ang Yang, Peng Sun, and Miguel Rodrigues. Wireless Image Transmission Using Deep Source Channel Coding With Attention Modules. IEEE Transactions on Circuits and Systems for Video Technology, 32(4):2315–2328, 2022.
- [17] Jialong Xu, Bo Ai, Wei Chen, Ning Wang, and Miguel Rodrigues. Deep Joint Source-Channel Coding for Image Transmission With Visual Protection. IEEE Transactions on Cognitive Communications and Networking, 9(6):1399–1411, 2023.
- [18] Jialong Xu, Tze-Yang Tung, Bo Ai, Wei Chen, Yuxuan Sun, and Deniz Gündüz. Deep Joint Source-Channel Coding for Semantic Communications. IEEE Communications Magazine, 61(11):42–48, 2023.
- [19] Tze-Yang Tung and Deniz Gündüz. DeepWiVe: Deep-Learning-Aided Wireless Video Transmission. IEEE Journal on Selected Areas in Communications, 40(9):2570–2583, 2022.
- [20] Jiawei Shao, Xinjie Zhang, and Jun Zhang. Task-Oriented Communication for Edge Video Analytics. IEEE Transactions on Wireless Communications, pages 1–1, 2023.
- [21] Haopeng Li, Haonan Tong, Sihua Wang, Nuocheng Yang, Zhaohui Yang, and Changchuan Yin. Video Semantic Communication with Major Object Extraction and Contextual Video Encoding, 2024.
- [22] Peiwen Jiang, Chao-Kai Wen, Shi **, and Geoffrey Ye Li. Wireless Semantic Communications for Video Conferencing. IEEE Journal on Selected Areas in Communications, 41(1):230–244, 2023.
- [23] Chengsi Liang, Xiangyi Deng, Yao Sun, Runze Cheng, Le Xia, Dusit Niyato, and Muhammad Ali Imran. VISTA: Video Transmission over A Semantic Communication Approach. In 2023 IEEE International Conference on Communications Workshops (ICC Workshops), pages 1777–1782, 2023.
- [24] Yaoyao Zhong, Wei Ji, Junbin Xiao, Yicong Li, Weihong Deng, and Tat-Seng Chua. Video Question Answering: Datasets, Algorithms and Challenges. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.
- [25] Yicong Li, Xun Yang, An Zhang, Chun Feng, Xiang Wang, and Tat-Seng Chua. Redundancy-aware Transformer for Video Question Answering. Association for Computing Machinery, 2023.
- [26] Junbin Xiao, Pan Zhou, Angela Yao, Yicong Li, Richang Hong, Shuicheng Yan, and Tat-Seng Chua. Contrastive Video Question Answering via Video Graph Transformer. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(11):13265–13280, 2023.
- [27] Junbin Xiao, Angela Yao, Zhiyuan Liu, Yicong Li, Wei Ji, and Tat-Seng Chua. Video as Conditional Graph Hierarchy for Multi-Granular Question Answering. Proceedings of the AAAI Conference on Artificial Intelligence, 36(3):2804–2812, 2022.
- [28] Antoine Yang, Antoine Miech, Josef Sivic, Ivan Laptev, and Cordelia Schmid. Zero-Shot Video Question Answering via Frozen Bidirectional Language Models. In Advances in Neural Information Processing Systems, volume 35, pages 124–141, 2022.
- [29] Shoubin Yu, Jaemin Cho, Prateek Yadav, and Mohit Bansal. Self-Chained Image-Language Model for Video Localization and Question Answering. In Advances in Neural Information Processing Systems, volume 36, pages 76749–76771, 2023.
- [30] Yicong Li, Xiang Wang, Junbin Xiao, Wei Ji, and Tat-Seng Chua. Transformer-Empowered Invariant Grounding for Video Question Answering. IEEE Transactions on Pattern Analysis and Machine Intelligence, pages 1–12, 2023.
- [31] Yunseok Jang, Yale Song, Youngjae Yu, Young** Kim, and Gunhee Kim. TGIF-QA: Toward Spatio-Temporal Reasoning in Visual Question Answering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
- [32] Pavlo Molchanov, Arun Mallya, Stephen Tyree, Iuri Frosio, and Jan Kautz. Importance Estimation for Neural Network Pruning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
- [33] Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In International Conference on Learning Representations, 2017.
- [34] Liang Peng, Shuangji Yang, Yi Bin, and Guoqing Wang. Progressive Graph Attention Network for Video Question Answering. In Proceedings of the 29th ACM International Conference on Multimedia, page 2871–2879, 2021.