FastSal: a Computationally Efficient Network for Visual Saliency Prediction

Feiyan Hu, Kevin McGuinnessarXiv 2020

TL;DR

FastSal is a lightweight neural network designed for high-speed visual saliency prediction on a constrained computational budget. By combining a MobileNetV2 backbone with a novel "knowledge distillation" training strategy, the authors achieved near state-of-the-art accuracy while being the first model to reach real-time performance (>30 FPS) on a standard CPU.

What Problem Does This Paper Address?

Visual saliency prediction—identifying which parts of an image naturally attract human attention—is a foundational task in computer vision. It has wide-ranging applications, from optimizing video compression to improving object detection. However, most state-of-the-art (SOTA) models are computationally "heavy." Models like DeepGaze II or SalGAN often require powerful GPUs and have tens of millions of parameters, making them impractical for mobile devices or real-time applications on standard hardware.

The authors of FastSal aimed to bridge this gap, creating a model that maintains high accuracy while being orders of magnitude faster and smaller than existing solutions.

Methods

The researchers focused on two main pillars: efficient architecture and effective knowledge transfer.

  1. Efficient Backbone: They benchmarked several lightweight architectures and found that MobileNetV2 outperformed others (like EfficientNet) as a feature extractor for saliency.
  2. Compact Decoders: They proposed two decoder variants: FastSal (C), which uses feature concatenation, and FastSal (A), which uses feature addition. To keep the computational cost low, they utilized sub-pixel upsampling (PixelShuffle) to increase image resolution while simultaneously reducing channel counts, avoiding the heavy overhead of standard deconvolutional layers.
  3. Knowledge Distillation: To train a small "student" network to perform like a large "teacher" network, they used pseudo-labeling. They ran SOTA models (SalGAN and DeepGaze II) on the massive COCO dataset to generate "fake" ground truth saliency maps.
  4. Hint Loss: During training, they didn't just look at the final output. They used a "hint loss" to encourage the student network's intermediate layers to match the feature representations of the teacher network's intermediate layers.
Fig. 2. FastSal network structure. The output size is shown at the bottom of each module.

Datasets

The authors utilized several key benchmarks:

  • MIT300 & MIT1003: Standard, high-quality eye-tracking datasets used for final evaluation and ablation studies.
  • SALICON (2015 & 2017): A large-scale dataset where mouse-tracking serves as a proxy for human eye-fixations.
  • COCO: While not a saliency dataset, its 118k images were used to generate pseudo-labels for large-scale pre-training via knowledge distillation.

Key Insights and Ideas

  • Backbone Matters: Surprisingly, MobileNetV2 proved to be a better backbone for saliency than the theoretically more advanced EfficientNet-b0.
  • Decoder Simplicity: The paper demonstrates that a complex, heavy decoder is not strictly necessary for saliency prediction if the encoder features are well-integrated.
  • The Power of Pseudo-Labels: Training on a massive amount of "imperfect" data generated by a teacher model is more effective than training on a small amount of "perfect" human-annotated data alone.
  • Efficiency Gains: By using modified inverted residual blocks (see Figure 3 below) and sub-pixel upsampling, the model avoids the "bottleneck" of traditional upsampling methods.
Fig. 3. The structure of modified Inverted Residual Block. The size of each convolution kernel is marked below each convolutional block. Dexp is the dimension of a hidden separable convolutional layer Dexp = 2Din.

Key Results

FastSal achieves a remarkable balance between performance and efficiency:

  • Speed: FastSal (A) reached ~300 FPS on a GPU and >35 FPS on a CPU, making it the only model in the study capable of real-time CPU inference.
  • Model Size: With only 2.57M parameters, it is more than 10x smaller than many SOTA models.
  • Accuracy: Despite its size, FastSal (C) achieved top-3 performance in the AUC metric on the MIT300 benchmark, outperforming much larger models like SalGAN and CASNet-II.
Quantitative comparison on MIT300 showing FastSal's competitive performance against SOTA models.
Fig. 4. Frames per second on GPU and CPU of various saliency models. The y-axis is on a log scale. Larger dots represent higher FLOPs.

Limitations and Future Work

The authors noted that while depthwise convolutions (a key part of their efficiency) are theoretically fast, their actual speed depends heavily on software implementation; for instance, they found the TensorFlow implementation to be 2-3 times faster than PyTorch's at the time of writing.

Future work could involve extending this efficient architecture to video saliency prediction, where the temporal dimension adds significant computational complexity, making the need for "FastSal-like" efficiency even more critical.

Summary updated

BibTeX
@misc{hu2020fastsal,
  author = {Feiyan Hu and Kevin McGuinness},
  title = {{FastSal: a Computationally Efficient Network for Visual Saliency Prediction}},
  year = {2020},
  eprint = {2008.11151},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.11151},
}
Figure