Abstract
Coordinate-based Multi-Layer Perceptrons (MLPs) have become a cornerstone of implicit representations, yet their performance is often bottlenecked by the computational cost of optimizing deep architectures. This paper investigates the fundamental mechanisms of positional encoding, revealing that its success is driven by a trade-off between matrix rank and distance preservation rather than specific Fourier properties. By introducing "complex" positional encodings via Kronecker products, the authors demonstrate that the representational burden can be shifted from the network depth to the input encoding. This shift allows for the replacement of deep MLPs with a single linear layer, enabling closed-form solutions that are orders of magnitude faster than traditional gradient-based optimization.
Introduction
In the field of neural representation, coordinate-based MLPs map spatial or temporal coordinates (e.g., $x, y, z, t$) to physical values such as color or density. While powerful, these networks inherently suffer from "spectral bias," a tendency to prioritize low-frequency components and struggle with high-frequency details. The standard remedy is positional encoding, typically using Random Fourier Features (RFF), which projects coordinates into a high-dimensional space.
Despite the ubiquity of these encodings in frameworks like NeRF, the theoretical understanding of why certain encodings outperform others has remained limited. Furthermore, the reliance on deep MLPs necessitates expensive iterative optimization. This research proposes a generalized framework for positional encoding that allows for a direct trade-off: increasing the complexity of the input encoding to reduce the required depth of the neural network.
A Generalized Framework for Encodings
The authors define positional encoding through the lens of shifted continuous basis functions. In this framework, an embedder samples from a function $\psi(t, x)$ where shifts are determined by the input coordinates. This allows for the analysis of various embedding functions beyond the standard sine and cosine, including:
- Impulse functions
- Rectangular and Triangular functions
- Gaussian functions
The Rank-Generalization Trade-off
The performance of these embedders is governed by two primary metrics:
- Stable Rank: This represents the model's capacity to "memorize" training data. A higher rank allows the model to capture high-frequency details.
- Distance Preservation: This measures how well the inner product of the embeddings correlates with Euclidean distance in the input space. This property governs the model's ability to generalize and perform smooth interpolation.
The research finds that while an impulse embedder has perfect rank (high memorization) but zero distance preservation (no generalization), and a sine wave has high distance preservation but low rank, functions like Gaussians and Triangles occupy a "sweet spot" that balances both needs.
Trading Deepness for Complexity
The core innovation of this work is the transition from "simple" to "complex" positional encodings. Traditionally, multi-dimensional coordinates are encoded by concatenating 1D encodings. The authors instead propose using the Kronecker product to combine dimensions.
This "complex" encoding drastically increases the rank of the input representation. Because the input space becomes sufficiently high-rank, the authors prove that a single linear layer can achieve the same performance as a deep MLP. For data sampled on regular grids (such as pixels in an image), this formulation allows for a closed-form solution via least squares, bypassing the need for backpropagation and gradient descent entirely.
Experimental Results
The proposed framework was evaluated on 1D signals, 2D natural images, and 3D video sequences. The results highlight significant gains in both efficiency and speed:
- Optimization Speed: Using complex encodings with a linear layer proved to be 10x to 20x faster than a standard 4-layer MLP while maintaining comparable Peak Signal-to-Noise Ratio (PSNR).
- Instantaneous Solutions: For grid-based data, the closed-form solution reached completion in approximately 0.02 seconds, compared to the 60 seconds typically required for a standard MLP to converge.
- Embedder Performance: Gaussian and Triangle embedders consistently matched or exceeded the performance of Random Fourier Features (RFF) across all dimensions, suggesting that RFF is merely a specific (and sometimes volatile) instance of a broader class of effective embedders.
Discussion and Future Work
While the "Kronecker trick" allows for efficient computation on regular grids, the approach faces challenges with memory scaling as the embedding dimensions grow. Additionally, applying this to non-separable coordinates requires pre-computation steps.
The ability to replace deep networks with linear solvers presents a significant opportunity for the field of implicit representations. Future work will likely focus on integrating these high-rank linear solvers into more complex pipelines, such as Neural Radiance Fields (NeRF), to accelerate the training of 3D scenes and dynamic volumes.
Summary updated