NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Bug or Feature2: Weight Drift, Activation Sparsity, and Spikes

Egor Shvetsov, Aleksandr Serkov, Shokorov Viacheslav, Redko Dmitry, Vladislav Goloshchapov, Evgeny Burnaev

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Interpretability & Model Adaptation › Neural Network Training Dynamics · Type: new method · Keywords: weight drift, activation sparsity, activation spikes, theoretical analysis, neural network training, clipping

Summary

The paper discovers that weight drift caused by standard losses and positively biased activations harms training, and shows that squaring activations (e.g., ReLU2) can improve sparsity-accuracy tradeoff but introduces harmful spikes, which are mitigated by clipping to yield better performance.

Explained to a 5-year-old

When we train computer brains, the numbers inside can drift to negative values, making many neurons stop firing. This makes the network less accurate. The researchers found a way to make some neurons fire less, but too little firing hurts performance. They also noticed some sudden jumps in activity that cause problems. By cutting down these jumps, the network works better and stays more accurate.

Explained to a 5-year-old, longer

When we teach a computer brain how to do a task, the numbers that control its connections can move in the wrong direction. This unwanted movement makes many tiny parts of the brain stop working, which lowers the overall accuracy. The scientists looked at why this happens and found that the way we measure error and the way we choose which parts fire together cause this drift. They also discovered that making some parts fire even less can help, but if too many stop, the model becomes weak. Additionally, they saw unexpected spikes in activity that create noise and hurt performance. To fix these spikes, they suggested a simple clipping method that limits the size of these jumps. By applying this clipping, the network keeps its good features, reduces the harmful spikes, and ends up being more accurate and reliable.

For a technical reader

The paper shows that standard loss functions can push weights negative when activation functions are always positive, causing many neurons to become inactive. This leads to a sharp drop in accuracy once sparsity passes about 70%. Squaring activations improves the balance between sparsity and accuracy but introduces sudden spikes in intermediate layers. The authors propose clipping these spikes, which preserves the benefits of squared activations and yields better validation loss, especially for GELU-squared on transformer models.

Problem

During training, neural network weights can unintentionally drift to negative values because of how loss functions interact with activation functions, leading to excessive activation sparsity and reduced model accuracy.

Method

The approach investigates the interaction between standard loss functions and positively biased activation functions, provides theoretical analysis of gradient behavior, empirically evaluates activation sparsity across many architectures, and proposes modified activation functions combined with clipping to control sparsity and spikes.

Results

The approach reveals a sharp accuracy drop when activation sparsity exceeds about 70%, shows that squaring activations improves sparsity-accuracy tradeoff but introduces spikes, and demonstrates that clipping eliminates spikes, yielding better performance (clipped version outperforms unclipped) and GELU-squared attains the lowest validation loss on GPT-nano.

Contributions

The paper provides theoretical proof of weight drift under standard losses, empirically maps sparsity-accuracy tradeoffs across many architectures, and proposes a clipping technique to control activation spikes while preserving benefits of squared activations.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction