Analyzing Online Political Advertisements

Danae Sanchez Villegas, Saeid Mokaram, Nikolaos Aletras

Abstract

Online political advertising is a central aspect of modern election campaigning for influencing public opinion. Computational analysis of political ads is of utmost importance in political science to understand the characteristics of digital campaigning. It is also important in computational linguistics to study features of political discourse and communication on a large scale. In this work, we present the first computational study on online political ads with the aim to (1) infer the political ideology of an ad sponsor; and (2) identify whether the sponsor is an official political party or a third-party organization. We develop two new large datasets for the two tasks consisting of ads from the U.S.. Evaluation results show that our approach that combines textual and visual information from pre-trained neural models outperforms a state-of-the-art method for generic commercial ad classification. Finally, we provide an in-depth analysis of the limitations of our best-performing models and linguistic analysis to study the characteristics of political ads discourse.

Introduction

In the high-stakes arena of modern elections, the battle for public opinion has moved from physical billboards to digital feeds. While billions are spent on online political advertising, systematic tools to analyze ad content and sponsorship have been lacking. This shift has created a "transparency crisis," as online ads are often "dark"—targeted at specific micro-audiences and sponsored by opaque third-party organizations or "dark money" groups.

Unlike commercial advertisements, political ads are driven by ideology, frequently employ negative framing, and rely on subtle linguistic and visual cues. This paper presents a multimodal machine learning approach to automatically identify the political ideology (Liberal vs. Conservative) and the sponsor type (Official Party vs. Third-Party) of online advertisements, providing essential tools for democratic oversight.

Methods

The researchers treated the classification of political ads as a multimodal problem, leveraging both textual and visual information. The pipeline involves three main components:

  1. Text Extraction: Optical Character Recognition (OCR) via the Google Vision API is used to extract "Image Text" (IT) directly from the ad.
  2. Visual Description: To bridge the gap between pixels and language models, the DenseCap algorithm generates descriptive captions for various image regions (e.g., "a man wearing glasses").
  3. Multimodal Fusion: The extracted text and DenseCap descriptions are processed by BERT. Simultaneously, EfficientNet, a convolutional neural network, extracts raw visual features. The best-performing model, BERT+EffN, concatenates these representations for final prediction.
Figure 3: Example of multimodal feature extraction, showing the original ad, extracted Image Text, and DenseCap visual descriptions.

Datasets

The study introduced two large-scale datasets sourced from the Google Public Transparency Report, covering U.S. ads from 2018 to 2020:

  • Ideology Dataset: 5,548 ads labeled as Liberal or Conservative based on Federal Election Commission (FEC) affiliation.
  • Sponsor Type Dataset: 15,116 ads labeled as Political Party (officially registered) or Third-Party (businesses, non-profits, etc.).
Figure 1: Sample ads illustrating the different categories of political ideology and sponsor types used in the study.

Key Insights and Results

The multimodal approach significantly outperformed standard commercial ad classification baselines. The best model (BERT + DenseCap + EfficientNet) achieved a 75.76 Macro F1 score for ideology prediction and an 87.36 Macro F1 score for sponsor type prediction.

Several key findings emerged from the analysis:

  • Textual Primacy: "Image Text" was the most predictive single feature, but adding visual context (DenseCap and EfficientNet) consistently boosted accuracy.
  • Linguistic Fingerprints: Correlation analysis revealed distinct ideological vocabularies. Conservative ads frequently used terms like "senate," "border," and "taxes," while Liberal ads focused on "necessary," "values," and "win."
  • The Tone of Third Parties: Ads from third-party organizations were found to be more confrontational and divisive, often using aggressive calls to action like "WE CAN’T LET [PERSON] WIN!"
  • The "Noise" Challenge: Political ads are visually complex. Logos and artistic text can sometimes hinder standard OCR and BERT models trained on cleaner text sources.

Conclusion and Future Work

While the current models are highly effective, they still struggle with "contextual world knowledge"—such as understanding the symbolic weight of a specific military item or a health policy issue within a party's platform. Future research will aim to incorporate external knowledge bases and expand the analysis to other dominant digital formats, including speech and video.

Summary updated

Abstract

Online political advertising is a central aspect of modern election campaigning for influencing public opinion. Computational analysis of political ads is of utmost importance in political science to understand the characteristics of digital campaigning. It is also important in computational linguistics to study features of political discourse and communication on a large scale. In this work, we present the first computational study on online political ads with the aim to (1) infer the political ideology of an ad sponsor; and (2) identify whether the sponsor is an official political party or a third-party organization. We develop two new large datasets for the two tasks consisting of ads from the U.S.. Evaluation results show that our approach that combines textual and visual information from pre-trained neural models outperforms a state-of-the-art method for generic commercial ad classification. Finally, we provide an in-depth analysis of the limitations of our best-performing models and linguistic analysis to study the characteristics of political ads discourse.
BibTeX
@inproceedings{villegas2021analyzing,
  author = {Danae Sanchez Villegas and Saeid Mokaram and Nikolaos Aletras},
  title = {{Analyzing Online Political Advertisements}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=YggmmMTeqNL},
}
Figure