Information Hidden in Gradients of Regression with Target Noise
Arash Jamshidi, Katsiaryna Haitsiukevich, Kai Puolamäki
TL;DR
This work addresses how to extract second-order information, specifically the Hessian/ data covariance Σ, when only gradient information is accessible. By injecting Gaussian target noise whose total variance matches the batch size $n$, the empirical gradient covariance $S_g(w)$ aligns with Σ under mild sub-Gaussian assumptions, providing non-asymptotic operator-norm guarantees. The authors prove the calibration is necessary (without it, recovery can fail by an $oldsymbol{Ω}(1)$ factor) and demonstrate practical gradient-only applications, including preconditioning for faster convergence and adversarial-risk estimation, with extensions to non-linear models. Experiments on synthetic and real data support the theory, showing calibrated gradient covariances closely approximate Σ and enable robust gradient-only optimization across batch regimes and model types.
Abstract
Second-order information -- such as curvature or data covariance -- is critical for optimisation, diagnostics, and robustness. However, in many modern settings, only the gradients are observable. We show that the gradients alone can reveal the Hessian, equalling the data covariance $Σ$ for the linear regression. Our key insight is a simple variance calibration: injecting Gaussian noise so that the total target noise variance equals the batch size ensures that the empirical gradient covariance closely approximates the Hessian, even when evaluated far from the optimum. We provide non-asymptotic operator-norm guarantees under sub-Gaussian inputs. We also show that without such calibration, recovery can fail by an $Ω(1)$ factor. The proposed method is practical (a "set target-noise variance to $n$" rule) and robust (variance $\mathcal{O}(n)$ suffices to recover $Σ$ up to scale). Applications include preconditioning for faster optimisation, adversarial risk estimation, and gradient-only training, for example, in distributed systems. We support our theoretical results with experiments on synthetic and real data.
