Solving Image PDEs with a Shallow Network

Pascal Tom Getreuer, Peyman Milanfar, Xiyang LuoarXiv 2021

Abstract

Traditional numerical methods for solving Partial Differential Equations (PDEs) in image processing often face a strict trade-off between stability and computational efficiency. This paper introduces a data-driven approach using BLADE (Best Linear Adaptive Enhancement), a shallow neural network with approximately 50,000 parameters. By training BLADE to approximate time derivatives from high-resolution reference data, the proposed method achieves high-fidelity results on coarse grids where classical solvers typically become unstable. This framework demonstrates that compact, physics-informed machine learning models can outperform traditional numerical schemes in both speed and reliability.

Introduction

Partial Differential Equations (PDEs) serve as the mathematical foundation for a wide array of image-processing tasks, including denoising via Total Variation (TV) flow, edge enhancement through Perona-Malik diffusion, and image segmentation. Despite their theoretical elegance, traditional numerical solvers, such as finite difference methods, are constrained by the Courant–Friedrichs–Lewy (CFL) condition. To maintain stability, these solvers require extremely small time steps ($dt$) and fine spatial grids, leading to significant computational overhead.

This research explores a hybrid approach that integrates classical physics-based modeling with modern machine learning. The goal is to learn the underlying "physics" of the PDE from data, allowing for larger integration steps and coarser grids without the typical loss of accuracy or stability.

Methodology

The BLADE Architecture

The core of the proposed method is the BLADE framework, a generalization of the RAISR super-resolution technique. BLADE is a shallow, two-layer structure designed for extreme efficiency.

The BLADE architecture utilizes a local feature-based selection mechanism to apply specific learnable filters to input patches.

The first layer implements a "filter selection mechanism" that analyzes local image features—specifically orientation, strength, and coherence derived from a structure tensor. Based on these features, the model selects a specific $5 \times 5$ learnable filter from a pre-trained bank. The second layer then applies this filter to the pixel. Because the model only evaluates one filter per pixel via a lookup table, its computational cost remains low and independent of the total number of filters in the bank.

PDE Integration and Training

The authors frame the PDE as an evolution equation: $$\partial_t u = F(u, \partial_x u, \partial_y u, \dots)$$ Instead of relying on hand-crafted finite difference approximations for the spatial derivatives, BLADE is trained to predict the time derivative $\partial_t u$ directly. This predicted derivative is then used within standard integration schemes, such as Explicit Euler or Midpoint methods, to advance the image state.

The iterative integration process where BLADE predicts the time derivative to update the image state.

A key innovation is the training strategy. The model is trained using "ground truth" data generated by high-resolution, computationally expensive reference solvers. By downsampling this high-res data to create training pairs, the network learns to "super-resolve" spatial derivatives. This allows the model to account for sub-grid details that a standard coarse-grid solver would ignore, thereby enhancing stability and accuracy on coarser resolutions.

Results and Discussion

The model was evaluated on the Kodak Image Suite, using reference solvers like the Rudin-Osher-Fatemi scheme for TV flow and the Weickert-Scharr scheme for Coherence Enhancing Diffusion (CED).

  • Quantitative Performance: The BLADE-based solver achieved high fidelity, reaching 35.68 dB PSNR for Perona-Malik and 35.54 dB PSNR for CED.
  • Qualitative Accuracy: For complex phase-separation patterns in the Cahn-Hilliard equation, the model's visual results were remarkably close to the high-resolution reference, despite a lower quantitative PSNR (12.92 dB).
  • Efficiency: With only ~50,000 parameters, the model is significantly more compact than deep ResNets, making it suitable for deployment on mobile or edge devices.

Conclusion

This work demonstrates that shallow, physics-informed networks can effectively solve complex image PDEs. By embedding a learnable component within a classical integration framework, the authors achieve a model that is both efficient and robust to the stability issues of traditional numerical methods. Future work may address the non-differentiability of the filter selection mechanism and seek formal mathematical guarantees for the stability of such learned solvers.

Summary updated

BibTeX
@misc{getreuer2021solving,
  author = {Pascal Tom Getreuer and Peyman Milanfar and Xiyang Luo},
  title = {{Solving Image PDEs with a Shallow Network}},
  year = {2021},
  eprint = {2110.08327},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.08327},
}
Figure