Lably
Skip to content

Neural field

Type of artificial neural network

  • 6 min read
  • 3 chapters

Related on Lably

Through Machine learning, Field (physics) and Neural network (machine learning)

Differently from traditional machine learning algorithms, such as feed-forward neural networks, convolutional neural networks, or transformers, neural fields do not work with discrete data (e.g. sequences, images, tokens), but map continuous inputs (e.g., spatial coordinates, time) to continuous outputs (i.e., scalars, vectors, etc.). This makes neural fields not only discretization independent, but also easily differentiable. Moreover, dealing with continuous data allows for a significant reduction in space complexity, which translates to a much more lightweight network.

Formulation and training

According to the universal approximation theorem, provided adequate learning, sufficient number of hidden units, and the presence of a deterministic relationship between the input and the output, a neural network can approximate any function to any degree of accuracy.

Hence, in mathematical terms, given a field y=Φ(x), with x∈Rn and y∈Rm, a neural field Ψθ, with parameters θ, is such that:Ψθ(x)=y^≈y

Training

For supervised tasks, given N examples in the training dataset (i.e., (xi,yi)∈Dtrain,i=1,…,N), the neural field parameters can be learned by minimizing a loss function L (e.g., mean squared error). The parameters θ~ that satisfy the optimization problem are found as:θ~=argminθ1N∑(xi,yi)∈DtrainL(Ψθ(xi),yi)Notably, it is not necessary to know the analytical expression of Φ, for the previously reported training procedure only requires input-output pairs. Indeed, a neural field is able to offer a continuous and differentiable surrogate of the true field, even from purely experimental data.

Moreover, neural fields can be used in unsupervised settings, with training objectives that depend on the specific task. For example, physics-informed neural networks may be trained on just the residual.

Spectral bias

As for any artificial neural network, neural fields may be characterized by a spectral bias (i.e., the tendency to preferably learn the low frequency content of a field), possibly leading to a poor representation of the ground truth. In order to overcome this limitation, several strategies have been developed. For example, SIREN uses sinusoidal activations, while the Fourier-features approach embeds the input through sines and cosines.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication