STAF: Sinusoidal Trainable Activation Functions for Implicit Neural Representation
Alireza Morsali, MohammadJavad Vaez, Mohammadhossein Soltani, Amirhossein Kazerouni, Babak Taati, Morteza Mohammad-Noori
TL;DR
STAF introduces a trainable sinusoidal activation for implicit neural representations to overcome spectral bias and enable high-frequency detail capture. By parameterizing a Fourier-series activation $ ho^*(x)=\sum_{i=1}^{\tau} C_i \sin(\Omega_i x+\Phi_i)$, trained per-layer, STAF expands the network's frequency support and achieves Kronecker-equivalent representations that surpass fixed activations like SIREN. Neural Tangent Kernel analysis reveals STAF yields richer eigenfunctions and larger eigenvalues, aligning with faster convergence and improved learning of high-frequency content. Empirically, STAF achieves state-of-the-art PSNR/SSIM across signal representation, inverse problems, and NeRF tasks with favorable convergence and modest parameter overhead; code is publicly available.
Abstract
Implicit Neural Representations (INRs) have emerged as a powerful framework for modeling continuous signals. The spectral bias of ReLU-based networks is a well-established limitation, restricting their ability to capture fine-grained details in target signals. While previous works have attempted to mitigate this issue through frequency-based encodings or architectural modifications, these approaches often introduce additional complexity and do not fully address the underlying challenge of learning high-frequency components efficiently. We introduce Sinusoidal Trainable Activation Functions (STAF), designed to directly tackle this limitation by enabling networks to adaptively learn and represent complex signals with higher precision and efficiency. STAF inherently modulates its frequency components, allowing for self-adaptive spectral learning. This capability significantly improves convergence speed and expressivity, making STAF highly effective for both signal representations and inverse problems. Through extensive evaluations across a range of tasks, including signal representation (shape, image, audio) and inverse problems (super-resolution, denoising), as well as neural radiance fields (NeRF), we demonstrate that STAF consistently outperforms state-of-the-art methods in accuracy and reconstruction fidelity. These results establish STAF as a robust solution to spectral bias and the capacity--convergence tradeoff, with broad applicability in computer vision and graphics. Our codebase is publicly accessible at https://github.com/AlirezaMorsali/STAF.
