Embed Any NeRF: Graph Meta-Networks for Neural Tasks on Arbitrary NeRF Architectures

Francesco Ballerini, Pierluigi Zama Ramirez, Samuele Salti, Luigi Di Stefano · OpenReview

Abstract

Neural Radiance Fields (NeRFs) have emerged as a groundbreaking paradigm for representing 3D objects and scenes by encoding shape and appearance information into the weights of a neural network. Recent works have shown how such weights can be used as input to frameworks processing them to solve deep learning tasks. Yet, these frameworks can only process NeRFs with a specific, predefined architecture. In this paper, we present the first framework that can ingest NeRFs with multiple architectures and perform inference on architectures unseen at training time. We achieve this goal by training a Graph Meta-Network in a representation learning framework. Moreover, we show how a contrastive objective is conducive to obtaining an architecture-agnostic latent space. In experiments on both MLP-based and tri-planar NeRFs, our approach demonstrates robust performance in classification and retrieval tasks that either matches or exceeds that of existing frameworks constrained to single architectures, thus providing the first architecture-agnostic method to perform tasks on NeRFs by processing their weights.

Introduction

Neural Radiance Fields (NeRFs) have revolutionized 3D scene representation by encoding geometry and appearance into the weights of a neural network. However, treating these weights as a "data format" for traditional tasks—such as object classification or retrieval—is challenging.

The naive approach involves rendering images from the NeRF and using standard computer vision models, which is computationally expensive and sensitive to viewpoint selection. Recent "weight-space" methods attempted to process weights directly but were limited by their requirement for fixed architectures (e.g., specific layer counts and neuron widths). As NeRF technology evolves rapidly from simple MLPs to complex tri-planes and hash tables, this lack of flexibility becomes a major bottleneck. This work introduces a framework to "embed any NeRF," creating a universal representation for 3D scenes by analyzing their underlying weights.

Methodology

The proposed pipeline achieves architecture independence through three key components:

  1. Parameter Graph Conversion: Different NeRF architectures are converted into a unified graph representation. This work introduces a novel method to represent multi-resolution hash tables (as seen in Instant-NGP) as subgraphs, alongside existing methods for linear layers and tri-planes.
  2. Graph Meta-Network (GMN) Encoder: A Graph Neural Network (GNN) processes these parameter graphs. GNNs are naturally equivariant to node permutations and can handle varying graph sizes, allowing the encoder to ingest NeRFs with different depths or widths.
  3. Contrastive Learning (SigLIP): To prevent the model from clustering NeRFs solely by their architectural structure, a contrastive loss (SigLIP) is employed. This forces the model to map NeRFs of the same object to the same latent space coordinates, regardless of whether the input is an MLP or a hash-grid NeRF.
Overview of the framework: NeRFs of various architectures are converted to graphs, encoded by a GMN into a content-driven latent space, and used for downstream tasks.

Key Insights: Architecture vs. Content

A critical finding is that training solely with a rendering loss (reconstruction) causes weight-space models to be "distracted" by the network's structure, leading to clusters based on architecture rather than object class. The contrastive objective is essential for achieving a truly architecture-agnostic representation. By treating the neural network as a graph of weights, the model leverages inherent symmetries, such as neuron permutation invariance.

t-SNE visualizations showing the effect of different loss functions on latent space organization. Contrastive loss is vital for content-based clustering.

Experimental Results

The model was evaluated using benchmarks like ShapeNetRender, Objaverse, and ShapeNeRF-Text. Key results include:

  • Robust Classification: Achieving 90-94% accuracy across diverse architectures.
  • Zero-Shot Generalization: Maintaining high performance on "unseen" architectures with different layer counts than those in the training set.
  • Cross-Architecture Retrieval: Successfully using an MLP-based NeRF query to find the same object in a gallery of Hash-table NeRFs.
  • Language Integration: Enabling LLMs to describe 3D scenes (e.g., "A yellow pickup truck") using these embeddings with accuracy comparable to single-architecture models.

Conclusion

This framework represents a significant step toward a "foundation model" for weight-space processing. By successfully performing weight-space learning on hash-based NeRFs—the current industry standard—this approach provides a flexible, architecture-agnostic tool for 3D scene understanding. Future work will aim to scale these methods to complex, large-scale outdoor scenes and even more diverse training datasets.

Summary updated

BibTeX
@inproceedings{ballerini2026embed,
  author = {Francesco Ballerini and Pierluigi Zama Ramirez and Samuele Salti and Luigi Di Stefano},
  title = {{Embed Any NeRF: Graph Meta-Networks for Neural Tasks on Arbitrary NeRF Architectures}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=u90rHXaBve},
}
Figure