PC-Refine: A Lightweight Residual Refinement Module for Parameter-Efficient Latent Diffusion Inpainting
Abstract
Diffusion models have emerged as a powerful tool for high-quality image synthesis and are increasingly favored for restoration tasks such as image inpainting. This work investigates face inpainting within the latent diffusion framework, where denoising is performed by a UNet operating in a VAE-compressed latent space. We introduce PC-Refine, a lightweight residual refinement module attached to the mid-block of the U Net, and employ a parameter-efficient training strategy (pc_only) that freezes the original UNet while optimizing only the newly added parameters. Using DDIM-based sampling on the CelebAMask-HQ dataset, we evaluate performance with mask-only MAE and RMSE metrics focused on unknown regions. A controlled multi-seed evaluation demonstrates that PC-Refine consistently improves upon the baseline, showing that a single mid-block refinement yields practical, stable gains with minimal additional trainable parameters.
References
- Ho, J., Jain, A., & Abbeel, P. (2020). Denoising diffusion probabilistic models. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, & H. Lin (Eds.), Advances in Neural Information Processing Systems, 33, 6840–6851.
- Rombach, R., Blattmann, A., Lorenz, D., Esser, P., & Ommer, B. (2022). High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (pp. 10684–10695).
- Houlsby, N., Giurgiu, A., Jastrzębski, S., Morrone, B., de Laroussilhe, Q., Gesmundo, A., Attariyan, M., & Gelly, S. (2019). Parameter-efficient transfer learning for NLP. In Proceedings of the 36th International Conference on Machine Learning (ICML 2019) (pp. 2790–2799). PMLR.
- Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, L., Wang, L., & Chen, W. (2022). LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations. Retrieved from https: //arxiv.org/abs/2106.09685
- Song, J., Meng, C., & Ermon, S. (2021). Denoising diffusion implicit models. In International Conference on Learning Representations. Retrieved from https: //openreview.net/forum?id=5GtGzU8wgH
- Rao, R. P. N., & Ballard, D. H. (1999). Predictive coding in the visual cortex: A functional interpretation of some extra-classical receptive-field effects. Nature Neuroscience, 2(1), 79–87. https: //doi.org/10.1038/4580
- Friston, K. (2010). The free-energy principle: A unified brain theory? Nature Reviews Neuroscience, 11(2), 127–138. https: //doi.org/10.1038/nrn2787
- Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional networks for biomedical image segmentation. In N. Navab, J. Hornegger, W. M. Wells, & A. F. Frangi (Eds.), Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015 (Lecture Notes in Computer Science, Vol. 9351, pp. 234–241). Springer. https: //doi.org/10.1007/978-3-319-24574-4_28
- Kingma, D. P., & Welling, M. (2014). Auto-encoding variational Bayes. In Y. Bengio & Y. LeCun (Eds.), Proceedings of the 2nd International Conference on Learning Representations (ICLR 2014). (Conference paper). Retrieved from https: //arxiv.org/abs/1312.6114
- Lee, C.-H., Liu, Z., Wu, L., & Luo, P. (2020). MaskGAN: Towards diverse and accurate facial image inpainting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops