Lightweight Attentional Feature Fusion: A New Baseline for Text-to-Video Retrieval

Fan Hu, Aozhu Chen, Ziyue Wang, Fangming Zhou, Jianfeng Dong, Xirong Li

TL;DR

The authors propose Lightweight Attentional Feature Fusion (LAFF), a simple yet highly effective block for combining diverse video and text features in retrieval tasks. By replacing computationally heavy Transformers with a streamlined weighted-sum approach, LAFF achieves state-of-the-art performance across five major benchmarks while remaining interpretable and data-efficient.

What Problem Does This Paper Address?

In text-to-video retrieval, the goal is to find the most relevant video for a given text query. Modern systems rely on a variety of "off-the-shelf" features: 2D-CNNs for objects, 3D-CNNs for motion, and various embeddings (like BERT or CLIP) for text.

The challenge lies in feature fusion: how do we best combine these diverse signals? Traditional methods like simple vector concatenation (early fusion) or averaging similarities (late fusion) often fail to capture the relative importance of different features. While Multi-Head Self-Attention (MHSA) is a popular modern alternative, the authors argue it is overkill—it's computationally expensive and tends to over-emphasize correlated features rather than finding the optimal combination of complementary ones.

Methods

The core of the paper is the LAFF block, a "less is more" approach to attention.

  1. Transformation: Diverse input features are first projected into a common $d$-dimensional space using a linear layer followed by a tanh activation.
  2. Weighting: Instead of modeling complex inter-feature correlations like a Transformer, LAFF learns a single weight for each feature using a small linear layer and a softmax function.
  3. Fusion: The final representation is a convex combination (a weighted sum) of the transformed features.
Fig. 1: Three distinct blocks for feature fusion: (a) Multi-Head Self- Attention (MHSA), (b) Attention-free, and (c) our proposed LAFF.

The authors extend this into a Multi-head LAFF architecture (Fig. 2), where multiple pairs of LAFF blocks create several latent common spaces. They also introduce LAFF-ml (Fig. 3), a multi-level variant that can aggregate frame-level features into video-level representations before the final fusion step.

Conceptual diagram of the paired LAFF architecture for retrieval.

Datasets

The model was evaluated on five diverse public benchmarks:

  • MSR-VTT: 10k videos with 20 captions each (the de facto standard).
  • MSVD: Short video clips with multi-lingual descriptions.
  • TGIF: Animated GIFs focusing on social media content.
  • VATEX: A large-scale high-quality dataset for video-and-language research.
  • TRECVID AVS (2016-2020): A large-scale collection used for ad-hoc video search competitions.

Key Insights and Ideas

  • Simplicity Wins: Optimizing the combination of features is more effective for retrieval than modeling their correlations. LAFF outperforms MHSA while being significantly more lightweight.
  • Interpretability as a Feature: Because LAFF produces explicit weights for each feature, researchers can see which models contribute most to a specific result. For example, 3D-CNN features (like ircsn or x3d) receive higher weights when a video contains significant motion.
  • Harnessing "Dark Knowledge": LAFF provides a unified way to exploit existing pre-trained models without needing to re-train them end-to-end, making it a practical "plug-and-play" baseline for engineers.
  • Efficiency: As shown in the complexity analysis, LAFF requires roughly 3.4x fewer FLOPs than MHSA for the fusion step.
Table 2: Complexity analysis of feature fusion blocks, with D indicating the overall dimension of the input features and d as the dimension of the output features. FLOPs are computed based on input features of shape 8 × 2048.

Key Results

LAFF consistently outperformed existing fusion baselines (like JE, W2VV++, and MMT) across all tested datasets.

  • On MSR-VTT, LAFF achieved a Mean Average Precision (mAP) of 0.358, a significant jump over the concatenation baseline (0.247).
  • In the TRECVID AVS competition series, LAFF-based models outperformed the top-ranked solutions from previous years.
  • Feature Selection: The authors showed they could use LAFF weights to select the top-3 features and still retain 98.6% of the full model's performance, enabling the creation of more compact, faster models.

Limitations and Future Work

While LAFF is highly effective at fusing existing features, it does not inherently improve the quality of the underlying features themselves. The authors note that the performance of the system is still heavily dependent on the strength of the pre-trained extractors (like CLIP).

Future research directions suggested include investigating how to better separate videos and captions along different semantic axes within the multi-head spaces and exploring if this lightweight approach can be applied to other multi-modal tasks like video captioning or question answering.

Summary updated

BibTeX
@inproceedings{hu2022lightweight,
  author = {Fan Hu and Aozhu Chen and Ziyue Wang and Fangming Zhou and Jianfeng Dong and Xirong Li},
  title = {{Lightweight Attentional Feature Fusion: A New Baseline for Text-to-Video Retrieval}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=ycY2ymg9NH},
}
Figure