OpenFilter: A Framework to Democratize Research Access to Social Media AR Filters

Piera Riccio, Bill Psomas, Francesco Galati, Francisco Escolano, Thomas Hofmann, Nuria Oliver

Introduction

Augmented Reality (AR) "beauty filters" have become a global cultural phenomenon, fundamentally altering how individuals present themselves online. Despite their ubiquity on platforms like Instagram and TikTok, these filters remain scientific "black boxes." Because the underlying algorithms and parameters are proprietary, researchers have historically faced a binary choice: scrape filtered images from social media—an approach fraught with ethical and privacy concerns—or rely on poor digital approximations that fail to capture the complex, non-linear transformations (such as skin smoothing, jaw-slimming, and eye-enlarging) characteristic of modern AR.

To address this gap, we present OpenFilter, an open-source framework designed to apply production-grade social media filters to standard facial datasets in a scalable, ethical, and reproducible manner. By bridging the gap between proprietary consumer software and academic research, OpenFilter enables the systematic study of how AR affects facial recognition systems and human perception.

Methodology

OpenFilter utilizes a "hardware-in-the-loop" style software pipeline to bypass the closed nature of social media applications. The framework consists of three primary components:

  1. Environment Emulation: An Android emulator runs the target social media application (e.g., Instagram) in a controlled environment.
  2. Virtual Injection: A virtual webcam system "projects" high-quality images from standard research datasets into the emulator's camera feed, tricking the app into treating the static image as a live camera input.
  3. Automated Processing: An auto-clicker system manages the workflow—loading images, applying specific AR filters, and capturing the output via high-resolution screenshots.

This pipeline achieves a throughput of approximately 900 images per hour (roughly 22,000 per day) on standard consumer hardware, allowing for the rapid generation of large-scale "beautified" datasets. For the initial study, eight popular beauty filters were selected, representing current aesthetic "canons" established by influential digital artists.

New Research Benchmarks: FairBeauty and B-LFW

Using the OpenFilter framework, we introduced two new datasets to serve as benchmarks for the community:

  • FairBeauty: Derived from the FairFace dataset, which is balanced for race, gender, and age. This dataset allows researchers to investigate whether beauty filters apply different aesthetic transformations to different demographic groups.
  • B-LFW (Beautified-LFW): Based on the Labeled Faces in the Wild (LFW) dataset, the industry standard for face verification. This enables the testing of facial recognition AI against realistic AR distortions.

Key Insights and Results

The Homogenization Effect

A primary finding of this research is that beauty filters act as a powerful "homogenizing force." By pushing diverse facial structures toward a singular aesthetic ideal (e.g., specific cheekbone heights or narrowed chin shapes), these filters make different individuals look statistically more similar to one another. Using six different face recognition models (including DeepFace and Facenet), we demonstrated that beautified faces exhibit significantly higher similarity scores than their original counterparts (p-values < 3.776e-16).

Impact on Facial Recognition AI

While these filters significantly alter facial geometry, they are generally designed to preserve the user's identity to ensure they remain recognizable to their social circle. Our testing confirmed that most filters do not "break" face recognition AI entirely, though they do cause measurable performance degradation. On the B-LFW dataset, verification accuracy dropped from a baseline of 99.8% to between 98% and 99% for most filters.

One notable outlier, "Filter 7" (Big City Life), caused a more significant drop in accuracy (up to 3.7%). This was attributed to the filter's aggressive manipulation of contrast, hue, and exposure in addition to geometric changes, suggesting that colorimetric shifts may be more disruptive to AI than structural "beautification" alone.

Diversity Loss

The reduction in facial diversity caused by these filters is substantial. The study found that the loss of unique facial features under a beauty filter is comparable to the effect of significantly blurring or down-sampling an image to the point of pixelation.

Limitations and Future Work

Currently, the OpenFilter framework is limited by the resolution constraints of Android emulators and social media apps, capping output at 512x512 pixels. This resolution may obscure fine-grained effects like subtle skin texture smoothing. Furthermore, while the framework uses standard portraits, it does not yet account for the "selfie gaze"—the specific poses and expressions common in social media photography.

Future research will utilize the FairBeauty dataset to investigate potential algorithmic biases within AR filters, specifically looking for evidence of skin-tone lightening or the "westernization" of facial features across different demographic groups. OpenFilter provides the necessary infrastructure to bring these proprietary aesthetic engines into the light of rigorous scientific inquiry.

Summary updated

BibTeX
@inproceedings{riccio2022openfilter,
  author = {Piera Riccio and Bill Psomas and Francesco Galati and Francisco Escolano and Thomas Hofmann and Nuria Oliver},
  title = {{OpenFilter: A Framework to Democratize Research Access to Social Media AR Filters}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=LhYJ1vft5p},
}
Figure