efunc: An Efficient Function Representation without Neural Networks

Biao Zhang, Peter WonkaarXiv 2025 · DOI

TL;DR

efunc is a novel, non-neural representation for 3D shapes that replaces complex neural networks with a regular grid of polynomial functions. By interpolating these functions using radial basis functions (RBFs) and optimizing them with deep-learning-inspired techniques, it achieves state-of-the-art accuracy for Signed Distance Functions (SDFs) while using up to an order of magnitude fewer parameters than popular methods like Instant NGP.

What Problem Does This Paper Address?

In computer graphics, representing 3D geometry accurately and efficiently is a "holy grail" task. Recently, Neural Radiance Fields (NeRFs) and Neural SDFs have dominated the field. These methods typically use Multi-Layer Perceptrons (MLPs) or hybrid structures like hash grids (Instant NGP) and octrees (NGLOD) to "learn" a shape.

However, these neural approaches come with baggage:

  1. High Parameter Count: They often require millions of parameters to capture fine details.
  2. Complexity: Hierarchical data structures (like octrees) are difficult to implement and integrate into other deep learning pipelines.
  3. Black-Box Nature: MLPs are mathematically opaque, making direct geometric manipulation difficult.

The authors of efunc ask: Can we achieve the same high-quality results using simple, "white-box" mathematical functions instead of neural networks?

Methods

The authors propose a framework that treats shape representation as a function interpolation problem. Instead of storing a simple value (like a color or a distance) at each grid point, they store a local polynomial function.

Comparison of interpolation types and local vs. global support.

Key Innovations:

  • Function Interpolation: Most methods interpolate scalars or vectors. efunc interpolates continuous functions. Each grid point (Key) stores coefficients for a polynomial (typically 1st or 2nd order).
  • Normalized RBFs with Global Support: Instead of standard trilinear interpolation (which only looks at the 8 nearest neighbors), efunc uses a Gaussian-based RBF with a "softmax" normalization. This gives every grid point "global support," meaning every point in the grid contributes to the final value, though its influence fades with distance.
  • Learnable Offsets ($Δ$): To better capture sharp edges and intricate details, the grid points aren't fixed. The optimization process can move these "Keys" closer to the actual surface of the object.
  • Custom CUDA Kernels: Because the "global support" math involves a summation over all grid points, standard PyTorch autograd is extremely memory-intensive. The authors developed fused CUDA kernels that reduce memory consumption and computation time to less than 10% of conventional frameworks.

Datasets

The researchers evaluated efunc primarily on 3D Signed Distance Functions (SDFs) using:

  • Thingi10k: A large-scale dataset of 3D-printing models.
  • Standard Graphics Meshes: Classic benchmarks like the Armadillo, Dragon, Lucy, and Fandisk.

They compared their results against heavy hitters in the field, including FFN, NGLOD, Instant NGP, and DiF-Grid.

Key Results

  • Extreme Compactness: efunc achieves comparable or superior surface reconstruction quality to Instant NGP while using significantly fewer parameters. For example, a $32^3 \times 13$ float representation (approx. 426k parameters) can outperform models with 10M+ parameters.
  • Quantitative Accuracy: In terms of Chamfer Distance, efunc achieved a mean score of 9.227, outperforming Instant NGP (9.288) and NGLOD (9.273) on the test suite.
  • Memory Efficiency: Their custom CUDA implementation allows for training on consumer-grade desktop GPUs, using only 16MB of memory during training compared to 305MB for Instant NGP.
A variety of 3D shapes reconstructed using the efunc representation.

Key Insights and Ideas

  • The Power of Polynomials: The paper demonstrates that a low-resolution grid ($32^3$) can represent incredibly complex geometry if each cell is "smart" enough to contain a polynomial rather than a single number.
  • Optimization ≠ Neural Networks: We can use the tools of deep learning (backpropagation, AdamW optimizer, GPU acceleration) without actually using a neural network architecture. efunc is pure calculus and linear algebra optimized via gradient descent.
  • Smoothness by Design: Because the representation is based on RBFs and polynomials, the resulting SDFs are inherently smooth and analytically differentiable. This makes calculating surface normals trivial and precise.

Limitations and Future Work

  • Training Speed: While highly efficient in memory, efunc is currently slower to train than Instant NGP (roughly 20 minutes vs. 5 minutes).
  • Scaling Constraints: The current implementation relies on global summation, which becomes a bottleneck at very high resolutions (e.g., $128^3$ and above).
  • Future Directions: The authors suggest extending this representation to 4D data (spatio-temporal) and integrating it into generative models like diffusion or autoregressive transformers.

Summary updated

Abstract

Function fitting/approximation plays a fundamental role in computer graphics and other engineering applications. While recent advances have explored neural networks to address this task, these methods often rely on architectures with many parameters, limiting their practical applicability. In contrast, we pursue high-quality function approximation using parameter-efficient representations that eliminate the dependency on neural networks entirely. We first propose a novel framework for continuous function modeling. Most existing works can be formulated using this framework. We then introduce a compact function representation, which is based on polynomials interpolated using radial basis functions, bypassing both neural networks and complex/hierarchical data structures. We also develop memory-efficient CUDA-optimized algorithms that reduce computational time and memory consumption to less than 10% compared to conventional automatic differentiation frameworks. Finally, we validate our representation and optimization pipeline through extensive experiments on 3D signed distance functions (SDFs). The proposed representation achieves comparable or superior performance to state-of-the-art techniques (e.g., octree/hash-grid techniques) with significantly fewer parameters.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SDF fitting · ablationeFunc, Config-Full-4 default model (O (+Δ))CD11.057Sdf Fitting · config=Full-4 · resolution=32^3
Source quote
L567: Full-4^\diamond │ F │ 0 │ 1 │ 4 │ L │ 1 │ I+L │ 3 │ 1 │ 4 │ L │ 1 │ 32^3 │ 13 │ 425{,}984 │ 11.057 │ 9.079 │ 99.947 │ 3.772 │ 97.119
SDF fitting · ablationeFunc, Config-Full-4 default model (O (+Δ))Volume-AE9.079Sdf Fitting · config=Full-4 · resolution=32^3
Source quote
L567: Full-4^\diamond │ F │ 0 │ 1 │ 4 │ L │ 1 │ I+L │ 3 │ 1 │ 4 │ L │ 1 │ 32^3 │ 13 │ 425{,}984 │ 11.057 │ 9.079 │ 99.947 │ 3.772 │ 97.119
SDF fitting · ablationeFunc, Config-Full-4 default model (O (+Δ))Near-AE3.772Sdf Fitting · config=Full-4 · region=near-surface · resolution=32^3
Source quote
L567: Full-4^\diamond │ F │ 0 │ 1 │ 4 │ L │ 1 │ I+L │ 3 │ 1 │ 4 │ L │ 1 │ 32^3 │ 13 │ 425{,}984 │ 11.057 │ 9.079 │ 99.947 │ 3.772 │ 97.119
Forward/backward efficiency microbenchmarkeFunc CUDA implementationForward time3.064 ms-39.15 vs baselineFunction Evaluation · batch-size=16384 · resolution=32^3 · implementation=CUDA
Source quote
L589: our forward (ms) │ 0.129 │ 0.185 │ 0.553 │ 3.064 │ 22.576
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
Forward/backward efficiency microbenchmarkNaive PyTorch implementation baselineForward time42.209 msFunction Evaluation · batch-size=16384 · resolution=32^3 · implementation=PyTorch
Source quote
L588: J=16384 │ I=4^3 │ I=4^3 │ I=16^3 │ I=32^3 │ I=64^3 py forward (ms) │ 3.259 │ 3.843 │ 8.341 │ 42.209
BibTeX
@misc{zhang2025efunc,
  author = {Biao Zhang and Peter Wonka},
  title = {{efunc: An Efficient Function Representation without Neural Networks}},
  year = {2025},
  eprint = {2505.21319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.21319},
}
Figure