Video understanding, tracking, generation, and world models · Action recognition · VID009 · Architecture
X3D
Constructs efficient video networks by progressively expanding dimensions such as time, space, width and depth from a small backbone.
In CodeSplash
No method yet, but the reference's example runs here as a notebook.
Do it in CodeSplash Open the reference's example as a Python or R notebook.
- Availability
- Runs as a notebook
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- The reference's example ran here in one language.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Constructs efficient video networks by progressively expanding dimensions such as time, space, width and depth from a small backbone. X3D is a model-design family rather than a separate statistical test for each checkpoint size.
Question / objective
Estimate an action label from a clip or video and determine which temporal evidence improves prediction. This is a learning or inference objective, not a test of a statistical null hypothesis.
Method type and supervision
architecture · Action recognition. Usually supervised video-label learning; image/video pretraining may use other supervision.
Architecture / computational structure
Efficient video backbone expanded along multiple architecture dimensions under a resource budget.
Assumptions
Inputs must satisfy the temporal, modality and annotation protocol described below. FLOPs are an imperfect proxy for hardware latency. An expansion favored on one dataset or accelerator may not be optimal elsewhere.
Formula / computational definition
Conceptually choose architecture to maximize subject to , where is a compute budget. Candidate networks still learn class probabilities through ordinary supervised losses.
Parameters and notation
Learned/estimated quantities: Encoder filters or attention/projection weights, normalization parameters and task-head coefficients are learned; architectural dimensions and sampling rules are chosen. Symbols specific to the objective are defined with the equation. Hyperparameters and design choices: Temporal length/rate, spatial resolution, bottleneck width, depth and the measured resource budget define a configuration.
Fitting, fine-tuning, and adaptation
Select an architecture using validation accuracy and measured deployment cost, then fine-tune its head and late blocks. Architecture search belongs outside the held-out test set. Use a separate adaptation validation split, monitor the target metric and retention of previously useful behavior, and save the exact preprocessing and training configuration.
How to use and calibrate
Fix the input protocol and target before fitting; choose design settings on held-out source videos, then freeze the evaluation procedure. Use accuracy-versus-latency and memory curves on the actual target device; compare identical input and evaluation protocols.
Example application
Choose a compact video recognizer for a fixed memory budget.
Interpretation / pitfalls
Watch out
An optimized training objective or a favorable example does not establish generalization. Use accuracy-versus-latency and memory curves on the actual target device; compare identical input and evaluation protocols. The example below isolates one mechanism and cannot substantiate a full-model benchmark claim.
Python and R code examples
Component: Inspect a simplified width/depth/resolution compute budget. Dependencies: NumPy in Python; base R in R; run the shared setup above. Python component: executed successfully. R component: unexecuted. No complete model training or pretrained inference was executed.
Full implementation route — Python: Use the official SlowFast codebase with an X3D configuration; profile decoding as well as network inference. R: Run the Python encoder from R and analyze the accuracy-resource frontier; R torch reproduction is a separate engineering task.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Inspect a simplified width/depth/resolution compute budget.
Shared setup for this chapter
import numpy as np
def softmax(x):
z = np.asarray(x, dtype=float)
e = np.exp(z - z.max())
return e / e.sum()
# Relative convolution cost proxy, not measured X3D FLOPs.
configs = [(1,1,1,1),(2,1,1,1),(1,2,1,1),(1,1,2,1)]
for time,space,width,depth in configs:
proxy = time*space**2*width**2*depth
print((time,space,width,depth),proxy)
Complete calculation — Inspect a simplified width/depth/resolution compute budget.
Shared setup for this chapter
softmax <- function(x) {
e <- exp(x - max(x))
e / sum(e)
}
configs <- data.frame(time=c(1,2,1,1),space=c(1,1,2,1),
width=c(1,1,1,2),depth=1)
configs$cost_proxy <- with(configs,time*space^2*width^2*depth)
print(configs)
Sources
- Source 1arxiv.org
From the CodeSplash reference, entry VID009.