Papers › Video-FocalNets: Spatio-Temporal Focal Modulation for Video Action Recognition

Video-FocalNets: Spatio-Temporal Focal Modulation for Video Action Recognition

13 Jul 2023ICCV 2023 1arXiv:2307.06947archive 2025-07-28

Syed Talal Wasim, Muhammad Uzair Khattak, Muzammal Naseer, Salman Khan, Mubarak Shah, Fahad Shahbaz Khan

Recent video recognition models utilize Transformer models for long-range spatio-temporal context modeling. Video transformer designs are based on self-attention that can model global context at a high computational cost. In comparison, convolutional designs for videos offer an efficient alternative but lack long-range dependency modeling. Towards achieving the best of both designs, this work proposes Video-FocalNet, an effective and efficient architecture for video recognition that models both local and global contexts. Video-FocalNet is based on a spatio-temporal focal modulation architecture that reverses the interaction and aggregation steps of self-attention for better efficiency. Further, the aggregation step and the interaction step are both implemented using efficient convolution and element-wise multiplication operations that are computationally less expensive than their self-attention counterparts on video representations. We extensively explore the design space of focal modulation-based spatio-temporal context modeling and demonstrate our parallel spatial and temporal encoding design to be the optimal choice. Video-FocalNets perform favorably well against the state-of-the-art transformer-based models for video recognition on five large-scale datasets (Kinetics-400, Kinetics-600, SS-v2, Diving-48, and ActivityNet-1.3) at a lower computational cost. Our code/models are released at https://github.com/TalalWasim/Video-FocalNets.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2307.06947")

Code

Syntology Ran 17 of 32 code samples harvested from 3 repositories linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 15 ran with no contract checked.

By repository: official repository: 21 samples from 1 repository, 13 ran; community (archive-listed): 11 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

talalwasim/video-focalnets officialmentioned in papermentioned on GitHubpytorch report
hayatkhan8660-maker/DVFL-Net mentioned on GitHubpytorchMIT report
innat/Video-FocalNets mentioned on GitHubtf report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

32 samples harvested; 17 ran; 1 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
15ran
15unverified

Licence: 21 of the 32 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

PatchEmbed TalalWasim/Video-FocalNets/classification/videofocalnet.py official repository ran fingerprinted no licence file found · pointer only · e83dd8c65a734673 · report
SpatioTemporalFocalModulation TalalWasim/Video-FocalNets/classification/videofocalnet.py official repository ran no licence file found · pointer only · 304fe25c547d2f00 · report
VideoFocalNet TalalWasim/Video-FocalNets/classification/videofocalnet.py official repository ran no licence file found · pointer only · 0b5ff5992ed0ad74 · report
build_optimizer talalwasim/video-focalnets/optimizer.py official repository ran no licence file found · pointer only · e35a4b2e4114b1a5 · report
build_transforms talalwasim/video-focalnets/classification/videofocalnet.py official repository ran no licence file found · pointer only · 652ca38bafaf4f7d · report
build_transforms4display talalwasim/video-focalnets/classification/videofocalnet.py official repository ran no licence file found · pointer only · 4a1a30b09528ee69 · report
get_grad_norm talalwasim/video-focalnets/utils.py official repository ran · honoured contract no licence file found · pointer only · eec1e7cba51d5e8e · report
load_checkpoint talalwasim/video-focalnets/utils.py official repository ran no licence file found · pointer only · f8587b4b569b31e3 · report
one_hot talalwasim/video-focalnets/datasets/blending.py official repository ran · our draft was wrong no licence file found · pointer only · 4728dc2025227bba · report
set_weight_decay talalwasim/video-focalnets/optimizer.py official repository ran no licence file found · pointer only · b33222a09fc93bec · report
shear_x talalwasim/video-focalnets/datasets/rand_augment.py official repository ran no licence file found · pointer only · e866e1196986f728 · report
shear_y talalwasim/video-focalnets/datasets/rand_augment.py official repository ran no licence file found · pointer only · 7b2503c99c9447fb · report
translate_x_rel talalwasim/video-focalnets/datasets/rand_augment.py official repository ran no licence file found · pointer only · 323759f906fbb394 · report
BasicLayer TalalWasim/Video-FocalNets/classification/videofocalnet.py official repository unverified no licence file found · pointer only · 5da5482bcfc017c2 · report
VideoFocalNetBlock TalalWasim/Video-FocalNets/classification/videofocalnet.py official repository unverified no licence file found · pointer only · 719831d1fc53a0b9 · report
auto_resume_helper talalwasim/video-focalnets/utils.py official repository unverified no licence file found · pointer only · 0c32459bef92ff8c · report
build_model talalwasim/video-focalnets/classification/build.py official repository unverified no licence file found · pointer only · bdac4358ea39d416 · report
build_scheduler talalwasim/video-focalnets/lr_scheduler.py official repository unverified no licence file found · pointer only · 07e8b4b487c0abb6 · report
check_keywords_in_name talalwasim/video-focalnets/optimizer.py official repository unverified no licence file found · pointer only · b0a5beb34716d5a6 · report
create_logger talalwasim/video-focalnets/logger.py official repository unverified no licence file found · pointer only · 80450600f7f09b0a · report
get_config talalwasim/video-focalnets/config.py official repository unverified no licence file found · pointer only · eb702a1f77e3c7bd · report
TFDropPath innat/Video-FocalNets/videofocalnet/model.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · a58723c1a5bda855 · report
TFMlp innat/Video-FocalNets/videofocalnet/model.py community (archive-listed) ran MIT (permissive) · bef3ab0dcd7067cf · report
TFPatchEmbed innat/Video-FocalNets/videofocalnet/model.py community (archive-listed) ran MIT (permissive) · 44a2e84640d35e69 · report
TFSpatioTemporalFocalModulation innat/Video-FocalNets/videofocalnet/model.py community (archive-listed) ran MIT (permissive) · bcd922fa8a50f633 · report
TFBasicLayer innat/Video-FocalNets/videofocalnet/model.py community (archive-listed) unverified MIT (permissive) · 456892b8f3ad701f · report
TFVideoFocalNet innat/Video-FocalNets/videofocalnet/model.py community (archive-listed) unverified MIT (permissive) · 80d19d9d058074c1 · report
TFVideoFocalNetBlock innat/Video-FocalNets/videofocalnet/model.py community (archive-listed) unverified MIT (permissive) · 7359d74430b2ebd3 · report
build_teacher_model hayatkhan8660-maker/DVFL-Net/classification/build.py community (archive-listed) unverified MIT (permissive) · d38f3624367ac8a0 · report
find_package_location hayatkhan8660-maker/DVFL-Net/get_local_rank.py community (archive-listed) unverified MIT (permissive) · 028190203e877ad1 · report
get_config hayatkhan8660-maker/DVFL-Net/config.py community (archive-listed) unverified MIT (permissive) · 0493984d01a4e886 · report
loss_fn_kd hayatkhan8660-maker/DVFL-Net/classification/criterion.py community (archive-listed) unverified MIT (permissive) · 40e37850e70297c2 · report

Tasks

Action RecognitionTemporal Action LocalizationVideo Recognition

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Action Recognition Diving-48 Video-FocalNet-B Accuracy 90.8 #2 of 18 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEConvolutionDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections