arXiv:2506.12585cs.CV2025-06CVPR被引 5

不改架构不重训,用时间注意力提升视频分类效果

DejaVid: Encoder-Agnostic Learned Temporal Matching for Video Classification

  • 将视频转为可变长嵌入序列,保留时间顺序和时长差异
  • 通过学习每帧每特征权重,动态调整重要性,提升准确率
  • 适配大模型、轻量部署,适合想快速升级现有视频模型的开发者

近年来,基于Transformer的大规模视频编码器在视频分类任务上取得了显著进展。然而,这些模型通常通过平均多个片段的嵌入输出来生成固定长度表示,忽略了视频时序特性,如时长差异、事件顺序及特征重要性的动态变化。现有时序建模方法常需大幅修改结构并重新训练,难以应用于现成的微调大模型。为此,我们提出DejaVid,一种无需重训练或改动架构的编码器无关方法。该框架将视频转换为多变量时间序列(MTS),自然保留时间顺序并适应不同长度。我们设计了一种受传统时间序列对齐算法启发的新神经网络,学习每时刻、每特征的权重,以捕捉特征重要性随时间的变化。实验表明,DejaVid显著提升了先进大模型性能,在Something-Something V2上达到77.2%的Top-1准确率,Kinetics-400上达89.1%,HMDB51上达88.6%,仅增加少于1.8%的可学习参数,训练时间不足3小时。代码已公开。

原文摘要 · Abstract (English)

In recent years, large transformer-based video encoder models have greatly advanced state-of-the-art performance on video classification tasks. However, these large models typically process videos by averaging embedding outputs from multiple clips over time to produce fixed-length representations. This approach fails to account for a variety of time-related features, such as variable video durations, chronological order of events, and temporal variance in feature significance. While methods for temporal modeling do exist, they often require significant architectural changes and expensive retraining, making them impractical for off-the-shelf, fine-tuned large encoders. To overcome these limitations, we propose DejaVid, an encoder-agnostic method that enhances model performance without the need for retraining or altering the architecture. Our framework converts a video into a variable-length temporal sequence of embeddings, which we call a multivariate time series (MTS). An MTS naturally preserves temporal order and accommodates variable video durations. We then learn per-timestep, per-feature weights over the encoded MTS frames, allowing us to account for variations in feature importance over time. We introduce a new neural network architecture inspired by traditional time series alignment algorithms for this learning task. Our evaluation demonstrates that DejaVid substantially improves the performance of a state-of-the-art large encoder, achieving leading Top-1 accuracy of 77.2% on Something-Something V2, 89.1% on Kinetics-400, and 88.6% on HMDB51, while adding fewer than 1.8% additional learnable parameters and requiring less than 3 hours of training time. Our code is available at https://github.com/darrylho/DejaVid.

视频分类时序建模轻量增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。