FaceNet versus VGG Features in Wasserstein Distortion for Face Image Compression

Xinyu Wang, Jona BalléarXiv 2026

TL;DR

When compressing images at ultra-low bitrates, modern codecs use deep neural networks as "perceptual rulers" to preserve details humans actually care about—usually relying on generic object-classification networks like VGG. By simply swapping those generic VGG features for intermediate features from a face-recognition network (FaceNet), the authors show that a standard codec produces noticeably sharper, more faithful human faces without changing a single line of decoder code or spending a single extra bit.

What Problem Does This Paper Address?

If you ask an image compressor to minimize pixel-by-pixel error (like Mean Squared Error) when bandwidth is tight, it hedges its bets by blurring everything. To avoid blurry images, perceptual compression optimizes codecs using metrics that mimic human vision. One powerful metric is Wasserstein Distortion (WD), which compares the local statistics of deep neural network features rather than exact pixel locations—allowing a codec to plausibly resynthesize textures like hair or leaves instead of memorizing every strand.

Here is the catch: existing WD setups extract features from networks like VGG, which was trained to tell dogs from trucks. Humans, however, are hyper-sensitive to faces—especially the exact shapes and spatial geometry of eyes, mouths, and noses. Does a generic object classifier really know what matters in a human face, or can we get better facial reconstructions by giving the distortion metric a "brain" trained specifically to tell people apart?

Methods

The authors use Cool-Chic (version 5.0.0), a lightweight learned codec that compresses an image by overfitting a tiny neural decoder directly to that single image. Crucially, they do not touch the codec architecture, add face-detection masks, or manually steer bits toward regions of interest. They only swap the feature extractor inside the Wasserstein Distortion loss function.

Both tested setups share an image-level RGB distortion term and compare local feature statistics across small $3 \times 3$ neighborhoods ($\log_2 \sigma = 0.5$), keeping the compression grounded toward high fidelity:

  • The Baseline (VGG-based WD): Extracts four intermediate feature maps from a standard ImageNet-pretrained VGG-16 network.
  • The Proposed Approach (FaceNet-based WD): Replaces VGG with an Inception-ResNet-v1 FaceNet model pretrained on VGGFace2. Unlike previous face-compression work that only compares a single global identity vector at the end of the network, the authors extract four intermediate spatial feature maps and compute local Wasserstein statistics across them.

Both objectives are tuned via rate-distortion multipliers ($\lambda$) to hit a nearly identical average budget of ~0.15 bits per pixel (0.14726 bpp for FaceNet vs. 0.14727 bpp for VGG).

Datasets

  • Evaluation: 20 color images ($250 \times 250$ pixels, unaligned, distinct identities) randomly sampled from the Labeled Faces in the Wild (LFW) dataset.
  • Pretrained Feature Backbones: VGG-16 was pretrained on ImageNet, and FaceNet was pretrained on VGGFace2 (no new compression training set is needed since Cool-Chic optimizes per-image on the fly). No new benchmarks are introduced.

Key Insights and Ideas

  • What a network learned to do dictates what it refuses to blur: Because FaceNet was trained to distinguish individuals, its intermediate features penalize shifts in facial geometry. Under tight bitrates, VGG lets facial contours drift—blurring or "doubling" eyes, mouths, and glasses—whereas FaceNet keeps those structural outlines crisp (even on smaller background faces).
  • Contours vs. Skin Texture—a perceptual trade-off: Nothing is free at 0.15 bpp. While FaceNet preserves sharp facial contours, it tends to smooth away fine skin textures like wrinkles and occasionally introduces blocky artifacts. The strong human preference for FaceNet reveals an interesting quirk of perception: we find distorted eyes and mouths much more jarring than smoothed-over skin.
  • Complementary blind spots: Neither feature space captures everything about a face. VGG holds onto color and skin texture better in FaceNet's failure cases, suggesting that blending generic and domain-specific features could offer the best of both worlds.

Key Results

In a blind, pairwise human perceptual study (8 participants toggling between reconstructions and the original reference across all 20 images, totaling 160 judgments):

  • Clear Preference: FaceNet-based reconstructions were chosen in 72.5% of all judgments (116 out of 160; 70.0% when excluding the two author-participants).
  • Consistency: FaceNet won the majority vote on 16 of the 20 images, tied on 2, and lost on only 2 ($p = 0.001$).
  • Elo Rating: FaceNet achieved a Bayesian Elo score of 2067 compared to VGG's 1900 (corresponding to a 0.72 preference probability).
Pairwise human study results showing per-image wins and Bayesian Elo scores

Qualitatively, on winning images, FaceNet preserved glasses frames, eyebrows, and mouth shapes that faded or doubled under VGG. In its two losses, FaceNet either over-smoothed skin tone/color or turned eyes and facial outlines into dark, blocky bars.

Limitations and Future Work

The authors candidly frame this as a preliminary study:

  • Small Scale & Scope: The testbed covers just 20 face-centered images, a single bitrate (~0.15 bpp), one fixed pooling scale, and 8 human raters (affiliated with or known to the authors).
  • Unnormalized Loss Weights: The distortion terms are summed with unit weights without normalization, meaning differences in raw feature magnitudes between VGG and FaceNet could partially influence the results alongside feature content.
  • Next Steps: Future work will test larger, unaffiliated human cohorts and explore complex, everyday scenes where faces are just one small part of a broader background—investigating how to fuse face-specific and generic VGG features across multiple bitrates and larger pooling scales.

Summary updated

Abstract

Wasserstein distortion (WD) compares local statistics of deep features and has been used to optimize learned image codecs for perceptual quality, but existing WD objectives rely on features from networks trained for generic image classification, such as VGG. We ask whether features from a face recognition network better reflect the perceived quality of compressed faces. In the Cool-Chic codec, we replace the VGG features in a WD-based objective with intermediate feature maps of FaceNet, and compare the two objectives on 20 LFW face images at a matched average bitrate of about 0.15 bits per pixel. In a preliminary pairwise human study, FaceNet-based reconstructions were preferred in 72.5% of judgments and by a majority of participants on 16 of the 20 images. These results suggest that the choice of feature network inside WD affects the perceived quality of face images, and that face recognition features are a promising direction for face-aware perceptual compression.
BibTeX
@misc{wang2026facenet,
  author = {Xinyu Wang and Jona Ballé},
  title = {{FaceNet versus VGG Features in Wasserstein Distortion for Face Image Compression}},
  year = {2026},
  eprint = {2611.32220},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32220},
}

Loading related content...

Figure