Bug or Feature squared: Weight Drift and Activation Sparsity
summary
The gist
The gist The design of modern neural architectures resembles an evolutionary process that converges toward stable paradigms, yet researchers identify and study a negative drift in weight
In short
The study investigates how weight drift, caused by standard losses interacting with asymmetric activation functions, leads to emergent activation sparsity in neural networks. Researchers found that this drift is intrinsic to optimization and appears even with random inputs. This phenomenon suggests that the resulting sparsity can be controlled for better performance using specific techniques.
Key concepts
- Weight Drift
- This is a negative shift in the weights of a neural network during early training when using standard loss functions and positively biased activation functions. It occurs because the optimization process drives weights toward negative values, which reinforces itself in a self-amplifying cycle, regardless of the input data.
- Activation Sparsity
- This refers to the phenomenon where a significant portion of neurons or activations in a network become zero or near-zero during training. The paper shows that this sparsity is not just an incidental outcome but is actively driven by the weight drift mechanism described, leading to emergent structural changes in the model.
- Positive Gradient Property
- This property describes how the expected gradient with respect to a positive pre-activation (the input to an activation function) remains non-negative during training when using standard losses like MSE or cross-entropy. This positivity is key because it ensures that the weight drift mechanism propagates positively through the entire network.
- Negative Pre-activations
- These are instances where the input to an activation function becomes negative during training, which is a direct result of the weight drift. The paper empirically shows that a substantial fraction (60% to 80%) of pre-activations become negative across most models, even before explicit sparsity methods are applied.
Terminology used across episodes
This episode discusses
- Bug or Feature squared: Weight Drift and Activation Sparsity · Paper Radio
- Gaussian Error Linear Units (GELUs)
- The Resurrection of the ReLU
- A Survey on Sparse Autoencoders: Interpreting the Internal Mechanisms of Large Language Models
- Layer Normalization
- Dying ReLU and Initialization: Theory and Numerical Examples
- ReLU squared Wins: Discovering Efficient Activation Functions for Sparse LLMs
- Post-Training Statistical Calibration for Higher Activation Sparsity
- Llama 2: Open Foundation and Fine-Tuned Chat Models
- The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers
- Turbo Sparse: Achieving LLM SOTA Performance with Minimal Activated Parameters
- Training-Free Activation Sparsity in Large Language Models
- CATS: Contextually-Aware Thresholding for Sparsity in Large Language Models
- Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity
- The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks
- Geometric Metrics and LLMs: What They Measure and When They Work
The paper
Bug or Feature squared: Weight Drift and Activation Sparsity · Read on arXiv
Egor Shvetsov, Aleksandr Serkov, Shokorov Viacheslav Redko, Dmitry Vladislav Goloshchapov, Evgeny Burnaev
The design of modern neural architectures has converged through incremental empirical choices, yet the mechanisms governing their training dynamics remain only partially understood. We identify and analyze a negative weight drift induced by the interaction between standard losses and positively biased activation functions. We prove that under MSE or cross-entropy loss, the gradient with respect to positive pre-activations is non-negative in expectation at initialization, driving downstream weights toward negative values during early training. The drift is intrinsic to optimization rather than data, and persists across architectures and asymmetric activation functions (ReLU, GELU, SiLU). Coupled with ReLU, weight drift produces activation sparsity reaching nearly 90% in GPT-nano. We further analyze whether this natural sparsity is damaging and find that, on average, models sharply degrade above about 70% activation sparsity. We then evaluate sparsity-inducing activation functions, which reveals activation spikes in intermediate transformer layers. Code is available at https://github.com/On-Point-RND/BugOrFeature.
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: We're looking at the paper: "Bug or Feature squared: Weight Drift and Activation Sparsity".
Jane: Here's the gist of the paper. The gist The design of modern neural architectures resembles an evolutionary process that converges toward stable paradigms, yet researchers identify and study a negative drift in weight distributions induced by the interaction between standard losses and positively asymmetric activation functions, which leads to emergent activation sparsity.
Tom: Weight Drift Weight drift: We formally illustrate and empirically verify that for positively biased activation functions combined with standard losses (MSE, cross-entropy), gradient descent drives weights toward negative values during the early iterations of training The effect is intrinsic to optimization rather than the data: the same drift appears when training on entirely random inputs This negative weight drift in turn shifts pre-activations further below zero reinforcing the effect in a self-amplifying cycle.
Jane: The formal analysis applies to the early phase of training, when the properties of the random zero-mean initialization still reasonably hold.
Tom: Properties of the Effective Weight Matrix show that E
vi: = 0, and E
⟨vi, vj⟩: ≥ 0 for ReLU activation.
Title and authors: Tom: So, this paper is called "Bug or Feature squared: Weight Drift and Activation Sparsity", by Shvetsov and Serkov and Redko et al. It looks at how the design choices we make in modern neural architectures, like using standard losses with certain activation functions, actually cause a negative drift in the weights during early training.
Jane: It sounds a bit abstract, Tom. Can you tell us what that negative drift actually means for someone who isn't deep into the math? What’s the core problem they’re identifying here?
Tom: Basically, they are showing that when you use standard losses like Mean Squared Error or cross-entropy loss with activation functions that have a positive bias, the gradient descent process pushes the weights toward negative values during those initial training steps. This happens even if you start with completely random inputs.
Lu: The paper says this drift is intrinsic to the optimization process itself, not something caused by specific data. They show this happens across different architectures like MLP, ResNet, and ViT, and even with various asymmetric functions like ReLU or GELU <ref:2605.17659#pg1>.
Meng: If this drift is happening during the initial phase of training, what does that imply for deploying models? Does it mean we should worry about stability right away?
Jane: It implies that the way we initialize and train these models sets up a certain dynamic. The paper shows that this drift in weight means shifts pre-activations further below zero, which then reinforces the effect in a self-amplifying cycle <ref:2605.17659#pg1>.
Tom: Yeah, they found that the fraction of negative pre-activations is substantial across nearly every configuration typically between sixty percent and eighty percent, confirming this drift is present everywhere <ref:2605.17659#pg2>. It's not just a quirk of one model.
Lu: They also look at how different activation functions behave with this drift, testing candidates like ReLU2 and GELU2 to see if they can simultaneously boost sparsity and performance <ref:2605.17659#pg2>. They found that clipped versions like ReLU2 clip50 improve GPT-nano pretraining <ref:2605.17659#pg3>.
Meng: That’s interesting because on the deployment side, if we can get a high sparsity level without losing too much accuracy, that could mean smaller models running faster on our hardware. But what about the complexity of keeping track of these weight changes?
Jane: The paper points out that the covariance term between the gradient and the input is still orders of magnitude smaller than the weight mean across most architectures and activation functions <ref:2605.17659#pg2>. This suggests that while there's a drift, it doesn't create massive instability in every single layer simultaneously.
Tom: And they characterized a sparsity-accuracy tradeoff across seventy-nine configurations, which is where they pinpoint something important: a sharp accuracy cliff above approximately seventy percent activation sparsity <ref:2605.17659#pg1>.
Lu: That cliff suggests that aggressively achieving high activation sparsity doesn't automatically mean the model quality drops significantly, provided you stay below that threshold <ref:2605.17659#pg3>. They found that for example, ReLUfication—turning smooth activations like GELU or SiLU into ReLU variants through one epoch of training—can introduce fifty-five to seventy-four percent post-activation sparsity with less than a one percent accuracy loss, sometimes none at all across MLP, ResNet, and ViT <ref:2605.17659#pg2>.
Meng: I’m thinking about the practical implementation here. If we want to leverage this sparsity without major quality hits, what are the immediate steps we should take based on what they found?
Jane: The paper suggests several directions for improvement. They suggest using Percentile Centering instead of Top-K pruning when dealing with ReLU-based models because both methods produce roughly the same level of sparsity and negative value fractions at equivalent targets Improvement one <ref:2605.17659#pg3>.
Tom: That makes sense from a practical deployment standpoint, Jane. If we can use percentile centering to control sparsity precisely, that’s better than just relying on a fixed Top-K cutoff Improvement one <ref:2605.17659#pg3>.
Lu: I agree. And they also suggest using dynamic computation freeze strategies, specifically Accumulation Stop after fifty thousand steps. This stops the overhead from tracking dynamic statistics during training and lets us replace them with fixed values once the network has settled Improvement two <ref:2605.17659#pg2>.
Meng: Eliminating those dynamic statistics sounds like a win for compute time, especially when we are scaling up training runs. But does that freeze strategy work well with the weight drift they discussed?
Jane: The paper notes that exploiting early weight drift stabilization is possible by computing centering statistics only over the first few iterations, which gives a practical dividend in terms of reduced compute time Improvement six.
Tom: So we have a few ways to tackle this. We can use percentile centering for better control, freeze dynamic stats early, or just be smart about when we track those statistics Improvement one two six.
Lu: They also propose fine-tuning smooth activations into ReLU variants through one epoch of training to get that sparsity benefit without much accuracy loss Improvement four. This is a neat trick for inference-time sparsity.
Meng: That one epoch tuning idea sounds like something we could test in our next production iteration. But what about the architecture itself? If we are going to aggressively sparsify, does it matter if we just stick with plain MLPs?
Jane: The paper points out that residual paths are important when you do aggressive sparsification. In plain MLPs, performance collapses to near chance performance if you go past eighty percent sparsity, but adding skip connections helps retain around thirty-two point seven percent accuracy even at ninety percent sparsity Improvement five.
Tom: That’s a strong finding, Meng. Skip connections are definitely worth keeping if we plan on pushing the sparsity levels that high Improvement five. It shows that the architecture choice still plays a big role beyond just the activation function itself.
Lu: The paper is quite thorough in showing this interaction, detailing how weight drift and normalization jointly govern sparsity in ReLU-based models <ref:2605.17659#pg1>. They also mention that for ReLU2 to work well, it needs specific normalization choices like LayerNorm or RMSNorm, and coupling it with BatchNorm or no normalization degrades performance <ref:2605.17659#pg2>.
Meng: So the takeaway for deployment seems to be: don't just hunt for sparsity; design your residual connections correctly if you want high levels, and be mindful of the normalization scheme you use alongside clipped activations Improvement three <ref:2605.17659#pg2>.
Jane: Exactly. The paper really gives us a mechanistic understanding of how these seemingly incidental design choices actively shape the optimization dynamics <ref:2605.17659#pg1>. It shows that even seemingly minor decisions have big effects on what happens during training and inference <ref:2605.17659#pg3>.
Tom: So, to wrap up the main points of "Bug or Feature squared: Weight Drift and Activation Sparsity", we’re looking at how negative weight drift occurs in early training when using standard losses with positive bias activations <ref:2605.17659#pg1>. They confirm this drift is universal across models and functions, and they found a trade-off where aggressive sparsity above seventy percent hits an accuracy cliff <ref:2605.17659#pg1>.
Lu: The suggestions for improvement are quite actionable: using percentile centering for precise control, implementing dynamic computation freezes, utilizing clipped activations like ReLU2 clip50 or GELU2 to handle spikes, fine-tuning smooth activations into ReLU variants, and ensuring you have residual paths if you push sparsity high Improvement one through five.
Meng: I’m focusing on the deployment side of that: if we want to ship something sparse, we need to be careful about the normalization layers and make sure our residual connections are robust enough for the target level Improvement three five.
Jane: It’s a lot of technical detail, but what it really means for us is that understanding the underlying optimization dynamics helps us tune things better than just tweaking hyperparameters blindly <ref:2605.17659#pg1>.
Tom: Yeah, we’re not just guessing anymore; we have a mechanism for controlling this drift and managing the sparsity tradeoff <ref:2605.17659#pg3>. It’s about understanding the engine, not just driving the car <ref:2605.17659#pg1>.
Lu: The paper is a great piece of work because it provides this mechanistic view, showing how design choices actively shape what we see in the final weights and activations <ref:2605.17659#pg3>. It gives us the tools to steer that process more effectively <ref:2605.17659#pg2>.
Meng: So for my team, it means we should prioritize testing those ablation strategies with dynamic statistics freezing and residual connections early on Improvement two five. That’s where the immediate compute savings are.
Jane: It sounds like a solid direction. We have a lot of interesting ideas from this paper to keep exploring as we look at how these models evolve <ref:2605.17659#pg1>.
Tom: Alright, that’s our time on "Bug or Feature squared: Weight Drift and Activation Sparsity". That was some deep work on the optimization side of AI <ref:2605.17659#pg3>.
Lu: Thanks for tuning in. We'll be back next time to look at something completely different from the world of neural networks.
The paper's summary: Tom: So, we just finished talking about how these standard losses and activation functions cause weights to drift toward negative values during the first part of training, which is called weight drift <ref:2605.17659#pg1>. Now we’re looking at the summary of this paper, "Bug or Feature squared: Weight Drift and Activation Sparsity".
Jane: The paper says that this drift isn't just some weird initial phase thing; it happens continuously throughout training, and it leads to a specific kind of activation sparsity.
Tom: Exactly. They formally prove that when you use standard losses like cross-entropy with certain activation functions, gradient descent makes the weights shift in a negative direction even when starting from random inputs <ref:2605.17659#pg1>.
Lu: What’s really interesting is how this drift feeds into the network. It shifts the pre-activations further below zero, and that creates a self-amplifying cycle where the negative values get reinforced layer by layer.
Meng: So if we look at the results, they found that across almost every model setup, say sixty to eighty percent of pre-activations end up being negative <ref:2605.17659#pg2>. That’s a huge fraction of the activations going negative without us even trying to enforce sparsity.
Jane: And this brings up the part about performance. They looked at a lot of different things, testing models like ViT and ResNet-eighteen and they found that this negative drift is present everywhere, across all those architectures <ref:2605.17659#pg3>.
Tom: The main discovery here is the connection between this intrinsic drift and the ability to achieve activation sparsity. They show that you can get a sharp level of sparsity without significantly hurting the model's accuracy <ref:2605.17659#pg1>.
Lu: They found a point, around seventy percent sparsity, where you hit an accuracy cliff. So, pushing past that point causes performance to drop off sharply <ref:2605.17659#pg1>.
Jane: That means if we try to be super aggressive with sparsity right away, we might actually hurt the model’s quality significantly <ref:2605.17659#pg3>. But they also found ways to control this better, like using percentile centering instead of just a fixed Top-K pruning method <ref:2605.17659#pg1>.
Tom: Yeah, that suggests we should be thinking about how we control the drift during training because it's happening whether you use standard or smooth activations like GELU or SiLU <ref:2605.17659#pg2>.
Lu: And they even suggested a trick to get sparsity without much loss, like taking a smooth activation, say GELU, and training it for just one epoch to turn it into something more ReLU-like <ref:2605.17659#pg2>.
Jane: It seems like the paper is giving us a blueprint for tuning these models better by understanding this optimization process rather than just guessing at settings <ref:2605.17659#pg1>.
Tom: And from an engineering standpoint, they also pointed out that keeping residual connections in your architecture is important if you plan on pushing sparsity beyond eighty percent because plain MLPs just collapse in performance <ref:2605.17659#pg2>.
Meng: That makes sense for deployment. If we're aiming for high sparsity, the skip connections are definitely worth keeping to maintain some accuracy <ref:2605.17659#pg2>.
Jane: So, what this means for us on the ground is that knowing how these internal dynamics work lets us design better training schedules and architecture choices instead of just blindly tweaking hyperparameters <ref:2605.17659#pg1>.
Tom: Right. It’s about understanding the engine, not just driving the car when you’re trying to get those models to perform well on real data <ref:2605.17659#pg3>.
The paper's improvements: Tom: We’ve been talking about how weight drift happens naturally during training and how that links to activation sparsity <ref:2605.17659#pg1>. Now we’re looking at the suggestions for improvement this paper gives us to fix those issues, and Jane, what are they?
Jane: The paper suggests several ways to make this process more controlled and efficient. It seems like they want us to use percentile centering instead of just top-k pruning when we deal with ReLU-based models <ref:2605.17659#pg1>.
Tom: Right, because the paper says both methods get roughly the same sparsity and negative value fraction at the same target level, which is good for consistent results <ref:2605.17659#pg1>.
Lu: They also suggest a dynamic computation freeze strategy using Accumulation Stop after fifty thousand steps to stop the overhead of tracking dynamic statistics during training <ref:2605.17659#pg3>.
Meng: That would be useful for us on our end because it means we can save compute time without sacrificing effectiveness by just setting those statistics to fixed values once the network has settled <ref:2605.17659#pg3>.
Jane: And they also mentioned using clipped activation functions, like ReLU2 clip fifty or GELU2, to handle those really extreme activation spikes in the middle layers <ref:2605.17659#pg3>.
Tom: They actually showed that ReLU2 clip fifty improved the validation loss compared to unclipped ReLU2, with a number difference of three point two three six versus three point two five one <ref:2605.17659#pg3>.
Lu: That’s because they found that those most extreme spike values are actually harmful, not informative for the network's learning <ref:2605.17659#pg3>.
Jane: They also have this idea about fine-tuning smooth activations, like GELU or SiLU, into ReLU variants through just one epoch of training to get that sparsity benefit at inference time <ref:2605.17659#pg2>.
Tom: That sounds like a clever way to introduce sparsity without losing much accuracy across models like ResNet and ViT, they showed less than one percent accuracy loss sometimes <ref:2605.17659#pg2>.
Meng: If we can get that kind of sparsity with minimal loss, it really changes what we can deploy at scale because the model size shrinks significantly <ref:2605.17659#pg2>.
Lu: And they also stressed the importance of residual paths in architecture if you want to push sparsity way past eighty percent <ref:2605.17659#pg2>.
Jane: So, if we're looking at deployment, the main thing is being mindful of those residual connections because plain MLPs just break down performance-wise once you get aggressive with sparsification <ref:2605.17659#pg2>.
Tom: It’s about designing the architecture to support that high sparsity, not just applying a mask randomly <ref:2605.17659#pg3>.
Lu: And they also pointed out that exploiting the early weight drift stabilization by only computing centering statistics over the first few iterations can give us a practical dividend in terms of reduced compute time <ref:2605.17659#pg3>.
Jane: So, what this means for us is that we need to be smarter about our training setup, using these specific techniques to control the drift and the resulting sparsity <ref:2605.17659#pg1>.
Tom: It’s about steering that optimization process more effectively instead of just letting it happen naturally <ref:2605.17659#pg3>.
Conclusion: Tom: So we’re wrapping up our look at "Bug or Feature squared: Weight Drift and Activation Sparsity" by Shvetsov, Serkov, and Redko et al.. The core idea is that standard optimization methods create a negative weight drift in early training, which directly causes activation sparsity.
Jane: That means that what we think is just random noise during the initial training phase is actually following a specific path that pushes the model into a sparse state <ref:2605.17659#pg1>.
Tom: Exactly, and they showed this drift is intrinsic to the optimization process itself, not something caused by specific data or initialization choices <ref:2605.17659#pg3>.
Lu: The implication is that we can use this knowledge to control sparsity more precisely using percentile centering instead of just a fixed Top-K method <ref:2605.17659#pg1>.
Jane: So, if we want better control over sparsity, it’s not just about picking a cutoff number, it’s about understanding the drift mechanism itself <ref:2605.17659#pg3>.
Tom: They also found that using clipped activations like ReLU2 clip fifty can improve performance by reducing harmful spikes in intermediate layers <ref:2605.17659#pg3>.
Meng: I'm still thinking about the practical side, and they showed that keeping residual paths in architecture is crucial if we want to push sparsity past eighty percent because plain MLPs just collapse performance-wise <ref:2605.17659#pg2>.
Lu: And they also pointed out that fine-tuning smooth activations into ReLU variants for one epoch can introduce five fifty to seventy four percent sparsity with minimal accuracy loss across ViT and ResNet <ref:2605.17659#pg2>.
Jane: That’s a really useful trick if we want to get high sparsity without losing too much quality, provided we keep those architectural safeguards in place <ref:2605.17659#pg3>.
Tom: And they also gave us a way to save compute time by only computing the centering statistics over the first few iterations of training <ref:2605.17659#pg3>.
Meng: That’s a win for our production pipelines because it means we can skip tracking those dynamic statistics after fifty thousand steps, which saves significant compute time <ref:2605.17659#pg3>.
Lu: They also noted that the covariance term between the gradient and the input is still much smaller than the weight mean across most architectures, which suggests this drift doesn't create massive instability everywhere <ref:2605.17659#pg2>.
Jane: It seems like this paper gives us a mechanistic view of how design choices actively shape what we see during training and inference <ref:2605.17659#pg1>.
Tom: It's about understanding the engine, not just driving the car when you’re trying to get those models to perform well on real data, which is what this paper does with "Bug or Feature squared" <ref:2605.17659#pg3>.
Lu: The authors clearly show that these optimization dynamics are universal across different architectures and activation functions <ref:2605.17659#pg3>.
Jane: So, for anyone listening who isn't deep in the math, it means that the way we train a model sets up its sparsity potential from the very beginning <ref:2605.17659#pg1>.
Tom: It's about tuning those internal dynamics more effectively instead of just guessing hyperparameters <ref:2605.17659#pg3>.
More episodes
- 2507.05723-Large Language Models for Agent-Based Modelling: Current and possible uses across the modelling cycle
- 2507.21035-GenoMAS: Guided Multi-Agent Programming for Scientific Discovery from Genomic Data
- 2508.01300-How Far Are LLMs from Symbolic Planners? An NLP-Based Perspective
- 2508.11850-LLM-Guided Evolution of Symbolic Acceleration Inequality Families for MILP
- 2508.20784-Single Agent Robust Deep Reinforcement Learning for Bus Fleet Control
- 2508.20976-WoW-Bench: Evaluating Fine-Grained Acoustic Perception in Audio-Language Models via Marine Mammal Vocalizations
- 2510.02695-RAMAC: Multimodal Risk-Aware Offline Reinforcement Learning and the Role of Behavior Regularization
- 2510.03223-Attention-Aligned Reasoning for Large Language Models
- 2510.06919-Bayesian Nonparametric Dynamical Clustering of Time Series
- 2510.07073-VRPAgent: LLM-Driven Discovery of Heuristic Operators for Vehicle Routing Problems