Learning Time in Static Classifiers
Xi Ding, Lei Wang, Piotr Koniusz, Yongsheng Gao
TL;DR
The paper tackles the limitation of static classifiers that ignore temporal dynamics by introducing Support-Exemplar-Query (SEQ) learning, a loss-driven framework that imparts temporal reasoning without architectural changes. By constructing temporally coherent feature trajectories from smooth augmentations and aligning predictions to class-specific temporal prototypes via differentiable Soft-DTW, a lightweight fully connected classifier on frozen features learns time-evolving semantics. The method combines three objectives—temporal prototype alignment, semantic supervision, and temporal smoothness—into a single trainable loss, yielding strong gains on fine-grained image recognition and precise, frame-level anomaly detection in video. This approach offers a modular, data-efficient bridge between static and temporal learning, reducing architectural complexity while delivering robust temporal generalization.
Abstract
Real-world visual data rarely presents as isolated, static instances. Instead, it often evolves gradually over time through variations in pose, lighting, object state, or scene context. However, conventional classifiers are typically trained under the assumption of temporal independence, limiting their ability to capture such dynamics. We propose a simple yet effective framework that equips standard feedforward classifiers with temporal reasoning, all without modifying model architectures or introducing recurrent modules. At the heart of our approach is a novel Support-Exemplar-Query (SEQ) learning paradigm, which structures training data into temporally coherent trajectories. These trajectories enable the model to learn class-specific temporal prototypes and align prediction sequences via a differentiable soft-DTW loss. A multi-term objective further promotes semantic consistency and temporal smoothness. By interpreting input sequences as evolving feature trajectories, our method introduces a strong temporal inductive bias through loss design alone. This proves highly effective in both static and temporal tasks: it enhances performance on fine-grained and ultra-fine-grained image classification, and delivers precise, temporally consistent predictions in video anomaly detection. Despite its simplicity, our approach bridges static and temporal learning in a modular and data-efficient manner, requiring only a simple classifier on top of pre-extracted features.
