RaFL: An Empirical Study of Random Filter Losses for Image Reconstruction
Organizations: TU Delft · Cornell Tech · Weill Cornell Medicine
Abstract
Pixel losses train image reconstruction networks toward a point statistic of the target distribution, often averaging away fine textures under uncertainty. Perceptual losses alleviate this issue using pretrained features, but those features are inherently domain-specific. We study a random filter loss (RaFL) that compares prediction and target through filters with random weights, avoiding both pretrained features and task-specific loss engineering. RaFL combines random convolutions, random Fourier features, and random wavelet filters, automatically balancing their contributions through gradient-norm matching, eliminating manual loss-weight tuning and grid search. We systematically investigate three design choices: filter family, weight resampling schedule, and weight initialization. Based on validation PSNR and stability across random seeds, we select the configuration that uses all three filter families, redraws filters every optimization step, and employs Gaussian initialization. We evaluate RaFL on three 2D and two 3D image reconstruction tasks. RaFL outperforms a pixel loss on three tasks and matches it on two, and demonstrates stable performance across random seeds on all five tasks. RaFL adds less than 2% to the backbone's forward FLOPs and no inference cost, requiring fewer loss FLOPs than a VGG19 perceptual loss. These findings suggest that RaFL is a simple, tuning-free, and domain-agnostic loss objective for 2D and 3D image reconstruction.
Figures & tables
| Configuration | PSNR | SSIM | LPIPS | DISTS | |
|---|---|---|---|---|---|
| RaFL : all three, every step, Gaussian | |||||
| Q1, which filters | Wavelet only | ||||
| Convolution only | |||||
| Fourier only | |||||
| Convolution + Wavelet | |||||
| Convolution + Fourier |
| Image denoising, SIDD | ||||
|---|---|---|---|---|
| Loss | PSNR | SSIM | LPIPS | DISTS |
| RaFL | ||||
| pixel | ||||
| pixel + pretrained VGG19 | ||||
| CDC | ||||
| reverse | ||||
| Loss | PSNR | SSIM | LPIPS | DISTS |
|---|---|---|---|---|
| Super-resolution, OASIS3 | ||||
| RaFL | ||||
| pixel | ||||
| uPL | ||||
| Image denoising, IXI | ||||
| RaFL | ||||
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Filters in the loss | PSNR | SSIM | LPIPS | DISTS |
|---|---|---|---|---|
| all three, conv (RaFL) | ||||
| all three, conv | ||||
| all three, conv | ||||
| five filters | ||||
| seven filters | ||||
| seven minus the convolutions |
| Member | What is drawn | Constraint on the draw | Support |
|---|---|---|---|
| random conv | kernel weights, i.i.d. | none: no nonlinearity, no normalization | |
| random conv | kernel weights, i.i.d. | none: no nonlinearity, no normalization | |
| random conv | kernel weights, i.i.d. | none: no nonlinearity, no normalization | |
| random wavelet | direction at each of the four levels | db2 stationary detail subbands, one shared cascade; zero at DC; unit norm | per axis: |
| random Laplacian | symmetric , six Gaussian entries, ; eight per step | ; kills constants and ramps | |
| random Sobel | direction ; eight per step | , along ; not normalized; depthwise |
| Weighting of the three terms | PSNR | SSIM | LPIPS | DISTS |
|---|---|---|---|---|
| gradient-norm matching (Ours) | ||||
| Dirichlet, redrawn every step ( Lin et al., 2021 ) | ||||
| fixed uniform | ||||
| learned uncertainty ( Kendall et al., 2018 ) |
| Task | Convolution | Wavelet | Fourier |
|---|---|---|---|
| Denoising, SIDD | |||
| Enhancement, LOL | |||
| Super-resolution, WorldView-2 | |||
| Super-resolution, OASIS3 | |||
| Denoising, IXI |
| Optimizer | PSNR | SSIM | LPIPS | DISTS | PSNR |
|---|---|---|---|---|---|
| Image denoising, SIDD, DnCNN | |||||
| MAdam + Adam | |||||
| Adam alone | |||||
| Image enhancement, LOL, DRBN | |||||
| MAdam + Adam | |||||
| Adam alone | |||||
| Wavelet detail subbands | PSNR | SSIM | LPIPS | DISTS |
|---|---|---|---|---|
| LH, HL (ours) | ||||
| HH | ||||
| HH LL |
| Fourier width | PSNR | SSIM | LPIPS | DISTS |
|---|---|---|---|---|
| (ours) |
| PSNR | SSIM | LPIPS | DISTS | |
|---|---|---|---|---|
| 1 (ours) | ||||
| Task | Schedule | PSNR | SSIM | LPIPS | DISTS |
|---|---|---|---|---|---|
| SIDD, DnCNN | every step | ||||
| every epoch | |||||
| one draw | |||||
| LOL, DRBN | every step | ||||
| every epoch | |||||
| one draw |
| Configuration | SIDD PSNR | WV2 PSNR | SSIM | ERGAS | SAM |
|---|---|---|---|---|---|
| Default (all three, Gaussian) | |||||
| Filter families (Gaussian initialization) | |||||
| Fourier + Wavelet | |||||
| Fourier only | |||||
| Conv. + Fourier | |||||
| Conv. + Wavelet | |||||
| Backbone | Loss | PSNR | SSIM | LPIPS | DISTS |
|---|---|---|---|---|---|
| DnCNN (Table 2 ) | pixel | ||||
| RaFL | |||||
| U-Net | pixel | ||||
| RaFL | |||||
| DRUNet | pixel | ||||
| RaFL |
| Image denoising, SIDD, DnCNN | Super-resolution, OASIS3, SwinUNETR | ||||||
|---|---|---|---|---|---|---|---|
| Loss | GFLOPs | of fwd | ms/it | Loss | GFLOPs | of fwd | ms/it |
| RaFL | RaFL | ||||||
| RaFL, Adam only | RaFL, Adam only | ||||||
| pixel | pixel | ||||||
| CDC | CDC | ||||||
| reverse | reverse | ||||||
Image Reconstruction
Image reconstruction recovers images, volumes, or scenes from incomplete, noisy, indirect, or compressed measurements using physical models and learned priors.
See all 326 papers