SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.02146 · NeurIPS · 2022

Recurrent Video Restoration Transformer with Guided Deformable Attention

Radu Timofte, Luc Gool, Kai Zhang, Jingyun Liang, Yuchen Fan, Xiaoyu Xiang, Rakesh Ranjan, Eddy Ilg, Simon Green, Jiezhang Cao

arXiv · PDF · Open in the Atlas

Code that ran

12 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 10 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2206.02146.json · badge: /api/ran/2206.02146.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
JingyunLiang/RVRT canonical (classifier label)
classifier basis: classifier_2025
4 ran · 1 no recorded run
labshuhanggu/mia-vsr community (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
FunctionStatusWhere it lives
batch_index_fill Ran
ran; our contract draft was wrong, not the code
labshuhanggu/mia-vsr/archs/functions.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tanvir-utexas/PaPr, is pointer only (licence: NOASSERTION) · get_code("7839fb1aca0933e2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from tanvir-utexas/PaPr, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

batch_index_select Ran
ran on a synthesized input
labshuhanggu/mia-vsr/archs/functions.py
code served (permissive licence) · get_code("6bc3966389f69fe9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for batch_index_select
# The function expects:
# - x: a 3D tensor of shape (B, N, C)
# - idx: a 2D tensor of indices of shape (B, N_new)

B = 2  # batch size
N = 4  # original sequence length
C = 3  # feature dimension
N_new = 2  # new sequence length after indexing

# Create a 3D tensor (B, N, C)
x = torch.randn(B, N, C)

# Create index tensor (B, N_new) with valid indices in range [0, N)
idx = torch.tensor([[0, 2], [1, 3]], dtype=torch.long)

ARGS = {
    "x": x,
    "idx": idx,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 2, 3) — shape (2, 2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
labshuhanggu/mia-vsr/archs/mia_sliding_arch.py
code served (permissive licence) · get_code("52d96aa31ed74a56")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 4, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with batch size 2 and some feature dimensions
# Shape: (batch=2, channels=3, height=4, width=5) to have distinct dimensions
x = torch.randn(2, 3, 4, 5)

# drop_prob: probability of dropping a path (between 0 and 1)
drop_prob = 0.2

# training: boolean flag indicating if we're in training mode
training = True

ARGS = {
    'x': x,
    'drop_prob': drop_prob,
    'training': training
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 5) — shape (2, 3, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flow_warp Ran
ran; our contract draft was wrong, not the code
JingyunLiang/RVRT/models/network_rvrt.py
pointer only (licence: NOASSERTION) · get_code("0c02fb4e80bda186")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, JingyunLiang/RVRT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flow_warp_avg_patch Ran
ran; our contract draft was wrong, not the code
labshuhanggu/mia-vsr/archs/mia_vsr_arch.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from xpixelgroup/rethinkvsralignment, is pointer only (licence: NONE) · get_code("9e66eec08eeb6369")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from xpixelgroup/rethinkvsralignment, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_layer Ran
ran; our contract draft was wrong, not the code
JingyunLiang/RVRT/models/network_rvrt.py
pointer only (licence: NOASSERTION) · get_code("b80adc256b420252")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, JingyunLiang/RVRT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reduce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
labshuhanggu/mia-vsr/losses/loss_util.py
code served (permissive licence) · get_code("a648a03a952822c0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small elementwise loss tensor (batch=2, elements=4)
loss = torch.tensor([[0.5, 1.2, 0.3, 0.8], [0.9, 0.4, 1.1, 0.6]], dtype=torch.float32)

# Test with 'mean' reduction
reduction = 'mean'

ARGS = {
    'loss': loss,
    'reduction': reduction,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
test_video Ran
ran; our contract draft was wrong, not the code
JingyunLiang/RVRT/main_test_rvrt.py
pointer only (licence: NOASSERTION) · get_code("a1cad82b9beff0c7")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, JingyunLiang/RVRT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

weight_reduce_loss Ran
ran; our contract draft was wrong, not the code
labshuhanggu/mia-vsr/losses/loss_util.py
code served (permissive licence) · get_code("1ba39317ea81871a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small loss tensor (batch_size=2, num_elements=4)
loss = torch.rand(2, 4)

# Create a weight tensor with matching dimensions
# weight.dim() == loss.dim() and weight.size(1) == loss.size(1)
weight = torch.rand(2, 4)

# Test different reduction modes
reduction = 'mean'

ARGS = {
    'loss': loss,
    'weight': weight,
    'reduction': reduction
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
JingyunLiang/RVRT/models/network_rvrt.py
pointer only (licence: NOASSERTION) · get_code("54da2d24c1765483")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, JingyunLiang/RVRT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
labshuhanggu/mia-vsr/archs/mia_sliding_arch.py
code served (permissive licence) · get_code("e0f3c2fd11d92ad7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (16, 24, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct a valid input tensor
# Shape: (b, d, h, w, c) where dimensions are divisible by window_size
# Let's use: b=2, d=4, h=6, w=8, c=3
x = torch.randn(2, 4, 6, 8, 3)

# window_size should be a tuple/list of 3 elements for (d, h, w) dimensions
# Each element should divide the corresponding dimension
# d=4 divisible by 2, h=6 divisible by 3, w=8 divisible by 4
window_size = (2, 3, 4)

ARGS = {
    "x": x,
    "window_size": window_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (16, 24, 3) — shape (16, 24, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
window_single_partition Ran
ran on a synthesized input
labshuhanggu/mia-vsr/archs/mia_sliding_arch.py
code served (permissive licence) · get_code("c0dc7488e394219c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (8, 6, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct a tiny input tensor with shape (b, h, w, c)
# b=2, h=4, w=6, c=3
x = torch.randn(2, 4, 6, 3)

# window_size should be a tuple/list with at least 3 elements
# based on the indexing: window_size[1] and window_size[2]
# Let's use window_size = (some_val, 2, 3) so dimensions divide evenly
# h=4 must be divisible by window_size[1], w=6 must be divisible by window_size[2]
window_size = (1, 2, 3)

ARGS = {
    "x": x,
    "window_size": window_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (8, 6, 3) — shape (8, 6, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
test_clip Not yet run
unverified (harvested, no recorded run)
JingyunLiang/RVRT/main_test_rvrt.py
pointer only (licence: NOASSERTION) · get_code("705758eeba9070e3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, JingyunLiang/RVRT (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

weighted_loss Not yet run
unverified (harvested, no recorded run)
labshuhanggu/mia-vsr/losses/loss_util.py
code served (permissive licence) · get_code("cf63f8afc13f62a7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 12 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 1 the same month, 9 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
drop_path 224 other papers
45 dated earlier, 5 the same month, 171 later, 2 same year, order not determinable, 1 undated · 38 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2007.09384 (2020-07)
Multi-Scale Positive Sample Refinement for Few-Shot Object Detection
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
and 221 more not named here
weighted_loss 44 other papers
2 dated earlier, 41 later, 1 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 41 more not named here
reduce_loss 43 other papers
2 dated earlier, 40 later, 1 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 40 more not named here
weight_reduce_loss 43 other papers
2 dated earlier, 40 later, 1 same year, order not determinable
136790177 (2022 (year only))
Frequency and Spatial Dual Guidance for Image Dehazing
2203.14216 (2022-03)
Efficient and Degradation-Adaptive Network for Real-World Image Super-Resolution
2205.05996 (2022-05)
Blueprint Separable Residual Network for Efficient Image Super-Resolution
and 40 more not named here
window_partition 15 other papers
3 dated earlier, 12 later · 2 only as an assembly brick
2106.13230 (2021-06)
Video Swin Transformer
2111.13300 (2021-11)
A Robust Volumetric Transformer for Accurate 3D Tumor Segmentation
2111.14821 (2021-11)
End-to-End Referring Video Object Segmentation with Multimodal Transformers
and 12 more not named here
batch_index_fill 3 other papers
3 later
2402.19289 (2024-02)
CAMixerSR: Only Details Need More "Attention"
2403.16020 (2024-03)
PaPr: Training-Free One-Step Patch Pruning with Lightweight ConvNets for Faster Inference
2409.19660 (2024-09)
All-in-One Image Coding for Joint Human-Machine Vision with Multi-Path Aggregation
window_partition 2 other papers
1 dated earlier, 1 later
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2305.00163 (2023-05)
Enhancing Video Super-Resolution via Implicit Resampling-based Alignment
flow_warp 1 other paper
1 later
2406.07551 (2024-06)
Blur-aware Spatio-temporal Sparse Transformer for Video Deblurring
flow_warp_avg_patch 1 other paper
1 later
2207.08494 (2022-07)
Rethinking Alignment in Video Super-Resolution Transformers
make_layer 1 other paper
1 dated earlier
2204.02977 (2022-04)
Multi-Scale Memory-Based Video Deblurring
test_clip 1 other paper
1 dated earlier
2201.12288 (2022-01)
VRT: A Video Restoration Transformer
test_video 1 other paper
1 dated earlier
2201.12288 (2022-01)
VRT: A Video Restoration Transformer

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Video restoration aims at restoring multiple high-quality frames from multiple lowquality frames. Existing video restoration methods generally fall into two extreme cases, i.e., they either restore all frames in parallel or restore the video frame by frame in a recurrent way, which would result in different merits and drawbacks. Typically, the former has the advantage of temporal information fusion. However, it suffers from large model size and intensive memory consumption; the latter has a relatively small model size as it shares parameters across frames; however, it lacks long-range dependency modeling ability and parallelizability. In this paper, we attempt to integrate the advantages of the two cases by proposing a recurrent video restoration transformer, namely RVRT. RVRT processes local neighboring frames in parallel within a globally recurrent framework which can achieve a good trade-off between model size, effectiveness, and efficiency. Specifically, RVRT divides the video into multiple clips and uses the previously inferred clip feature to estimate the subsequent clip feature. Within each clip, different frame features are jointly updated with implicit feature aggregation. Across different clips, the guided deformable attention is designed for clip-to-clip alignment, which predicts multiple relevant locations from the whole inferred clip and aggregates their features by the attention mechanism. Extensive experiments on video super-resolution, deblurring, and denoising show that the proposed RVRT achieves state-of-the-art performance on benchmark datasets with balanced model size, testing memory and runtime. The codes are available at https://github.com/JingyunLiang/RVRT.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2206.02146")
get_code_for_paper("2206.02146")
have("2206.02146")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2206.02146.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2206.02146.svg)](https://syntology.ai/paper/2206.02146)

Connect an agent — have() is free.