Parameter Efficient Local Implicit Image Function Network for Face Segmentation

Mausoom Sarkar, Nikitha S. R., Mayur Hemani, Rishabh Jain, Balaji KrishnamurthyCVPR 2023

Abstract

Face parsing is defined as the per-pixel labeling of images containing human faces. The labels are defined to identify key facial regions like eyes, lips, nose, hair, etc. In this work, we make use of the structural consistency of the human face to propose a lightweight face-parsing method using a Local Implicit Function network, FP-LIIF. We propose a simple architecture having a convolutional encoder and a pixel MLP decoder that uses 1/26th number of parameters compared to the state-of-the-art models and yet matches or outperforms state-of-the-art models on multiple datasets, like CelebAMask-HQ and LaPa. We do not use any pretraining, and compared to other works, our network can also generate segmentation at different resolutions without any changes in the input resolution. This work enables the use of facial segmentation on low-compute or low-bandwidth devices because of its higher FPS and smaller model size.

Introduction

Face parsing—the task of assigning pixel-wise labels to facial features like eyes, nose, and hair—is a cornerstone of digital makeup, face swapping, and AR filters. However, current state-of-the-art (SOTA) models are often "heavyweights," requiring massive parameter counts and high computational power, which makes them difficult to deploy on mobile or low-bandwidth devices.

Furthermore, traditional convolutional neural networks (CNNs) are typically tied to specific input and output resolutions. If you want a higher-resolution mask, you often need to retrain the model or deal with blurry upsampling artifacts. The authors introduce FP-LIIF (Face Parsing Local Implicit Image Function) to bridge this gap, creating a model that is both computationally efficient and resolution-agnostic.

Methodology

The FP-LIIF architecture consists of two main components designed for efficiency and flexibility:

  1. Lightweight Encoder: A modified version of the EDSR (Enhanced Deep Residual Network) architecture. It uses 24 residual blocks but adds Instance Normalization after each convolution to better preserve fine-grained facial details during downsampling.
  2. Pixel MLP Decoder: Instead of using standard transposed convolutions for upsampling, the model uses an MLP (Multi-Layer Perceptron) that views the image as a continuous function. For any given $(x, y)$ coordinate, the MLP queries the local feature grid and predicts the probability of that pixel belonging to a specific facial class.
The FP-LIIF architecture overview, showing the transition from input image to latent features and finally to the per-pixel softmax output via a Pixel MLP.

To improve accuracy at the boundaries, the model employs a dual-loss strategy: standard Cross-Entropy plus an Edge-aware Cross-Entropy loss, which forces the network to pay extra attention to sharp transitions between facial features (e.g., the line between the lip and the skin).

Experimental Results

The model was evaluated on three standard benchmarks: LaPa (22,168 images), CelebAMask-HQ (30,000 images), and Helen (2,330 images).

Performance and Efficiency

  • Parameter Efficiency: FP-LIIF uses only 2.29 million parameters, compared to 59.67 million for the previous SOTA (DML-CSR), representing a roughly 26x reduction.
  • Speed: It achieves 110 FPS on an Nvidia A100 GPU, outperforming the 76 FPS of DML-CSR.
  • Accuracy: Despite its small size, it matches or exceeds SOTA performance. On the LaPa dataset, it achieved a Mean F1 score of 92.41, slightly edging out much larger models.
Qualitative comparison between Ground Truth, DML-CSR, and FP-LIIF across various challenging facial poses and occlusions.

Resolution Flexibility

By using an implicit representation (LIIF), the model learns a mapping from coordinates to labels rather than just a grid of pixels. This allows the model to generate high-quality masks at arbitrary resolutions with minimal degradation. For instance, the model can perform "low-resource inference" by predicting a 128x128 mask and upscaling it to reach nearly 300 FPS while maintaining a competitive F1 score.

Discussion and Conclusion

The core success of FP-LIIF lies in exploiting the structural consistency of the human face. Because facial features appear in predictable relative positions, a low-parameter model can learn the underlying geometry more efficiently than it could for generic objects. However, this specialization is also a limitation; performance drops significantly on unstructured datasets like Cityscapes.

Future work includes improving performance on underrepresented classes like earrings and hats, and extending the implicit representation approach to other structured domains, such as medical imaging or human body parsing.

Summary updated

BibTeX
@inproceedings{sarkar2023parameter,
  author = {Mausoom Sarkar and Nikitha S. R. and Mayur Hemani and Rishabh Jain and Balaji Krishnamurthy},
  title = {{Parameter Efficient Local Implicit Image Function Network for Face Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=HFwKmos8a8},
}
Figure