---
title: 4D Spherindrical Harmonics
url: https://www.emergentmind.com/topics/4d-spherindrical-harmonics
type: topic
---

# 4D Spherindrical Harmonics

4D spherindrical harmonics are an orthonormal function basis designed for the joint representation of view-dependent appearance and temporal evolution in spatio-temporal volumetric models. These bases are foundational to the 4D Gaussian Splatting (4DGS) framework for dynamic scene modeling, where each 4D primitive carries a compact decomposition of radiance over the product space of spherical view directions and periodic time. By generalizing both standard spherical and cylindrical (Fourier) harmonics, 4D spherindrical harmonics enable real-time, photorealistic rendering and efficient learning for dynamic scene synthesis, applicable across domains from AR/VR to surgical imaging [2412.20720][2310.10642][2411.01218].

## 1. Mathematical Structure and Properties

Let $S^2$ denote the unit sphere (parameterizing view directions with spherical angles $(\theta, \phi)$), and $S^1$ the unit circle in time, $t \in [0,T]$. The domain is $D = S^2 \times S^1$, referred to as “spherindrical” coordinates. The 4D spherindrical basis functions, denoted $Z_{n\ell}^{m}(t, \theta, \phi)$, are defined as tensor products of (real or complex) spherical harmonics and a Fourier basis in time:
- For $n=0$:
  $$
  Z_{0\ell}^{m}(t,\theta,\phi) = \frac{1}{\sqrt{T}} Y_\ell^m(\theta,\phi)
  $$
- For $n>0$:
  $$
  Z_{n\ell}^{m}(t,\theta,\phi) = \sqrt{\frac{2}{T}} \cos\left(\frac{2\pi n t}{T}\right) Y_\ell^m(\theta,\phi)
  $$
  $$
  Z_{-n\ell}^{m}(t,\theta,\phi) = \sqrt{\frac{2}{T}} \sin\left(\frac{2\pi n t}{T}\right) Y_\ell^m(\theta,\phi)
  $$
where $Y_\ell^m$ are the spherical harmonics of degree $\ell$ and order $m$. The basis is orthonormal under the product measure $dt\,d\Omega$:
$$
\int_0^T \int_{S^2} Z_{p}(t, \theta, \phi) Z_{q}(t, \theta, \phi)\, d\Omega\, dt = \delta_{pq}
$$
where $p, q$ index $(\pm n, \ell, m)$ [2412.20720][2310.10642].

This basis generalizes classical expansions:
- With only $n=0$, recovers 3D spherical harmonics.
- With only $\ell=0, m=0$, recovers 1D Fourier (cylindrical) harmonics in time.

Spherical harmonics $Y_\ell^m(\theta,\phi)$ themselves satisfy standard recurrence relations and are normalized as:
$$
\int_{S^2} Y_\ell^m Y_{\ell'}^{m'} d\Omega = \delta_{\ell\ell'} \delta_{mm'}
$$
where $d\Omega = \sin\theta\, d\theta\, d\phi$ [2412.20720][2310.10642][2411.01218].

## 2. Basis Construction and Expansion of Appearance

Given a spatial point $x$, view direction $v = (\theta, \phi)$, and time $t$, the radiance field can be approximated as a sum of per-primitive contributions:
$$
L(x, t, v) \approx \sum_{i=1}^N p_i(x, t) \alpha_i c_i(v, t)
$$
where $p_i(x, t)$ is the spatio-temporal weight (often factored as $p_i(t) p_i(x|t)$), $\alpha_i$ is the opacity, and $c_i(v, t)$ is the local appearance.

For each 4D Gaussian primitive $i$, the (view, time)-dependent color expansion is:
$$
c_i(v, t) \approx \sum_{n=-N}^{N} \sum_{\ell=0}^{L} \sum_{m=-\ell}^{\ell} a_{i, n, \ell, m} Z_{n\ell}^m(\Delta t, \theta, \phi)
$$
where $\Delta t = t - \mu_{t,i}$ (with $\mu_{t,i}$ the temporal center of the Gaussian), and $a_{i, n, \ell, m}$ are the learned coefficients associated per-primitive with each basis function [2412.20720][2411.01218]. In other formulations, only nonnegative $n$ are used and only cosines appear; in others, sines are included for completeness.

The basis is truncated (e.g., $L\leq 3$, $N\leq 4$) to control expressivity and computational cost.

## 3. Coefficient Fitting and Learning

Coefficients $a_{i, n, \ell, m}$ are optimized jointly with the 4D Gaussian parameters using photometric and geometric losses. In 4DGS, fitting is performed end-to-end:
- The rendered image is computed using the spherindrical harmonic expansion for each primitive.
- The loss
  $$
  \mathcal{L} = \sum_{\text{pixels}} \|I_\text{obs}(u, v, t) - I_\text{rendered}(u, v, t; \{\mu_i, \Sigma_i, \alpha_i, a_i\})\|^2 + \text{regularizers}
  $$
  is minimized using stochastic gradient methods [2412.20720][2411.01218].

Alternatively, a per-Gaussian least-squares fit is possible:
$$
(B^T W B + \lambda I) a_i = B^T W r
$$
where $B$ is the matrix of basis samples, $W$ contains weights $p_i(x_s, t_s)$, and $r$ are the observed color residuals—this is conceptually illustrative, but not used in practice due to integration with the rasterization pipeline [2412.20720].

In medical imaging settings such as ST-Endo4DGS, the coefficients are optimized alongside phases of the sinusoids to accurately track nonstationary lighting and specular effects. Additional regularization (e.g., normal alignment loss) may be introduced to align geometry and the basis-induced appearance [2411.01218].

## 4. Integration with 4D Gaussian Splatting Primitives

Each 4D Gaussian is parameterized as a distribution on $[x, t] \in \mathbb{R}^3 \times \mathbb{R}$ with mean $\mu_i$ and full 4D covariance $\Sigma_i = R S S^T R^T$ (where $R$ represents a combination of 4D rotations and $S$ diagonal scales) [2412.20720][2310.10642]. At render time:
- The 4D Gaussian is marginalized in time to give $p_i(t)$, and conditioned on time to yield a 3D spatial Gaussian.
- The spatial Gaussian is projected into image space, forming a 2D “splat” $p_i(u, v|t)$.
- The spherindrical harmonic coefficients modulate the appearance contribution via the basis functions evaluated at the query $(t, \theta, \phi)$.

The covariance $\Sigma_i$ determines spatial and temporal locality—the support in $t$ affects when each primitive is active in time, and the off-diagonal $\Sigma_{x,t}$ components describe spatio-temporal motion [2412.20720]. Thus, as an object undergoes deformation or translation, the same coefficient vector modulates its appearance along its trajectory through spacetime.

Rendering is performed by rasterizing all active Gaussians for the given frame, evaluating the basis at each pixel and compositing the result via weighted blending. Computational optimizations include:
- Culling primitives with negligible $p_i(t)$.
- Evaluating bases via recurrences and lookups for fast, real-valued computation (no complex arithmetic or deep neural networks in the basis evaluation loop) [2310.10642][2411.01218].

## 5. Computational Aspects, Efficiency, and Model Compression

The separability and analyticity of the 4D spherindrical basis enable efficient implementation. Key computational considerations:
- Truncating $\ell$ (angular order) and $n$ (temporal order) controls the number of coefficients and computational load. With $\ell \leq 3$ and $n\leq 4$, each Gaussian requires $O(L^2 N)$ coefficients, which is several orders of magnitude smaller than storing a per-frame view-dependent color [2310.10642][2412.20720].
- GPU implementations precompute and cache $Y_\ell^m(\theta, \phi)$ and evaluate temporal sines/cosines by lookup or fast trigonometric recurrence [2411.01218].
- Vector quantization and Huffman encoding are applied to compress coefficient vectors, reducing memory by up to 95% while preserving rendering quality. Adaptive masking prunes primitives with negligible contribution across all frames [2412.20720].

The computational pipeline supports real-time rendering speeds (e.g., >100 FPS on RTX4090-class GPUs) even in settings with highly dynamic geometry, as demonstrated in endoscopic scene reconstruction [2411.01218].

## 6. Theory, Limitations, and Extensions

The principal theoretical advantages of 4D spherindrical harmonics in dynamic scene modeling include:
- Full separability enables analytic orthogonality, rapid evaluation, and stable learning.
- The basis compactly encodes both view- and time-dependence, outperforming frame-wise or non-separable methods in memory and speed [2412.20720][2310.10642].

Limitations arise from:
- The finite support of each Gaussian restricts local expressivity; rapidly changing nonperiodic or high-frequency temporal phenomena may require higher $N$, more primitives, or alternative temporal bases.
- Using only cosine terms (for $n>0$) biases models toward even temporal symmetry; inclusion of sine terms addresses this, at a slight cost in complexity [2412.20720].
- For scenes with highly non-periodic or transient effects, Fourier time bases may be suboptimal; polynomials or wavelets offer alternatives [2412.20720].
- Splatting-based rasterization imposes practical constraints on the spatial overlap and number of active primitives per frame [2411.01218].

Extensions include learned nonlinear warps of the temporal offset $\Delta t$, low-rank priors on the coefficient tensors to regularize overparameterization, and end-to-end sharing of attributes across groups of Gaussians via neural predictors (“anchor-based” structured variants) [2412.20720].

## 7. Applications and Comparative Benefits

The adoption of 4D spherindrical harmonics in dynamic scene synthesis enables real-time, photorealistic rendering, temporally coherent animation, and efficient parameter learning across a variety of challenging scene types:
- Large-scale scene modeling for AR/VR and metaverse applications, as in 4DGS [2412.20720].
- Real-time photorealistic novel view generation over arbitrary time in both synthetic and real-world datasets [2310.10642].
- Dynamic medical imaging, e.g., endoscopic surgical scene reconstruction, with robust handling of deformable and view-dependent appearance under complex lighting [2411.01218].

Empirical results demonstrate superiority over static-appearance and per-frame neural field baselines in visual quality, computational efficiency, and storage compactness. The analytic, lightweight basis supports deployment in real-world systems demanding high frame rates and scalability [2412.20720][2310.10642][2411.01218].

Source: https://www.emergentmind.com/topics/4d-spherindrical-harmonics