Webpage Saliency Prediction with Two-stage Generative Adversarial Networks

Yu Li, Ya ZhangarXiv 2018

Abstract

Webpage saliency prediction is a critical task for understanding user attention in digital environments. Unlike natural images, webpages are characterized by modular layouts and sharp structural boundaries. This paper presents TSGAN, a two-stage Generative Adversarial Network that employs a coarse-to-fine prediction strategy. By integrating structural "outline" features extracted via a Laplace operator, the model effectively captures the blocky nature of web elements. Experimental results on the FIWI dataset demonstrate that TSGAN significantly outperforms existing baselines in both quantitative metrics and qualitative visual alignment with human fixations.

Introduction

Predicting saliency—identifying regions that attract human attention—has traditionally focused on natural scenes. However, webpages present unique challenges. They are composed of independent functional blocks, high-contrast text, and distinct UI elements rather than the smooth gradients found in nature. Existing models often fail to account for this "blocky" structure, leading to blurry or inaccurate predictions. For web designers and e-commerce platforms, accurate saliency maps are essential for optimizing layout and improving conversion rates.

Methodology: The TSGAN Architecture

The proposed Two-Stage Generative Adversarial Network (TSGAN) operates on a coarse-to-fine principle to handle the complexity of webpage layouts.

The TSGAN architecture features two stages of encoder-decoder networks with shared parameters and an integrated outline extraction path.

The architecture consists of several key components:

  1. First Stage (Coarse Prediction): An initial encoder-decoder network processes the raw webpage image to generate a preliminary, global saliency map.
  2. Second Stage (Fine Prediction): The coarse map is concatenated with the original image and passed through a second stage to refine local details.
  3. Structural Outlines: To leverage the edge-heavy nature of webpages, a Laplacian operator extracts the image's outline. This information is downsampled and concatenated into the decoder's feature maps, guiding the model to respect the boundaries of text blocks and buttons.
  4. Adversarial Training: The model utilizes a GAN loss to ensure the generated maps are indistinguishable from real human fixations to a discriminator. Additionally, a Total Variation (TV) regularizer is applied to reduce noise and ensure spatial smoothness.

To maintain efficiency, the weights of the encoder and decoder are shared across both stages, allowing the network to learn robust features while minimizing the parameter count.

Experimental Setup and Results

The model was evaluated using the FIWI (Fixations in Web Images) dataset, which contains 149 webpage screenshots categorized into textual, pictorial, and mixed layouts. The dataset includes eye-tracking data from 11 observers.

TSGAN achieved state-of-the-art performance, notably outperforming classic and deep-learning baselines:

  • Linear Correlation Coefficient (CC): 0.6926 (vs. 0.5947 for the next best model).
  • Normalized Scanpath Saliency (NSS): 1.5028 (vs. 1.3578 for the previous best).
Qualitative comparison showing the progression from coarse first-stage predictions to refined second-stage results, closely matching human ground truth.

Qualitatively, the two-stage approach proves highly effective. As shown in the visual results, the first stage identifies general areas of interest, while the second stage sharpens these regions, aligning them precisely with the structural elements of the webpage and human fixation patterns.

Conclusion and Future Work

TSGAN demonstrates that incorporating structural priors and a multi-stage refinement process is highly effective for domain-specific saliency tasks like webpage analysis. While the model excels in this high-contrast environment, its specialization currently limits its transferability to natural images. Future research will focus on improving generalization across diverse image domains and exploring few-shot learning techniques to overcome the limitations of small-scale eye-tracking datasets.

Summary updated

BibTeX
@misc{li2018webpage,
  author = {Yu Li and Ya Zhang},
  title = {{Webpage Saliency Prediction with Two-stage Generative Adversarial Networks}},
  year = {2018},
  eprint = {1805.11374},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.11374},
}
Figure