Organizations: Research Institute for Interdisciplinary Sciences, School of Information Management and Engineering, Shanghai University of Finance and Economics, Shanghai 200433, China · Department of Decision Analytics and Operations, City University of Hong Kong, Hong Kong, China · Department of Industrial and Systems Engineering, University of Minnesota, Minneapolis, Minnesota 55455
Learn-then-differentiate (LTD) estimates gradients by fitting a model to simulation outputs and differentiating it. We develop a unified framework explaining what LTD differentiates and how accurately it estimates gradients. For models with a weighted representation, LTD differentiates a learned representation of the underlying probability measure. We then show how accuracy guarantees for fitted models translate into guarantees for gradients and higher-order derivatives, with rates approaching the standard Monte Carlo rate under suitable smoothness conditions. The framework recovers established results for kernel regression, local polynomial regression, and kernel ridge regression, and yields further guarantees for multiple kernel learning and smooth neural networks. These results provide a common foundation for understanding and analyzing LTD across learning methods.
Figures & tables
d
m
B
PW
LR
KR
LPR
KRR
MKL
NN
1
50
50k
0.366
2.565
3.764
3.818
3.461
3.623
3.164
1
50
500k
1.660
1.232
1.434
1.225
3.937
1
50
5m
0.974
0.614
0.412
0.342
3.698
1
200
50k
0.350
6.458
3.614
3.919
3.042
2.909
3.291
1
200
500k
1.582
1.372
1.335
1.195
6.142
1
200
5m
0.943
0.620
0.427
0.355
0.584
Table 1: Delta rRMSE (%) for the geometric Asian option example.
d
m
B
kernel PW
LR
KR
LPR
KRR
MKL
NN
1
50
50k
1.332
29.139
25.943
15.859
19.217
22.248
17.654
1
50
500k
15.499
8.882
7.347
5.365
11.477
1
50
5m
14.173
6.751
2.126
1.721
9.854
1
200
50k
1.224
100.641
22.541
14.718
12.493
11.806
16.239
1
200
500k
14.312
7.331
6.186
5.174
18.777
1
200
5m
12.719
5.685
2.229
1.752
3.529
Table 2: Diagonal Gamma rRMSE (%) for the geometric Asian option example.
d
B
FD
KR
LPR
KRR
MKL
NN
2
100k
11.162
24.791
8.203
8.605
9.416
13.775
2
1m
18.682
2.973
3.138
3.118
4.737
2
10m
17.827
1.309
1.262
1.369
1.938
4
100k
10.747
30.005
16.605
13.069
13.031
15.419
4
1m
26.928
10.703
7.540
7.696
9.055
4
10m
25.574
7.692
3.946
4.412
5.444
Table 3: Overall nRMSE (%) for the wireless communication network example.
d
Parameter
B
FD
KR
LPR
KRR
MKL
NN
2
p1
100k
11.956
24.330
9.003
9.419
10.673
14.875
2
p1
1m
19.361
3.425
3.681
3.585
5.072
2
p1
10m
17.153
1.381
1.437
1.565
2.141
2
p2
100k
10.508
25.142
7.528
7.920
8.317
12.861
2
p2
1m
18.140
2.569
2.644
2.703
4.462
2
p2
10m
18.331
1.250
1.107
1.195
1.767
Table 4: Componentwise rRMSE (%) for the wireless communication network example.
d
B
Global
KR
LPR
1
50,000
50
834
834
1
500,000
500
1077
1159
1
5,000,000
1000
1392
1610
2
50,000
50
324
289
2
500,000
500
484
529
2
5,000,000
1000
784
900
Table K.1: Training-site allocations for the option example. Global counts apply to KRR, MKL, and NN.
Quantity
Symbol
Value
Region half-width
L
500m
Antenna height
h1=h2
30m
Peak antenna gain
Gmax
17dBi
Horizontal 3-dB beamwidth
ϕ3dB
65∘
Vertical 3-dB beamwidth
ψ3dB
10∘
Maximum pattern attenuation
Amax
30dB
Table L.2: Fixed parameters in the wireless simulator.
d
B
Global
KR
LPR
2
100,000
200
121
121
2
1,000,000
200
192
216
2
10,000,000
200
304
383
4
100,000
1000
625
625
4
1,000,000
1000
1347
1570
4
10,000,000
1000
2901
3944
Table L.3: Training-site allocations for the wireless example. Global counts apply to KRR, MKL, and NN.
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.
Ningkang Peng, Xiaoqian Peng, Yifan He +4
Nanjing Normal University · Nanjing University of Chinese Medicine
Gradient estimation -- the task of computing the gradient of the expected value of a probabilistic program -- has diverse applications in scientific computing, but is notoriously difficult because of issues such as high-dimensional integration, discrete random choices, and complex stochastic dependencies. This article introduces gradient inference, a new approach to developing sound and efficient gradient estimators for probabilistic programs. Gradient inference rests on a formal reduction from a gradient estimation problem to a closely related probabilistic inference problem, whose solution can be differentiated to obtain a gradient estimator. This inference problem is obtained by applying two powerful statistical operations -- coupling and factorization -- to the input probabilistic program. Our reduction lets us leverage the rich toolkit of probabilistic inference algorithms to design novel gradient estimators that extend and improve upon existing methods. We introduce GradInf, a probabilistic programming system that facilitates the sound and automated implementation of gradient inference. GradInf is centered around programmable source-to-source transformations for coupling and factorizing higher-order probabilistic programs, whose soundness is proven in terms of a denotational semantics. Key to our development is the use of information-flow typing to allow random choices in a probabilistic program to be factored out and partially evaluated, which improves our ability to deploy sophisticated probabilistic inference algorithms. The resulting system offers practitioners a principled framework for designing gradient estimators. We apply GradInf to several challenging case studies, showing that it can express prominent gradient estimators from the literature and enables the construction of new state-of-the-art estimators that outperform the best existing baselines.
Gaurav Arya, Mathieu Huot, Moritz Schauer +2
Carnegie Mellon University, Pittsburgh, USA · Massachusetts Institute of Technology, Cambridge, USA · Chalmers University of Technology & University of Gothenburg, Gothenburg, Sweden +1
We study learning to learn through the lens of hyperparameter tuning. We propose the Langevin Gradient Descent Algorithm (LGD), which approximates the mean of the posterior distribution defined by the loss function and regularizer of a regression task with convex objective. For classification tasks, the LGD algorithm estimates the posterior probabilities of each class on the test set. We prove the existence of an optimal hyperparameter configuration for which the LGD algorithm achieves the Bayes' optimal solution for squared loss on regression tasks, and for which LGD closely approximates the posterior probabilities for well-specified classification tasks. Subsequently, we study generalization guarantees on meta learning optimal hyperparameters for the LGD algorithm from a given set of tasks in the data-driven setting. For a number of parameters d and hyperparameter dimension h, we show a pseudo-dimension bound of O(dh), up to logarithmic terms under mild assumptions on LGD. This matches the dependence of the bounds on number of parameters obtained in prior work for linear regression using the elastic net, which only allows for h=2 hyperparameters, and extends their bounds to regression on convex loss. Compared to bounds on regularized logistic regression that allow for only h=1 hyperparameter, our bounds improve greatly on the dependence on samples per task at the cost of worse dependence on the number of parameters by accounting for hardware-aware procedures. Finally, we show empirical evidence of the success of LGD and the meta learning procedure for few-shot learning on linear and logistic regression using synthetically created datasets.
Saumya Goyal, Rohith Rongali, Ritabrata Ray +1
Machine Learning Department, Carnegie Mellon University · Electrical and Computer Engineering Department, Carnegie Mellon University.