From data to functa: Your data point is a function and you should treat it like one

Emilien Dupont, Hyunjik Kim, S. M. Ali Eslami, Danilo J. Rezende, Dan Rosenbaum · OpenReview

Abstract

It is common practice in deep learning to represent a measurement of the world on a discrete grid, e.g. a 2D grid of pixels. However, the underlying signal represented by these measurements is often continuous, e.g. the scene depicted in an image. A powerful continuous alternative is then to represent these measurements using an implicit neural representation, a neural function trained to output the appropriate measurement value for any input spatial location. In this paper, we take this idea to its next level: what would it take to perform deep learning on these functions instead, treating them as data? In this context we refer to the data as functa, and propose a framework for deep learning on functa. This view presents a number of challenges around efficient conversion from data to functa, compact representation of functa, and effectively solving downstream tasks on functa. We outline a recipe to overcome these challenges and apply it to a wide range of data modalities including images, 3D shapes, neural radiance fields (NeRF) and data on manifolds. We demonstrate that this approach has various compelling properties across data modalities, in particular on the canonical tasks of generative modeling, data imputation, novel view synthesis and classification.

Introduction

In traditional deep learning, the world is typically represented through discrete grids. An image is a 2D grid of pixels; a 3D shape is a 3D grid of voxels. While effective, this approach faces two significant hurdles. First, scaling is problematic: as resolution increases, memory requirements grow exponentially (cubically for 3D data). Second, there is a lack of architectural consistency; different data types require specialized architectures, such as CNNs for images or specialized 3D conv-nets for voxels.

This paper argues that the underlying signals we measure—scenes, objects, or physical phenomena—are inherently continuous. While Implicit Neural Representations (INRs) have gained popularity for representing single objects as networks that map coordinates to values, a unified framework for performing deep learning across a collection of these networks has been missing. The authors introduce functa, a framework that treats these continuous functions as the primary data points, enabling a unified, resolution-independent approach to deep learning.

Methods: The Functa Framework

The "From Data to Functa" pipeline involves two critical stages: creating an efficient representation and then performing learning on that representation.

Creating the Functaset

To treat functions as data, they must be represented compactly and efficiently. The authors utilize a SIREN (Sinusoidal Representation Network) as a shared "base network" or template. SIRENs use sine activation functions, which are particularly adept at capturing high-frequency details in continuous signals.

Instead of storing the full weight set for every individual data point, the framework stores a small modulation vector. This vector is linearly mapped to "shift" the activations of the shared base network, effectively specializing the template to a specific data point. To make the conversion from raw data (like pixels) to these modulations fast enough for large-scale datasets, the authors employ a variant of Model-Agnostic Meta-Learning (MAML). This allows the model to "fit" a new image or 3D shape in just three gradient steps.

The conversion process from discrete 3D voxel data to a continuous functa representation using a shared base network and modulations.

Deep Learning on Functa

Once a "functaset" of modulation vectors is created, these vectors are treated as the new raw data. This decoupling offers several advantages:

  • Resolution Independence: Functa are continuous functions that can be queried at any resolution, allowing models to learn the underlying parameters of a signal rather than its discrete samples.
  • Unified Architecture: The same generative models (e.g., Normalizing Flows or Diffusion Models) can be used across 2D images, 3D shapes, and NeRFs. The modality-specific complexity is encapsulated within the initial conversion to functa.
  • Efficiency: For complex modalities like NeRFs, traditional generative models must backpropagate through expensive volume rendering. By operating on functa, the generative model only needs to learn a distribution over vectors, significantly improving speed and stability.

Evaluation and Key Results

The authors evaluated the functa framework across four distinct modalities: CelebA-HQ images, ShapeNet 3D voxels, SRN Cars (NeRF), and ERA5 global temperature data on a spherical manifold.

Classification and Generative Modeling

On the ShapeNet 10-class benchmark, a small MLP trained directly on functa achieved 93.6% accuracy, slightly outperforming a much larger 3D CNN (93.3%). Notably, the functa-based MLP finished training in under 10 minutes on a single GPU, whereas the 3D CNN required over an hour on eight devices.

Inference tasks, such as classification, can be performed efficiently by treating the learned modulation vectors as input features.

Diffusion models (DDPM) trained on functa produced realistic, high-quality samples across all modalities. In the case of NeRFs, the model generated 3D-consistent car scenes renderable from any angle. Furthermore, the learned distribution served as an effective prior for data imputation, allowing the reconstruction of full 3D objects from partial or noisy scans.

Discussion and Limitations

While the functa framework provides a powerful unified approach, it currently lacks explicit spatial inductive biases. When an image is converted to a modulation vector, the 2D grid structure is flattened, meaning standard MLPs do not "know" the spatial relationship between dimensions. The authors suggest "spatial functa"—using per-patch modulations—as a potential solution.

There is also an inherent trade-off between reconstruction and generation: increasing the number of gradient steps during the meta-learning phase improves reconstruction accuracy but can result in a "less smooth" modulation space that is more difficult for generative models to navigate. Future work will likely focus on optimizing this balance and exploring auto-decoder frameworks to scale to even more complex datasets.

Code Availability: The authors have open-sourced the code at github.com/deepmind/functa.

Summary updated

BibTeX
@inproceedings{dupont2022from,
  author = {Emilien Dupont and Hyunjik Kim and S. M. Ali Eslami and Danilo J. Rezende and Dan Rosenbaum},
  title = {{From data to functa: Your data point is a function and you should treat it like one}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=eDl4cvk6XR},
}
Figure