Papers
Topics
Authors
Recent
Search
2000 character limit reached

Soft-Position Embedding in Coordinate-MLPs

Updated 10 February 2026
  • Soft-position embedding is a learnable, smooth positional encoding that maps input coordinates using super-Gaussian functions with instance-specific scale parameters.
  • It employs a graph-Laplacian smoothness prior to balance fidelity to local details with overall generalization, outperforming traditional random Fourier features.
  • A two-stage optimization decouples the embedding hyperparameter fitting from MLP training, ensuring improved training stability and high-fidelity signal reconstruction.

Soft-position embedding is a learnable, smooth positional encoding scheme tailored for coordinate-MLPs, in which each input coordinate is mapped to a high-dimensional space via a parameterized, instance-specific transformation. This framework enables each coordinate to have its own local embedding bandwidth, governed by per-coordinate scale parameters. These scales are optimized using a graph-Laplacian smoothness prior, carefully balancing fidelity to complex local detail with generalization, and providing high stability in both training and inference. The methodology outperforms classical position encodings such as random Fourier features (RFF), particularly in high-fidelity signal and image regression and neural rendering tasks (Ramasinghe et al., 2021).

1. Super-Gaussian Instance-specific Embedding Construction

Soft-position embedding projects each coordinate xRNx\in\mathbb{R}^N into a DD-dimensional vector via super-Gaussian radial basis functions, with a learnable, instance-specific scale parameter σx\sigma_x. The embedding is defined as: ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T with each component

ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b

where αRN\alpha\in \mathbb{R}^N is a projection vector, {ti}i=1D\{t_i\}_{i=1}^D are fixed offsets, b>0b>0 is a fixed exponent, and σx\sigma_x is the coordinate-dependent scale (learnable). This construction enables localized control over the embedding bandwidth, adapting the smoothness and expressivity to each coordinate instance.

2. Joint Objective: Data Fit and Graph-Laplacian Smoothness

The embedding is trained alongside an MLP fθf_\theta using a combined surrogate loss composed of a conventional data-fitting term and a graph-Laplacian regularizer. For input-output pairs DD0:

  • Define DD1 as the Frobenius norm of the input Jacobian of DD2 at DD3.
  • The loss function: DD4 where

DD5

is the empirical data loss, and

DD6

is the Laplacian regularizer with an “anti-collapse” term. Here, DD7 is the graph Laplacian over embedded coordinates and DD8 the adjacency matrix. Hyperparameters DD9 govern the trade-off and collapse prevention.

This formulation encourages local smoothness of target Jacobians across the learned manifold, effectively matching manifold volume elements to the model’s functional complexity at each location.

3. Graph Laplacian Construction and Smoothness Enforcement

The graph structure is imposed over the set of embedded coordinates σx\sigma_x0 by defining an adjacency matrix σx\sigma_x1: σx\sigma_x2

σx\sigma_x3

where σx\sigma_x4 control smoothing. The (unnormalized) Laplacian is σx\sigma_x5, for σx\sigma_x6 the diagonal degree matrix.

Minimization of σx\sigma_x7 enforces that embedded points close in the positional manifold exhibit similar local functional complexity, measured by Jacobian norms. The continuous analogue aligns the embedding’s metric determinant with the network’s Jacobian norm, regulating the positional manifold’s distortion.

4. Two-Stage Optimization: Decoupling Embedding and Network Fitting

The optimization proceeds in two decoupled stages:

  • Stage I: Embedding hyperparameters (σx\sigma_x8) are fit by minimizing σx\sigma_x9 using gradient descent, with gradients propagating through ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T0 into the Laplacian and adjacency matrices. To circumvent ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T1 scaling, the mapping from input gradient norms to ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T2 is approximated by a low-degree polynomial:

ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T3

where coefficients ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T4 are learned via least-squares on a small calibration set and can be reused for new functions without re-search.

  • Stage II: With ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T5 fixed, ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T6 becomes a deterministic embedding. The MLP ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T7 is then trained by standard stochastic optimization (e.g., Adam) to minimize data error, using fixed embedding parameters.

This staged decoupling prevents overfitting observed in joint end-to-end optimization. The procedure yields robust generalization by separating embedding smoothness induction from function approximation.

5. Comparative Evaluation Against Random Fourier Features

Quantitative and qualitative evaluation demonstrates significant improvements of soft-position embedding over RFF:

Task Test PSNR (RFF) Test PSNR (Soft-Embedding) SSIM (RFF) SSIM (Soft-Embedding)
1D Signals ~26 dB ~31 dB
2D Images +2–3 dB relative gain
3D NeRF Scenes +1 dB; .947 → .981 .947 .981
  • RFF requires per-instance frequency tuning; the soft-position approach attains superior results with universal coefficients.
  • RFF fails under permutation/undersampling of its frequencies, while adaptive per-instance ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T8 confers robustness.
  • Shallow MLPs exhibit higher signal fidelity with the smooth embeddings, highlighting the ease of function approximation on smooth positional manifolds.

6. Gradient Stability and Intermediate Integration

Empirical results reveal that, when back-propagating through ϕ:RNRD,ϕ(x)=[ϕ1(x),,ϕD(x)]T\phi: \mathbb{R}^N \to \mathbb{R}^D, \quad \phi(x) = [\phi_1(x), \ldots, \phi_D(x)]^T9, the super-Gaussian manifold generates stable, low-variance gradients ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b0 even under coordinate permutations or deep stacking. In contrast, RFF induces noisy, ill-conditioned gradient fields. Consequently, the embedding can be reliably inserted as an intermediate layer (e.g., at a U-Net bottleneck) without risk of gradient explosion or collapse. This stability is critical for scalable integration of positional encodings in deep architectures.

7. High-Level Implementation and Practical Considerations

Implementation follows a two-stage recipe:

  1. Polynomial Fitting for ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b1
    • Select a calibration subset ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b2 and estimate gradient magnitudes ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b3.
    • Optimize ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b4 for ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b5 via gradient descent on the Laplacian loss.
    • Perform least-squares fit for polynomial coefficients ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b6 mapping ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b7.
  2. Training the MLP ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b8 with Fixed Embedding
    • Compute ϕi(x)=exp((xαti)22σx2)b\phi_i(x) = \exp\left(-\frac{(x\cdot\alpha - t_i)^2}{2\sigma_x^2}\right)^b9 and derive αRN\alpha\in \mathbb{R}^N0 for all training points.
    • Generate αRN\alpha\in \mathbb{R}^N1 for each input using the fitted αRN\alpha\in \mathbb{R}^N2.
    • Train αRN\alpha\in \mathbb{R}^N3 to minimize the data loss over the embedded inputs via Adam or SGD.

Optional iterative updates of αRN\alpha\in \mathbb{R}^N4 alongside network training may further refine the embedding, although the two-stage methodology generally suffices for strong performance.

Summary

Soft-position embedding employs a super-Gaussian coordinate-to-feature mapping with per-instance bandwidth, learned under a graph-Laplacian smoothness prior. This architecture optimally balances local detail and global smoothness, exceeds RFF in fidelity and robustness, and is suitable for integration within deep neural networks without laborious hyperparameter search or gradient instability (Ramasinghe et al., 2021).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Soft-Position Embedding.