TL;DR
FunkNN is a novel convolutional neural network designed for continuous image generation and super-resolution. By combining a patch-based approach with differentiable spatial transformers, it enables high-quality image evaluation at any coordinate and provides exact spatial derivatives, outperforming larger MLP-based models in both efficiency and out-of-distribution generalization.
What Problem Does This Paper Address?
Most state-of-the-art generative models (like GANs or Diffusion models) are "grid-bound"—they produce images at a fixed resolution determined during training. However, the real world is continuous. To bridge this gap, researchers have turned to Implicit Neural Representations (INRs), which use Multi-Layer Perceptrons (MLPs) to map coordinates $(x, y)$ to pixel intensities.
The problem? MLPs lack the "convolutional inductive bias" that makes CNNs so good at processing images. Consequently, MLP-based continuous models often produce blurry results or struggle with complex datasets like human faces. Furthermore, many existing continuous models require massive encoders or complex hyper-networks to handle different images, making them computationally heavy and difficult to use for solving inverse problems (like reconstructing an image from its derivatives).
Methods
The authors introduce FunkNN, which treats continuous image generation as a data-driven interpolation problem. Instead of using a global MLP, FunkNN uses a local, patch-based strategy:
- Patch Extraction via Spatial Transformer: Given a query coordinate $(x, y)$ on a low-resolution image, the model uses a Spatial Transformer Network (STN) to differentiably crop a small $p \times p$ patch around that location.
- Convolutional Regression: This patch is fed into a small, efficient CNN that regresses the exact intensity at the central query point.
- Functional Generation: By pairing FunkNN with any standard discrete generator (like a pre-trained GAN), the authors create a "functional generator" capable of producing continuous images.
Because the Spatial Transformer is differentiable, FunkNN allows for the calculation of exact spatial derivatives (gradients and Laplacians) at any point. This is a "killer feature" for solving partial differential equation (PDE) based inverse problems.
Datasets
The model was evaluated using several standard benchmarks:
- CelebA-HQ: Used for high-quality face super-resolution (trained at $128 \times 128$, tested up to $1024 \times 1024$).
- LSUN-bedroom: Used specifically to test Out-of-Distribution (OOD) performance—applying a model trained on faces to images of bedrooms.
- LoDoPaB-CT: A dataset of computed tomography (CT) images used to demonstrate the model's utility in medical imaging inverse problems.
Key Insights and Ideas
- Locality is Key: The authors argue that high-frequency details (like edges) are spatially localized. Therefore, a model only needs to look at a small neighborhood (a patch) to super-resolve a point, rather than the whole image.
- CNNs > MLPs for Continuity: By using a CNN to process these patches, FunkNN retains the superior inductive biases of convolutional layers while still providing a continuous output.
- Generalization through Patches: Because FunkNN operates on local patches rather than global structures, it generalizes remarkably well to images it has never seen before (OOD data), as local textures are often more similar across datasets than global shapes.
- Exact Derivatives for Free: By using a differentiable interpolation kernel (like bicubic) within the Spatial Transformer, the model can provide analytical gradients, which are far more accurate than finite-difference approximations for scientific computing.
Key Results
- Efficiency: FunkNN achieves performance comparable to the state-of-the-art LIIF (Local Implicit Image Function) but with 10x fewer parameters (140K vs. 1.5M).
- Speed: On an Nvidia A100 GPU, FunkNN is nearly 3x faster than LIIF at processing images.
- Superior OOD Performance: When trained on faces and tested on bedrooms, FunkNN significantly outperformed U-Net and LIIF, proving its robustness.
- Inverse Problem Solving: The authors successfully used FunkNN to solve complex inverse problems, such as reconstructing images from sparse derivatives and performing limited-view CT reconstruction, where it outperformed traditional methods like Filtered Back-Projection (FBP).
Limitations and Future Work
While FunkNN is highly efficient, the paper notes that it still relies on a "base" low-resolution image provided by a discrete generator or a downsampled input. Its performance is naturally capped by the quality of this underlying representation.
Future work could involve exploring more complex patch-processing architectures or extending the framework to 3D data (like medical MRI volumes) where continuous evaluation and derivatives are even more critical. Additionally, while the patch-based approach helps with OOD data, very extreme distribution shifts might still pose challenges for the local CNN regressor.
Summary updated