SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.14623 · NeurIPS · 2022

SKFlow: Learning Optical Flow with Super Kernels

Ge Li, Shangkun Sun, Yuanqi Chen, Yu Zhu, Guodong Guo

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2205.14623.json · badge: /api/ran/2205.14623.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
littlespray/SKFlow canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
FunctionStatusWhere it lives
Aggregate Ran
ran on a synthesized input · constructed an object; no result was computed
littlespray/SKFlow/core/update.py
code served (permissive licence) · get_code("e2e9e529c2c8a10f")
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 an instance of its own class, Aggregate: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type 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 as nn

torch.manual_seed(0)

# Create a minimal args object
class Args:
    pass

args = Args()

# Define ARGS dict with all parameters for Aggregate.__init__
ARGS = {
    'args': args,
    'dim': 64,
    'heads': 4,
    'dim_head': 16
}

# Create instance to verify it works
aggregate = nn.Module.__new__(type('Aggregate', (nn.Module,), {}))
aggregate.__dict__.update({
    'args': args,
    'heads': 4,
    'scale': 16 ** (-0.5),
    'to_v': nn.Conv2d(64, 64, 1, bias=False),
    'gamma': nn.Parameter(torch.zeros(1)),
    'project': None
})

# Test forward pass with sample tensors
batch_size = 2
dim = 64
height = 3
width = 4

attn = torch.randn(batch_size, 4, height * width, height * width)
fmap = torch.randn(batch_size, dim, height, width)
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Aggregate — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Aggregate output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
PCBlock4_Deep_nopool_res Ran
ran on a synthesized input · constructed an object; no result was computed
littlespray/SKFlow/core/update.py
code served (permissive licence) · get_code("f170700939452867")
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 an instance of its own class, PCBlock4_Deep_nopool_res: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type 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 as nn

torch.manual_seed(0)

ARGS = {
    "C_in": 4,
    "C_out": 8,
    "k_conv": [3, 5, 7]
}
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 PCBlock4_Deep_nopool_res — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PCBlock4_Deep_nopool_res output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
SKMotionEncoder6_Deep_nopool_res Ran
ran on a synthesized input
littlespray/SKFlow/core/update.py
code served (permissive licence) · get_code("bcfc95ae253a4557")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 as nn
import torch.nn.functional as F

class PCBlock4_Deep_nopool_res(nn.Module):

    def __init__(self, C_in, C_out, k_conv):
        super().__init__()
        self.conv_list = nn.ModuleList([nn.Conv2d(C_in, C_in, kernel, stride=1, padding=kernel // 2, groups=C_in) for kernel in k_conv])
        self.ffn1 = nn.Sequential(nn.Conv2d(C_in, int(1.5 * C_in), 1, padding=0), nn.GELU(), nn.Conv2d(int(1.5 * C_in), C_in, 1, padding=0))
        self.pw = nn.Conv2d(C_in, C_in, 1, padding=0)
        self.ffn2 = nn.Sequential(nn.Conv2d(C_in, int(1.5 * C_in), 1, padding=0), nn.GELU(), nn.Conv2d(int(1.5 * C_in), C_out, 1, padding=0))

    def forward(self, x):
        x = F.gelu(x + self.ffn1(x))
        for conv in self.conv_list:
            x = F.gelu(x + conv(x))
        x = F.gelu(x + self.pw(x))
        x = self.ffn2(x)
        return x

class SKMotionEncoder6_Deep_nopool_res(nn.Module):

    def __init__(self, args):
        super().__init__()
        cor_planes = args.corr_levels * (2 * args.corr_radius + 1) ** 2
        self.convc1 = PCBlock4_Deep_nopool_res(cor_planes, 256, k_conv=args.k_conv)
        self.convc2 = PCBlock4_Deep_nopool_res(256, 192, k_conv=args.k_conv)
        self.convf1 = nn.Conv2d(2, 128, 1, 1, 0)
        self.convf2 = PCBlock4_Deep_nopool_res(128, 64, k_conv=args.k_conv)
        self.conv = PCBlock4_Deep_nopool_res(64 + 192, 128 - 2, k_conv=args.k_conv)

    def forward(self, flow, corr):
        cor = F.gelu(self.convc1(corr))
        cor = self.convc2(cor)
        flo = self.convf1(flow)
        flo = self.convf2(flo)
        cor_flo = torch.cat([cor, flo], dim=1)
        out = self.conv(cor_flo)
        return torch.cat([out, flow], dim=1)


class Args:
    def __init__(self, corr_levels, corr_radius, k_conv):
        self.corr_levels = corr_levels
        self.corr_radius = corr_radius
        self.k_conv = k_conv


INIT_ARGS = {
    'args': Args(
        corr_levels=2,
        corr_radius=1,
        k_conv=[3, 5]
    )
}

ARGS = {
    'flow': torch.randn(2, 2, 4, 3),
    'corr': torch.randn(2, 18, 4, 3)
}

if __name__ == '__main__':
    model = SKMotionEncoder6_Deep_nopool_res(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: (2, 128, 4, 3)")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
SKUpdateBlock6_Deep_nopoolres_AllDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
littlespray/SKFlow/core/update.py
code served (permissive licence) · get_code("79ab55372ed4d6ac")
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 an instance of its own class, SKUpdateBlock6_Deep_nopoolres_AllDecoder: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type 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 as nn
import torch.nn.functional as F
from einops import rearrange
from torch import einsum

torch.manual_seed(0)

# Create a minimal args config
class ArgsConfig:
    def __init__(self):
        self.corr_levels = 2
        self.corr_radius = 1
        self.k_conv = [3, 5]
        self.PCUpdater_conv = [3, 5]
        self.num_heads = 4

args = ArgsConfig()

# Define tensor dimensions
batch_size = 2
height = 4
width = 3
hidden_dim = 128

# Create sample input tensors
net = torch.randn(batch_size, hidden_dim, height, width)
inp = torch.randn(batch_size, 128, height, width)

# Correlation tensor: batch x (corr_levels * (2*corr_radius+1)^2) x height x width
cor_planes = args.corr_levels * (2 * args.corr_radius + 1) ** 2
corr = torch.randn(batch_size, cor_planes, height, width)

# Flow tensor: batch x 2 x height x width
flow = torch.randn(batch_size, 2, height, width)

# Attention tensor: batch x heads x (height*width) x (height*width)
attention = torch.randn(batch_size, args.num_heads, height * width, height * width)

ARGS = {
    "args": args,
    "hidden_dim": hidden_dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SKUpdateBlock6_Deep_nopoolres_AllDecoder — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a SKUpdateBlock6_Deep_nopoolres_AllDecoder output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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
Aggregate
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2104.02409 (2021-04)
Learning to Estimate Hidden Motions with Global Motion Aggregation

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

Optical flow estimation is a classical yet challenging task in computer vision. One of the essential factors in accurately predicting optical flow is to alleviate occlusions between frames. However, it is still a thorny problem for current top-performing optical flow estimation methods due to insufficient local evidence to model occluded areas. In this paper, we propose the Super Kernel Flow Network (SKFlow), a CNN architecture to ameliorate the impacts of occlusions on optical flow estimation. SKFlow benefits from the super kernels which bring enlarged receptive fields to complement the absent matching information and recover the occluded motions. We present efficient super kernel designs by utilizing conical connections and hybrid depth-wise convolutions. Extensive experiments demonstrate the effectiveness of SKFlow on multiple benchmarks, especially in the occluded areas. Without pre-trained backbones on ImageNet and with a modest increase in computation, SKFlow achieves compelling performance and ranks 1st among currently published methods on the Sintel benchmark. On the challenging Sintel clean and final passes (test), SKFlow surpasses the best-published result in the unmatched areas (7.96 and 12.50) by 9.09% and 7.92%. The code is available at https://github.com/littlespray/SKFlow.

For agents

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

get_harvested_code_for_paper("2205.14623")
get_code_for_paper("2205.14623")
have("2205.14623")

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

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

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

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

Connect an agent — have() is free.