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

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

TL;DR

The authors propose LAFF (Lightweight Attentional Feature Fusion), a simple yet highly effective block for merging diverse video and text features. By focusing on learning the optimal weighted combination of features rather than complex inter-feature correlations, LAFF outperforms heavy Transformer-based models and sets a new performance baseline across five major retrieval benchmarks.

What Problem Does This Paper Address?

Text-to-video retrieval—finding the right video for a specific text query—requires mapping both modalities into a shared mathematical space. Today, researchers have access to a wealth of "off-the-shelf" features: 2D-CNNs for objects, 3D-CNNs for motion, and various language models (BERT, Word2Vec, CLIP) for text.

The challenge lies in fusion. How do we combine these diverse, often incompatible features optimally? Previous work usually focused on fusing features at only one end (just video or just text) or relied on simple methods like vector concatenation or basic averaging. While Multi-head Self-Attention (MHSA) is the current "gold standard" for fusion, the authors argue it is computationally expensive and prone to a "group effect," where it over-emphasizes redundant, highly correlated features at the expense of unique, complementary ones.

Methods

The core contribution is the LAFF block, a lightweight alternative to the self-attention mechanisms found in Transformers.

  1. Feature Rectification: Since different extractors produce vectors of different sizes, LAFF first passes each feature through a linear layer and a tanh activation to project them into a common $d$-dimensional space.
  2. Attentional Weighting: Instead of modeling how every feature relates to every other feature (like MHSA), LAFF learns a single set of weights $\{a_1, ..., a_k\}$ using a small linear layer and a softmax. These weights represent the importance of each feature.
  3. Convex Combination: The final representation is a weighted sum of the input features. This makes the fusion process a "convex combination," which is mathematically stable and easy to interpret.
  4. Multi-Space Alignment: To handle the complexity of video content, the authors deploy $h$ pairs of LAFF blocks to create multiple "common spaces." The final similarity score is the average of the similarities calculated in each space.
  5. LAFF-ml (Multi-level): The authors also introduce a variant that can aggregate frame-level features into video-level features before performing the final cross-modal fusion.

Datasets

The model was evaluated on five diverse and rigorous benchmarks:

  • MSR-VTT: The de facto standard for video retrieval (10k videos).
  • MSVD: Short YouTube clips with multiple descriptions.
  • TGIF: Focused on animated GIFs.
  • VATEX: A large-scale multilingual dataset.
  • TRECVID AVS (2016-2020): A massive, competition-grade benchmark for ad-hoc video search.

Key Insights and Ideas

  • Simplicity is a Feature: The authors hypothesize that for feature fusion, optimizing the combination of features is more important than modeling their correlations. LAFF has significantly fewer parameters than MHSA but consistently yields better retrieval results.
  • Avoiding the "Group Effect": MHSA tends to over-attend to features that are similar to each other. LAFF treats features more independently, allowing it to better harness "dark knowledge" from diverse, non-redundant sources (like action-focused 3D-CNNs vs. object-focused 2D-CNNs).
  • Built-in Interpretability: Because LAFF produces a single weight per feature, you can see exactly which model is doing the heavy lifting. For example, they found that CLIP features usually dominate (~64% weight for text), but 3D-CNNs like x3d become much more important when the video contains significant motion (e.g., martial arts).
  • Feature Selection: The interpretability of LAFF allows for "pruning." By re-training with only the top-3 ranked features, the authors maintained 98.6% of the original performance while significantly reducing computational overhead.

Key Results

  • Superior Performance: LAFF outperformed MHSA, vector concatenation, and other state-of-the-art fusion methods (like MMT and SEA) across all datasets.
  • MSR-VTT Results: On the MV-test3k split, LAFF achieved a mean Average Precision (mAP) of 0.358, compared to 0.247 for the standard concatenation baseline and 0.306 for MHSA.
  • TRECVID Dominance: In the TRECVID AVS tasks, LAFF-ml set new state-of-the-art marks for the 2016–2019 datasets, proving its scalability to massive, real-world video collections.
  • Efficiency: As shown in the paper's complexity analysis, LAFF requires roughly 3.4x fewer FLOPs than MHSA for the fusion stage.

Limitations and Future Work

  • Multi-Space Investigation: While the multi-head (multi-space) approach improves performance, the authors note that it is still not entirely clear how the different spaces specialize (e.g., does one space focus on objects while another focuses on actions?).
  • Feature Dependency: LAFF is a fusion framework; its performance is still ultimately capped by the quality of the "off-the-shelf" features provided to it.
  • Future Directions: The authors suggest that exploring how to integrate LAFF into fully end-to-end trainable pipelines (rather than using pre-extracted features) could be a promising next step.

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