NerVE: Nonlinear Eigenspectrum Dynamics in LLM Feed-Forward Networks
Organizations: New York University
Abstract
We introduce NerVE, a unified eigenspectral framework for understanding how feed-forward networks (FFNs) in large language models (LLMs) organize and regulate information flow in high-dimensional latent space. Despite FFNs dominating the parameter budget, their high-dimensional dynamics remain poorly understood. NerVE addresses this gap through lightweight, memory-efficient tracking of eigenspectrum dynamics via four complementary metrics: Spectral Entropy (dispersion), Participation Ratio (effective dimensionality), Eigenvalue Early Enrichment (top-heaviness), and Jensen-Shannon divergence (distributional shifts). Our key insight is that FFN nonlinearities reinject variance across eigenmodes, fundamentally governing latent dimension utilization, and that optimizer geometry strongly modulates the extent of this variance reinjection. We validate NerVE across model scales, and diverse architectural and optimizer configurations, each uniquely shaping FFN dynamics: normalization schemes controlling variance flow; FFN weight geometries constraining latent space; positional encoding and activation functions regulating information flow; and optimizer choices redistributing effective capacity across depth. Across these settings, NerVE consistently recovers stable spectral signatures that correlate with model's generalization ability and respond predictably to design choices, generalizing beyond transformer to MLP-Mixer architectures, providing actionable insights for architectural and optimizer choices beyond trial-and-error.
Figures & tables
| Experimental Axis | Key Findings |
|---|---|
| Activation (GELU vs ReLU) | Similar trend, distinct dynamics; GELU explores broader subspace (§ 3.1 ) |
| Norm-free models | GELU exhibits spectral inertia; ReLU compensates LayerNorms (§ 3.2 ) |
| FFN weight geometry | Spectral dynamics matter; performance tracks sustained flattening (§ 3.3 ) |
| Norm placement (Pre/Post/Mix) | PreLN: best return-on-width; PostLN: diminishing spectral returns (§ 3.4 ) |
| Positional encoding | RoPE prevents mid-to-deep spectral collapse (depth utilization ) (§ 3.6 ) |
| Optimizer (AdamW vs Muon) | Repair or refinement; performance follows mid-layer capacity trends (§ 3.7 ) |
| Baseline Models | Norm-free Models | Norm-free w/ FFN-Norm | ||||||
|---|---|---|---|---|---|---|---|---|
| GELU | ReLU | GELU | ReLU | Leaky ReLU | WNorm | SNorm | HNorm | |
| PPL | 2.714 | 2.774 | 3.223 | 2.988 | 3.081 | 3.041 | 3.000 | 3.122 |
| Metric | FFN Width Configuration (GPT-2 GELU) | GPT-2 | NormFree GPT-2 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| D=1d | D=2d | D=3d | D=4d | D=5d | D=6d | D=7d | D=8d | GELU | ReLU | GeGLU | SwiGLU | GELU | ReLU | LReLU | |
| SE_pre | -0.98 | -0.98 | -0.99 | -0.99 | -0.99 | -0.99 | -0.99 | -0.99 | -0.99 | -0.98 | -0.95 | -0.97 | -0.82 | 0.03 | 0.03 |
| SE_post | -0.84 | -0.84 | -0.86 | -0.87 | -0.87 | -0.87 | -0.87 | -0.87 | -1.00 | -1.00 | -0.57 | -0.85 | -0.92 | -0.99 | -1.00 |
| PR_pre | -0.97 | -0.98 | -0.98 | -0.99 | -0.98 | -0.97 | -0.98 | -0.97 | -0.99 | -0.98 | -0.97 | -0.97 | -0.93 | -0.55 | -0.60 |
| PR_post | -0.85 | -0.93 | -0.94 | -0.94 | -0.95 | -0.95 | -0.93 | -0.93 | -1.00 | -0.97 | -0.94 | -0.89 | -0.99 | -0.94 | -0.99 |
Appendix figures & tables34 assets
Supplementary material from the paper’s appendix.
Appendix
| Metric | Input | Range | Sensitive to | Captures |
|---|---|---|---|---|
| SE | (normalized) | Full spectrum (especially mid-to-tail) | Variance uniformity (dispersion) | |
| PR | (raw) | Large eigenvalues (suppresses small eigenvalues) | Effective dimensionality | |
| EEE | (raw) | Top eigenvalues (front-loaded concentration) | Top-heaviness (anisotropy) | |
| JS | Shape difference between (pre-/post-)spectra | Geometric restructuring |
| Joint Signatures | Interpretation | References |
|---|---|---|
| SE PR EEE | Healthy spectral flattening (Rank inflation) | Standard training (§ 3.1 ) |
| SE PR EEE | Spectral collapse | AdamW pre-activation (§ 3.7 ) |
| JS across depth | Decreasing nonlinear restructuring | Healthy deep layers (§ 3.1 ) |
| SE PR JS across depth | Nonlinearity compensating for pathology | Norm-free ReLU models (§ 3.2 ) |
| EEE JS across depth | Sustained spectral flattening | Spectral norm. in FFNs (§ 3.3 ) |
| Pre-act stable, post-act shifts | Repair regime | AdamW (§ 3.7 & Appendix L.1 ) |
| JS | PR gain | EEE | Interpretation |
|---|---|---|---|
| High | High | Strongly negative | Beneficial Restructuring |
| Active expansion and flattening (norm-free ReLU, § 3.2 ) | |||
| High | High | Weakly negative | Compensatory Repair |
| Effort wasted undoing PreAct spectral collapse (AdamW, § 3.7 ) | |||
| Moderate | High | Near zero or positive | Expansion without equalization |
| New directions but top-heaviness persists (HNorm, § 3.3 ) |
| Method | D=768 | D=1536 | D=2048 | D=3072 | D=3840 | D=4608 | D=5376 | D=6144 |
|---|---|---|---|---|---|---|---|---|
| PreLN | 292 62 | 573 149 | 831 238 | 1002 354 | 1275 333 | 1562 429 | 1721 244 | 1822 370 |
| MixLN | 137 111 | 184 126 | 247 233 | 274 224 | 278 234 | 159 142 | 251 201 | 233 187 |
| PostLN | 95 65 | 142 104 | 151 147 | 240 231 | 117 110 | 91 83 | 94 84 | 71 62 |
| Metric | Sampling | RandSVD | Lanczos | |||||
|---|---|---|---|---|---|---|---|---|
| 5% | 10% | 25% | 50% | 256 | 512 | 256 | 512 | |
| SE_pre (%) | 1.0 | 0.5 | 0.5 | 0.4 | 50.7 | 50.1 | 7.9 | 1.7 |
| SE_post (%) | 4.8 | 1.9 | 1.3 | 1.3 | 63.7 | 61.0 | 28.8 | 19.3 |
| PR_pre (%) | 4.9 | 4.1 | 5.1 | 4.3 | 90.4 | 90.2 | 18.0 | 3.6 |
| PR_post (%) | 16.7 | 10.2 | 33.5 | 30.2 | 94.9 | 94.8 | 68.4 | 53.9 |
| EEE_pre (%) | 0.4 | 0.1 | 0.1 | 0.1 | 4.2 | 1.6 | 38.8 | 26.3 |
| Metric | Sampling | RandSVD | Lanczos | |||||
|---|---|---|---|---|---|---|---|---|
| 5% | 10% | 25% | 50% | 256 | 512 | 256 | 512 | |
| SE_pre | -0.97 | -0.972 | -0.971 | -0.972 | -0.106 | -0.174 | -0.822 | -0.959 |
| SE_post | -0.34 | -0.376 | -0.332 | -0.363 | 0.612 | 0.568 | 0.335 | 0.08 |
| PR_pre | -0.914 | -0.915 | -0.918 | -0.912 | 0.014 | 0.047 | -0.788 | -0.901 |
| PR_post | -0.122 | -0.138 | 0.049 | -0.235 | 0.594 | 0.575 | 0.314 | 0.136 |
| Metric | Sampling | RandSVD | Lanczos | Full | |||||
|---|---|---|---|---|---|---|---|---|---|
| 5% | 10% | 25% | 50% | 256 | 512 | 256 | 512 | batch | |
| Wall-clock time | 9.89s | 9.92s | 11.48s | 12.62s | 10.28s | 11.19s | 12.07s | 12.20s | 14.41s |
| Overhead-200 (%) | 4.37 | 4.39 | 5.08 | 5.58 | 4.55 | 4.95 | 5.34 | 5.40 | 6.38 |
| Overhead-1K (%) | 0.87 | 0.88 | 1.02 | 1.12 | 0.91 | 0.99 | 1.07 | 1.08 | 1.28 |
| Metric | D=1 | D=2 | D=3 | D=4 | D=5 | D=6 | D=7 | D=8 |
|---|---|---|---|---|---|---|---|---|
| Matrix dim. | [768,768] | [1536, 1536] | [2304, 2304] | [3072, 3072] | [3840, 3840] | [4608, 4608] | [5376, 5376] | [6144, 6144] |
| Matrix size | 2.25MB | 9MB | 20.25MB | 36MB | 56.25MB | 81MB | 110.25MB | 144MB |
| GPU Mem. | 4.5MB | 18MB | 40.5MB | 72MB | 112.5MB | 162MB | 220.5MB | 288MB |
| FFN1 | FFN2 | Acc. (%) |
|---|---|---|
| GELU | GELU | 66.96 |
| GELU | ReLU | 66.99 |
| ReLU | GELU | 67.86 |
| ReLU | ReLU | 67.20 |
| Optimizer | GPT2-350M | GPT2-160M | GPT2-160M |
|---|---|---|---|
| (Context 512) | (Context 512) | (Context 1024) | |
| AdamW ( Loshchilov and Hutter, 2019 ) | 33.24 | 39.26 | 34.33 |
| Muon ( Jordan et al., 2024 ) | 25.68 | 30.95 | 27.09 |
| Dion ( Ahn et al., 2025 ) | 27.68 | 33.60 | 29.34 |
Transformer FFNs
Transformer feed-forward networks (FFNs) are the within-token MLP blocks whose activations, structure, efficiency, and role in model computation are studied.
See all 42 papers