[Paper Review] A Loss Function for Generative Neural Networks Based on Watson's Perceptual Model
This paper proposes a differentiable, perceptually motivated loss function for generative neural networks based on Watson's visual perception model, enhanced with Fourier transforms, color support, randomized tiling, and differentiable operations. Trained on human similarity judgments, it reduces blur and artifacts in VAE-generated images, outperforming L2, SSIM, and deep metric losses in quality and efficiency.
To train Variational Autoencoders (VAEs) to generate realistic imagery requires a loss function that reflects human perception of image similarity. We propose such a loss function based on Watson's perceptual model, which computes a weighted distance in frequency space and accounts for luminance and contrast masking. We extend the model to color images, increase its robustness to translation by using the Fourier Transform, remove artifacts due to splitting the image into blocks, and make it differentiable. In experiments, VAEs trained with the new loss function generated realistic, high-quality image samples. Compared to using the Euclidean distance and the Structural Similarity Index, the images were less blurry; compared to deep neural network based losses, the new approach required less computational resources and generated images with less artifacts.
Motivation & Objective
- To address the poor perceptual quality of VAE-generated images, which often appear blurry when trained with standard pixel-wise losses like L2 or SSIM.
- To overcome limitations of deep neural network-based perceptual losses, which may be invariant to visual artifacts due to their classification-pretrained nature.
- To develop a lightweight, differentiable, and robust perceptual loss function grounded in human visual perception, specifically Watson's model.
- To improve generalization across image domains (e.g., digits, faces) while minimizing computational cost and artifacts in generated samples.
Proposed method
- Replace the original DCT in Watson’s model with the Discrete Fourier Transform (DFT) to improve robustness to small translational shifts by separating amplitude and phase information.
- Extend the monochrome Watson model to handle color images by processing each channel independently and combining perceptual weights.
- Replace the fixed block grid in block-wise DFT computations with a randomized grid to eliminate grid-induced artifacts.
- Replace the non-differentiable max operator in the original model with a differentiable approximation to enable end-to-end training of VAEs.
- Optimize the perceptual loss function using human similarity judgment data, training free parameters to align with human perception.
- Integrate the resulting differentiable perceptual loss into VAE training, replacing standard L2 or SSIM losses.
Experimental results
Research questions
- RQ1Can a perceptually grounded, explicit model like Watson’s improve image generation quality in VAEs compared to standard L2 or SSIM losses?
- RQ2Does replacing DCT with DFT enhance robustness to small image shifts in the perceptual loss function?
- RQ3Can a non-neural, differentiable perceptual loss outperform deep neural network-based losses in terms of image quality and computational efficiency?
- RQ4Does the use of randomized tiling in block processing eliminate visible grid artifacts in the loss computation?
- RQ5How well does the modified Watson-based loss generalize across diverse image domains such as digits and celebrity faces?
Key findings
- VAEs trained with the proposed perceptual loss generated images that were significantly less blurry than those trained with L2 or SSIM losses, as confirmed by human evaluation and visual inspection.
- The new loss function produced fewer visual artifacts compared to state-of-the-art deep metric-based losses, such as LPIPS, despite requiring substantially less computational and memory resources.
- The model generalized well across different image domains, including handwritten numerals and celebrity faces, without requiring domain-specific fine-tuning.
- The differentiable version of the loss, achieved by replacing the max operator, enabled stable end-to-end training of VAEs with no degradation in performance.
- The DFT-based approach improved robustness to small translations, as evidenced by consistent perceptual similarity scores under minor shifts, unlike the original DCT-based model.
- The perceptual loss trained on human similarity data achieved a better fit to human judgments than both L2 and SSIM, and outperformed deep metric baselines in image generation quality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.