Sinusoidal Initialization, Time for a New Start

Alberto Fernández-Hernández, Jose I. Mestre, Manuel F. Dolz, José Duato, Enrique S. Quintana-Orti

TL;DR

This research challenges the long-held assumption that neural networks require random weight initialization. By introducing a deterministic "Sinusoidal initialization," the authors eliminate the initial imbalances (skewed neurons) caused by randomness. This structured approach yields consistently faster convergence and higher final accuracy across various architectures, from CNNs to Transformers.

The Problem: The Hidden Cost of Randomness

For years, the deep learning community has relied on stochastic weight initialization methods like Glorot (Xavier) and He. These methods sample weights from random distributions (like Gaussian or Uniform) to preserve signal variance across layers, preventing gradients from vanishing or exploding.

However, the authors ask a fundamental question: Is randomness actually necessary? It turns out, random sampling often produces "skewed neurons"—neurons whose initial weights sum to a non-zero value, causing them to be disproportionately active or inactive right from the start. This imbalance limits the network's expressive power, forcing the optimizer to spend the crucial early epochs just correcting these bad initial states. The paper tackles this by seeking a deterministic alternative that preserves variance without the chaotic, unbalanced side effects of randomness.

Methods: Engineering Deterministic Structure

The authors propose Sinusoidal initialization, a fully deterministic method that constructs weight matrices using sine waves. Instead of pulling from a random distribution, the weight for a connection is calculated using a structured sinusoidal function:

$W[i, j] = a \cdot \sin(k_i \cdot x_j + \phi_i)$

This isn't just a mathematical novelty; it is engineered with three specific goals:

  1. Row Cancellation: The frequencies ($k_i$) and phase shifts ($\phi_i$) are mathematically chosen so that the sum of weights for any single neuron is exactly zero. This guarantees perfectly balanced pre-activations.
  2. Functional Independence: Because each neuron gets a unique frequency and phase (akin to orthogonal Fourier bases), they start off looking at completely different features, preventing redundancy.
  3. Variance Control: The amplitude ($a$) is scaled to match the variance preservation rules established by Glorot and He, ensuring stable signal propagation.

Key Results: Faster and More Accurate

The authors evaluated their method across standard benchmarks including CIFAR-100, Tiny-ImageNet, ImageNet-1k, and WikiText2. Across models like ResNet-50, EfficientNetV2, ViT-B16, and BERT-mini, Sinusoidal initialization achieved an average 4.9% increase in final validation accuracy compared to default initializations.

Validation accuracy of ResNet-50 on CIFAR-100 comparing Sinusoidal initialization to standard baselines.

Beyond final accuracy, training speed improved significantly. Measured by the Area Under the Curve (AUC) of validation accuracy over time, the method showed an average improvement of 20.9%. As seen in the figure above, the Sinusoidal method (purple) reaches higher accuracy levels much earlier in the training process than traditional random or orthogonal methods.

Key Insights: Eliminating Skewed Neurons

The core advantage of this method lies in its ability to provide high expressivity from the very first epoch. Standard random initializations inherently create a massive number of "skewed neurons" due to statistical fluctuations. If a neuron's random weights happen to sum to a large positive or negative number, it becomes stuck in an active or inactive state.

Activation maps across different initialization methods; Sinusoidal initialization eliminates the 'streaky' patterns associated with skewed neurons.

In a Vision Transformer experiment, standard initializations resulted in ~50-80% of neurons being heavily skewed. Sinusoidal initialization dropped this to just 0.2%. This is visually evident in activation maps (Samples vs. Neurons), where traditional methods show vertical "streaks" indicating neurons that are consistently over- or under-active. Sinusoidal initialization produces a much more uniform, noise-like distribution, indicating that every neuron is contributing uniquely to the feature representation.

Limitations and Future Work

While highly effective, the method is not a universal "silver bullet" yet. It slightly underperformed Orthogonal initialization on MobileNetV3, which the authors traced to an interaction with the HardSwish activation function. Switching the model to ReLU restored Sinusoidal's dominance, suggesting that the interaction between deterministic weights and specific activation functions is an important area for future study.

Furthermore, while the paper rigorously proves the absence of skewed neurons for Multilayer Perceptrons (MLPs), extending these formal mathematical guarantees to complex modern architectures with skip connections and normalization layers remains an open challenge. The authors conclude that the broader space of structured, deterministic initializations is largely unexplored and ripe for future research.

Summary updated

BibTeX
@inproceedings{fernandezhernandez2025sinusoidal,
  author = {Alberto Fernández-Hernández and Jose I. Mestre and Manuel F. Dolz and José Duato and Enrique S. Quintana-Orti},
  title = {{Sinusoidal Initialization, Time for a New Start}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=FGliQVcrDZ},
}
Figure