Same Function, Different Gradients: Evaluating Gradient Reliability under Reparameterization
Not on the map. Why?
Abstract (arXiv)
Gradients are no longer used only to train models: Gradient magnitudes are now measurement instruments, used to rank attention heads for pruning, to decide per-example clipping in private training, to allocate adapter rank budgets, and to debug models. Across these workflows, larger gradient magnitudes are taken to mean greater importance. Even for a fixed input--output function, these gradients are computed in one of many possible parameter coordinate systems. For example, attention scores depend on the query and key projections only through the paired product WQWK^top. Scaling a head's query projection by c and the corresponding key projection by 1/c therefore leaves every output logit unchanged. This change in parameter coordinates rescales the corresponding query and key gradient norms by 1/c and c, respectively. To test whether gradient-based decisions remain unchanged under these coordinate changes, we introduce Gradient Reliability under Reparameterization (GRR). GRR rewrites a trained model in new parameter coordinates that compute exactly the same function, verifies that predictions are unchanged, and then tests whether the decisions derived from the gradients are unchanged too. Our audits span GLUE classifiers, a ViT on CIFAR-10, GPT-2-medium and GPT-2-large, a 1.1B-parameter Llama-style model on WikiText-2, and six trained LoRA adapters. Empirically, predictions are preserved throughout, but both the gradients and the gradient-based decisions change. Across 66 GLUE attention audits, the median top-3 overlap of raw head-gradient rankings is only 1/3, and rankings and pruning masks change even under the mildest rescalings we test. In the largest of 14 global-pruning audits, the shifted ranking selects head masks that differ in four of 22 pruned heads and reach 50.92% and 94.84% validation accuracy on one ELECTRA SST-2 model.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 61 of its 77 references that are in the map. Submitted 1 Nov 2026.
Builds on
61 of 77 references.
References · 61
- 2017Attention Is All You Needcited by 62,125
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 31,279
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,772
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,802
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,168
- 2016Layer Normalizationcited by 6,002
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,133
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 5,035
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,990
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,481
- 2017Axiomatic Attribution for Deep Networkscited by 3,508
38 more
- 2016Pointer Sentinel Mixture Modelscited by 3,345
- 2016Deep Learning with Differential Privacycited by 2,781
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,747
- 2020GLU Variants Improve Transformercited by 2,000
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,815
- 2019Root Mean Square Layer Normalizationcited by 1,624
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,487
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,467
- 2018Sanity Checks for Saliency Mapscited by 1,229
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,183
- 2019Attention is not Explanationcited by 991
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 899
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 878
- 2019Are Sixteen Heads Really Better than One?cited by 856
- 2015Optimizing Neural Networks with Kronecker-factored Approximate Curvaturecited by 842
- 2018SNIP: Single-shot Network Pruning based on Connection Sensitivitycited by 832
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 686
- 2024TinyLlama: An Open-Source Small Language Modelcited by 673
- 2019Attention is not not Explanationcited by 672
- 2016Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networkscited by 570
- 2019Importance Estimation for Neural Network Pruningcited by 556
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 519
- 2017Sharp Minima Can Generalize For Deep Netscited by 492
- 2020Pruning neural networks without any data by iteratively conserving synaptic flowcited by 490
- 2014New insights and perspectives on the natural gradient methodcited by 473
- 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 431
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 426
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 422
- 2023Studying Large Language Model Generalization with Influence Functionscited by 355
- 2019Data-Free Quantization Through Weight Equalization and Bias Correctioncited by 349
- 2017The (Un)reliability of saliency methodscited by 343
- 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 313
- 2023A Rank Stabilization Scaling Factor for Fine-Tuning with LoRAcited by 281
- 2020Influence Functions in Deep Learning Are Fragilecited by 260
- 2019Limitations of the Empirical Fisher Approximation for Natural Gradient Descentcited by 234
- 2018Algorithmic Regularization in Learning Deep Homogeneous Models: Layers are Automatically Balancedcited by 184
- 2022Structured Pruning Learns Compact and Accurate Modelscited by 182
- 2017L2 Regularization versus Batch and Weight Normalizationcited by 134
50 most cited of 61 All 61 (JSON)
Built on by
Not cited yet.