- Rating
- 5
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 4
- Significance
- 3
Read review
Summary
This paper centers around the observation that in many modern models, post-activation sparsity is surprisingly high, and that this is a highly activation-dependent trait. The authors propose a mechanistic explanation, and analyze many models trained with a variety of activation functions and normalization strategy to explicitly control sparsity and its effects. They attempt to understand whether this lever for sparsity can enhance performance, of if sparsity is just a feature of modern models and in some sense require it. They find that with this understanding they are able to chose the right activation and use clever clipping to achieve better generalization
Strengths and weaknesses
This is a clean paper, it does good science and reports on the science very well. It puts forward a single hypothesis, provides theoretical motivations for it, then empirically measures whether the hypothesis is true in practice, and then proposes methods analysis and investigates remediation strategies. The empirical analysis is thorough, specific, and insightful.
I think where the paper falls a bit short is that in the end the analyzed effect is arguably marginal. Is it because as a field we've evolved towards architectures which are fine with sparsity? Or perhaps sparsity provides a more fundamental leverage to deep models? For this specific work, I think it would be interesting to study the cases where addressing pre-activation sparsity causes the most dramatic changes, which may reveal deeper phenomena at play.
Questions
- I'm a bit doubtful of the value of Figure 3, I get the point and I think per-model the argument is valid, I'm less sure that this is a robust inter-model and inter-problem claim. Could the authors think of a different way of representing this?
- I guess the lack of strong impact on transformer-based architectures is eyebrow raising, but there are indeed many mechanisms at play in these model that make them differ substantially from the "easy" ReLU-MLP case. Nonetheless I think this would be worthy of more speculation and/or analysis.
- Why is validation loss being reported on? This is a bit strange, the standard statistics pipeline is, tune parameters with train set, tune hyperparameters with validation set, report test set metrics.
Limitations
Adequate
Paper formatting concerns
None
Final justification
The authors have answered my questions and my assessment remains that this is a solid paper.
We thank the reviewer for the detailed and insightful questions and comments. Below we address each weakness and question in turn.
W1. The paper consists of two, somewhat disconnected parts: the investigation of the negative drift and the investigation of the impact of sparsity on the performance. It is not clear to me how the two are related unfortunately.
The connections is actually the same as the reviewers question 1: what happens if we use activation functions which do not cause negative drift. The main reason why performance my drop is not because we have highly negative weights but because many negative outputs become zero -> high sparsity. Therefore, what would happen if sparsity is not big, would it improve performance if yes we can consider looking into activation functions which do not cause drift if nothing changes the questions stays open.
Provided causal chain: (1) Weight drift directly causes negative activations (before non linearity) before the non-linearity, and consequently low values or zeros after the non-linearity. (2) Low-magnitude or zeroed values can hurt model performance, so we developed a controlled experiment with quantile shifts to test whether weight drift, and consequently sparse activations, cause model degradation. In other words we want to answer whether this weight drift is bad for performance or not. Experiments demonstrated that shifting activations preceding non-linearity towards positive range does not improve performance. On average, models start to degrade when sparsity goes beyond 70%. So, we do not have a confirmation that non drifting activation functions would help.
W2. It is not clear how the theoretical considerations on MLPs transfer to nets where skip connections are widely employed.
Theoretically: Theorem 1.1 does not use the fact that the layers after l form a single chain. It needs only that the map from σ(p(l)) to the output is built from zero-mean weights and ReLU gates and ends in the readout. A skip connection adds parallel routes without changing either property, so E[vi]=0 and E[⟨vi,vj⟩]≥0 carry over unchanged. The part of the output that bypasses layer l does not depend on p(l), and simply shifts the effective target from y to y−r. It is not independent of vi, since both pass through the readout, but the resulting inner product has the same form as the cross-correlation the theorem already bounds. We will state this in the appendix.
Empirically: Skip connections do not change the argument's structure, and we verify this empirically. Figure 9 compares an MLP with and without a skip connection under five activation functions, the drift trajectory is qualitatively unchanged. ResNet-18 (Figure 6) and MaxViT (Figure 7) are skip-connection architectures and both exhibit the predicted positive gradient bias and accumulating negative drift, and MLP+SKIP appears throughout Tables 4–5. However, skip connections change the magnitude, in Figure 9, adding a skip reduces ReLU sparsity from ~0.6 to ~0.4 while increasing gradient magnitudes, and Table 5 shows skips substantially improve tolerance to imposed sparsity. We will add this discussion to the paper.
W3. The “spikiness” definition in Figure 4. is rather flawed - for sparse activation where the min(x) is almost always 0 (like e.g. relu), would seem more spiky while essentially still being the same activation function (one could e.g. divide the down projection by 100 and get the same functionality).
Under spike we mean a massive value in activations which is different to all others in magnitude. We think Table 7 provides required details to remove concerns. The rescaling argument would require the large down-projection inputs to be compensated by either large down-projection weights or small up-projection weights. Table 7 shows this is not the cass, down-projection weights in the spike layers (max W = 2.299) are not larger than elsewhere in the network (max W = 2.858 overall), and up-projection inputs are symmetric and moderate (±7). The asymmetry appears specifically between the up-projection output and the down-projection input precisely where the activation function acts. This actually explains that the reason spikes originate is because one or a few specific tokens have a similar direction to some rows of up-projection. We further discuss the origin of spikes with reviewer uahR and will emphasize details on this mechanism in the final version.
W4 (minor) small experimental scale (in case of language modeling).: We agree, and we treat this as a genuine limitation rather than something we can address in rebuttal.
W5 - W7. Thank you for these details, we will absolutely fix all of it.
Q1: Is it possible to propose an activation function that would not yield negative drift? Should one expect better performance from networks trained with such activation? For example, Sigmiod and Tanh are symmetric and would not cause a negative drift but they work much worse empirically. However, we would not expect a drift-free activation to perform better, that is exact reason for our sparsity analysis. We believe that the main related cause of performance decreases is high sparsity ratio, negatively shifted weights do not hurt performance on its own. In our experiments Percentile Centering lets us shift pre-activations back into the positive range and we did not capture any performance improvement.
Q2. Are the Table 3 results single runs? Could the gains be seed noise? Table 3 reports single runs, and we agree that the differences within the squared activations is small relative to possible seed variance.
However, Figure 11a reports all 23 GPT-nano configurations we trained. The four squared and clipped-squared variants occupy the top four positions GELU² 3.2330, ReLU²_clip50 3.2360, ReLU²_clip15 3.2420, ReLU² 3.2507 ahead of all 19 non-squared configurations, the best of which is GELU at 3.2600. The gap between the squared functions and everything else is much larger than performance for remaining 19 configurations. We consider this as strong evidence for the squared activations as a whole. Additionally we will run experiments for squared functions and add results for the final camera ready version.
Q3. Can the case for spikes being pathological be strengthened? Would GELU² benefit from clipping?
Yes, for example, on MaxViT it helps. ReLU²_clip50 reaches 69.25% against 62.38% for unclipped ReLU², and GELU²_clip50 reaches 69.63% against 60.65% for unclipped GELU² (Table 8).
Q4. Is there experimental evidence that the analyzed drift causes sparsity in GPT-nano? Layer 1 shows no drift, and a transformer MLP block is a single layer.*
The layer-1 exception is a prediction of the mechanism, not a counterexample to it. The expected update to W(l)ik factorizes as E[(∂ℓ/∂pi(l))⋅xk(l−1)] (Remark C.2). The first factor is non-negative in expectation by Theorems 1.2 and 1.3, so the sign of the expected update is determined by the sign of the layer input. For the first layer the input is the data, which is often mean-centered, so the product has no consistent sign and no drift accumulates. For every subsequent layer the input is a post-activation and hence non-negative (ReLU) or positively biased (GELU, SiLU), the expected update is non-positive, and drift accumulates. For transformers the block is a single hidden layer, but its down-projection receives a post-activation input and so satisfies exactly the condition above, and the block is repeated at each of the 12 layers.
Moreover our supplementary materials contain per layer statistics for all 23 runs with measured weight means and sparsity.
We hope these clarifications address the reviewer's concerns. If the responses resolve the issues raised, we would appreciate the reviewer reconsidering their assessment.