Same Loss, Different Gradients
Not on the map. Why?
Abstract (arXiv)
Differentiable learning typically assumes that the scalar objective evaluated in the forward pass and the gradient supplied to the optimizer in the backward pass describe the same mathematical object. We show that this correspondence can fail when probabilistic objectives rely on finite special-function recurrences, custom backward rules, and numerical clipping. In high-dimensional von Mises-Fisher learning, real numerical implementations can produce identical forward scores and losses at the same learning state while supplying different gradients and following different optimization trajectories. We characterize the structure of this mismatch in finite-start Bessel recurrence and show that classwise radial mismatch can compose through probabilities into a locally nonconservative update field. Evaluating the accuracy of special-function values and derivatives separately is therefore insufficient to characterize the realized learning objective. Motivated by this observation, we introduce AR/FR, a fixed-depth analytic realization that constructs a potential and its derivative jointly, ensuring forward-backward coherence by construction. We establish a uniform cubic-order error bound relative to the exact Bessel ratio over the entire nonnegative concentration axis and propagate this guarantee to learning scores and objectives. As representation dimension increases, the original finite recurrence becomes sequentially deeper, whereas the worst-case AR/FR error guarantee tightens cubically, jointly providing coherence, certified fidelity, and fixed-depth computation. These results suggest that a differentiable numerical primitive is defined by both the values it realizes and the derivatives it actually supplies to the optimizer; together, they constitute the numerical realization of the learning algorithm.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 27 of its 35 references that are in the map. First posted on arXiv 30 Sep 2026.
Builds on
27 of 35 references.
References · 27
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2020Supervised Contrastive Learningcited by 2,803
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 987
- 2018Deep Anomaly Detection with Outlier Exposurecited by 939
- 2015Automatic differentiation in machine learning: a surveycited by 846
- 2019Decoupling Representation and Classifier for Long-Tailed Recognitioncited by 806
- 2020Long-tail learning via logit adjustmentcited by 605
15 more
- 2019Understanding Straight-Through Estimator in Training Activation Quantized Neural Netscited by 225
- 2018Hyperspherical Variational Auto-Encoderscited by 188
- 2021Semantically Coherent Out-of-Distribution Detectioncited by 107
- 2018Implicit Reparameterization Gradientscited by 84
- 2019Conservative set valued fields, automatic differentiation, stochastic gradient method and deep learningcited by 71
- 2020A mathematical model for automatic differentiation in machine learningcited by 44
- 2022Partial and Asymmetric Contrastive Learning for Out-of-Distribution Detection in Long-Tailed Recognitioncited by 44
- 2021von Mises-Fisher Loss: An Exploration of Embedding Geometries for Supervised Learningcited by 42
- 2024Probabilistic Contrastive Learning for Long-Tailed Visual Recognitioncited by 42
- 2023Out-of-Distribution Detection in Long-Tailed Recognition with Calibrated Outlier Class Learningcited by 23
- 2023EAT: Towards Long-Tailed Out-of-Distribution Detectioncited by 16
- 2024Long-Tailed Out-of-Distribution Detection: Prioritizing Attention to Tailcited by 6
- 2024Long-Tailed Out-of-Distribution Detection via Normalized Outlier Distribution Adaptationcited by 4
- 2024Accurate Computation of the Logarithm of Modified Bessel Functions on GPUscited by 1
- 2025Exploiting Inter-Sample Information for Long-tailed Out-of-Distribution Detectioncited by 1
Built on by
Not cited yet.