Temporal Context Consistency Above All: Enhancing Long-Term Anticipation by Learning and Enforcing Temporal Constraints
Alberto Maté, Mariella Dimiccoli
TL;DR
This work tackles long-term action anticipation from an untrimmed video by predicting a sequence of future actions and their durations. It introduces TCCA, a transformer-based encoder-decoder that leverages a LTContext encoder for strong past-context understanding, a parallel query-based decoder, and two novel components: the Bi-Directional Action Context Regularizer (BACR) and a CRF-based global temporal sequence optimizer. BACR enforces local coherence by aligning predicted past and future actions with neighboring segments, while the CRF with a learnable transition matrix models plausible action transitions and enables global sequence optimization via a Viterbi-like inference. Across four benchmarks—Breakfast, 50Salads, EpicKitchens-55, and EGTEA+—TCCA achieves state-of-the-art or highly competitive performance, often surpassing LLM-based and probabilistic baselines that rely on trimmed inputs and lack explicit duration modeling. The results demonstrate that incorporating local temporal coherence and global transition constraints yields more accurate and temporally consistent long-term forecasts, with practical implications for planning and real-time decision-making in dynamic environments.
Abstract
This paper proposes a method for long-term action anticipation (LTA), the task of predicting action labels and their duration in a video given the observation of an initial untrimmed video interval. We build on an encoder-decoder architecture with parallel decoding and make two key contributions. First, we introduce a bi-directional action context regularizer module on the top of the decoder that ensures temporal context coherence in temporally adjacent segments. Second, we learn from classified segments a transition matrix that models the probability of transitioning from one action to another and the sequence is optimized globally over the full prediction interval. In addition, we use a specialized encoder for the task of action segmentation to increase the quality of the predictions in the observation interval at inference time, leading to a better understanding of the past. We validate our methods on four benchmark datasets for LTA, the EpicKitchen-55, EGTEA+, 50Salads and Breakfast demonstrating superior or comparable performance to state-of-the-art methods, including probabilistic models and also those based on Large Language Models, that assume trimmed video as input. The code will be released upon acceptance.
