Spatial-Preserving Encoder
A four-block ResNet-style encoder with GroupNorm and SiLU keeps a 4×4 feature grid before projecting to a 384-dimensional CIFAR latent or 1024-dimensional CelebA latent.
Built a hypernetwork that converts an image into the weights of a coordinate-based neural representation in one forward pass, then evaluated how SIREN, Fourier-feature, and ReLU INRs behave across reconstruction, adaptation, classification, and super-resolution.
An implicit neural representation models an image as a continuous function from coordinates to RGB values. The representation can be queried at arbitrary resolution, but fitting a separate coordinate network for every image normally requires thousands of optimization steps.
This project tests whether a shared hypernetwork can amortize that process by predicting all INR parameters directly from an input image, while preserving the high-frequency detail and continuous-query behavior that make INRs useful.
A four-block ResNet-style encoder with GroupNorm and SiLU keeps a 4×4 feature grid before projecting to a 384-dimensional CIFAR latent or 1024-dimensional CelebA latent.
Independent two-layer generator heads map the image latent into the weight and bias deltas required by every layer of the target coordinate network.
The model learns a shared base INR and predicts image-conditioned corrections instead of generating raw weights from scratch.
SIREN, Fourier-feature, and ReLU MLP backbones receive normalized 2D coordinates and emit RGB values, enabling continuous evaluation beyond the training grid.
CIFAR-10 reconstruction from a single hypernetwork forward pass.
CelebA SIREN after 50 test-time optimization steps.
Classification accuracy from generated INR weights, versus 40.1% from raw pixels.
Single-image SIREN inference latency after the hypernetwork is trained.
Direct CelebA performance clusters tightly between 22.21 and 23.00 dB because all three architectures receive the same compressed 1024-dimensional image latent. Once the generated weights are refined per image, their representational differences become visible.
A bicubic upsample supplies the low-frequency face structure, while a bounded SIREN residual learns details around eyes, hair, and the mouth. The residual design prevents the network from wasting capacity rebuilding the smooth base image.
A hypernetwork trained with 64×64 inputs and 128×128 targets is evaluated directly on a denser 256×256 coordinate grid. The residual INR preserves its advantage over bicubic, demonstrating that resolution is a query-time choice rather than a fixed output shape.
A strong coordinate network cannot recover details that the encoder discards. Inner-loop refinement was the clearest way to distinguish compression loss from the true capacity of SIREN, Fourier, and ReLU.
The generated INR parameters outperformed raw pixels under a linear classifier, showing that weight space can expose semantic directions that are not obvious in the original image vector.
SIREN's learned sinusoidal basis produced the highest refined quality and the most graceful resolution generalization, while ReLU's spectral bias created an earlier performance ceiling.