End-to-End Implicit Neural Representations for Classification

Alexander Gielisse, Jan van Gemert

Abstract

Implicit neural representations (INRs) such as NeRF and SIREN encode a signal in neural network parameters and show excellent results for signal reconstruction. Using INRs for downstream tasks, such as classification, is however not straightforward. Inherent symmetries in the parameters pose challenges and current works primarily focus on designing architectures that are equivariant to these symmetries. However, INR-based classification still significantly under-performs compared to pixel-based methods like CNNs. This work presents an end-to-end strategy for initializing SIRENs together with a learned learning-rate scheme, to yield representations that improve classification accuracy. We show that a simple, straightforward, Transformer model applied to a meta-learned SIREN, without incorporating explicit symmetry equivariances, outperforms the current state-of-the-art. On the CIFAR-10 SIREN classification task, we improve the state-of-the-art without augmentations from 38.8% to 59.6%, and from 63.4% to 64.7% with augmentations. We demonstrate scalability on the high-resolution Imagenette dataset achieving reasonable reconstruction quality with a classification accuracy of 60.8% and are the first to do INR classification on the full ImageNet-1K dataset where we achieve a SIREN classification performance of 23.6%.

Introduction: The Challenge of Weight-Space Learning

Implicit Neural Representations (INRs), such as SIREN or NeRF, represent signals (like images or 3D shapes) as the parameters ($\theta$) of a neural network rather than as a grid of pixels. While INRs are excellent for compression and reconstruction, using their weights for downstream tasks like classification is notoriously difficult.

The primary challenge is symmetry: in a standard MLP, you can permute the neurons or scale the weights in ways that result in the exact same output function but entirely different parameter values. This "weight space" is disorganized, making it hard for a classifier to learn meaningful patterns. Previous attempts relied on complex "equivariant" architectures designed to be invariant to these symmetries, but these models often underperform compared to traditional pixel-based CNNs and struggle to scale to high-resolution images.

Methodology: Meta Weight Transformer (MWT)

The proposed Meta Weight Transformer (MWT) shifts the focus from designing complex architectures to "structuring" the weight space itself. Instead of a two-step process where INRs are fitted independently of the classification task, the authors propose an end-to-end framework.

Comparison between traditional two-step INR classification and the proposed end-to-end meta-learned approach.
  1. Meta-Learned Initialization: Using a Model-Agnostic Meta-Learning (MAML) style approach, they learn a shared starting initialization ($\theta_0$) for a SIREN network.
  2. Learned Learning Rate Scheme (Meta-SGD): They learn a specific learning rate for every single parameter in the network for each step of the "inner loop" (the process of fitting the INR to a specific image).
  3. End-to-End Training: Crucially, the classification loss is backpropagated through the INR fitting process. This "teaches" the meta-initialization to evolve into weights that are not only good at reconstructing the image but are also easily "readable" by the classifier.
  4. Transformer Classifier: Instead of an equivariant network, they use a standard Transformer. They treat each neuron's input weights and bias as a "token." To help the Transformer, they feed it the difference between the fitted weights and the meta-initialization, scaled and augmented with a learned positional bias.
  5. Subsampling for Efficiency: To handle high-resolution images, they fit the INR using only a random subset of pixels during the inner loop, significantly reducing the computational overhead of meta-learning.

Key Insights and Results

The paper argues that you don't need a symmetry-equivariant classifier if your training process enforces a consistent "structure" on the weights. By starting from the same meta-initialization and using a fixed, learned optimization path, the resulting weights for similar images end up in similar regions of the parameter space.

A key finding was the trade-off between reconstruction (PSNR) and classification accuracy. By tuning a scalar ($w_{cls}$), the authors found that slightly "corrupting" the reconstruction quality can significantly boost the classifier's ability to identify the image.

The trade-off between reconstruction quality (PSNR) and classification accuracy as a function of the task weight.

Performance Benchmarks

  • CIFAR-10: Improved the state-of-the-art for INR classification from 38.8% to 59.6% (without augmentations) and to 64.7% (with augmentations).
  • ImageNet-1K: Set the first-ever baseline for INR-based classification on full-scale ImageNet, achieving 23.6% accuracy.
  • Imagenette: Achieved 60.8% accuracy on high-resolution images, demonstrating that the method scales far beyond the small $32 \times 32$ grids used in prior work.
  • Efficiency: On Imagenette, they achieved 57.27% accuracy while using only 5% of the pixels during the fitting process, showing that the meta-learned SIREN acts as a powerful interpolator.

Conclusion

While a massive leap for INR-based methods, the accuracy still lags behind state-of-the-art pixel-based models (like ResNets or ViTs) on the same datasets. However, this work demonstrates that end-to-end meta-learning can overcome the symmetry challenges of weight-space reasoning without requiring specialized equivariant architectures. Future work may investigate whether this approach can be applied to other continuous signals like video or complex 3D scenes.

Summary updated

BibTeX
@inproceedings{gielisse2025end,
  author = {Alexander Gielisse and Jan van Gemert},
  title = {{End-to-End Implicit Neural Representations for Classification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=N931SPWC0r},
}
Figure