arXiv:2610.26915cs.CVOct 2026

Manuscript Offprint

arXiv:2610.26915

CodecMotion-OAD: Efficient Online Action Detection with Compressed-Domain Motion

Zepeng Sun, Naichuan Zheng, Hailun Xia, Junjie Wu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Online action detection (OAD) identifies ongoing actions in streaming videos. Many existing OAD systems combine RGB appearance with optical flow, but dense-flow extraction remains a major computational bottleneck. Codec motion vectors (MVs) are available during decoding, avoiding a separate optical-flow computation. On THUMOS'14, optical flow exceeds MVs by 11.2 mAP points with motion-only inputs, whereas the gap narrows to 3.7 points after RGB fusion, with the largest reduction in action-category discrimination. We propose CodecMotion-OAD, which replaces optical flow with decoder-provided MVs while retaining existing temporal detector architectures. Its two-stage training first aligns MV features with a pretrained flow-feature interface without action labels and then trains RGB+MV detectors using ground-truth labels and soft predictions from a frozen RGB+Flow teacher. To the best of our knowledge, this is the first application of codec MVs to frame-level OAD. On THUMOS'14 with MiniROAD, CodecMotion-OAD achieves 68.3 mAP versus 70.9 mAP for matched-distillation RGB+Flow, while reducing decoder-to-prediction processing time by 11.48× on CPU and 2.04× on GPU.

Keywords: Online action detection; compressed-domain motion; motion vectors; optical flow; soft-label distillation.

1 Introduction

Online action detection (OAD) identifies ongoing actions in untrimmed video streams using observations available at each prediction step [1]. Many existing OAD systems combine RGB appearance with dense optical flow. Although recent research has improved the efficiency of temporal modeling [2, 3, 15, 4], dense optical-flow extraction remains a major computational bottleneck [3, 4]. Our measurements confirm this bottleneck: in the MiniROAD CPU pipeline, optical-flow extraction alone takes approximately 1008 ms per feature step, compared with 1098.1 ms for the complete decoder-to-prediction path.

Compressed videos contain motion vectors (MVs) generated during inter-picture prediction. These vectors are available during decoding, avoiding a separate optical-flow computation. Prior studies have exploited compressed-domain motion for action recognition, including approaches with optical-flow supervision [6, 7, 8]. Its use for frame-level

Figure

Figure 1: Accuracy–processing trade-off of MiniROAD on THUMOS'14 under matched soft-label distillation. CodecMotion-OAD achieves 68.3 mAP compared with 70.9 mAP for RGB+TV-L1, while reducing decoder-to-prediction processing time by 2.04×2.04\times on an NVIDIA Tesla V100 GPU and 11.48×11.48\times on an Intel Xeon Gold 6240 CPU with eight threads. Filled markers denote GPU measurements, and hollow markers denote CPU measurements. The horizontal axis uses a logarithmic scale.

OAD on untrimmed video streams remains less explored, where predictions are made sequentially from available observations. Codec MVs also differ from dense flow in spatial support and prediction statistics. We therefore examine the incremental discriminative value of optical flow over codec MVs when RGB appearance is already available.

We quantify this additional benefit using matched motion windows and without soft-label distillation. On THUMOS'14, optical flow exceeds codec motion by 11.2 mAP points when motion is used alone, but the gap narrows to 3.7 points after RGB fusion. Further analyses reveal a particularly large reduction in the action-category discrimination gap, while the action-versus-background gap decreases less. These findings suggest that motion-only performance can overstate the benefit of expensive flow in an RGB-based detector; Section 3 provides the corresponding evidence.

These findings motivate CodecMotion-OAD, an RGB+MV OAD system that substitutes decoder-provided codec motion for dense optical flow while retaining existing temporal detectors. We develop Interface-Preserving Motion Transfer (IPMT) as its training procedure. IPMT separates label-free motion-feature interface alignment from detector-level soft-label supervision using a frozen RGB+Flow teacher. The resulting RGB+MV detectors preserve their original temporal architectures and require neither optical-flow estimation nor the teacher at inference. We evaluate CodecMotion-OAD with MiniROAD, CMeRT, LSTR, and TeSTra.

Figure 1 summarizes the accuracy–processing trade-off for MiniROAD under matched soft-label distillation. Replacing TV-L1 optical flow with codec motion reduces CPU processing from 1098.1 to 95.6 ms/step (11.48×) and GPU processing from 77.9 to 38.2 ms/step (2.04×), with 68.3 versus 70.9 mAP. The measurements cover decoding, feature extraction, and detection; Section 5.3 presents the full efficiency comparison.

Our contributions are summarized as follows:

• Task-conditional analysis of motion utility. We characterize the incremental contribution of dense optical flow beyond RGB appearance in frame-level OAD through matched motion-only and RGB-fused comparisons, frame-wise probes, action-presence/category diagnostics, Flow-specific residual analysis, and controlled spatial coarsening.

• Codec-motion OAD with interface-preserving training. To the best of our knowledge, CodecMotion-OAD is the first application of codec MVs to frame-level OAD. Its IPMT procedure separates label-free feature-interface adaptation from soft-label supervision of the temporal detector, supporting four established OAD architectures without changing their temporal models.

• Measured efficiency with controlled accuracy comparisons. On MiniROAD, codec motion yields 11.48×11.48 \times CPU and 2.04×2.04 \times GPU decoder-to-prediction processing speedups, with a 2.6-point mAP difference relative to RGB+Flow under the same distillation supervision. We further evaluate performance across THUMOS'14 and Charades.