[Paper Review] Non-local NetVLAD Encoding for Video Classification
This paper proposes a compact, single-model video classification system using non-local NetVLAD encoding for YouTube-8M, integrating non-local blocks with NetVLAD to enhance feature representation. The method achieves 0.88763 GAP@20 on the public test set and ranks 4th in the 2nd YouTube-8M challenge, leveraging model averaging, bfloat16 quantization, and ensemble techniques under a 1GB model size constraint.
This paper describes our solution for the 2$^ ext{nd}$ YouTube-8M video understanding challenge organized by Google AI. Unlike the video recognition benchmarks, such as Kinetics and Moments, the YouTube-8M challenge provides pre-extracted visual and audio features instead of raw videos. In this challenge, the submitted model is restricted to 1GB, which encourages participants focus on constructing one powerful single model rather than incorporating of the results from a bunch of models. Our system fuses six different sub-models into one single computational graph, which are categorized into three families. More specifically, the most effective family is the model with non-local operations following the NetVLAD encoding. The other two family models are Soft-BoF and GRU, respectively. In order to further boost single models performance, the model parameters of different checkpoints are averaged. Experimental results demonstrate that our proposed system can effectively perform the video classification task, achieving 0.88763 on the public test set and 0.88704 on the private set in terms of GAP@20, respectively. We finally ranked at the fourth place in the YouTube-8M video understanding challenge.
Motivation & Objective
- To develop a compact, single-model video classification system under a 1GB model size constraint for the YouTube-8M challenge.
- To improve video feature representation by integrating non-local operations into NetVLAD pooling for better long-range temporal modeling.
- To enhance single-model performance using stochastic weight averaging and multiple inference runs with random feature sub-sampling.
- To enable effective model ensemble within the 1GB limit using bfloat16 parameter quantization and computational graph fusion.
- To achieve competitive performance without relying on heavy model ensembles, making the system practical for real-world deployment.
Proposed method
- Introduces non-local NetVLAD by stacking non-local blocks after NetVLAD pooling to capture long-range dependencies in video features.
- Employs soft assignment in NetVLAD to enable differentiable training, replacing hard clustering in traditional VLAD.
- Uses bfloat16 format to halve model size without significant accuracy drop, enabling larger ensembles within the 1GB limit.
- Applies linear model averaging across multiple checkpoints to improve generalization and robustness of individual models.
- Performs multiple forward passes with random feature sub-sampling and averages predictions to boost performance.
- Fuses six sub-models—LFNL-NetVLAD, LFNL-NetRVLAD, EFNL-NetVLAD, Soft-BoF-4k, Soft-BoF-8k, and GRU—into a single computational graph for inference.
Experimental results
Research questions
- RQ1Can non-local operations improve NetVLAD-based video feature encoding for large-scale video classification?
- RQ2How effective is model averaging and repeated inference with random sub-sampling in boosting single-model performance?
- RQ3To what extent can bfloat16 quantization reduce model size while preserving performance in a 1GB constraint?
- RQ4How do diverse architectures (non-local NetVLAD, GRU, Soft-BoF) complement each other in ensemble settings?
- RQ5Can a single compact model outperform ensemble-based approaches in the YouTube-8M challenge under strict size limits?
Key findings
- The non-local NetVLAD model achieved 0.8702 GAP@20 on the validation set, slightly outperforming vanilla NetVLAD (0.8698) under identical settings.
- The final ensemble model, combining all six sub-models, achieved 0.8847 GAP@20 on the validation set and 0.88763 on the public test set.
- Repeated inference with 10 random runs improved performance by 0.0005 on the validation set and 0.0005 on the public test set compared to a single run.
- Using bfloat16 reduced model size by half, enabling the inclusion of more sub-models within the 1GB limit without exceeding the constraint.
- The final submission model size was 995MB, under the 1GB limit, demonstrating effective compression and optimization.
- The system ranked 4th in the 2nd YouTube-8M challenge, outperforming many ensemble-based methods and validating the effectiveness of compact, single-model design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.