Attention-guided video super-resolution with recurrent multi-scale spatial–temporal transformer

Video super-resolution (VSR) aims to recover the high-resolution (HR) contents from the low-resolution (LR) observations relying on compositing the spatial–temporal information in the LR frames. It is crucial to propagate and aggregate spatial–temporal information. Recently, while transformers show impressive performance on high-level vision tasks, few attempts have been made on image restoration, especially on VSR. In addition, previous transformers simultaneously process spatial–temporal information, easily synthesizing confused textures and high computational cost limit its development. Towards this end, we construct a novel bidirectional recurrent VSR architecture. Our model disentangles the task of learning spatial–temporal information into two easier sub-tasks, each sub-task focuses on propagating and aggregating specific information with a multi-scale transformer-based design, which alleviates the difficulty of learning. Additionally, an attention-guided motion compensation module is applied to get rid of the influence of misalignment between frames. Experiments on three widely used benchmark datasets show that, relying on superior feature correlation learning, the proposed network can outperform previous state-of-the-art methods, especially for recovering the fine details.


Introduction
Since the limited resolution of long-distance imaging and imaging devices in specific scenes, generating high-resolution (HR) images from original low-resolution (LR) content is under great demand. The aim of video super-resolution (VSR) is to gather complementary information across LR video frames for reconstructing the HR details. As a funda-  3 School of Mechano-Electronic Engineering, Xidian University, Xi'an, China mental task in computer vision, VSR is usually adopted to enhance visual quality, which has great value in our daily life, such as security and surveillance imaging system [1], high-definition television [2], etc.
Video super-resolution (VSR) is challenging partly because recovering details from LR observations is highly illposed as many inverse problems. Previous prior-based methods most focus on pixel-level motion and blur kernel estimation, trying to solve a complex optimization problem [3]. With the recent development on deep learning, convolutional neural networks (CNNs)-based VSR learn the complicated up-sampling relations between LR and HR videos on huge datasets. Compared to the traditional approaches, these significantly improve performance.
From a methodology perspective, unlike single image super-resolution (SISR) [4,5] that usually concentrated on learning on spatial dimensions, VSR mainly concerns temporal information. Although a straightforward strategy for VSR is to run SISR frame by frame, SISR ignores the temporal correlations, which leads to discontinuity in reconstruction, resulting in the flickering artifact. Therefore, a key issue to the success of VSR is how to aggregate information from multiple highly related but misaligned frames [6].
One prevalent solution is the space-based framework [7,8], where each LR frame in the video is restored using the fusion information within adjacent frames. In contrast to the spacebased framework, a time-based framework [9,10] attempts to exploit long-temporal dependencies within time-series data based upon recurrent mechanism. In general, compared to space-based frameworks, time-based frameworks allow a more compact model. Nevertheless, the problem of communicating long-term information under misaligned situations remains formidable.
To address the information transfer issue, Fuoli et al. [11] proposes a recurrent latent space propagation algorithm, high dimensional latent states are adopted to learn temporally consistent appearance. Different from the strategy of implicitly capturing and dealing with motion information, Chan et al. [12] reconsiders the VSR pipeline, and divides it into four essential components, i.e., propagation, alignment, aggregation and up-sampling. Long-term correspondences are exploited based upon bidirectional recurrent propagation from the entire input LR frames for reconstruction. Although it serves as a strong backbone, the misaligned and occluded regions still limit the efficacy of information propagation and aggregation.
Recently, inspired by the relation modeling capabilities of transformer [13] in natural language processing, impressive progresses have been made in image classification [14], object detection [15] and low-level visions [16]. For example, VSR-Transformer [17] tries to use attention mechanisms [18,19] for aligning different frames when dealing with VSR tasks. However, the computational complexity of transformer grows quadratically corresponding to the video frames. Thus, utilizing transformers in videos in proper ways still exists challenges.
To tackle these challenges, we propose a spatial-temporal transformer framework for VSR with multi-scale transformerbased grid propagation and attention-guided deformable motion compensation. The proposed network has two core designs to make it suitable for information propagation and aggregation. The first key element is a stack of spatialtemporal transformer blocks with a multi-scale design. We disentangle the information propagation into two easier sub-tasks with different transformer blocks. In the spatial transformer block, the module exploits the locality information by calculating the attention between all tokens from the same frame. This design helps to focus on enhancing the relevant features within the frame and model the stationary background texture in the same frame. In the temporal transformer block, the extracted tokens are divided into multiple regions, and the module calculates the attention between tokens from different frames' same region and helps to capture past and future information. This module is mainly used to ameliorate information flow and model temporal object movement for improving the robustness of the net-work against occluded and fine regions. In this way, the two designed transformer blocks attend different missions and are intertwinedly stacked, leading to thorough locality spatial information and temporal data consistency propagation and enhancement. Meanwhile, our transformer operation handles spatial and temporal information separately, making it easier to learn expressive features and get better VSR performance. In addition, a design of multi-scale transformer-based network is able to extract the multi-scale features to tackle various motions.
The second key element is that we explore how to aggregate information from different spatial-temporal locations with the help of feature alignment. Unlike most existing vision recurrent propagation approaches [11] lack feature alignment, the proposed framework consists of a bidirectional propagation with deformable feature alignment. Considering rich dependencies from both the forward and backward frames, the design of bidirectional propagation makes it easier to aggregate information from different locations. Furthermore, deformable alignment [20] helps to align and exploit propagated information in the video sequence. However, the occlusion and fast movement easily influence the accuracy of alignment, and harmful features getting into the propagation process will lead to inferior performance. To address the above limitation, we propose an attentionguided deformable motion compensation and add it to the process of bidirectional propagation. In the proposed module, deformable convolutional offsets are learnt for applying to the unwrapped features, meanwhile, the elementwise correlation between different features at each location is calculated for indicating how informative it is and eliminating inaccurate features after alignment.
By adopting such a pipeline, the proposed approach achieves state-of-the-art performance on VSR with much fewer parameters. In summary, the contributions of our work are threefold: -We propose a novel multi-scale spatial-temporal transformer framework for VSR to improve the ability of locality spatial and temporal data information propagation. The task of spatial-temporal propagation is divided into two easier sub-tasks to process spatial and temporal information separately. -We design a bidirectional propagation framework with attention-guided deformable motion compensation. The seamless combination of bidirectional propagation and attention-guided feature alignment benefits VSR performance a lot. -We conduct experiments on three widely used benchmark datasets and show that the proposed method outperforms previous state-of-the-art VSR methods both qualitatively and quantitatively, especially for recovering the fine details.

Related work
With the help of deep learning, SR which aims to recover HR details from LR images has drawn significant attention.
Recently, several attempts under transformer mechanism are proposed to solve SR. In this section, we detail the existing VSR approaches from three aspects: space based, recurrent time based and vision transformer based.
Video super-resolution: Existing VSR approaches can be mainly divided into two frameworks-space based and recurrent time based. Earlier methods [21,22] in the space-based framework predict the optical flow between input LR frames and perform alignment for merging information of multiple continuous frames. Later approaches resort to a more sophisticated approach of implicit alignment. For instance, EDVR [20] adopts multi-scale deformable convolutions for accurate alignment at the feature level. VSR-DUF [23] builds dynamic up-sampling filters to estimate motion implicitly. Wei et al. [24] propose to add non-local operations and dense connections for further alleviating misalignment. Meanwhile, some approaches adopt a recurrent time-based framework, taking the past and future information as temporal supplementary materials. FRVSR [25] sends each LR frame through the network to obtain its super-resolved HR outputs. As frames go through the network, the previous HR outputs are sent back to help to reconstruct the following LR frames. Lai et al. [9] propose to exploit the structures in previously estimated HR frames for guiding the sparse reconstruction of the next LR frame. RSDN [26] adopts a hidden state adaptation module and a recurrent detail-structural block to improve the robustness to error accumulation and appearance change. The aforementioned works have introduced many sophisticated and new components to address the alignment and aggregation problem. Here, we reconsider some remaining issues and find that bidirectional propagation with spatial-temporal transformer and attention-guided deformable motion compensation suffice to outperform many existing methods.

Vision transformers:
Recently, transformer improves the performance of natural language processing significantly. Different from the CNNs, the structure of transformer-based framework makes it good at capturing long-term data dependencies. The success of transformer on natural language processing inspires the research on computer vision. Image classification [14], segmentation [27], object detection [15], et al., adopt transformer to explore the global interactions between different regions and learn to attend to important regions. Inspired by previous works, a standard transformer model is also applied to a backbone model for restoration problem [28], especially for SR. Wang et al. [29] propose a Ushaped network with swin transformer [30] for SR. SwinIR [31] tackles SR task using swin transformer and brings residual operations into swin transformer. In this work, we also compute window and shift window attentions similar to swin transformer. However, building correlations within and between frames under multi-scale design is explored for enhancing stationary and motive textures. In addition, VSR-Transformer [17] and TTVSR [16] try to exploit attention mechanisms for utilizing different frames. Different from their designs of aggregating information, considering the spatial-temporal information in the video is complicated to learn simultaneously, we decouple the task of spatial-temporal propagation into two easier sub-tasks with a multi-scale design, and learn different components by decoupled transformers.

Methods
In this section, we first introduce the proposed VSR network architecture in "Network architecture", and then discuss the proposed attention-guided deformable motion compensation in "Attention-guided deformable motion compensation". Finally, we focus on our design of multi-scale spatial and temporal transformer in "Multi-scale spatial and temporal transformer".

Network architecture
Let X = {x i−n , · · · , x i , · · · , x i+n } denotes an LR video sequence with length N = 2n + 1, where x i means the ith frame of this input video sequence. We aim to learn a mapping function that takes an LR video X as input and outputs an HR video Y. Our proposed network is an end-to-end fully trainable framework, which consists of three modules: shallow feature extraction, bidirectional propagation and upsampling. The overall pipeline is shown in Fig. 1.

Shallow feature extraction:
Given an LR input X ∈ R N ×H ×W ×C (H , W and C are the height, width and input channel number of each LR input frame), we use residual blocks F s f (·) first to extract shallow feature g 0 ∈ R H ×W ×C in from each frame as where C in denotes the feature channel number, g 0 i is the extracted shallow features from x i by multiple residual blocks. The residual blocks are used for early visual processing, and provide a simple way to map the input image space to a higher dimensional feature space.
Bidirectional propagation: After shallow feature extraction, motivated by the effectiveness of bidirectional propagation, we adopt it for exploiting dependencies in the video Fig. 1 a The architecture of our whole network. The network consists of two modifications to improve alignment and propagation. For alignment, we design attention-guided deformable motion compensation to align features and exclude the harmful components that will affect information aggregation. Multi-scale spatial and temporal transformer blocks are adopted to search dependencies between arbitrary pixels across all the spatial-temporal positions. Here, we detail the pro-cedure for backward propagation F b , forward propagation F f is defined similarly. In addition, bidirectional (solid lines and dotted lines) connections are adopted to improve the robustness of propagation. Within each forward or backward propagation, multi-scale spatial and temporal transformers are proposed to refine features further. All the feature maps have 64 channels. b The details of attention-guided deformable motion compensation branch sequence. Specifically, our bidirectional propagation module mainly consists of a series of forward and backward operations (F f (·) and F b (·)), the intermediate features are propagated forward and backward in an alternating manner. Through propagation, the information from different frames can be adopted and aggregated for feature refinement. To further improve the robustness of propagation, dense connections are adopted to assist aggregate information from different temporal positions, improving effectiveness and robustness in fine and occluded regions. To compute the feature f j i after backward propagation, the operation F b (·) will align and concatenate f which will be discussed later: where f j i denotes the feature computed at the i-th timestep in the j-th propagation branch.
Up-sampling: In the final step, the aggregated features from the preceding layer are propagated back onto the pixel domain through pixel-shuffling F u [32], and we generate the output HR image by concatenating the current LR input frame x i in the channel dimension.

Attention-guided deformable motion compensation
To alleviate the harmful impact of nonalignment on subsequent information aggregation, in each forward or backward propagation, we first adopt a motion compensation module for aligning features. The graphical illustration of backward propagation is shown in Fig. 1a. Deformable convolution [33,34] has demonstrated significant performance on feature alignment due to offset diversity; however, the training process of offset is unstable, which often results in offset overflow, deteriorating subsequent performance. To take advantage of the offset diversity while avoiding instability, the input features are first concatenated and sent to an encoder-decoder module for computing stable offset. To further enhance the robustness of feature alignment, we propose to focus on valuable information and avoid harmful features feeding into the subsequent stages. The architecture of our motion compensation branch is shown in Fig. 1b.
At the i-th timestep, given the target features f j−1 i computed from previous module, the feature f j i−1 computed from the previous timestep, the deformable motion compensation module first concatenates them, then feeds it into encoderdecoder convolutions F Θ to predict offset Θ for the feature With Θ and f j i−1 , the aligned feature f j i−1 can be computed by the deformable convolution: Generally, the procedure of feature alignment is completed. More specially, in our module, attention is adopted to further guide and fix aligned features. We concatenate f j−1 i and aligned feature f j i−1 , and feed it into two 3 × 3 convolution layers. The result after convolutions will be performed sigmoid activation for generating 64-channel attention map A. The computational process can be formulated as: where F A represents the attention operation with two 3 × 3 convolution layers. In this way, A has the same size as where ⊗ denotes the elementwise multiplication andf j i−1 is the final aligned features with attention guidance.
Based on the further attention operation, generated attention maps evaluate the importance of different image regions for the target frame. Dependent information is highlighted, and regions with misalignment and harmful features are excluded, improving robustness and effectiveness in motion and fine regions.

Multi-scale spatial and temporal transformer
To further exploit the locality and spatial-temporal data information from different frames, we design spatial and temporal blocks with a multi-scale design shown in Fig.  2a, which utilizes multi-scale features to handle various degrees of motions and details. To be specific, the multiscale transformer-based network consists of an encoder and a decoder operation with symmetrical architecture. When encoding in each stage, the transformer block first models the input features, then the features are spatial downsampled two times by the down-sampling operator. The downsampling operator reshapes the input features with shape R N ×H ×W ×C in to the shape R N × H 2 × W 2 ×4C in and then linearly projects it to R N × H 2 × W 2 ×C in . In each stage of decoder, the up-sampling operator first increases the number of fea-ture channels by linear projection, then reshapes it to spatial upsampled features. The features outputted by the previous decoder stage are then fused with the features from the corresponding encoder stage through skip-connection for further transformer-based feature refinement.
In addition, for better searching and propagating features from different spatial positions and temporal dimensions, we design spatial and temporal transformer blocks used in multi-scale transformer-based network. Spatial transformer is mainly used to calculate dependencies between extracted tokens from the same frame, and temporal transformer is engaged in calculating the dependencies between tokens from different frames' same location. In this way, the two designed transformer blocks attend different missions and are intertwinedly stacked, leading to thorough locality spatial information and temporal data consistency propagation and enhancing. Meanwhile, our transformer operation handles spatial and temporal information separately, making it easier to learn expressive features and get better VSR performance.
Given the feature f i (the superscript j is omitted for notational simplicity) generated by the previous layer, it is first partitioned into m 2 zones along both the height and width dimension, similar to [35]. f k,s i denotes each split zone, where k, s = 1, . . . , m. Then, according to different ways of transformer, we group these tokens together. In spatial transformer block, the tokens are grouped along spatial dimension, denoted as In this way, spatial transformer block takes each token set P i as input, and performs multi-head attention across all tokens in it. For each feature f k,s i , a linear projection with transformation matrices W q , W k and W v is performed on it to generate the Query, Key and Value: where W Q q , W K q , W V q represent the projection matrices for the q-th head, respectively. Then the multi-head attention is performed. The computational process of the q-th head selfattention in the split zone can be defined as: P i is the output of the q-th head. Then the outputs for all head are concatenated and then linearly projected to get final result. The attention calculation is formulated based on previous work [30], it is performed as: This helps the model search for similar features in the spatially neighboring pixels and propagate these textures to target regions for compensating incomplete information. Shift window operation in swin transformer [30] is also utilized to enhance the long-range dependency modeling capacities of the transformer. Another way is to gather these tokens together along temporal dimension P k,s = f k,s i−n , . . . , f k,s i+n , k, s = 1, . . . , m. All tokens are unused to generate Query, Key and Value, only the tokens from the reference feature are used to generate Query, and other tokens are used to generate Keys and Values. Then, temporal transformer block performs multi-head attention across all tokens in each input P k,s . By doing so, long-term dependencies and continuous related movement can be detected and help the motion region for fine recovery. More details of two different transformers are illustrated in Fig. 2b, c.
In both spatial and temporal transformer blocks, after spatial/temporal divided attention module, a feed-forward module follows it. The overall operation of the transformer block is formulated as: P k,s = F ffn (F ln (F msa (F td (F ln (P k,s ))) +P k,s )) + F msa (F td (F ln (P k,s ))) + P k,s , where the former equation denotes the spatial transformer block and the latter is the operation of temporal transformer block. F ffn is the feed-forward module, F ln is the layer normalization [36] and F msa is the multi-head attention module. F sd and F td are the spatial and temporal operations, respectively. Note that input varies with different gathering ways generates different searching zones, which helps detect related features and continuous movements to achieve coherent completion.

Experiments
In this section, we first introduce the experimental settings: training datasets, testing datasets, training details, and evaluation metrics in "Experimental settings". Then, ablation studies on different settings of the proposed method are shown in "Ablation studies". Finally, we evaluate the performance of our approach and compare it with the state-of-the-art SR algorithms in "Comparison with the state-of-the-art methods". In all our experiments, we focus on ×4 VSR factor.

Experimental settings
Training datasets: In the experiment, a public video dataset [37] is adopted as our training set, which contains 64612 7frame sequences with fixed 448×256 resolution and has been widely used in many VSR methods [12,20]. Specially, we downscale the HR frames by bicubic interpolation to generate LR frames and apply several data augmentation techniques to the paired training data for enlarging the training set, such as rotation, flipping and random cropping.

Testing datasets:
We test the designed model on three testing sets: Vid4 [38], SPMCS [21] and Vimeo-90k [37]. Vid4 is widely used in literature for comparison, but it includes only four video sequences with limited motions and little inter-frame variations, and has limited ability to assess the relative merits of competing approaches. Although the SPMCS dataset has more variations, it still lacks challenging videos with fast motions. Therefore, we also use a larger Vimeo-90k dataset with rich scenes and motion types as a testing set for evaluating different methods. When comparing, we stratify the sequences of Vimeo-90k into slow, medium and fast queues based on the estimated motion velocities as in [39], and evaluate these queues separately. This makes it easier to reflect the advantages of the proposed approaches.
Training details: We train our model with Adam optimizer [40] by setting β 1 = 0.9 and β 2 = 0.999. The learning rate of the main network and the attention-guided deformable motion compensation module are initially set to 10 −4 and 10 −5 , respectively. The total number of iterations is 600K, and the weights of the motion compensation module are fixed during the first 10 K iterations. We set the batch size as 8 and use Charbonnier penalty function [41] as the final loss since it better improves the performance over the conventional 2 -loss [42]. We perform the forward and backward propagations two times. We repeat a spatial transformer block followed by a temporal transformer block two times in each forward or backward propagation. The number of residual blocks for each propagation branch is set to 5. The channel size is set to 64 and the patch size of input LR frames is 64 × 64. We implement our models with the PyTorch framework and train them using two NVIDIA 3090 GPUs.
Evaluation metrics: We use PSNR and SSIM as evaluation metrics to compare with other SR networks quantitatively. In the comparison, the estimated first and last two frames are not used for evaluation, and 8 pixels near image boundaries are ignored. All measurements use only the luminance channel (Y ).

Ablation studies
To analyze the contributions of the various components (i.e., attention-guided deformable motion compensation, bidirectional propagation, multi-scale operation, spatial and temporal transformer), we start with a baseline and gradually insert different components. Table 1 shows that each component brings considerable improvement, ranging from 0.18 to 1.09 dB in PSNR.

Attention-guided deformable motion compensation
We further provide some visual comparisons of intermediate results to verify the contributions of the proposed attentionguided deformable motion compensation module. As shown in Fig. 3, we compare the computed deformable convolutional offsets of different images. The deformable motion compensation module produces offsets that highly reflect the motions between frames. The refined motion estimation allows deformable convolution to receive information from multiple positions, providing more flexibility. In addition to motion compensation, in our module, attention is adopted to further guide and fix aligned features. Figure 3d and h are the generated features before and after attention module, respectively. When receiving the adjacent propagated features, the aligned features still contain some misaligned edges and textures, which are still harmful to information aggregation. In contrast, by further highlighting related information and excluding harmful features through attention, the feature shows sharper and preserves more details. Figure 4 shows the generated attention maps of neighboring images, the misaligned regions can be excluded efficiently (i.e., the edges of moving car, pedestrian and the

Multi-scale spatial and temporal transformer
To understand the contributions of the proposed multi-scale spatial and temporal transformer components, we design an ablative comparison by removing the intermediate temporal  [31]. c The reconstructed result using copied frames. d The reconstructed result using consecutive frames. e Ground truth. The comparison demonstrates the recovered textures truly come from the original input LR frames and spatial transformer branches separately. In Fig. 5a, the recovered video from the network with only a multi-scale spatial transformer component performs better stationary texture by searching and detecting similar details from neighboring regions in the same frame. The network with only a multi-scale temporal transformer component performs better on the regions with occlusion. The proposed network combined with all spatial and temporal transformer branches shows better performance and effectiveness.

Detail fusion vs. synthesis
We also analyze whether the recovered details truly come from the input sequences or exist in external data. Here, we replace the inputs with the copied frames and design a more illustrative experiment. As shown in Fig. 6d, when using sequence frames as inputs, it shows that the details are recovered nicely. However, if we use copied frames to evaluate the same model, the result is almost the same as that recovered using just one frame with SwinIR [31] as one of SISR methods (see Fig. 6b, c). All of these comparisons demonstrate that the recovered information shown in Fig. 6d truly generate from different input frames, and they are not synthesized from external examples. Because if it is generated by synthesis, the recovered details will also appear when we use the copied frames. All of these show that the proposed model can exploit internal details and merge them to recover more textures.
We first conduct experiments on parameter numbers, testing time costs and Flops by comparing ours with different models. The results about parameter numbers are shown in Fig. 7a. EDVR and VSR-Trans. expect to use more layers to learn the mappings between input frames and the final HR image. Our model conducts a recurrent framework for learning dependencies, and our method achieves better performance. The comparisons of running time and PSNR values are shown in Fig. 7b. VSR-DUF has a significantly larger running time because it needs to perform many 3D convolution operations and large matrix multiplication. It takes about 680 ms for our method to generate one 528 × 926 frame under ×4 SR, while VSR-DUF costs about 2270 ms. At the same time, our approach can achieve the best quantitative performance. Compared with BasicVSR++, although we cost more time due to the introduction of the transformer mechanism, which replaces convolution operation of higher parameter with a large scale of matrix multiplication [31], our approach achieves higher performance while keeping a comparable number of parameters. As shown in Fig. 7c, the Flops are computed with the input of LR frames. It should be emphasized that our approach is lighter. Such superior performance mainly benefits from the use of decoupled transformer design, which significantly reduces the parameters and computational costs.
Second, we perform experiments on different testing datasets with other super-resolution approaches. As can be seen in Table 2, the quantitative comparisons on Vid4 [38] indicate that our approach can obtain the best quantitative results of PSNR/SSIM when comparing with the previous state-of-the-art VSR and SISR models. In addition, based on   Bold indicates the best and Italic indicates the second best performance. Our approach achieves the best quantitative performance Fig. 8 Visual comparisons for ×4 SR on the testing data from SPMCS [21]. Local areas full of details and textures are zoom in. The proposed network produces high-quality super-resolved images, especially edges and textures the statistics of flow magnitude, we find that diverse motion types are not contained in Vid4 dataset. And [39] also mentions that because of JPEG compression, the ground truth in Vid4 contains artifacts and aliasing, this apparently leads in some cases penalizing sharper SR predictions. All of these may lead to an insignificant improvement when compar-ing with the state-of-the-art methods. Thus, we also conduct more comparisons on various testing sets. Table 3 shows more quantitative comparisons of different approaches on SPMCS-11 [21] dataset. VSR-Trans. and TTVSR introduce transformer mechanisms in sliding window, which obtains significant improvement over most approaches. However, effective utilization of spatial- Bold and Italic indicates the best and the second best performance, respectively. Clip "Slow" includes 1616 sequences. Clip "Medium" includes 4983 sequences. Clip "Fast" includes 1225 sequences temporal dependencies is ignored. BasicVSR++ explores hidden states to model the information of sequence. Nonetheless, the capability of long-range learning is limited by its vanishing gradient issue. Different from them, our method utilizes the spatial and temporal transformer strategy to improve the ability of locality spatial and temporal data information bidirectional propagation. Thus, we outperform existing state-of-the-arts. The qualitative results are consistent with the quantitative evaluations and are shown in Fig. 8. The proposed attention-guided motion compensation helps the network get rid of unwrapped features and attend informative propagation on different frames. All of these improve feature expressiveness and the effectiveness of reconstruction in fine and occluded regions. Such obvious comparisons demonstrate the strong capability and efficiency of our model in VSR.
In addition, we further compare the proposed model with others on Vimeo-90k [37], the quantitative results are shown in Table 4. Our method still shows an improvement of 0.18 dB, 0.21 dB and 0.20 dB over the second best method on slow, medium, and fast clips, respectively. Such compar- Fig. 9 Visual comparisons for ×4 SR on the testing data from Vimeo-90k [37]. The proposed model is able to recover the correct structures and fine details isons demonstrate our model can deal with different cases with various motions and further show the effectiveness of the proposed network. Some visual comparisons are shown in Fig. 9, we can find that VSR methods outperform the SISR method overall, because only limited information can be used in SISR. But some error structures and details still appear in the outputs of most VSR methods. In contrast, our approach employs an attention module to help eliminate harmful features in motion compensation, and the proposed multi-scale spatial-temporal transformer framework is able to aggregate locality spatial and temporal data information, all of these improve robustness and effectiveness in fine details and dynamic regions.

Conclusion
In this paper, we study VSR by leveraging spatial-temporal dependencies in LR frames. In particular, we propose a novel end-to-end bidirectional recurrent architecture, which is one of the works to introduce transformer architectures in VSR tasks. Specifically, we formulate video frames into aligned features, and calculate attention along features to prevent harmful information. To implement spatial-temporal fusion in an effective way, we decouple it into two easier sub-tasks and enable transformers to model local and long-range information in videos. Experimental results on various videos with different motion types, scenes and input sizes indicate that our approach can achieve acceptable performance when processing various VSR tasks.
Although our approach achieves comparable performance when comparing with current methods in most cases, it still performs a little worse for the dense textures. This may be due to the reason that our training set does not include enough examples of such dense textures and the motion handling requires to be further improved. Another limitation is our computing time cost, but we will further accelerate our model by trying more strategies, for example, network compression and feature distillation. Moreover, we will further work on exploring how to extract useful features, improve training algorithms and reduce computational redundancy in VSR.