MAMBA: Multi-level Aggregation via Memory Bank for Video Object Detection

Guanxiong Sun, Yang Hua, Guosheng Hu, Neil Robertson

Introduction: The Challenge of Video Object Detection

Detecting objects in video is significantly more complex than in static images. Factors such as motion blur, occlusions, and unusual poses frequently degrade the quality of individual frames. To address this, researchers employ "temporal aggregation," a technique that leverages information from surrounding frames to enhance the representation of the current frame.

Historically, two main structures have dominated this field:

  1. Sliding Windows: These look at a fixed set of neighboring frames. However, they are computationally expensive and offer a limited temporal "view."
  2. Memory Queues: These use recurrent connections to pass information. While an improvement, they typically update "frame-wise," meaning that when a new frame is added, the oldest frame's data is deleted entirely, regardless of its quality.
Comparison of temporal aggregation strategies: (a) Sliding window, (b) Memory queue, and (c) the proposed Memory bank with feature-wise updates.

The authors of MAMBA argue that these methods are inefficient because they concatenate every feature in the buffer—leading to high computational overhead—and discard useful information too coarsely.

Methodology: The MAMBA Framework

MAMBA (Multi-level Aggregation via Memory Bank) introduces a flexible, sampled memory bank and a fine-grained feature-wise update strategy. The architecture is built around three novel components:

  • Light-weight Key-set Construction: Instead of performing attention-based aggregation on every feature in memory, MAMBA samples a small subset (a "key-set"). Experiments revealed that random selection performed best, likely because it maintains the highest diversity of features compared to score-based ranking.
  • Fine-grained Feature-wise Updating: Unlike previous methods that delete entire frames, MAMBA deletes features individually. This allows the memory bank to retain high-quality features from much earlier in the video, effectively extending the temporal range to the entire video length.
  • Generalized Enhancement Operation (GEO): This unified attention-based module operates at two levels: the Pixel-level (enhancing raw feature maps from the backbone) and the Instance-level (enhancing proposals from the Region Proposal Network). This dual-level approach captures both fine-grained textures and high-level object relationships.
The MAMBA architecture (a) featuring pixel-level and instance-level memory banks, and (b) the detailed memory bank module with feature-wise deletion.

Key Insights and Results

The Power of Sparsity and Diversity

A central finding of the research is that dense information is not required for effective scene understanding. By sampling just 2,000 "keys" from a bank of over 20,000 features, MAMBA maintains high accuracy while significantly reducing the computational cost of attention mechanisms. Furthermore, the success of random sampling suggests that feature diversity across time is more valuable for aggregation than simply selecting the highest-confidence (and often redundant) features.

Performance Benchmarks

Evaluated on the ImageNet VID and DET datasets, MAMBA established a new state-of-the-art for speed and accuracy:

  • Accuracy: Achieved 84.6% mAP using a ResNet-101 backbone, outperforming the previous leading method (MEGA) by 1.7%.
  • Speed: The full model runs at 9.1 FPS, while a "lite" version achieves 83.7% mAP at 12.6 FPS.
  • Scalability: Due to its light-weight sampling, MAMBA can manage a memory bank of 96,000 features, a scale that would cause traditional concatenation-based methods to fail due to memory constraints.

Conclusion and Future Directions

MAMBA demonstrates that a flexible memory bank with feature-wise updates is superior to rigid sliding windows for video object detection. While currently implemented with a two-stage detector (Faster R-CNN), the memory bank concept is generalizable. Future work may involve integrating MAMBA into one-stage architectures (like YOLO) to achieve true real-time performance (30+ FPS) without sacrificing the benefits of long-term temporal memory.

Summary updated

BibTeX
@inproceedings{sun2021mamba,
  author = {Guanxiong Sun and Yang Hua and Guosheng Hu and Neil Robertson},
  title = {{MAMBA: Multi-level Aggregation via Memory Bank for Video Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i3.16365},
}
Figure