TL;DR
Researchers at InterDigital have developed a more efficient positional encoding method called RFF-cosine that significantly boosts the performance of Implicit Neural Representations (INRs). By doubling the number of unique frequency bases for a given embedding size, this method achieves up to 2dB PSNR gains in image reconstruction and massive bitrate savings in compression tasks without adding any computational complexity.
What Problem Does This Paper Address?
Implicit Neural Representations (INRs) represent signals—like images or 3D scenes—as continuous functions parameterized by neural networks (usually MLPs). Instead of storing a grid of pixels, you store the weights of a network that can "predict" the color of any coordinate $(x, y)$.
However, standard MLPs suffer from spectral bias: they are naturally good at learning low-frequency "smooth" shapes but struggle to capture high-frequency details like sharp edges or fine textures. To fix this, researchers typically use positional encoding to map input coordinates into a high-dimensional space using Fourier features.
The current standard (Random Fourier Features or RFF) creates an embedding of size $2D$ by using $D$ random frequencies, calculating both the sine and cosine for each. The authors argue this is inefficient, especially for compact data representation (compression), where we want the smallest possible embedding. Using only $D$ frequencies limits the network's ability to cover the necessary frequency spectrum when the "budget" for embedding size is low.
Methods
The authors propose a simple but powerful tweak to the positional encoding formula.
The Standard Way (RFF): For an output dimension of $2D$, it samples $D$ random frequency vectors ($w$) and computes: $$\gamma(v) = [\cos(2\pi w_1^T v), \sin(2\pi w_1^T v), \dots, \cos(2\pi w_D^T v), \sin(2\pi w_D^T v)]$$
The Proposed Way (RFF-cosine): Instead of pairs of sine and cosine for the same frequency, they sample $2D$ independent frequency vectors and add a random phase shift ($b$): $$\phi(v) = [\sqrt{2}\cos(2\pi w_1^T v + b_1), \dots, \sqrt{2}\cos(2\pi w_{2D}^T v + b_{2D})]$$
By using $2D$ unique frequencies instead of $D$, the model covers twice as much of the frequency spectrum for the exact same embedding size. Crucially, this adds no extra weights to the neural network and only requires storing one additional random seed for the phase shifts.
Datasets
The method was evaluated on two primary tasks:
- Image Compression: Evaluated on a subset (images 5-14) of the Kodak dataset, a standard benchmark for image processing.
- Novel View Synthesis: Evaluated using the Tanks and Temples dataset (specifically the Ignatius sequence) integrated with the "Nope-NeRF" architecture.
Key Insights and Ideas
- Density over Redundancy: Standard RFF is redundant because sine and cosine of the same frequency provide similar structural information. By using independent frequencies with random phases, the "basis" of the representation becomes much richer.
- The "Low-Budget" Advantage: The benefit is most dramatic when the mapping size is small. As shown in Figure 2, the kernel approximation error for the proposed method is significantly lower than the existing method at low mapping sizes.
- Spectral Coverage: In compression tasks, you can't just make the network bigger because that increases the file size. This method allows the network to "see" more frequencies without increasing the number of parameters ($\theta$).
Key Results
The researchers found that their RFF-cosine mapping consistently outperformed the state-of-the-art:
- Compression Gains: In image compression tests, the proposed method achieved an average of 2dB PSNR improvement at low mapping sizes.
- Bitrate Efficiency: The method showed a staggering 98% BD-rate gain (a measure of compression efficiency) at low mapping sizes, and a solid 10% gain even at higher mapping sizes.
- Novel View Synthesis: When applied to NeRF (Neural Radiance Fields), the method improved all key metrics: PSNR (23.91 vs 23.79), SSIM (0.61 vs 0.60), and LPIPS (0.49 vs 0.50).
Limitations and Future Work
While the method is a clear winner for compact representations, the authors note that as the mapping size increases to very large numbers, the performance gap narrows. This is because standard RFF eventually samples enough frequencies to cover the spectrum adequately.
For future work, the authors plan to combine this improved encoding with quantization-aware training and entropic coding to push the boundaries of neural image and video compression even further.
Summary updated