Abstract
Training deep learning models for image restoration tasks typically requires perfectly pixel-aligned image pairs. However, real-world datasets often suffer from geometric misalignments, leading to blurry outputs when using standard loss functions. This paper introduces Frequency Distribution Loss (FDL), a novel approach that compares image features in the frequency domain. By supervising the statistical distributions of amplitude and phase components separately using Sliced Wasserstein Distance, FDL achieves robustness to spatial shifts while maintaining global structural integrity. Experimental results on super-resolution and image enhancement benchmarks demonstrate that FDL significantly outperforms existing misalignment-robust losses in both quantitative metrics and visual quality.
Introduction
State-of-the-art image restoration models for tasks like super-resolution and enhancement generally rely on supervised learning with paired datasets (e.g., low-quality input and high-quality ground truth). A major bottleneck in this paradigm is the requirement for pixel-level alignment. In practice, images captured by different devices or at different times exhibit shifts, rotations, and parallax errors.
Standard loss functions, such as Mean Squared Error (MSE), are highly sensitive to these spatial displacements. Even a single-pixel shift can cause a massive spike in loss, forcing the model to produce a "mean" of all possible shifted versions, which results in blurry images and ghosting artifacts. While existing solutions like Contextual Loss or Pixel Distribution Loss (PDL) offer some robustness, they often fail to preserve global structure or introduce unwanted noise.
Methodology: Frequency Domain Distribution Matching
The proposed Frequency Distribution Loss (FDL) shifts the comparison from the spatial domain to the frequency domain to leverage its inherent shift-invariance properties. The process involves four key stages:
- Feature Extraction: Predicted and target images are passed through a pre-trained VGG19 network to extract high-dimensional feature maps.
- Fourier Transformation: These spatial features are converted into the frequency domain using the Discrete Fourier Transform (DFT).
- Component Separation: The frequency representation is decoupled into Amplitude and Phase. The amplitude captures style, texture, and illumination, while the phase preserves the structural "skeleton" and edges of the image.
- Distribution Matching: Instead of a point-to-point comparison, FDL utilizes the Sliced Wasserstein Distance (SWD) to measure the distance between the distributions of the predicted and target amplitude/phase components.
By optimizing the distribution of frequencies rather than exact spatial coordinates, the model becomes naturally robust to geometric misalignments while retaining the ability to reconstruct sharp, structurally sound images.
Key Results and Evaluation
The authors evaluated FDL against several benchmarks, including the DPED dataset (real-world phone vs. DSLR photos) and a synthetically misaligned version of DIV2K.
Quantitative Performance
On the DPED enhancement task, FDL achieved a Fréchet Inception Distance (FID) of 37.50, a substantial improvement over other robust losses like Contextual Loss (74.55) and PDL (75.12). In super-resolution tasks on the Urban100 test set (using misaligned DIV2K training data), FDL reached a PSNR of 26.70 dB, significantly higher than the 25.13 dB achieved by Contextual Loss.
Qualitative Comparison
Visual analysis confirms that FDL effectively handles misalignments that cause other methods to fail. As shown in the comparison below, FDL produces significantly sharper edges and cleaner textures compared to LPIPS and PDL, which often introduce grid-like artifacts or excessive blur.
Conclusion
Frequency Distribution Loss (FDL) provides a robust framework for training image transformation models on imperfectly aligned data. By supervising the distributions of amplitude and phase in the frequency domain, FDL avoids the "regression to the mean" problem common in spatial losses. This approach not only improves quantitative scores but also delivers superior visual fidelity, making it a powerful tool for real-world image restoration where perfect data alignment is unattainable.
Summary updated