QuantFace: Efficient Quantization for Face Restoration

Jiatong Li, Libo Zhu, Haotong Qin, Jingkai Wang, Linghe Kong, Guihai Chen, Yulun Zhang, Xiaokang Yang · DOI

Abstract

Diffusion models have been achieving remarkable performance in face restoration. However, the heavy computations hamper the widespread adoption of these models. In this work, we propose QuantFace, a novel low-bit quantization framework for face restoration models, where the full-precision (i.e., 32-bit) weights and activations are quantized to 4~6-bit. We first analyze the data distribution within activations and find that it is highly variant. To preserve the original data information, we employ rotation-scaling channel balancing. Furthermore, we propose Quantization-Distillation Low-Rank Adaptation (QD-LoRA), which jointly optimizes for quantization and distillation performance. Finally, we propose an adaptive bit-width allocation strategy. We formulate such a strategy as an integer programming problem that combines quantization error and perceptual metrics to find a satisfactory resource allocation. Extensive experiments on the synthetic and real-world datasets demonstrate the effectiveness of QuantFace under 6-bit and 4-bit. QuantFace achieves significant advantages over recent leading low-bit quantization methods for face restoration.

Introduction

Face restoration—the process of recovering high-quality facial images from blurry, noisy, or low-resolution inputs—has been revolutionized by diffusion models. Despite their success, these models are computationally intensive, requiring substantial VRAM and processing power. This "heaviness" makes them difficult to deploy on resource-constrained platforms like smartphones or edge devices.

Model quantization, which converts 32-bit floating-point (FP32) weights and activations into low-bit integers (e.g., 4-bit), offers a path toward efficiency. However, aggressive quantization often destroys critical fine details, such as hair texture and eye clarity, due to the highly volatile data distribution in these models. Existing quantization methods frequently struggle to manage "outliers" without sacrificing the subtle information necessary for realistic facial reconstruction.

Severe artifacts in facial features (e.g., eyes) caused by naive low-bit quantization.

Methodology

QuantFace introduces three primary innovations to enable high-quality low-bit face restoration:

1. Rotation-Scaling Channel Balancing

Activations in face restoration models exhibit high variance across different channels. To address this, QuantFace employs a Randomized Hadamard Transform (RHT) to "rotate" the feature space. This process spreads information more uniformly across channels, making the data significantly easier for a 4-bit quantizer to process without substantial information loss.

2. Quantization-Distillation LoRA (QD-LoRA)

To bridge the performance gap between FP32 and quantized models, a specialized Low-Rank Adaptation (LoRA) is used. This approach utilizes two branches: one initialized via Singular Value Decomposition (SVD) to maintain proximity to the original weights, and another dedicated to distilling knowledge from the high-precision "teacher" model.

3. Adaptive Bit-width Allocation

Recognizing that neural network layers vary in their sensitivity to quantization, QuantFace uses an integer programming strategy to automatically allocate bit-widths. Sensitive layers receive more bits (e.g., 6-bit), while robust layers are compressed further (e.g., 4-bit), optimizing the trade-off between perceptual quality and resource consumption.

Experimental Results

The framework was evaluated on standard benchmarks, including FFHQ for training and CelebA-Test, Wider-Test, WebPhoto-Test, and LFW-Test for evaluation.

Efficiency and Quality

QuantFace achieves an 84.85% reduction in parameters and an 82.91% speedup compared to the full-precision OSDFace baseline. In 4-bit benchmarks, it significantly outperforms competitors like SVDQuant and EfficientDM. For instance, on CelebA-Test, QuantFace reached an FID of 31.17, a marked improvement over SVDQuant's 72.36.

Qualitative Performance

Visually, QuantFace avoids the blocky artifacts and muddy textures typical of other 4-bit models. It successfully restores sharp features, including eyes and teeth, even under heavy compression.

Qualitative comparison of face restoration across different methods and bit-widths.

Conclusion

QuantFace demonstrates that high-quality face restoration is achievable at 4-bit precision through intelligent channel balancing and distillation-based fine-tuning. While currently optimized for the OSDFace architecture, the principles of rotation-scaling and adaptive bit allocation provide a robust foundation for future efficient diffusion-based image restoration tasks.

Summary updated

BibTeX
@misc{li2025quantface,
  author = {Jiatong Li and Libo Zhu and Haotong Qin and Jingkai Wang and Linghe Kong and Guihai Chen and Yulun Zhang and Xiaokang Yang},
  title = {{QuantFace: Efficient Quantization for Face Restoration}},
  year = {2025},
  eprint = {2506.00820},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00820},
}
Figure