Skip to main content
QUICK REVIEW

[Paper Review] Percival: Making In-Browser Perceptual Ad Blocking Practical With Deep Learning

Zain ul Abi Din, Panagiotis Tigas|arXiv (Cornell University)|May 17, 2019
Adversarial Robustness in Machine LearningComputer Science53 references16 citations
TL;DR

Percival presents a lightweight, deep learning-powered ad blocker embedded directly in the browser's image rendering pipeline, enabling real-time, perceptual ad detection with only 4.55% performance overhead. It achieves 96.76% accuracy in replicating EasyList rules and effectively blocks first-party Facebook ads and non-English ads, demonstrating the feasibility of deploying compact, high-accuracy models in the browser's critical rendering path.

ABSTRACT

In this paper we present Percival, a browser-embedded, lightweight, deep learning-powered ad blocker. Percival embeds itself within the browser's image rendering pipeline, which makes it possible to intercept every image obtained during page execution and to perform blocking based on applying machine learning for image classification to flag potential ads. Our implementation inside both Chromium and Brave browsers shows only a minor rendering performance overhead of 4.55%, demonstrating the feasibility of deploying traditionally heavy models (i.e. deep neural networks) inside the critical path of the rendering engine of a browser. We show that our image-based ad blocker can replicate EasyList rules with an accuracy of 96.76%. To show the versatility of the Percival's approach we present case studies that demonstrate that Percival 1) does surprisingly well on ads in languages other than English; 2) Percival also performs well on blocking first-party Facebook ads, which have presented issues for other ad blockers. Percival proves that image-based perceptual ad blocking is an attractive complement to today's dominant approach of block lists

Motivation & Objective

  • To develop a practical, in-browser ad blocker that leverages deep learning for perceptual ad detection without significant performance cost.
  • To overcome the limitations of traditional rule-based ad blockers, which fail against obfuscated or dynamically changing ad domains.
  • To enable effective detection of first-party ads (e.g., Facebook sponsored content) and non-English ads, which are often missed by existing systems.
  • To demonstrate that lightweight, optimized deep neural networks can be deployed efficiently within the browser’s rendering pipeline for real-time classification.
  • To provide a complementary, language-agnostic ad blocking layer that enhances existing filter-list-based systems.

Proposed method

  • Integrates a lightweight deep neural network into the browser’s image rendering pipeline, intercepting and classifying images during page rendering.
  • Uses a compressed, 1.76MB deep learning model optimized for low-latency inference in the browser environment.
  • Performs synchronous ad blocking during rendering with minimal performance impact (4.55% overhead) and asynchronous classification with memoization for performance gains.
  • Employs image-level classification to detect ads based on visual cues such as AdChoices logos and sponsored content indicators, independent of text or metadata.
  • Trained on a diverse dataset of ad and non-ad images, including non-English and first-party ads, to ensure generalization across languages and ad types.
  • Applies image size filtering (100×100 threshold) to skip small images and reduce processing load, deferring classification when needed.

Experimental results

Research questions

  • RQ1Can a deep learning-based, in-browser ad blocker be deployed with minimal performance overhead in the critical rendering path of a modern browser?
  • RQ2Can a compact, optimized deep neural network achieve high accuracy in detecting ads based solely on visual appearance, without relying on textual or URL-based heuristics?
  • RQ3How effective is perceptual ad blocking in detecting first-party ads, such as Facebook’s sponsored content, compared to traditional rule-based systems?
  • RQ4To what extent can a perceptual ad blocker generalize across languages and ad designs not explicitly seen during training?
  • RQ5Can such a system serve as a viable, complementary layer to existing blocklist-based ad blockers?

Key findings

  • The Percival system achieves only 4.55% average performance overhead in Chromium, demonstrating the feasibility of deploying deep neural networks within the browser’s rendering pipeline.
  • It replicates EasyList rules with 96.76% accuracy, showing strong compatibility with existing ad-blocking heuristics.
  • The model blocks first-party Facebook ads with 92% accuracy, achieving 78.4% precision and 70.0% recall, outperforming traditional rule-based systems on this challenge.
  • The system shows strong generalization to non-English ads, demonstrating language-agnostic detection due to its reliance on visual features rather than text.
  • The 1.76MB model is 150× smaller than comparable models, enabling efficient deployment in resource-constrained environments.
  • The system mitigates performance regressions by skipping images below 100×100 pixels and deferring classification of small images to asynchronous threads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.