potentialpaper

Fast and Stable Gradient Approximation for Quadratic Forms of Hermitian Matrix Functions

Update NeurIPS 2026 submission 0o7Q9IWQK0: 9 notes

@openreview[bot] · 2026-11-24 15:44 UTC · 9a2fe68894c0 ·

Evidence

reviews/openreview/0o7q9iwqk0/notes/ejrcrdbyul.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/ejrcrdbyul.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "EJRCrdByuL",
+ "replyTo": "JX5kWPCCic",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "**Clarification of which learning problems are the main targets of the method**\nThe main target is a more specific class of learning and inverse problems: objectives that contain one or more scalar, vector-specific matrix-function terms of the form\n$$\nu^\\top f(A(\\theta))u,\n$$\n\nwhere \\(A(\\theta)\\) is a large Hermitian operator available only through differentiable matrix-vector products, and Lanczos is already needed to evaluate the forward objective. During training, one then needs gradients of this Lanczos-computed scalar with respect to the parameters of \\(A(\\theta)\\). For a general matrix function \\(f\\), this derivative involves a Fréchet derivative and usually cannot be reduced to one ordinary linear solve.\n\nThe principal target problems are therefore:\n\n1. **PDE Hermitian Operator learning.** PDE based operator are usual symmetric and the time stepping involves a fitting objective which boils down to the following\n\n $$\n u^* \\exp(-itH(\\theta))v,\n $$\n\n where $H$ is Hermitian, the exponential action is naturally evaluated by Lanczos, and parameter learning requires differentiating this quantity repeatedly. Our Hamiltonian-learning experiment directly instantiates this setting.\n\n2. **Graph and diffusion-operator learning.** Learning edge weights or other graph parameters from node-specific diffusion, heat-kernel, communicability, or centrality objectives leads to terms such as\n\n $$\n u^\\top \\exp(-tL(\\theta))v\n \\quad\\text{or}\\quad\n u^\\top \\exp(A(\\theta))v.\n $$\n\n These are vector-specific rather than trace objectives. Our network-sensitivity experiments instantiate this class.\n\n3. **Fractional covariance, precision operators.** For example, a fractional Matérn model may use\n\n $$\n K_\\theta=A_\\theta^{-\\alpha}.\n $$\n\n Its data-fit term contains \\(y^\\top A_\\theta^\\alpha y\\). When the trainable exponent \\(\\alpha\\) is noninteger, the forward term is a genuine fractional matrix function and cannot be evaluated by a single conjugate-gradient solve. Lanczos is therefore required in the forward pass, and its parameter gradient is required during hyperparameter learning. The new end-to-end Matérn experiment is intended to isolate precisely this regime.\n\nThese examples share the important property that the matrix function acts on particular vectors or states. This is where the Fréchet derivative cannot generally be replaced by simply applying \\(f'\\) to the matrix.\n\nPure trace objectives, including ordinary log-determinants, are a related but less distinctive use case. Our method applies to them after stochastic trace estimation reduces the trace to quadratic forms. However, for a pure trace, specialized stochastic estimators may avoid differentiating the finite Lanczos approximation altogether. We therefore view the log-determinant experiment primarily as a standard large-scale stability benchmark, rather than the setting in which our method is uniquely necessary.\n\nWe will revise the introduction and limitations section to state this scope explicitly.\n\n\n**more intuition or conditions under which the residual-related error term in Theorem 2 is small**\nAs mentioned in the above comment (about new theorem), we have added more mathematical details on how to bound the residual term. To give additional intuition, the bound is small in the regular regime where two conditions hold. First, Lanczos has been run for enough steps that \\(f'\\) is accurately approximated by a degree-\\((m-1)\\) polynomial over the relevant spectral interval. This makes the function-dependent factor in the bound small. Second, the Lanczos recurrence remains away from an intermediate near-breakdown, so the finite-step basis varies smoothly with the parameters and its sensitivity remains bounded. Under this condition, a small final Lanczos residual directly suppresses the remaining residual-coupled term. \n\nIn practice, convergence of the forward Lanczos approximation is a useful indicator that the Krylov depth is sufficient, although the theorem specifically depends on approximability of \\(f'\\), which can be more demanding than approximability of \\(f\\). The guarantee can become weak in two distinct regimes. Poor spectral conditioning, for example when the spectrum approaches a singularity of \\(f'\\), can make the polynomial approximation converge slowly. Separately, an intermediate near-breakdown can amplify the sensitivity of the normalized Lanczos basis.\n\nThe latter difficulty is not unique to our approximation: automatic differentiation and adjoint differentiation pass through the same Lanczos normalizations and can also become numerically unstable. In finite precision, loss of orthogonality is an additional issue and can be mitigated using full, partial, or selective reorthogonalization. Note that our method is much more amenable to selective orthogonalization as we do not need to differentiate through sophisticated procedures.\n\nWe will address this in the paper as well."
+ },
+ "createdAt": "2026-08-03T19:15:31.034Z",
+ "modifiedAt": "2026-11-19T17:20:24.148Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=EJRCrdByuL",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0o7q9iwqk0/notes/j3gpxih3fe.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/j3gpxih3fe.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "j3Gpxih3fe",
+ "replyTo": null,
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "New Theorem and Proof for clarifying the error term in gradient approximation",
+ "comment": "We have strengthened the theoretical result and completed a full proof for inclusion in the revised manuscript.\n\nThe revised theorem compares our forward-only gradient with the exact derivative of the **finite $m$-step Lanczos approximation**. In exact arithmetic, their discrepancy is exactly the residual-boundary term\n\n$$g_{\\text{exact}} - g_{\\text{approx}} = 2 e_m^\\top G \\left( \\frac{\\partial V_m}{\\partial \\theta} \\right)^\\top r_m,$$\n\nwhere $r_m$ is the final Lanczos residual and $G$ is the sensitivity of the projected scalar objective with respect to $T_m$. We further prove\n\n$$|g_{\\text{exact}} - g_{\\text{approx}}| \\le 2 \\lVert u \\rVert_2^2 \\lVert (\\partial V_m / \\partial \\theta)^\\top r_m \\rVert_2 \\mathcal{E}_{m-1}(f'; \\mathcal{I}),$$\n\nwhere $\\mathcal{E}_{m-1}(f'; \\mathcal{I})$ is the best degree-$(m-1)$ uniform polynomial approximation error for $f'$ on an interval $\\mathcal{I} = [a,b]$ containing the spectrum of $A$. Thus the general sufficient condition for convergence is\n\n$$\\lVert (\\partial V_m / \\partial \\theta)^\\top r_m \\rVert_2 \\mathcal{E}_{m-1}(f'; \\mathcal{I}) \\to 0.$$\n\nIn particular, uniformly bounded residual-coupled basis sensitivity is sufficient.\n\nWe also add a short lemma explaining when this sensitivity is bounded. By submultiplicativity,\n\n$$\\lVert (\\partial V_m / \\partial \\theta)^\\top r_m \\rVert_2 \\le \\lVert \\partial V_m / \\partial \\theta \\rVert_2 \\lVert r_m \\rVert_2.$$\n\nBecause $\\sigma(A) \\subseteq [a,b]$, the final residual satisfies $\\lVert r_m \\rVert_2 \\le (b-a)/2$, and hence\n\n$$\\lVert (\\partial V_m / \\partial \\theta)^\\top r_m \\rVert_2 \\le \\frac{b-a}{2} \\lVert \\partial V_m / \\partial \\theta \\rVert_2.$$\n\nFor any prescribed finite Lanczos horizon $M$, if $A(\\theta)$ is continuously differentiable on a compact parameter set and the intermediate Lanczos coefficients remain uniformly separated from an early breakdown,\n\n$$\\inf_{\\theta} \\min_{1 \\le j < M} \\beta_j(\\theta) \\ge \\gamma > 0,$$\n\nthen the finite-step Lanczos map is continuously differentiable and\n\n$$\\sup_{\\theta} \\max_{1 \\le m \\le M} \\lVert \\partial V_m / \\partial \\theta \\rVert_2 < \\infty.$$\n\nThe proof is short: the only potentially singular operation in the finite Lanczos recurrence is the normalization $w_j \\mapsto w_j / \\lVert w_j \\rVert_2$, whose derivative has norm at most $1/\\beta_j$. The lower bound $\\beta_j \\ge \\gamma$ therefore keeps every required normalization uniformly away from its singularity. A breakdown at the final step is benign, since then $r_m = 0$ and the discrepancy vanishes exactly. Likewise, whenever the Krylov subspace is $A$-invariant, $r_m = 0$, and the proposed gradient is exactly the derivative of the finite Lanczos approximation.\n\nWe have also derived an explicit example for $f(x) = \\exp(\\tau x)$. In this case the function-dependent factor $\\mathcal{E}_{m-1}(f'; \\mathcal{I})$ admits a factorially decaying bound in $m$. Finally, we clarify that the theorem is an exact-arithmetic result; finite-precision stability is studied empirically.\n\nThe complete derivation exceeds the OpenReview response-length limit, so we cannot reproduce it verbatim here. We have prepared it for inclusion in the revised appendix by reallocating space. The appendix proof contains the exact residual-boundary identity, the polynomial-annihilation argument leading to the $f'$-approximation bound, the finite-step sensitivity lemma above, and the explicit matrix-exponential example."
+ },
+ "createdAt": "2026-08-02T23:00:35.568Z",
+ "modifiedAt": "2026-11-19T17:20:24.384Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=j3Gpxih3fe",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0o7q9iwqk0/notes/lvo3jxcgow.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/lvo3jxcgow.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "LVo3jXcGOW",
+ "replyTo": "L7m6hGvWw1",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "We thank the reviewer for their positive feedback and suggestions/insight to make the paper stronger. \nWe agree with the reviewer and will change the title from bilinear to quadratic form and make the relevant changes in the main text to reflect that our algorithm tackles quadratic forms and turns bilinear and other scalar objectives into quadratic forms so that our theory is valid.\n\nWe have addressed the other concerns as below:\n\n***\"The error from ignoring basis variation is proportional to \n, but it also involves unobserved basis-variation terms. Can the authors provide a practical a posteriori gradient-error estimate, or clarify when a small Lanczos residual reliably implies an accurate gradient?\"***\n\nWe agree that the previous bound was a bit ambiguous, and we have updated the theorem with new stricter bounds. It basically suggests that as long as the residual and variation of basis is bounded, our gradient estimate converges as the best polynomial approximation of the derivative of the scalar function over the ritz value spectrum. if needed we can provide more plots in the appendix to test the bound out\n\n\n***\"How should practitioners decide between the proposed forward-only gradient, adjoint/backprop-through-Lanczos, and block-Arnoldi Fréchet-derivative methods? Are there regimes of \n, spectra of \n, or accuracy requirements where the proposed approximation is expected to be less reliable than these alternatives?\"***\n\nThis is a practical question and the case study mentioned below and in the official comment above answers this in detail. When a closed form or efficient way to compute $V^T \\frac {\\partial A}{\\partial \\theta} V$ is present (for example, Kernel methods in GPs, graph laplacians and sensitivity with respect to certain nodes), then these estimates outperform AD and chebyshev methods by big margins.\n\nFor a general case, in practice, we target the regime when the forward Lanczos depth required to reach atleast 5 digits of accuracy is more than 100, as this is when we observe loss of orthogonality and AD becomes unstable. Since reorthogonalization is much more expensive and needs explicit storage of the basis, our algorithm can just replay the Lanczos iteration block-by-block instead of storing to compute the approximation hence becomes very attractive in practice especially for GPU implementation (please see the matern GP case study below).\n\nThe case when estimates are slower to converge or less reliable is when ritz values are near the singularity of f', that is, more polynomial degree is needed to fit the oscillations. Similar argument holds for non smooth f', and directly follows from our new theorem 2.\n\nThe estimates become unreliable when the forward Lanczos becomes unreliable for which selective reorthogonalization procedures have been proposed and our algorithm can again shine as differentiation through these complicated procedures can get tricky and inefficient.\n\nIf a medium scale problem is targetted where storing Lanczos basis is not a problem or the depth of the Lanczos required for good accuracy is not much (no reorthogonalization needed), then the exact methods would be favourable.\n\nNon-Hermitian cases and objective functions that are not scalar are not handled by our approximation and is a target for the future work.\n\nWe will clarify all of this in the updated manuscript."
+ },
+ "createdAt": "2026-08-03T22:50:49.071Z",
+ "modifiedAt": "2026-11-19T17:20:24.163Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=LVo3jXcGOW",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0o7q9iwqk0/notes/m8q2jsrrba.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/m8q2jsrrba.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "M8Q2JsRRbA",
+ "replyTo": "OqLPbSHCsv",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Reviewer JZQd",
+ "content": {
+ "comment": "I thank the authors for providing the example, and I don't have more questions. Since my initial rating is positive, I'll keep it as is."
+ },
+ "createdAt": "2026-08-04T02:01:05.936Z",
+ "modifiedAt": "2026-11-19T17:20:24.209Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=M8Q2JsRRbA",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0o7q9iwqk0/notes/oqlpbshcsv.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/oqlpbshcsv.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "OqLPbSHCsv",
+ "replyTo": "FD8uhKY5hm",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "We thank the reviewer for their positive review and catching the typo. We have addressed it. \nFor some intuition on scalar function, hermitian matrix, and $u$ \n\nConsider the pair\n\n$$\nf(x)=\\exp(\\tau x),\n\\qquad\n\\sigma(A)\\subseteq\\mathcal I=[a,b],\n$$\n\nand define the spectral midpoint and half-width\n\n$$\nc=\\frac{a+b}{2},\n\\qquad\nd=\\frac{b-a}{2},\n\\qquad\nM=\\max_{s\\in\\mathcal I}\\tau s .\n$$\n\nSince $\\mathcal E_{m-1}(f';\\mathcal I)$ is a best-approximation error, any degree-$(m-1)$ polynomial bounds it from above. Taking the Taylor polynomial of\n\n$$\nf'(x)=\\tau\\exp(\\tau x)\n$$\n\nabout $c$, and using $(f')^{(m)}(x)=\\tau^{m+1}\\exp(\\tau x)$ together with $|x-c|\\leq d$ on $\\mathcal I$, gives\n\n$$\n\\mathcal E_{m-1}(f';\\mathcal I)\n\\leq\n|\\tau|\\,\ne^{M}\\,\n\\frac{(|\\tau|d)^m}{m!}.\n$$\n\nSubstituting this into Theorem 2 yields the explicit estimate\n\n$$\n\\left|g_{\\mathrm{exact}}-g_{\\mathrm{approx}}\\right|\n\\leq\n2\\|u\\|_2^2\\,\n\\|\\xi_m\\|_2\\,\n|\\tau|\\,\ne^{M}\\,\n\\frac{(|\\tau|d)^m}{m!},\n$$\n\nwhere\n\n$$\n\\xi_m=\n\\left(\n\\frac{\\partial V_m}{\\partial\\theta}\n\\right)^\\top r_m .\n$$\n\nThus, for the matrix exponential, the function-dependent factor decreases factorially with the Lanczos depth. The effective difficulty is governed by the product $|\\tau|d$, i.e. the evolution scale multiplied by the spectral half-width. Indeed, the ratio between the bounds at two successive depths is\n\n$$\n\\frac{|\\tau|d}{m+1},\n$$\n\nso the bound decreases rapidly once $m+1>|\\tau|d$. Note that only the half-width enters the polynomial factor: the location of the spectrum enters solely through the scalar prefactor $e^{M}$, which equals $1$ in the common case $\\tau<0$, $A\\succeq 0$.\n\nFor example, take $f(x)=e^x$, a unit-norm vector $u$, and a matrix whose spectrum has been scaled to\n\n$$\n\\sigma(A)\\subseteq[-1,1],\n$$\n\nso that $d=1$ and $e^{M}=e$. If the residual-coupled sensitivity is bounded by $\\|\\xi_m\\|_2\\leq C$ uniformly over the depths considered, then\n\n$$\n\\left|g_{\\mathrm{exact}}-g_{\\mathrm{approx}}\\right|\n\\leq\n\\frac{2eC}{m!} .\n$$\n\nThe corresponding upper bounds are approximately\n\n$$\n1.5\\times10^{-6}C\n\\quad\\text{at }m=10,\n$$\n\nand\n\n$$\n2.6\\times10^{-13}C\n\\quad\\text{at }m=16 .\n$$\n\nThese numerical values isolate the function- and spectrum-dependent part of the estimate; the constant $C$ represents the residual-coupled Lanczos sensitivity discussed in our response to the previous question. In the regular finite-step regime, where the Lanczos recurrence remains separated from an intermediate near-breakdown, this sensitivity is bounded. If the Krylov subspace becomes invariant, then $r_m=0$, so $\\xi_m=0$ and the discrepancy vanishes exactly.\n\nThis example also indicates when convergence may be slower: a wider spectral interval or larger $|\\tau|$ increases $|\\tau|d$, and therefore requires a larger Krylov depth before the factorial decay dominates (which is the regime we would prefer for our approximation as Lanczos loses orthogonality and AD becomes unstable). \n\nThe complete derivation is included in the revised appendix. For other functions, matrices, similar results can be derived."
+ },
+ "createdAt": "2026-08-03T22:28:58.866Z",
+ "modifiedAt": "2026-11-19T17:20:24.010Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=OqLPbSHCsv",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0o7q9iwqk0/notes/orrugv9yzq.json modified

+++ b/reviews/openreview/0o7q9iwqk0/notes/orrugv9yzq.json
@@ -5,11 +5,12 @@
"kind": "meta_review",
"invitation": "Meta_Review",
"signature": "Area Chair rNkM",
"content": {
- "metareview": "The paper introduces a forward-only method for approximating gradients of bilinear or quadratic forms $u^\\top f(A(\\theta))v$, reusing a Lanczos decomposition rather than differentiating through the recurrence (this is technical, and looks narrow, but I believe this is relevant). It proves that the omitted basis-variation error is tied to the Lanczos residual and reports improved runtime and empirical stability on log-determinant, graph-sensitivity, and Hamiltonian-learning tasks.\n\nOn the positive side, this is a common primitive in machine learning. Moreover, the method is conceptually simple, matrix-free, and computationally efficient, with minimal overhead beyond the forward Lanczos pass. Its residual-based error decomposition is theoretically useful, and the experiments show substantial accuracy, stability, and speed advantages over existing approaches.\n\nOn the negative side, the paper does not clearly delimit the machine-learning problems or regimes where the approximation is preferable.\n\nI am leaning towards acceptance, but I think that a positive response to the questions raised by the reviewers would finally convince all of them to accept and lead to a final paper with more impact (in particular related to relevance to ML, or \"in which regimes is the proposed method preferable to differentiating through Lanczos or using Fréchet/adjoint-based methods in terms of accuracy, stability, memory, and runtime?\")."
+ "metareview": "The paper introduces a forward-only method for approximating gradients of bilinear or quadratic forms $u^\\top f(A(\\theta))v$, reusing a Lanczos decomposition rather than differentiating through the recurrence (this is technical, and looks narrow, but I believe this is relevant). It proves that the omitted basis-variation error is tied to the Lanczos residual and reports improved runtime and empirical stability on log-determinant, graph-sensitivity, and Hamiltonian-learning tasks.\n\nOn the positive side, this is a common primitive in machine learning. Moreover, the method is conceptually simple, matrix-free, and computationally efficient, with minimal overhead beyond the forward Lanczos pass. Its residual-based error decomposition is theoretically useful, and the experiments show substantial accuracy, stability, and speed advantages over existing approaches.\n\nOn the negative side, the paper does not clearly delimit the machine-learning problems or regimes where the approximation is preferable.\n\nI am leaning towards acceptance, but I think that a positive response to the questions raised by the reviewers would finally convince all of them to accept and lead to a final paper with more impact (in particular related to relevance to ML, or \"in which regimes is the proposed method preferable to differentiating through Lanczos or using Fréchet/adjoint-based methods in terms of accuracy, stability, memory, and runtime?\").",
+ "final_justification": "I recommend acceptance. The paper proposes a simple and practically relevant matrix-free gradient approximation that reuses the forward Lanczos computation and avoids differentiating through a long recurrence, a contribution reviewers viewed as useful for large-scale problems. The rebuttal strengthens the theory with an exact residual-boundary error identity, polynomial-approximation bounds, and an explicit factorially decaying bound for the matrix exponential; reviewers who raised these concerns remained positive after the response. The added experiments (that should make it to the final version) also clearly identify the favorable regime: at moderate Lanczos depth the method matches reference gradient accuracy while full-reorthogonalized AD is slower, and at larger depth full reorthogonalization runs out of memory while the proposed method remains accurate. Finally, the authors clarified the target applications and operating regime, addressing the main positioning concern raised during review.\n\n\n--\nAll papers were submitted to a hallucinated reference checker, which highlighted at least two severe violations (see verbatim below). Inventing authors is a serious concern that reflects poorly on the scholarship of authors, but given the paper's contributions and positive opinions of the reviewers, I am still recommending acceptance. Please correct these mistakes.\n\n\n\nList of Problematic References with Reasoning\n@article{Davies2021Computing,\n author = {Davies, Alexander and Higham, Nicholas J.},\n title = {Computing f(a)b for matrix functions f},\n journal = {SIAM Journal on Matrix Analysis and Applications},\n volume = {42},\n number = {2},\n pages = {1084--1105},\n year = {2021},\n doi = {10.1137/20M1363868}\n}\nThe paper titled 'Computing f(A)b for matrix functions f' was authored by Philip I. Davies (not Alexander Davies) and Nicholas J. Higham. It was published in 2005 in the edited volume 'QCD and Numerical Analysis III' (Lecture Notes in Computational Science and Engineering, Vol. 47, Springer, pp. 15–24), not in the 'SIAM Journal on Matrix Analysis and Applications' in 2021.\n\n@article{haah2024practical,\n author = {Jeongwan Haah et al.},\n title = {Practical hamiltonian learning with unitary dynamics and gibbs states},\n journal = {Nature Communications},\n year = {2024}\n}\nThe paper 'Practical Hamiltonian learning with unitary dynamics and Gibbs states' was published in Nature Communications in 2024, but its actual authors are Andi Gu, Lukasz Cincio, and Patrick J. Coles, not Jeongwan Haah.\n\n@article{huang2023robust,\n author = {Hsin-Yuan Huang et al.},\n title = {Robust and efficient hamiltonian learning},\n journal = {Quantum},\n volume = {7},\n pages = {1045},\n year = {2023}\n}\nThe paper titled 'Robust and Efficient Hamiltonian Learning' published in Quantum (Volume 7, page 1045, 2023) was authored by Wenjun Yu, Jinzhao Sun, Zeyao Han, and Xiao Yuan, not Hsin-Yuan Huang."
},
"createdAt": "2026-07-16T17:50:39.998Z",
- "modifiedAt": "2026-11-18T15:25:00.942Z",
+ "modifiedAt": "2026-11-19T05:03:09.187Z",
"url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=oRRuGV9Yzq",
"license": "CC-BY-4.0"
}

reviews/openreview/0o7q9iwqk0/notes/pzg2j6bbbw.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/pzg2j6bbbw.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "pZG2j6bbBW",
+ "replyTo": "oRRuGV9Yzq",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "We thank the area chair for their positive review and constructive comments. We have addressed the reviewers concerns and added a new theorem to clarify the error term above^. \n\nWe also found via ChatGPT that a similar approximation is used in Computing low-rank approximations of the Fréchet\nderivative of a matrix function using Krylov\nsubspace methods by Kandolf et. al., for other applications, and have a proof of convergence for this approximation converging to exact derivatives (not to Lanczos derivatives) for certain cases. However, their proof is much more involved as they need convergence to exact derivative of the objective and the applications used are more specific.\n\nWe also provide a case study for an end-to-end Matern kernel hyperparmater case study in reply to Reviewer yqqx where we incorporate a GPU implementation of our algorithm leveraging PyTorch and compare with AD. Naive AD fails miserably, and so for a fair baseline, we inject the frechet derivatives of the tridiagonal matrix (like done in Kramer et. al.) into the AD. This case study shows how reorthgonalization can be expensive and lead to memory bottlenecks and slow speed on modern hardware (run on our local Mac leveraging Metal for GPU). It also shows that Chebyshev needs much more polynomial depth to achieve similar accuracy as Lanczos (established in previous literature), and our approximation remains stable through the optimization procedure non reorth AD loses stability.\n\nDuring the waiting process, we also developed a high performance library leveraging PETSc and SLEPc in C++ to get rapid fast derivatives through Lanczos when closed form expressions of derivatives are given (we currently do not support AD in the C++ interface) and have a Python wrapper around it. We plan to develop this library for future work and this is where we show margin of speedups against PyTorch (unfair comparison as we use the formulas and AD needs a gradient tape which has overhead)\n\nThe extreme large scale operators on GPUs or closed form derivatives available for efficient $V^T dAV$ computations are the regime where our approximation beats the available algorithms by big margins. More research is needed for incorporating selective orthogonalization for stabilizing forward Lanczos on GPUs which could benefit our algorithm even more, as differentiating through these procedures is slow and unstable.\n\nWe will also address some of the minor concerns about title and confusion of bilinear and quadratic forms and clarify exactly where the approximation will be beneficial"
+ },
+ "createdAt": "2026-08-03T23:15:50.576Z",
+ "modifiedAt": "2026-11-19T17:20:24.118Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=pZG2j6bbBW",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0o7q9iwqk0/notes/yijpmhcfar.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/yijpmhcfar.json
@@ -0,0 +1,16 @@
+{
+ "schema": "review/1",
+ "id": "YIJPmhcFAr",
+ "replyTo": null,
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "title": "Initial response to reviewers",
+ "comment": "We would like to thank the reviewers and area chair for their well thought-out reviews. We agree with the overall comments of the reviewers and will add the following:\n\n- $\\textbf{A theoretical proof and clarification of the error term in our gradient approximation (to be precise, $\\beta_m e_m^T G \\eta$ in Theorem 2)}:$ We agree with the reviewers and will be adding a theorem to show that the gradient error is bounded by the best polynomial approximation of smooth scalar functions of eigenvalues of the hermitian matrix (so this nails down the convergence rate of our approximation). For a case study, we show exponential convergence for the derivatives with respect to matrix exponential in theory and practice. It is out of scope of this work to show theoretical bounds for how accurate our approximation is in finite precision (there are multiple math journal papers about accuracy of Lanczos), but this additional part provides an insight via polynomials and can be used as a stepping stone to bound the error.\n\n- $\\textbf{Comparison to the existing methods and when our method should be used}$: Our claim is that the approximation works without reorthogonalization which enables the method to be used in practice for large-scale problem where backprop and the adjoint method would fail. Reorthogonalization not only introduces overhead (can be 10-20x slowdown in time for medium scale (matrix dimension ~ 50k) problems, and would become a memory-bottleneck for large problems, leaving the existing methods intractable. To show this, we have implemented a version of our method that can use multiple passes (when required) of the Lanczos iteration and does not require storage of Lanczos basis making our method viable for large-scale applications. The current limitation is that the theoretical results are only valid for scalar objectives and the extension is left for future work. We will add experiments in the appendix where we show the reorthogonalization overhead in PyTorch.\n\n- $\\textbf{Application areas in ML}$: The major application areas in ML where gradients of quadratic/bilinear/fitting objectives involving matrix functions are learning with graphs and Gaussian processes (majorly sparse kernels) as mentioned in the 2024 NeurIPS paper (Gradients of Functions of Large Matrices by Krämer et al.). GraphML and SPDE kernels in GPs and other applications in Physics use Chebyshev polynomials as the baseline method for scalability purposes (for reasons mentioned above). We implement the Chebyshev polynomial method in our infrastructure that is built upon the PETSc and show that our method (which uses multiple passes for large scale problems) can be at least $2 \\times$ faster for a benchmark problem in image denoising using spectral graph filters while being same or better in accuracy. The Chebyshev method beats Lanczos method when the underlying matrix is well-conditioned but can struggle when the spectrum needs adaptive quadrature for resolution or is ill-conditioned (this is well-known in the applied math and physics literature) and we confirm this in our experiments.\n\n\nWe believe that the above additions make the paper much stronger and thank the reviewers and area chair again for highlighting these key points in the current manuscript. We will start adding the results and reply individually to reviewers in the forthcoming days."
+ },
+ "createdAt": "2026-07-29T01:34:09.537Z",
+ "modifiedAt": "2026-11-19T17:20:24.472Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=YIJPmhcFAr",
+ "license": "CC-BY-4.0"
+}

reviews/openreview/0o7q9iwqk0/notes/zweysi64wu.json added

+++ b/reviews/openreview/0o7q9iwqk0/notes/zweysi64wu.json
@@ -0,0 +1,15 @@
+{
+ "schema": "review/1",
+ "id": "zWeYsi64wu",
+ "replyTo": "JX5kWPCCic",
+ "kind": "comment",
+ "invitation": "Official_Comment",
+ "signature": "Authors",
+ "content": {
+ "comment": "**Regimes where proposed method preferable to differentiating through Lanczos or using Fréchet/adjoint-based methods in terms of accuracy, stability, memory, and runtime**\n\nWe agree that this is the main clarification needed in the paper and therefore we spent the majority of time addressing this in the past week (sorry for the delay) with the following experiment. (Please see the comment above for spectral denoising case, but we compare only with Chebyshev in our framework as closed form derivatives are available, and PyTorch AD can be much slower)\n\n## Target Regime and Setup\n\nWe target large-scale matrix-function learning where the operator is available **only through matvecs**, and where storing or differentiating through a long Lanczos run is memory-prohibitive or communication-bound (e.g. CPU↔GPU transfers).\n\nThe testbed is Graph/SPDE Matérn Gaussian-process models,\n\n$$\nK_\\theta = A_\\theta^{-\\alpha} \\qquad A_\\theta = \\mathrm{mass} I + \\mathrm{scale} B ,\n$$\n\nfor which learning requires gradients of\n\n$$\n\\tfrac12 \\sum_i y_i^\\top A_\\theta^{\\alpha} y_i - \\tfrac12 \\\\alpha \\log\\det (A_\\theta).\n$$\n\n**Controls.** All methods share the same data, initialization, optimizer, and matrix-free GPU matvecs. The size of matrix $n=32768$. The $\\log\\det$ term *and its gradient are computed exactly for every method*, so the comparison isolates the difficult matrix-function quadratic term.\n\n**Removing the eigensolver as a confound.** For the AD baselines we differentiate a **Fréchet derivative of the small tridiagonal $T_m$** rather than backpropagating through the PyTorch eigensolver. Raw eigensolver AD produces NaNs much earlier; by removing it we ensure the failures reported below come from differentiating the **finite-precision Lanczos recurrence itself**, not from an eigendecomposition artifact.\n\n---\n\n## 1. Small Depth — All Methods Stable\n\n| method | mean sec/iter | max rel grad err | max data rel err | final scale | final alpha |\n|---|---|---|---|---|---|\n| full reorth AD | 1.42 | 2.72e-6 | 4.06e-6 | 5.52883 | 1.34008 |\n| no-reorth AD | 0.852 | 5.10e-6 | 5.21e-6 | 5.52884 | 1.34008 |\n| projected no-reorth (ours) | 0.474 | 3.75e-6 | 5.73e-6 | 5.52884 | 1.34008 |\n| Chebyshev, deg. 128 | 0.349 | 8.53e-4 | 1.99e-3 | 5.52841 | 1.34007 |\n\n*No-reorthogonalization AD is entirely reliable here. This is explicitly **not** the regime our method is meant to dominate; we report it to establish that the projected rule loses nothing when AD is stable.*\n\n---\n\n## 2. Moderate Depth ($m=384$) — AD Begins to Drift\n\n| method | sec | rel grad err | rel data err |\n|---|---|---|---|\n| full reorth AD | 9.07 | 4.29e-8 | 2.90e-7 |\n| no-reorth AD | 2.12 | **1.84e-4** | 2.86e-7 |\n| projected no-reorth (ours) | 1.15 | 5.80e-8 | 2.86e-7 |\n| Chebyshev, deg. 384 | 0.899 | 2.26e-5 | 1.79e-4 |\n\n*Full reorthogonalization remains accurate but is now ~8× slower than the projected rule. The key signature appears: the no-reorth **forward** value is still accurate (2.86e-7) while its **gradient** has degraded by four orders of magnitude. The projected gradient stays at reference accuracy.*\n\n---\n\n## 3. Large Depth ($m=768$) — Full Reorthogonalization OOMs\n\nFull-reorthogonalized AD fails on MPS before completing a single evaluation with one sample:\n\n```\nRuntimeError: MPS backend out of memory\nMPS allocated: 30.13 GiB\nmax allowed: 30.19 GiB\n```\n\n| method | sec | rel grad err | rel data err |\n|---|---|---|---|\n| full reorth AD | OOM | OOM | OOM |\n| no-reorth AD | 4.63 | **2.88e-2** | 2.89e-7 |\n| projected no-reorth (ours) | 2.42 | 5.08e-8 | 2.89e-7 |\n| Chebyshev, deg. 768 | 1.79 | 1.47e-5 | 1.88e-4 |\n\n*This is the intended operating regime, where full reorth becomes OOM and our method does not become unstable due to loss of orthogonality*\n\n---\n\n## 4. End-to-End Fit at $m=1536$\n\n| method | mean sec/iter | max rel grad err | final scale | final alpha |\n|---|---|---|---|---|\n| no-reorth AD | 9.15 | **2.72e+5** | 4.63522 | 1.34011 |\n| projected no-reorth (ours) | 5.20 | 1.82e-7 | 5.52880 | 1.34008 |\n| Chebyshev, deg. 4096 | 9.89 | 7.86e-5 | 5.52881 | 1.34007 |\n\n*Full reorthogonalization is infeasible at this depth. No-reorth AD becoms unstable and drives the optimizer down a **qualitatively wrong parameter path** (final scale 4.635 vs. the 5.5288 recovered by every accurate method)\n\n---\n\n## When the Proposed Method Is Preferable\n\nThe method is the right choice when all of the following hold:\n\n1. $m$ must be **large** for forward accuracy.\n2. Full reorthogonalization is **too memory-intensive** on GPU (see the $m=768$ OOM).\n3. No-reorthogonalized **forward** values remain useful, but AD through the recurrence is numerically unreliable due to loss in orthogonality (usuallly happens when $m$ is large).\n4. GPU↔CPU transfer or storing the full differentiated Lanczos program would dominate runtime/memory.\n\n\n\nWe will add this experiment in the paper. Please suggest if in the main text or appendix and address all of the above explicitly."
+ },
+ "createdAt": "2026-08-03T19:34:25.604Z",
+ "modifiedAt": "2026-11-19T17:20:24.270Z",
+ "url": "https://openreview.net/forum?id=0o7Q9IWQK0&noteId=zWeYsi64wu",
+ "license": "CC-BY-4.0"
+}