Saliency is defined as those regions in a visual scene that are ‘most noticeable’ and attract significant attention . Human visual saliency detection has been deployed in an extensive set of image processing applications including but not limited to data compression, image segmentation, recognition, image quality assessment (IQA) and object recognition 
. Broadly, saliency detection algorithms can be classified into two categories. The first is bottom-up approaches where saliency detection techniques extract features from data and compute saliency based on extracted features[16, 6, 5]. The second is top-down approaches where the algorithms have a prior target for which features are to be calculated . Both these approaches derive from the expectancy mismatch hypothesis .
The expectancy-mismatch hypothesis for a sensory system is based on receiving information which is in conflict with the system’s prior expectation. The authors in  show that a message which is unexpected, captures human attention and is hence salient. Extensive work in the field of cognitive sciences has been conducted to study the impact of expectancy-mismatch in human attention and visual saliency [27, 15, 12, 13, 2]
. Based on these works, human attention mechanism suppresses expected messages and focuses on the unexpected ones. During this process, human visual system checks whether the input scenario matches the observers’ expectation and past experience. When they are conflicting, error neurons in human brain encode the prediction error and pass the error message back to the representational neurons. Existing work applies this concept of expectancy-mismatch to saliency detection. The authors in[12, 13] show how unexpected colors impact human eye fixations.  indicates that a motion singleton captures attention.
Previous works that define expectations and calculate mismatches are based on low-level representations like colors and edges. However, the advent of deep learning has shown the importance of semantic information that combines low-level features for complicated tasks like recognition. Neural networks have shown an aptitude for learning higher-order semantic representations. In , the authors claim that it is crucial to consider semantic representations in saliency detection. In this paper, we propose to create expectancy based on high level semantic features and calculate mismatch from input information to obtain saliency. To set expectancy, we use neural networks. To calculate mismatch, we provide conflicting information to the network along with the input image to search for those regions in the input image that are affected by the conflict. In this work, conflicting information refers to labels that conflict with predicted classes. For instance, consider Fig. 1. The network has learned the low-level features like edges and colors and their combinatorial high-level semantics to recognize a car. However, by providing a conflicting label such as ‘airplane’, we force the network to reexamine its decision process. The network reconciles its expectation of finding a car and the conflicting label that it is an airplane by encoding the error within the gradients. These gradients are backpropagated throughout the network to resolve the conflict. The change brought about by the gradients is indicative of regions within the image that are used for expecting the output. We postulate that these regions are thereby salient.
In this work, we use commonly used recognition and localization pre-trained networks to set expectancy. These networks have not been exposed to either saliency datasets or eye-tracking data. Hence, the proposed method is completely unsupervised. We extract saliency that is implicitly embedded within any given network. Hence, the proposed approach is termed implicit saliency in neural networks. The contributions in this paper are three-fold:
we extract implicit saliency from pre-trained networks that have not seen eye-tracking data in an unsupervised fashion.
we show that the proposed implicit saliency is robust to noise.
we show that semantic features combined with unexpected stimuli have a higher correlation with human visual saliency than low-level features or semantic features without unexpected stimuli.
We introduce the background for the pre-trained deep neural networks in Section 2. In Section 3, we detail the proposed method to extract implicit saliency. In Section 4, we compare the performance of proposed method against state-of-art supervised methods and model saliency methods. We conclude in Sec. 5.
Visual recognition is a common activity on which humans heavily rely to interact within their environments both accurately and rapidly. It has been shown that the process of recognition and categorization inside humans takes place within [8, 29]. Furthermore, this process is performed in the cortex area of the brain, which is controlled by human attention mechanism. Hence recognition highly relates to human attention selection . Therefore, in this paper recognition networks are utilized as the backbone of the proposed implicit saliency as shown in Fig. 1. Specifically, we utilize ResNet-, , , , and VGG 
that are pre-trained on ImageNet as well as Faster R-CNN  that is pre-trained on PASCAL VOC 2007+2012 
. We implement this project in PyTorch.
We denote an layered network as , its weights as , and bias as . During the training process, and are updated until the model is parameterized by these these weights and bias. A pre-trained network provides the expectation based on the prior knowledge obtained during the feed-forward process. We call such features as feed-forward features. We also denote the provided conflicting information mentioned in Sec. 1 as and the gradients corresponding to the encoding error as conflicting features.
3 Implicit Saliency Generation
Let the pre-trained network have classes. Therefore, the prediction and the unexpected stimulus are vectors. Each class has a corresponding one-hot unexpected stimulus vector . As shown in Fig. 2, having and in hand, we encode the unexpected information by a convex loss function . The encoded unexpected information is denoted as , where is the weight, is the input, and is the assigned class in the unexpected stimulus. Note that this formulation pf is similar to the one described in . In this paper, we use CrossEntropy function for . The generation process of proposed implicit saliency map is shown in Alg. 1. represents the gradients to resolve the conflict on a specific semantic layer. Since there are classes in this pre-trained network, we get pseudo-saliency maps. Each pseudo-saiency map shows the salient region corresponding to the class in the given unexpected stimulus. Notice that we also take the network’s decision class as an unexpected stimulus because the decision comes from the highest score in the output, but the network is still not sure with its decision thereby providing a non-zero loss .
As shown in Fig. 1, for different classes, pseudo-saliency maps focus on different salient regions. The final implicit saliency map is the combination of all these salient regions. Specifically, we use mean to combine all the pseudo saliency maps. To decrease the uncertainty in the overall saliency map, we negate the variance of all the pseudo saliency maps, which in shown in Step 4 of Alg. 1. Qualitatively, we can see that the right part of the implicit saliency map is primarily influenced by the pseudo-saliency maps from airplane-like classes while the left part is derived from the car-like classes. Note that each pseudo-saliency map is a matrix with the same dimensionalities as the convolution filters in th layer. In Fig. 1, we sum it up over depth dimension and rescale it to for visualization.
In Section 1, we motivate implicit saliency using expectancy-mismatch. We generate saliency maps by highlighting regions where the network is re-examining its decision process because of provided conflict. In this section, we sequentially validate these arguments. First, we demonstrate that expectancy-mismatch in neural networks has a higher correlation with saliency as compared to feed-forward expectancy features. As such we compare the proposed implicit saliency against feed-forward feature maps. Next, we show that the regions that are in conflict with the decision process are more salient than the regions used to make the decision. Finally, we compare the performance and robustness of proposed unsupervised implicit saliency against state-of-the-art supervised saliency detection methods.
4.1 Implicit saliency of pre-trained networks
The expectancy of an input image is encoded in the feed-forward activation maps. In this experiment, we compare the saliency maps obtained by feed-forward expectancy features and proposed expectancy-mismatch features. In the feed-forward method, we use the same statistical process as Alg. 1 and denote the saliency map as . Note that instead of using gradients, we use activations to obtain . The saliency map based on conflicting features is shown in Sec. 3. We validate the saliency detection capabilities of feed-forward and conflicting features on MIT1003  dataset. MIT1003 consists of images and the corresponding eye tracking data from human subjects. We qualitatively evaluate the performance of saliency detection in Fig. 3. The feed-forward features in Fig. 3d. focus on edges and textures without specific localization. The proposed implicit saliency generates localized saliency maps which are highly correlated with the ground truth. These visualizations show that the visual saliency is more effectively captured through the expectancy-mismatch process than expectancy process.
We also quantitatively evaluate both methods using Normalized Scanpath Saliency (NSS) and Correlation Coefficient (CC) and report results in Fig. 4. Based on , NSS computes the average normalized saliency at fixation locations. High positive NSS indicates high correspondence, while negative NSS indicates anti-corresponds. CC measures the correlation between saliency maps and ground truth. Higher CC indicates better performance. Since different layers extract different semantic information, we show results from convolution layers for each model. Based on Fig. 4, the proposed method outperforms the feed-forward method by on average for NSS, and for CC. Also, the proposed method achieves more robust performance over different layers compared to the feed-forward feature. The maximum performance drop of the feed-forward feature method is and for NSS and CC across different layers. The maximum drop in conflicting feature is only and for NSS and CC, which shows our proposed method achieves stable saliency detection results across layers. These results validate the usage of expectancy-mismatch in semantic layers as compared to feed-forward features in the same layers.
4.2 Implicit Saliency vs Model Saliency
In this experiment, we show that regions where the network re-examines its decision are more salient compared to regions that are used to make decisions. Regions that are used to make decisions in a recognition network are obtained using model saliency. In this paper, we consider two model saliency methods - Grad-CAM  and Guided Backpropagation (GBP) . These methods are compared against implicit saliency among ResNet-18,34,50,101 architectures. Note that both these model saliency methods are unsupervised methods. Table 1 shows the proposed method outperforms both GradCam and GBP in both NSS and CC metrics. GBP shows the lowest results since it is designed to find only low-level features like edges. Meanwhile, Grad-CAM performs relatively well since it focuses on semantic features in the given image. However, Grad-CAM only uses the model’s decision as guidance to find the salient regions. Our proposed method utilizes the unexpected stimuli to extract high-level semantic features based on expectancy-mismatch hypothesis. From this experiment we can see that while low-level features from GBP are important for a network to make its decision, they have relatively low correlation with human attention. Semantic features that are important for the network to make decision are correlated to human attention. This correlation can be increased by using proposed expectancy-mismatch.
4.3 Robustness Analysis of Implicit Saliency
In this experiment, we compare our proposed method with 4 state-of-art methods: SalGan , DeepGazeII , ML-Net  and Shallow and Deep Networks . All these models are trained on SALICON . SALICON is an eye-tracking dataset that offers large number of saliency annotations on commonly used datasets like MS-COCO . We visualize the qualitative resulst of all these methods in Fig. 3 (e), (f), (g), (h). The results from  visualized in Fig. 3(h) cover a more comprehensive area, while Fig. 3(e), (f) and (g) provide a higher precision. The proposed implicit saliency Fig. 3(c) is both fine-grained and precise.
We quantitatively compare these methods against the proposed implicit saliency in Table 2. To ascertain robustness of all the methods, we add Gaussian blur with to input images from MIT1003. When there is no noise in the input images, our proposed method is the third best for NSS and the fourth best for CC among these methods. With noise added, our proposed method’s performance drops the least. For NSS, our performance drop is lower than the state-of-art algorithms on average, and lower than the largest drop. For CC, our performance drop is lower on average, and lower than the largest drop. Note that the comparison methods are supervised networks while the proposed method is completely unsupervised. The comparison methods are well-trained on complex scenarios similar to MIT1003. However, those scenarios are not common in PASCAL VOC 2007+2012 and ImageNet that are used to train networks in our proposed method. Also, the proposed method’s pre-trained networks are trained for tasks other than saliency detection. Despite these handicaps, the proposed implicit saliency based on expectancy-mismatch in semantic information, provides a comparable performance to supervised networks based on both qualitative and quantitative results.
In this paper we propose implicit saliency that is extracted from a pre-trained network based on expectancy-mismatch hypothesis. This network can be any of classification, detection, or recognition networks. Based on three experiments, we show that our proposed method has higher correlation with human visual saliency than only using feed-forward features. Our method is also stable across layers. The proposed implicit saliency is achieves a comparable performance and is more robust when measured against state-of-the-art supervised saliency detection methods. Additionally, by comparing with two model saliency methods, we show that our unexpected based semantic saliency features have higher correlation with human visual saliency than low-level features and semantic features without unexpected stimuli. Our method is completely unsupervised. This greatly lowers the threshold for saliency detection in terms of data collection. Also, existence of implicit saliency in neural networks can bridge the gap between recognition and neuroscience communities. Human visual saliency can be shown to be embedded into all neural networks thereby increasing the understanding of both saliency and neural networks.
-  (2018) . Ph.D. Thesis, Georgia Institute of Technology. Cited by: §1.
-  (2011) Novelty and saliency in attentional capture by unannounced motion singletons. Acta Psychologica 136 (3), pp. 290 – 299. External Links: Cited by: §1, §1.
-  MIT saliency benchmark. Cited by: §4.1.
What do different evaluation metrics tell us about saliency models?. IEEE transactions on pattern analysis and machine intelligence 41 (3), pp. 740–757. Cited by: §4.1.
A deep multi-level network for saliency prediction.
2016 23rd International Conference on Pattern Recognition (ICPR), pp. 3488–3493. Cited by: §1, Figure 3, §4.3.
SAM: Pushing the Limits of Saliency Prediction Models.
Proceedings of the IEEE/CVF International Conference on Computer Vision and Pattern Recognition Workshops, Cited by: §1.
-  (2009) Imagenet: a large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Cited by: §2.
-  (2007) Untangling invariant object recognition. Trends in Cognitive Sciences 11 (8), pp. 333 – 341. External Links: Cited by: §2.
-  (2010-06) The pascal visual object classes (voc) challenge. International Journal of Computer Vision 88 (2), pp. 303–338. Cited by: §2.
-  (2003) Recognition by top-down and bottom-up processing in cortex: the control of selective attention. Journal of Neurophysiology 90 (2), pp. 798–810. Note: PMID: 12702712 External Links: Cited by: §2.
-  (2016) Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778. Cited by: §2.
-  (2016) Perceptual salience captures the eyes on a surprise trial. Attention, Perception, & Psychophysics 78 (7), pp. 1889–1900. Cited by: §1.
-  (2002) Evidence for attentional capture by a surprising color singleton in visual search. Psychological Science 13 (6), pp. 499–505. Note: PMID: 12430832 External Links: Cited by: §1.
-  (2015-06) SALICON: saliency in context. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: §4.3.
-  (2012) Stimulus conflict and stimulus novelty trigger saliency signals in locus coeruleus and anterior cingulate cortex. In Front. Hum. Neurosci. Conference Abstract: Belgian Brain Council. doi: 10.3389/conf. fnhum, Vol. 114. Cited by: §1.
DeepGaze II: reading fixations from deep features trained on object recognition. CoRR abs/1610.01563. External Links: Cited by: §1.
-  (2016) DeepGaze ii: reading fixations from deep features trained on object recognition. arXiv preprint arXiv:1610.01563. Cited by: Figure 3, §4.3.
-  (2019) Distorted representation space characterization through backpropagated gradients. In 2019 IEEE International Conference on Image Processing (ICIP), pp. 2651–2655. Cited by: §3.
-  (2014) Microsoft coco: common objects in context. In European conference on computer vision, pp. 740–755. Cited by: §4.3.
-  (2018) Top-down saliency detection driven by visual classification. Computer Vision and Image Understanding 172, pp. 67–76. Cited by: §1.
Salgan: visual saliency prediction with generative adversarial networks. arXiv preprint arXiv:1701.01081. Cited by: Figure 3, §4.3.
-  (2016-06) Shallow and deep convolutional networks for saliency prediction. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Cited by: Figure 3, §4.3.
-  (2015) Faster R-CNN: towards real-time object detection with region proposal networks. In Advances in Neural Information Processing Systems (NIPS), Cited by: §2.
-  (2017) Grad-cam: visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE international conference on computer vision, pp. 618–626. Cited by: §4.2.
-  (2015) Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations, Cited by: §2.
-  (2014) Striving for simplicity: the all convolutional net. arXiv preprint arXiv:1412.6806. Cited by: §4.2.
-  (2009) Expectation (and attention) in visual cognition. Trends in Cognitive Sciences 13 (9), pp. 403 – 409. External Links: Cited by: §1.
-  (2018) Semantic and contrast-aware saliency. arXiv preprint arXiv:1811.03736. Cited by: §1.
-  (1996) Speed of processing in the human visual system. nature 381 (6582), pp. 520–522. Cited by: §2.
-  (2016) Salience network of the human brain. Academic press. Cited by: §1.