Median Pixel Difference Convolutional Network for Robust Face Recognition

Jiehua Zhang, Zhuo Su, Li Liu · DOI

Introduction

Standard Convolutional Neural Networks (CNNs) have achieved remarkable success in face recognition on high-quality datasets. However, their performance often degrades significantly when encountering real-world "dirty" data. Noise from camera sensors, motion blur, and aggressive JPEG compression can trigger false activations in standard convolutional filters, leading to a dramatic drop in recognition accuracy.

Example of a face image corrupted by additive noise, illustrating the 'dirty' data MeDiNet aims to handle.

While most existing solutions rely on image restoration (denoising) as a pre-processing step or training on specific noisy datasets, this paper introduces MeDiNet. MeDiNet features a novel Median Pixel Difference Convolutional Layer (MeDiConv) designed to provide inherent, architectural robustness to a wide variety of unpredictable noises "out of the box."

Methodology: MeDiConv

The core innovation is the MeDiConv layer, inspired by the Median Robust Extended Local Binary Pattern (MRELBP) descriptor used in texture analysis. Unlike standard convolution, which performs a weighted sum of raw pixel intensities, MeDiConv employs a three-step process to enhance robustness:

  1. Median Representation: The layer first calculates the median value of a small neighborhood (e.g., 3x3) centered at each pixel. As a non-linear filter, the median is exceptionally good at removing outliers like salt-and-pepper noise.
  2. Pixel Difference: It then subtracts a global channel mean ($\mu$) from these local medians to eliminate intensity bias.
  3. Learnable Weights: Finally, it applies standard learnable weights to these noise-resistant median differences.
Architecture of the proposed Median Pixel Difference Convolution (MeDiConv) layer compared to standard convolution.

The authors propose MeDiNet, which replaces the first few layers of a standard backbone (such as Sphere20 or ResNet18) with MeDiConv. They argue that early intervention is key: suppressing noise in the initial stages of the network prevents corrupted signals from propagating and being amplified in deeper layers.

Experimental Setup

The model was trained on the CASIA-WebFace dataset, consisting of approximately 494,000 clean images. Evaluation was conducted on four standard face recognition benchmarks: LFW (Labeled Faces in the Wild), CA-LFW, CP-LFW, and YTF (YouTube Faces). To test robustness, the authors applied a comprehensive degradation model including Gaussian/Motion blur, Additive White Gaussian Noise (AWGN), Salt-and-Pepper noise, Heteroscedastic Gaussian (HG) noise, and JPEG compression.

Key Results and Insights

MeDiNet demonstrates exceptional "zero-shot" noise robustness. Despite being trained only on clean images, its architectural design allows it to handle severe degradations:

  • Outlier Resistance: On the LFW dataset with 25% salt-and-pepper noise, a standard CNN's accuracy plummeted to ~50%, while MeDiNet (MeDi5) maintained 87.35%.
  • Combined Degradation: On the YTF dataset under combined blur, noise, and compression, the baseline achieved 76.36% accuracy, while MeDiNet reached 88.64%.
  • The Robustness Tax: The authors observed a slight trade-off; as more MeDiConv layers are added, accuracy on perfectly clean images drops slightly (e.g., from 99.22% to 98.82% on LFW). This occurs because the median operation can smooth out fine structural details (edges) that deeper layers need for high-level feature extraction.

Conclusion and Future Work

MeDiNet provides a general-purpose architectural "plug-in" for noise robustness. By integrating median filtering directly into the convolutional operation, it achieves significant gains on noisy data without requiring noisy training examples. Future work will focus on optimizing MeDiConv at the C++/CUDA level to improve computational efficiency and exploring methods to better preserve edge information in deeper layers of the network.

Summary updated

BibTeX
@inproceedings{zhang2021median,
  author = {Jiehua Zhang and Zhuo Su and Li Liu},
  title = {{Median Pixel Difference Convolutional Network for Robust Face Recognition}},
  booktitle = {BMVC},
  year = {2021},
}
Figure