arXiv:2610.19880cs.CVOct 2026

Manuscript Offprint

arXiv:2610.19880

CoDy: Codec Dynamics as Complementary Priors for Unsupervised Temporal Action Localization

Tianyu Yan, Qingyi Yang, Qin Yang, Xufei Guo, Yuan Tang, Rui Wang, Yixue Hao, Long Hu

Abstract

Unsupervised temporal action localization (UTAL) aims to identify action categories and localize their temporal boundaries without annotation supervision. Existing methods typically derive supervision for both tasks solely from RGB and optical-flow representations, often resulting in noisy category assignments and inaccurate temporal boundaries. In this work, we reveal an overlooked property of video codecs: group-of-pictures quantization patterns preserve category-discriminative dynamics, while motion-vector and residual variations exhibit pronounced responses around action transitions. Based on this insight, we propose CoDy, a codec dynamics-guided framework that exploits the codec as complementary information to the visual view for UTAL. CoDy integrates a codec-enhanced view with RGB and flow through confidence-aware consensus clustering, producing reliable soft pseudo-labels. It further converts codec dynamics into a class-agnostic boundary prior, which supervises visual boundary learning and guides proposal initialization and iterative refinement. The codec branches are only used during the training stage and introduce no extra codec-side computation at inference. Extensive experiments on THUMOS14 and ActivityNet v1.3 demonstrate that CoDy consistently outperforms existing UTAL methods and achieves state-of-the-art localization performance. These results establish codec signals as effective annotation-free priors for jointly inferring which actions occur and when they occur.

1. Introduction

Temporal action localization (TAL) aims to identify the actions occurring in an untrimmed video and determine the temporal boundaries of each action instance [18, 28]. Fully

Figure

Figure 1. The codec view’s predictive dynamics provide complementary priors to correct errors in the visual view.

supervised methods learn this task from action-category labels and temporal annotations [23, 28], but collecting temporal boundary annotations is expensive and inherently ambiguous [13]. Weakly supervised TAL reduces the required supervision to video-level action labels [14, 16, 27], whereas unsupervised temporal action localization (UTAL) removes these labels entirely and assumes only that the number of latent action categories is known [6, 24]. Without semantic or temporal annotations, UTAL needs to jointly discover latent action categories and localize their temporal extents. These two objectives are inherently coupled: category discovery requires foreground representations that are not dominated by background or incomplete action segments, while accurate localization requires reliable category semantics to distinguish actions from their surrounding context. Thus, there is a coupled challenge in UTAL between discovery and localization, in which errors from either side can be amplified.

Existing UTAL methods typically address this problem through an iterative paradigm. Visual representations are iteratively clustered to generate pseudo-category labels, which guide temporal localization and the resulting action proposals are then fed back to refine the pseudo-category assignments for the next iteration [11]. Recent methods improve this process through cross-view collaboration [22], uncertainty-aware learning [24], and pseudo-label refinement [7]. Nevertheless, both latent category discovery and temporal boundary estimation still rely predominantly on decoded RGB and optical-flow representations. For action category discovery, visual view captures appearance and apparent motion. However, RGB features often entangle actions with scene context, while optical flow is vulnerable to camera motion, weakening the category structure required for clustering. For action temporal localization, learned representations tend to emphasize discriminative action interiors rather than temporal transitions, leading to incomplete or over-extended boundaries. Consequently, the two stages inherit correlated errors from the same visual evidence, which may be reinforced rather than corrected during iteration. It requires complementary evidence to break this loop that can recognize latent actions while exposing their temporal transitions.

We find that the predictive structure of video coding provides a promising source of such evidence [10, 20, 21]. A video codec organizes frames into groups of pictures (GOPs) and represents temporal evolution through motion-compensated prediction and residual correction. Motion vectors describe predictable displacement, while quantized residuals retain variations unexplained by prediction [10, 20]. RGB and optical flow describe the observed visual states, whereas codec signals record how these states are predicted and corrected over time, providing a distinct view of temporal dynamics. Previous compressed-domain studies have demonstrated that codec primitives carry learnable video information [3, 4, 21]. In contrast, we investigate whether the predictive structure preserved by video coding can serve as an intrinsic prior for UTAL. Our empirical analysis reveals two complementary properties: GOP-level quantization patterns preserve category-discriminative dynamics complementary to RGB and flow, while variations in motion vectors and quantized residuals exhibit pronounced responses around action transitions. Although these signals do not directly specify action categories or exact temporal boundaries, they provide annotation-free priors for discovering what actions occur and determining when they occur.

Building on these findings, we propose CoDy, a codec dynamics-guided framework that complements decoded visual representations with predictive dynamics for UTAL. As illustrated in Figure 1, RGB and flow provide the primary visual evidence for action discovery and localization, while codec signals introduce complementary structural priors. For category discovery, CoDy constructs a GOP-level codec dynamics view. It aligns it with RGB and optical flow through confidence-aware multi-view consensus clustering, yielding reliable soft pseudo-labels. Based on these labels, the motion-vector and quantized-residual variations provide class-agnostic boundary priors for multi-scale temporal refinement. Codec-derived proposals further optimize the loop with more reliable action candidates, which are subsequently fed back to refine the multi-view category assignments. Codec information is required only during training and inference retains the learned localization network and boundary branch without additional codec processing. Extensive experiments on THUMOS14 and ActivityNet v1.3 establish new state-of-the-art performance, with particularly pronounced gains at high IoU thresholds. Our contributions are summarized as follows:

• We revisit predictive video coding and empirically reveal that GOP-level quantization preserves category-discriminative dynamics, while motion-vector and residual variations provide cues to action transitions.

• We propose CoDy, a codec-prior UTAL framework that translates these complementary structures into pseudo-label generation and boundary prior learning, thereby stabilizing the coupled discovery and localization.

• Extensive experiments on THUMOS14 and ActivityNet v1.3 establish new state-of-the-art performance, with pronounced improvements at high IoU thresholds and validate the effectiveness and generality of codec priors.

References (26)