Manuscript Offprint

arXiv:2610.09425

What a Reporting Convention Hides: A Matched-Budget Audit of Quantum Natural Gradient with an Exactly Computed Metric

Lu Wei, Yufeng Wang, Haibin Ling

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Several published comparisons of variational quantum optimizers time only runs that reach a target loss, or read the verdict at a single target. Either convention could decide whether an optimizer's costlier steps pay off. We measure how much each convention changes verdicts among Adam, simultaneous perturbation stochastic approximation (SPSA) and quantum natural gradient (QNG), on initializations held out from the selection of settings. We compute the exact metric that preconditions QNG, price every step in circuit evaluations and give every method the same budget. In a median pooled over circuit widths, cost families and a sweep of settings with common misses, SPSA needs more than twice Adam's evaluations to reach a loose target. Dropping the censored runs that miss the target hides this gap. On the global-cost family we hold fixed the settings selected for a strict target. QNG then usually reaches the loose target after Adam but the strict target first. QNG's strict-target lead disappears when the metric's simulator price, linear in the number of parameters, is replaced by an assumed hardware count quadratic in that number. We recommend charging every miss the budget and reporting verdicts across targets.

1 INTRODUCTION

An optimizer that costs more per step is worth its price only if it reaches a useful loss with less total computation. Benchmarks judge this by the time to target, the computation a run spends before its loss first reaches a target level τ\tau. One such question is whether the exactly computed preconditioner of quantum natural gradient (QNG) (Stokes et al., 2020), the quantum counterpart of the Fisher information, repays its price against Adam (Kingma and Ba, 2015) and against simultaneous perturbation stochastic approximation (SPSA) (Spall, 1992). SPSA's cheaper step estimates the gradient from two loss values along one random direction.

Figure 1 traces two reporting choices that turn the runs of a time-to-target comparison into a verdict. One is which runs enter the statistic. A run that misses the target within its budget has a time right-censored at the budget, and success-only timing drops such runs. This complete-case summary makes runtime estimates optimistic (Mattos et al., 2021, Sec. V-E; Tornede et al., 2020, Sec. 2.2). A reading is a summary computed under one option of a reporting choice. The two readings of which runs enter are the conditional median over reached runs only and the budget-capped median, which charges every miss the budget (Section 3). The other choice is the target, which single-target reporting fixes at one level. Authors of optimization benchmarks charge a miss instead of dropping it and compare methods at several targets (Section 2). Several published comparisons of variational quantum optimizers, however, time only the runs that reached a threshold, a target in our terms (Wierichs et al., 2020; Sung et al., 2020; Jones et al., 2025), or read their verdict at a single threshold (Fitzek et al., 2024). To our knowledge, how much each choice changes such a verdict, with intervals and out of sample, is open for variational quantum optimizers. If either choice can change it, a claim that one optimizer is cheaper describes the optimizer and the reporting choice together. We argue that, for optimizers whose steps differ in price, the verdict depends on the target and on which runs enter the statistic, so one number cannot report it. We measure this dependence on a testbed in which every step is charged an explicit price in circuit evaluations and the preconditioner is computed exactly.

The models are variational quantum circuits, and every cost is counted in circuit evaluations, one simulation of a circuit each. Because the simulation is exact and noiseless, the only randomness is a run's starting point,

∗^{*}Equal contribution.

or initialization, and SPSA's random directions. Each loss, the global or the local cost of Cerezo et al. (2021), lies between 0 and 1, so one target level serves both. A configuration is one cost family at one width of 3 to 6 qubits, which gives eight configurations. The global-cost family is prone to barren plateaus, in which the gradient variance vanishes exponentially with the number of qubits (McClean et al., 2018; Cerezo et al., 2021). Every step has an explicit integer price. A step costs 2p circuit evaluations for Adam with p parameters, 2 for SPSA and 2p+(p+1)2p + (p + 1) for QNG, whose preconditioner is charged its simulator price p+1p + 1. Every method receives the same budget of B=54pB = 54p evaluations per run, and no wall-clock measurement enters the comparison (Section 3; Figure 2(a)).

The preconditioner is exact. In the classical deep-learning setting, curvature-based optimizers are evaluated through an estimator, such as Kronecker factors, block-diagonal approximations (Martens and Grosse, 2015; Gupta et al., 2018), minibatch empirical Fisher, or staleness between refreshes. When such a method underperforms, the loss cannot be attributed between the preconditioning idea and the approximation of the curvature object. The quantum setting does not share that limitation, a fact that prior work has exploited: Wierichs et al. (2020) construct the Fubini–Study matrix exactly and price it explicitly. QNG's preconditioner is the Fubini–Study metric g of the state the circuit prepares, computed in closed form. There is no sampling, no factorization, and no damping schedule chosen to stabilize an estimate. QNG inverts the damped metric g+λIg + \lambda I, with I the identity and the damping λ\lambda selected like the learning rate (Section 3).

Which runs enter decides whether SPSA’s gap to Adam at the loose target ( τ=0.20\tau = 0.20) is visible in a median pooled over configurations. With every miss charged the budget, SPSA needs more than twice Adam’s circuit evaluations in that median. SPSA’s gap to Adam replicates on 20 new initializations per configuration, held out from every selection made on the 10 original ones, and under SPSA’s per-initialization median of five sequences of random directions. Each replication has an adjusted bootstrap interval above 1 (Section 4; row 1 of Table 1; Figure 3(a)).

The target decides whether the exact metric repays its price. Every method starts from the same initializations, so the runs of two methods form pairs, and the first of a pair is the method that reaches the target with fewer circuit evaluations, a miss counting as the budget. With the settings selected for the strict target ( τ=0.01\tau = 0.01) held fixed on the global-cost family (row 2 of Table 1; Figure 3(b); Figure 2(b) shows one pair), a benchmark evaluated at the loose target concludes that the exact metric does not repay its price. A bench-

Figure

Figure 1: The target τ\tau defines the crossing times TT, and ×\times marks a run that does not reach τ\tau within the budget BB. The choice of which runs enter then acts on these times in both branches (Figure 3). Medians are conditional (reached runs only) or budget-capped (misses charged the budget). The paired branch counts which method needs fewer evaluations to the target, a miss counting as the budget, and takes the median of the paired differences.

mark evaluated at the strict target concludes that it does. Any two crossing loss curves reverse their order at some pair of targets. On the global-cost family the change falls between the loose and the strict target, which stand for the low- and high-accuracy levels that benchmarks report side by side (Moré and Wild, 2009; Hansen et al., 2016). Over six targets from 0.5 to 0.01, the estimated probability that QNG reaches the target first rises from about 0.04 to 0.96 (Section 5). Table 1 also states when each verdict change is absent.

Addressing the above issues, in this paper we make the following main contributions:

• We show, with intervals on two sets of initializations, that success-only timing hides a more than twofold gap between SPSA and Adam in a median pooled over a sweep with common misses, and shrinks QNG's gap to Adam without hiding it (Section 4).

• We show that the verdict between exact-metric QNG and Adam on the global-cost family reverses between the loose and the strict target, with settings fixed and tested out of sample, and we measure how far it depends on the selection target and on the metric's price (Section 5).

• We construct a paired testbed that charges every

Table 1: Each row gives one comparison under two readings on its own fixed set of runs. Pooled medians and median paired differences (QNG minus Adam) mix budgets. Bootstrap intervals, with initializations resampled within configurations, are Bonferroni-adjusted 99.5% (ten ratios per initialization set) in row 1 and 95% in row 2. In row 2 first means fewer evaluations to τ\tau, a miss counting as the budget, and counts are QNG first–Adam first–tied. With each target's own settings, on different runs at the two targets, Adam is first from 66 of 80 at the loose and QNG from 77 at the strict target. Section 3 gives the definitions.

ChoiceComparison; held fixedReading 1Reading 2Verdict change absent when
Which runs enter (Sec. 4)SPSA vs. Adam, ratio of median times pooled over eight configurations; original grid and initializations, loose target, SPSA's shared perturbation sequenceReached runs only 1.11 (0.84–1.40)Misses charged the budget 2.24 (1.60–2.69)Settings selected for the loose target (every Adam and SPSA run reaches it on both initialization sets, so the readings coincide) or one configuration taken alone (Reading 1 still shrinks the ratio but leaves SPSA slower in 7 of 8)
At which target (Sec. 5)QNG vs. Adam, number of initializations with QNG first and median paired difference; global-cost family, 80 new initializations, strict-target settings, simulator priceLoose target, τ=0.20\tau = 0.20 12 of 80 +172 (121.5–255)Strict target, τ=0.01\tau = 0.01 77 of 80 -958.5 (-1099.5 to -842.5)Settings selected for the loose target, evaluated at the strict target (40–29–11, sign-test p-value 0.23; Adam first at 5 and 6 qubits, 2–14–4 and 1–12–7), or the metric charged p(p+1)/2p(p+1)/2 evaluations per step (QNG first from 0 of 80 at the loose and 3 of 59 non-tied at the strict target)

step an explicit price in circuit evaluations and in which a longer budget cannot change any QNG–Adam first-to-target count of the main comparison (Section 3), and we describe the exact metric's spectrum as depth grows (Section 6).

We recommend that a time-to-target comparison of optimizers whose steps differ in price report its verdict as a curve over targets and charge every miss the budget (Section 7).

References (100)

  • The power of quantum neural networks
  • Effect of barren plateaus on gradient-free optimization
  • Benchmarking in optimiza-tion: Best practice and open issues (opens arXiv in a new tab)
  • Best practices for comparing optimization algorithms
  • Towards a theory of practice in metaheuristics design: A machine learning perspective
  • Performance comparison of optimization methods on variational quantum algorithms
  • Accounting for variance in machine learning benchmarks
  • Better than classical? The subtle art of benchmarking quantum machine learning models (opens arXiv in a new tab)
  • Higher order derivatives of quantum neural networks with barren plateaus
  • Cost function dependent barren plateaus in shallow parametrized quantum circuits
  • On Empirical Comparisons of Optimizers for Deep Learning
  • Benchmarking neural network training algorithms (opens arXiv in a new tab)
  • Benchmarking optimization software with performance profiles
  • Optimizing variational quantum algorithms with qBang: Efficiently interweaving metric and momentum to navigate flat energy landscapes
  • Simultaneous perturbation stochastic approximation of the quantum Fisher information
  • Shampoo: Preconditioned stochastic tensor optimization
  • COCO: Performance assessment (opens arXiv in a new tab)
  • Optimal training of variational quantum algorithms without barren plateaus (opens arXiv in a new tab)
  • Capacity and quantum geometry of parametrized quantum circuits
  • Evaluating Las Vegas algorithms: Pitfalls and remedies
  • Benchmarking a wide range of optimisers for solving the Fermi–Hubbard model using the variational quantum eigensolver
  • Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets
  • Nonparametric estimation from incomplete observations
  • Accelerating neural network training: An analysis of the AlgoPerf competition
  • Benchmarking a quantum annealing processor with the time-to-target metric (opens arXiv in a new tab)
  • Adam: A method for stochastic optimization
  • Limitations of the empirical Fisher approximation for natural gradient descent
  • WSBD: Freezing-based optimizer for quantum neural networks
  • Theory of overparametrization in quantum neural networks
  • Barren plateaus in variational quantum computing
  • Classical optimizers for noisy intermediate-scale quantum devices
  • Preconditioning natural and second order gradient descent in quantum optimization: A performance benchmark (opens arXiv in a new tab)
  • Optimizing neural networks with Kronecker-factored approximate curvature
  • Statistical models for the analysis of optimization algorithms with benchmark functions
  • Barren plateaus in quantum neural network training landscapes
  • Quantum circuit learning
  • Benchmarking derivative-free optimization algorithms
  • A comparison of various classical optimizers for a variational quantum linear solver
  • Restricted mean survival time: An alternative to the hazard ratio for the design and analysis of randomized trials with a time-to-event outcome
  • DeepOBS: A deep learning optimizer benchmark suite
  • Is quantum advantage the right goal for quantum machine learning? PRX Quantum, 3:030101, 2022
  • Optimizer benchmarking needs to account for hyperparameter tuning
  • Quantum natural gradient
  • Using models to improve optimizers for variational quantum algorithms
  • Run2Survive: A decision-theoretic approach to algorithm selection based on survival analysis
  • Measurement cost of metric-aware variational quantum algorithms
  • IOHanalyzer: Detailed performance analyses for iterative optimization heuristics
  • Avoiding local minima in variational quantum eigensolvers with the natural gradient optimizer
  • We fit the natural logarithm of the variance of $\partial_1C$, the derivative of the loss with respect to the $R_Y$ angle of the first qubit in the first layer, against $n$ over $n = 2, \ldots, 6$; at $n = 2$ the two pairs of the ring $E$ coincide, and $E$ is a single controlled-Z gate
  • Here $\partial_1C$ is the derivative of the loss $C$ with respect to the $R_Y$ angle of the first qubit in the first layer
  • For a single $R_Y$ rotation the computed metric equals $1/4$ to within $10^{-12}$, which corresponds to a quantum Fisher information of 1
  • For a target $\tau$, the run's time to target T is the first recorded evaluation count at which the loss is at most $\tau$
  • The charge $B$ is a lower bound on the evaluations such a run would need
  • A Kaplan–Meier median of the pooled runs does not remove this problem
  • Its identity with the restricted mean survival time (Royston and Parmar, 2013, eq
  • They are four Adam, eight QNG and four SPSA runs of the original grid, from two initializations whose loss was already below the loose target, at 0.0203 and 0.1783
  • The extended grid contains every original setting, and its runs at those settings reproduce the 640 original-grid runs
  • The selected setting has the lowest budget-capped median over its 10 runs at the budget $B$, and ties go to the lower median final loss, then to the smaller $\eta$, then to the smaller $\lambda$
  • ‡ Tied likewise, with both median final losses below $10^{-12}$; at local-cost $n=5$, $\tau=0.20$, both are 0 and the smaller $\lambda$ decides
  • Grid (1) has $\eta\in\{0.03, 0.1, 0.3, 1\}$ for every method and QNG $\lambda\in\{10^{-3}, 10^{-2}, 10^{-1}\}$, 160 settings over the eight configurations, and contains the original grid of Section 3; its selection used $\tau=0.20$ only
  • QNG's selections for the two targets differ only in the damping at $n=5$ and $6$, $10^{-2}$ for the loose target against $10^{-1}$ for the strict one, and this difference underlies the dependence on the selection target in Section 5
  • Divergence occurs at large learning rates and, for QNG, at small damping
  • Adam uses $\beta_1 = 0.9$, $\beta_2 = 0.999$ and $\epsilon = 10^{-8}$ with bias correction (Kingma and Ba, 2015)
  • SPSA is the only randomized method here, since Adam and QNG are deterministic given the initialization
  • The budget-capped ratio stays between 2.15 and 2.32 under every sequence on both sets
  • These conditional medians are point estimates over a minority of runs (Appendix F)
  • Under the loose-target selection every Adam and SPSA run on the new initializations reaches $\tau = 0.20$, so both readings put SPSA ahead of Adam, and this direction holds at the loose target only
  • >Perturbation sequence</td><td colspan=
  • For sequence 5 on the new initializations (2.314), both central values are such charges, so SPSA's budget-capped median is 648
  • We also give the runs that success-only timing drops, the conditional medians at the strict target and the medians of each configuration, which underlie the original-grid comparison of Section 5
  • Each row pools all settings of one method over eight configurations with different budgets, so its medians mix budgets and need not equal Kaplan-Meier medians
  • ><tr><td rowspan=
  • On the original initializations QNG's pooled median is 2.09 times Adam's over reached runs only and 3.34 times with misses charged the budget
  • Table 7 gives these medians in its left block and the medians at each method's best original setting in its right blocks
  • At local-cost $n=3$ the margin of 1.17 between SPSA's entry and Adam's is too thin to interpret as a separation, and this is the configuration whose order success-only timing reverses
  • Section 3 and Appendix B define this median and relate it to the Kaplan-Meier median
  • Each block gives SPSA’s reached runs and the ratio of SPSA’s median to Adam’s for the conditional median over reached runs only and the budget-capped median with misses charged the budget B (Section 3)
  • >Family</td><td rowspan=
  • Figure 5 shows SPSA’s three medians in this configuration under its shared sequence and under five independent sequences, each against
  • Adam and each SPSA sequence have 20 runs from the 10 original initializations (definitions in Section 3)
  • Once those misses are charged the budget, the two median conventions disagree about whether SPSA is behind Adam, since SPSA's lower-endpoint Kaplan–Meier median is 60 against Adam's 72
  • On the global-cost family QNG’s budget-capped median at $\tau = 0.01$ is below Adam’s in all four configurations and the lowest of the three methods at $n = 4$, 5 and 6, while SPSA’s is the lowest at $n = 3$
  • Resampling initializations within configurations gives an unadjusted 95% interval of 2.70–4.04, and resampling the 80 original initializations without regard to configuration gives an unadjusted 95% interval of 2.34–4.05, with the best original setting selected again inside every replicate
  • On the original grid and initializations QNG reaches the loose target in half of its runs in the global-cost configuration at n = 5 and in a quarter at n = 6
  • With the metric at its simulator price and SPSA under its shared sequence, Adam reaches $\tau = 0.01$ in 70.6% of its runs, SPSA in 28.1% and QNG in 26.6%, yet over reached runs only Adam's median is the highest of the three, 864 evaluations against 776 for QNG and 536 for SPSA (Table 6)
  • Because each target uses its own selection, the loose-target column runs QNG with damping $10^{-2}$ at n = 5 and 6 on the global-cost family (Table 4), so in those configurations it differs from the settings held fixed in Figure 3(b)
  • Under the same selections, which use different runs at the two targets, Adam is first on the global-cost family from 66 of the 80 new initializations at the loose target, and QNG is first from 77 at the strict target, where the selection is the one held fixed in Section 5
  • On the global-cost family the strict-target selection gives the reversal of Section 5, with Adam first at the loose target and QNG first at the strict target
  • Settings were selected on the original initializations at the strict target $\tau=0.01$ or the loose target $\tau=0.20$; Adam searches six learning rates, QNG 27 settings of learning rate $\eta$ and damping $\lambda$ or, in the restricted row, Adam's six learning rates at $\lambda=10^{-3}$
  • >(a) Each family pooled over $n$</th><th colspan=
  • >(b) Global-cost family, per configuration<br>Selected at</td><td rowspan=
  • Every count comes from the new initializations, which were run after the strict target was fixed
  • Each method runs at the setting selected per configuration for the strict target $\tau = 0.01$ on the original initializations and held fixed at every target (the $\tau = 0.01$ columns of Table 4)
  • The hardware cost of the full metric grows quadratically with the number of parameters (Gacon et al., 2021, Sec
  • Each pair compares the two runs from one initialization, whereas $m^*$ compares medians
  • With the strict-target selection on the new initializations, $m^*$ exceeds $p(p + 1)/2$ at $n = 4$ and 5, so QNG's budget-capped median at the strict target stays below Adam's there under the assumed count (504 against 608 and 750 against 780 evaluations)
  • (a) Settings selected on the extended grid for $\tau=0.01$ at $B$ on the original initializations, held fixed at every budget
  • >Adam</td><td colspan=
  • The fixed settings are $\eta = 0.1$ for Adam, $\eta = 0.2$ with $\lambda = 10^{-3}$ for QNG, and a gain of 0.1 with a perturbation size of 0.1 for SPSA. The protocol evaluates time to target at its own targets, 0.55 on the global-cost family and 0.20 on the local-cost family
  • QNG reaches the target first from 119 of the 192 global-cost initializations and Adam from none, and neither method reaches it from the other 73 (sign test $p = 3.0 \times 10^{-36}$)

Couldn't load all references. Reload the page to try again.