SalGAN: Visual Saliency Prediction with Generative Adversarial Networks

Junting Pan, Cristian Canton-Ferrer, Kevin McGuinness, Noel E. O'Connor, Jordi Torres, Elisa Sayrol, Xavier Giró-i-NietoarXiv 2017

Abstract

We introduce SalGAN, a deep convolutional neural network for visual saliency prediction trained with adversarial examples. The first stage of the network consists of a generator model whose weights are learned by back-propagation computed from a binary cross entropy (BCE) loss over downsampled versions of the saliency maps. The resulting prediction is processed by a discriminator network trained to solve a binary classification task between the saliency maps generated by the generative stage and the ground truth ones. Our experiments show how adversarial training allows reaching state-of-the-art performance across different metrics when combined with a widely-used loss function like BCE.

Introduction

Visual saliency prediction aims to model human attention by generating heatmaps that indicate the probability of a person looking at specific regions of an image. Traditional approaches often struggle with the choice of an optimal loss function; standard metrics like Mean Squared Error (MSE) can lead to blurry predictions, while optimizing for specific metrics like AUC may degrade performance on others. SalGAN addresses this by employing a Generative Adversarial Network (GAN) framework, allowing the model to learn a data-driven metric for "realistic" saliency patterns.

Methodology: The SalGAN Architecture

SalGAN utilizes a classic adversarial setup comprising two competing neural networks: a Generator and a Discriminator.

SalGAN Architecture: The Generator (encoder-decoder) produces saliency maps, while the Discriminator distinguishes them from ground truth using the original image as context.

The Generator and Discriminator

The generator is an encoder-decoder network. The encoder is based on the VGG-16 architecture, pre-trained on ImageNet, which extracts high-level semantic features from the input image. The decoder then upsamples these features to produce a saliency map of the original input size.

The discriminator acts as a binary classifier. It receives a pair consisting of the original image and a saliency map (either predicted by the generator or human-generated ground truth). Its objective is to determine whether the saliency map is real or synthetic. By including the original image as context, the discriminator ensures that the predicted "hot spots" align with semantically relevant objects in the scene.

Training Strategy

Training is conducted in two phases. First, the generator is "bootstrapped" using Binary Cross Entropy (BCE) loss for 15 epochs to learn basic spatial layouts. Subsequently, adversarial loss is introduced. The final training objective is a weighted combination of BCE and adversarial loss, balancing pixel-wise accuracy with global structural realism.

Experimental Setup and Results

The model was evaluated on two primary benchmarks: SALICON, the largest saliency dataset featuring 20,000 images, and MIT300, the "gold standard" benchmark using actual eye-tracking data.

Qualitative comparison showing the original image, ground truth, BCE-only prediction, and SalGAN prediction. SalGAN better captures secondary salient regions like the baseball.

SalGAN achieved state-of-the-art performance on both leaderboards, excelling in metrics such as AUC-Judd, Similarity (SIM), and Correlation Coefficient (CC). A key qualitative insight is SalGAN's ability to capture secondary salient regions. While models trained solely on BCE often focus on the most prominent central object, the adversarial component encourages the model to identify smaller, semantically important details—such as a flying baseball or a background object—that humans naturally notice.

Limitations and Future Work

Despite its success, SalGAN did not show significant improvement on the Normalized Scanpath Saliency (NSS) metric. This is attributed to the GAN's tendency to produce smoother probability maps, whereas NSS is highly sensitive to false positives in non-salient areas. Additionally, the model does not explicitly incorporate "center bias," a known human psychological tendency, which remains an area for future refinement.

Conclusion

SalGAN demonstrates that adversarial training is a powerful tool for visual saliency prediction. By moving beyond rigid mathematical loss functions to a learned, data-driven discriminator, the model produces highly realistic attention maps that align closely with human perception. The framework is architecture-agnostic, suggesting that further gains could be achieved by integrating more advanced backbones or explicit biological priors.

Source code and models are available at: https://imatge-upc.github.io/saliency-salgan-2017/

Summary updated

BibTeX
@misc{pan2017salgan,
  author = {Junting Pan and Cristian Canton-Ferrer and Kevin McGuinness and Noel E. O'Connor and Jordi Torres and Elisa Sayrol and Xavier Giró-i-Nieto},
  title = {{SalGAN: Visual Saliency Prediction with Generative Adversarial Networks}},
  year = {2017},
  eprint = {1701.01081},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1701.01081},
}
Figure