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

Emilien Dupont, Hyunjik Kim, S. M. Ali Eslami, Danilo Jimenez Rezende, Dan Rosenbaum

TL;DR

Traditionally, deep learning treats data as discrete arrays, such as grids of pixels or voxels. This paper proposes a paradigm shift: representing every data point as a continuous function—an Implicit Neural Representation (INR)—which the authors term functa. By performing deep learning directly on these functions, they create a unified framework capable of handling images, 3D shapes, and complex scenes (NeRFs) using a single, modality-agnostic approach.

The Problem with Arrays

Most deep learning architectures are inherently "array-centric." Images are processed as 2D grids of pixels, and 3D shapes as 3D grids of voxels. This discrete approach has three major drawbacks:

  1. Scaling: Voxel grids scale cubically ($O(N^3)$), making high-resolution 3D data prohibitively expensive in terms of memory and compute.
  2. Resolution Rigidity: Models trained on specific resolutions (e.g., $64 \times 64$ images) often struggle to generalize to different resolutions.
  3. Discretization Difficulty: Certain types of data, such as climate measurements on a spherical globe or 3D scenes represented by Neural Radiance Fields (NeRFs), do not fit naturally into rectangular grids.

The authors ask a fundamental question: What if we treated data as continuous signals instead of discrete boxes? While INRs (neural networks that map coordinates to values) are popular for representing single objects, there hasn't been a robust way to perform "deep learning on top of deep learning"—training generative models or classifiers where the input "data point" is itself a neural function.

Mapping discrete data to continuous functions

The "Functa" Pipeline

The proposed pipeline consists of two main stages: creating the functional dataset and performing deep learning on it.

1. Creating the Functaset

To efficiently convert an array into a function, the authors employ meta-learning (specifically a variant of MAML/CAVIA). They learn a "base" neural network using SIREN (which uses sinusoidal activations to capture high-frequency details) that can be adapted to any specific data point in just three gradient steps.

Crucially, instead of storing the entire massive weight vector of the INR for each data point, they represent each point as a small modulation vector. This vector acts as a "shift" to the internal activations of the shared base network, making the functional representation compact and easy to feed into downstream models.

2. Deep Learning on Functa

Once the data is converted into these compact modulation vectors, they become the new "raw data." Standard deep learning tools are then applied directly to them:

  • Generative Modeling: The authors train Normalizing Flows (NSF) and Diffusion Models (DDPM) to sample new modulation vectors, which can be "decoded" back into continuous functions (images, 3D shapes, etc.).
  • Downstream Tasks: The vectors are used for classification, data imputation (e.g., filling in missing parts of a 3D shape), and novel view synthesis.

Key Insights and Results

The framework was evaluated across diverse modalities, including CelebA-HQ images, ShapeNet 3D voxels, SRN Cars (NeRF scenes), and ERA5 global temperature data.

  • Decoupling is Powerful: Separating the "fitting" of the function from the "learning" of the task simplifies complex problems. For instance, training a generative model for NeRFs typically requires expensive volume rendering during every step. With functa, NeRFs are fitted once, and a simple generative model is trained on the resulting vectors—drastically speeding up the process.
  • Modality Agnosticism: Because every data type is reduced to a modulation vector, the exact same Normalizing Flow architecture can generate a 2D face, a 3D chair, or a global weather map without structural changes.
  • Strong Performance: A simple MLP trained on ShapeNet functa achieved 93.6% classification accuracy, outperforming a specialized 3D CNN (93.3%) while using significantly fewer parameters (83k vs 550k). Furthermore, diffusion models trained on functa produced realistic, coherent samples across all tested modalities.

Limitations and Future Work

While promising, the approach has limitations. Meta-learning the base network is computationally expensive and can be unstable, prompting the authors to suggest "auto-decoder" frameworks as a future alternative. Additionally, converting a 2D image into a flat modulation vector loses the "spatial locality" that Convolutional Neural Networks (CNNs) naturally exploit. Future work may explore "spatial functa" (e.g., per-patch modulations) to reintroduce valuable inductive biases like translation invariance.

Reference: Dupont, E., Kim, H., Eslami, S. M. A., Rezende, D., & Rosenbaum, D. (2022). From data to functa: Your data point is a function and you can treat it like one. Proceedings of the 39th International Conference on Machine Learning (ICML).

Summary updated

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