SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.20158 · ICCV · 2025

Learning to Generalize without Bias for Open-Vocabulary Action Recognition

Yifan Zhang, Yanning Zhang, Yating Yu, Congqi Cao

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 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; 3 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/2502.20158.json · badge: /api/ran/2502.20158.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
Mia-YatingYu/Open-MeDe community
Papers with Code archive
4 ran · 3 no recorded run
FunctionStatusWhere it lives
CrossFramelAttentionBlock Ran
ran on a synthesized input · constructed an object; no result was computed
Mia-YatingYu/Open-MeDe/slowfast/models/customize_visiontransformer.py
code served (permissive licence) · get_code("54f78e361cbab192")
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, CrossFramelAttentionBlock: 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
from collections import OrderedDict

torch.manual_seed(0)

# Define parameters for CrossFramelAttentionBlock
d_model = 4
n_head = 2
T = 2  # temporal dimension
num_experts = 1
record_routing = False

# Create attention mask (optional, but we'll include it)
# For MultiheadAttention with sequence length of interest
seq_len = 3
attn_mask = torch.zeros(seq_len, seq_len, dtype=torch.bool)

ARGS = {
    'd_model': d_model,
    'n_head': n_head,
    'attn_mask': attn_mask,
    'T': T,
    'num_experts': num_experts,
    'record_routing': record_routing,
}
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 CrossFramelAttentionBlock — 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 CrossFramelAttentionBlock 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
ResidualAttentionBlock Ran
ran on a synthesized input · constructed an object; no result was computed
Mia-YatingYu/Open-MeDe/slowfast/models/customize_visiontransformer.py
code served (permissive licence) · get_code("b84374673409547e")
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, ResidualAttentionBlock: 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
from torch import nn

torch.manual_seed(0)

# Define the custom layers used by ResidualAttentionBlock
class LayerNorm(nn.LayerNorm):
    """Subclass torch's LayerNorm to handle fp16."""

    def forward(self, x: torch.Tensor):
        orig_type = x.dtype
        ret = super().forward(x.type(torch.float32))
        return ret.type(orig_type)

class QuickGELU(nn.Module):

    def forward(self, x: torch.Tensor):
        return x * torch.sigmoid(1.702 * x)

# Create arguments for ResidualAttentionBlock.__init__

d_model = 8  # embedding dimension
n_head = 2   # number of attention heads
batch_size = 2
seq_len = 4

# Create attention mask (causal mask for sequence length 4)
attn_mask = torch.triu(torch.ones(seq_len, seq_len) * float('-inf'), diagonal=1)

# num_experts can be 0 or > 0
num_experts = 2

# record_routing can be True or False
record_routing = True

# routing_type can be 'patch-level' or 'image-level'
routing_type = 'patch-level'

ARGS = {
    'd_model': d_model,
    'n_head': n_head,
    'attn_mask': attn_mask,
    'num_experts': num_experts,
    'record_routing': record_routing,
    'routing_type': routing_type,
}
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 ResidualAttentionBlock — 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 ResidualAttentionBlock 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
STAdaptZeroInitAttentionBlock Ran
ran on a synthesized input · constructed an object; no result was computed
Mia-YatingYu/Open-MeDe/slowfast/models/customize_visiontransformer.py
code served (permissive licence) · get_code("3740fcc18a01e4e9")
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, STAdaptZeroInitAttentionBlock: 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
from collections import OrderedDict

torch.manual_seed(0)

# Parameters for STAdaptZeroInitAttentionBlock
d_model = 4
n_head = 2
T = 2
num_experts = 2

# Create attention mask (optional)
# For MultiheadAttention with seq_len, we need shape (seq_len, seq_len)
seq_len = 10
attn_mask = torch.ones(seq_len, seq_len, dtype=torch.bool)

ARGS = {
    "d_model": d_model,
    "n_head": n_head,
    "attn_mask": attn_mask,
    "T": T,
    "num_experts": num_experts,
    "record_routing": False,
}
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 STAdaptZeroInitAttentionBlock — 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 STAdaptZeroInitAttentionBlock 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
STCrossAttentionBlock Ran
ran on a synthesized input · constructed an object; no result was computed
Mia-YatingYu/Open-MeDe/slowfast/models/customize_visiontransformer.py
code served (permissive licence) · get_code("12a3c3d58e8ae833")
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, STCrossAttentionBlock: 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
from collections import OrderedDict

torch.manual_seed(0)

# Build the ARGS dictionary with all parameters for STCrossAttentionBlock
ARGS = {
    'd_model': 64,
    'n_head': 4,
    'attn_mask': torch.ones((10, 10), dtype=torch.float32),
    'T': 3,
    'mask_rate': 0.5,
    'mask_stride': [1, 2, 2],
    'spatial_repeat': True,
    'temporal_shuffle': True,
    'channel_fold': 64,
    'temporal_scale': [1]
}
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 STCrossAttentionBlock — 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 STCrossAttentionBlock 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
ChannelShiftAttentionBlock Not yet run
unverified (harvested, no recorded run)
Mia-YatingYu/Open-MeDe/slowfast/models/customize_visiontransformer.py
code served (permissive licence) · get_code("d1e07d070c924b50")
How it ran

no invocation recorded.

TSTransformer Not yet run
unverified (harvested, no recorded run)
Mia-YatingYu/Open-MeDe/slowfast/models/customize_visiontransformer.py
code served (permissive licence) · get_code("0ffb06ad1d4b5b8d")
How it ran

no invocation recorded.

TimesAttentionBlock Not yet run
unverified (harvested, no recorded run)
Mia-YatingYu/Open-MeDe/slowfast/models/customize_visiontransformer.py
code served (permissive licence) · get_code("3cf27c4868cfc5d1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 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
ChannelShiftAttentionBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2302.00624 (2023-02)
Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization
CrossFramelAttentionBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2302.00624 (2023-02)
Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization
ResidualAttentionBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2302.00624 (2023-02)
Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization
STAdaptZeroInitAttentionBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2302.00624 (2023-02)
Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization
TimesAttentionBlock
brick of this paper's assembly: model
1 other paper
1 dated earlier · 1 only as an assembly brick
2302.00624 (2023-02)
Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization

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

Leveraging the effective visual-text alignment and static generalizability from CLIP, recent video learners adopt CLIP initialization with further regularization or recombination for generalization in open-vocabulary action recognition in-context. However, due to the static bias of CLIP, such video learners tend to overfit on shortcut static features, thereby compromising their generalizability, especially to novel out-of-context actions. To address this issue, we introduce Open-MeDe, a novel Meta-optimization framework with static Debiasing for Open-vocabulary action recognition. From a fresh perspective of generalization, Open-MeDe adopts a meta-learning approach to improve "known-to-open generalizing" and "image-to-video debiasing" in a cost-effective manner. Specifically, Open-MeDe introduces a cross-batch meta-optimization scheme that explicitly encourages video learners to quickly generalize to arbitrary subsequent data via virtual evaluation, steering a smoother optimization landscape. In effect, the free of CLIP regularization during optimization implicitly mitigates the inherent static bias of the video meta-learner. We further apply self-ensemble over the optimization trajectory to obtain generic optimal parameters that can achieve robust generalization to both in-context and out-of-context novel data. Extensive evaluations show that Open-MeDe not only surpasses state-of-the-art regularization methods tailored for in-context open-vocabulary action recognition but also substantially excels in out-of-context scenarios. Code is released at https://github.com/Mia-YatingYu/Open-MeDe. Frozen CLIP X-CLIP FROSTER Open-VCLIP Open-MeDe (Ours) 73.8 72.0 82.9 83.5 83.9 Frozen CLIP X-CLIP FROSTER Open-VCLIP Open-MeDe (Ours) 33.5

For agents

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

get_harvested_code_for_paper("2502.20158")
get_code_for_paper("2502.20158")
have("2502.20158")

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

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

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

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

Connect an agent — have() is free.