potentialpaper

Learning to Discover Iterative Spectral Algorithms

Zihang Liu, Oleg Balabanov, Yaoqing Yang, Michael W. Mahoney

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We propose a neural network framework to discover iterative spectral algorithms.

Abstract. We introduce AutoSpec, a neural network framework for discovering iterative spectral algorithms for large-scale numerical linear algebra and numerical optimization. Our self-supervised models adapt to input operators using coarse spectral information (e.g., eigenvalue estimates and residual norms), and predict recurrence coefficients for computing or applying a matrix polynomial tailored to a downstream task. The effectiveness of AutoSpec relies on three ingredients: an architecture whose inference pass implements short, executable numerical linear algebra recurrences; efficient training on small synthetic problems with transfer to large-scale real-world operators; and task-defined objectives that enforce the desired approximation or preconditioning behavior across the range of spectral profiles represented in the training set. We apply AutoSpec to discovering algorithms for representative tasks on spd matrices: accelerating matrix function approximation; accelerating sparse linear solvers; and spectral filtering/preconditioning for eigenvalue computations. On real-world matrices, the learned procedures deliver up to order-of-magnitude improvements in accuracy and/or reductions in iteration count, relative to spectrum-agnostic baselines. We find clear connections to classical theory: the induced polynomials may exhibit equioscillation behavior characteristic of Chebyshev polynomial approximation. The code is available at: https://github.com/zihanghliu/AutoSpec.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:50 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper introduces AutoSpec, a highly novel and ambitious neural framework for discovering iterative spectral algorithms for tasks in numerical linear algebra. Reviewers were broadly in agreement that the core concept is original, well-motivated, and addresses an important problem. The paper's strategy of training on small, synthetic problems and successfully transferring the learned policies to large-scale, real-world matrices was consistently highlighted as a major strength, demonstrating the framework's generality and potential.

However, a critical and recurring concern was the paper's evaluation methodology. Two of the three reviewers pointed out that relying on "iteration counts" as the primary metric is insufficient to prove a practical advantage. They argue that without reporting end-to-end wall-clock times, it is difficult to assess whether the reduction in iterations translates into a real-world computational speedup, especially given the overhead of the AutoSpec method itself.

Furthermore, the claimed superiority over strong classical baselines, such as Chebyshev approximation, was questioned. Reviewers noted that the performance comparisons appeared mixed, with AutoSpec not always outperforming these established methods. This point tempers the claim of "discovering" new, superior algorithms.

In summary, the paper presents a conceptually innovative and promising framework with a clever training paradigm. While it is praised for its originality and potential impact, the consensus is that the empirical evaluation needs to be strengthened with more comprehensive runtime analysis and clearer evidence of a consistent advantage over strong classical baselines to fully validate its practical utility. Since the majority of reviewers supports acceptance, so is the final proposal provided that the authors could clarify these concerns in the final version.

Area Chair b4YL · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper introduces AutoSpec, a highly novel and ambitious neural framework for discovering iterative spectral algorithms for tasks in numerical linear algebra. Reviewers were broadly in agreement that the core concept is original, well-motivated, and addresses an important problem. The paper's strategy of training on small, synthetic problems and successfully transferring the learned policies to large-scale, real-world matrices was consistently highlighted as a major strength, demonstrating the framework's generality and potential.

However, a critical and recurring concern was the paper's evaluation methodology. Two of the three reviewers pointed out that relying on "iteration counts" as the primary metric is insufficient to prove a practical advantage. They argue that without reporting end-to-end wall-clock times, it is difficult to assess whether the reduction in iterations translates into a real-world computational speedup, especially given the overhead of the AutoSpec method itself.

Furthermore, the claimed superiority over strong classical baselines, such as Chebyshev approximation, was questioned. Reviewers noted that the performance comparisons appeared mixed, with AutoSpec not always outperforming these established methods. This point tempers the claim of "discovering" new, superior algorithms.

In summary, the paper presents a conceptually innovative and promising framework with a clever training paradigm. While it is praised for its originality and potential impact, the consensus is that the empirical evaluation needs to be strengthened with more comprehensive runtime analysis and clearer evidence of a consistent advantage over strong classical baselines to fully validate its practical utility. Since the majority of reviewers supports acceptance, so is the final proposal provided that the authors could clarify these concerns in the final version.

Reviewer 3C1eOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors present an optimization framework to automatically discover new iterative spectral algorithms, and in particular the optimal spectral decomposition to obtain an approximate solution of various linear algebraic problems. This is useful because of the wide range of linear algebra problem, and the various hyperparameters involved (things like Newton-Schulz come to mind), which neural-network optimization seems very suited to, since the problem is easily verifiable and the search space is large. They achieve this by constructing the framework with small synthetic problems that are shown to transfer well to larger problems. They then shown its applicability to a broad range of problems, and new algorithms that seem useful in some cases are actually proposed.

Strengths and weaknesses

I enjoyed reading this paper, as it constructs a seemingly robust framework to automate a tedious task in linear algebra. It is very well-written and constructed in my opinon, and is impactful for a range of subproblems in linear algebra (those whose ideal spectral decomposition for solving the problem is not known). In particular, its strengths are:

  • the paper is well constructed and well explained
  • the framework seems robust, and does not rely too much on the specific choice of architecture. The neural network only seems like it is playing a small part of it, which is quite nice and more intepretable.
  • The results are good: they get 2x-5x speedup on some problems, and show they find better decomposition than Chebyshev decompositions on some problems.

Some weaknesses I see:

  • It would have been nice to see results varying with neural network layers, and some with very simple architectures. From my review, it seems that it would work well for simpler ones.
  • Related to the first point, the choice of ablation for the ablation studies is not particularly discussed, and we are just shown ablations without understanding why these are discussed. While the method is elegant and is well constructed, it is quite hard to understand the role of the various pieces of it. It does not seem impossible to me that it could be simplified while keeping a lot of benefits.
  • It would be nice to discuss the extensions, for example to nonlinear algebra problems.
Questions

Questions are addressed in weaknesses

Limitations

Yes, not all were addressed, see weaknesses.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading of our manuscript and the constructive feedback. We address their questions and concerns below.

W1. The same training recipe can be applied to training the AutoSpec neural engine with varying layers. The table below shows the PCG iteration count on the Fault_639 matrix when polynomial accelerators of different degrees are applied. We can see that AutoSpec consistently provide acceleration in iteration count compared to unaccelerated PCG and Chebyshev method.

Degree Unaccelerated AutoSpec Chebyshev
6 5000+5000+ 1386±181386\pm18 1884±1571884\pm157
9 5000+5000+ 919±10919\pm10 995±7995\pm7
11 5000+5000+ 827±9827\pm9 828±8828\pm8
13 5000+5000+ 712±8712\pm8 799±46799\pm46
16 5000+5000+ 560±6560\pm6 699±49699\pm49

To compare the current AutoSpec neural network with simpler architectures, we evaluate methods that directly fit the polynomial coefficients. Given approximate spectral probes, we directly fit a degree-matched polynomial PdP_d to approximate the inverse function through the objective λiPd(λi)≈1\lambda_iP_d(\lambda_i)\approx 1. We consider two fitting objectives:

  • Least squares: minimize ∑i∣λiPd(λi)−1∣2\sum_i|\lambda_iP_d(\lambda_i)-1|^2 using an SVD-based linear least-squares solver.
  • Minimax: minimize max⁡i∣λiPd(λi)−1∣\max_i|\lambda_iP_d(\lambda_i)-1| using linear programming.

For numerical stability, we fit the polynomial coefficients in the chebyshev- basis. We compare the obtained polynomials of degree 11 with ones generated by AutoSpec with the same degree and record PCG iteration counts to reach 10−1010^{-10} relative residuals, recorded over 5 seeds.

Matrix Probe iters No preconditioner AutoSpec Chebyshev LS minimax
G2_circuit 50 2242±162242\pm16 213±1213\pm1 223±56223\pm56 254±1254\pm1 218±44218\pm44
200 2242±162242\pm16 210±2210\pm2 262±31262\pm31 271±1271\pm1 264±31264\pm31
Dubcova2 50 359±2359\pm2 35±035\pm0 62±1662\pm16 41±041\pm0 66±2266\pm22
200 359±2359\pm2 36±036\pm0 69±469\pm4 43±043\pm0 70±470\pm4
laplacian_small 50 274±1274\pm1 28±028\pm0 37±537\pm5 31±031\pm0 40±740\pm7
200 274±1274\pm1 29±029\pm0 48±048\pm0 33±033\pm0 49±049\pm0
laplacian_medium 50 2112±152112\pm15 202±1202\pm1 263±68263\pm68 240±2240\pm2 264±68264\pm68
200 2112±152112\pm15 199±1199\pm1 233±24233\pm24 255±2255\pm2 234±25234\pm25
laplacian_large 50 4152±304152\pm30 397±3397\pm3 426±128426\pm128 470±3470\pm3 427±130427\pm130
200 4152±304152\pm30 390±3390\pm3 534±143534\pm143 500±3500\pm3 529±136529\pm136
thermal_cookie 50 3377±763377\pm76 322±7322\pm7 659±337659\pm337 382±7382\pm7 718±393718\pm393
200 3377±763377\pm76 316±7316\pm7 417±172417\pm172 405±6405\pm6 422±183422\pm183
parabolic_fem 50 3438±543438\pm54 329±3329\pm3 445±298445\pm298 390±7390\pm7 453±307453\pm307
200 3438±543438\pm54 324±3324\pm3 346±85346\pm85 414±8414\pm8 347±86347\pm86
G3_circuit 50 4440±704440\pm70 426±6426\pm6 394±4394\pm4 487±9487\pm9 392±4392\pm4
200 4440±704440\pm70 418±6418\pm6 706±100706\pm100 519±10519\pm10 691±95691\pm95

AutoSpec uses the fewest iterations on every matrix (except G3_circuit with 50 probe iters, where AutoSpec has 10% more iterations than Minimax fitting), showing it learns better preconditioners than simpler direct fitting from the same spectral probe. 

W2: Explanation on the provided ablation study:

Roles of residual feature in the input spectral probe (Appendix G.1). To infer the coefficients of polynomial preconditioners, practitioners tend to use only the approximated extreme eigenvalues λ^\widehat{\lambda} obtained from cheap approximation procedures. In the training of our embedding model, we wonder whether we can use the approximation residuals r^\widehat{r} as augmentation features so that the model can use them to infer the spectral structure more accurately. We evaluated this by zeroing out the residual features during polynomial generation, and observed a noticable performance drop. This suggests that the model is able to pick up the augmentation residual features and generate better preconditioners.

Robustness of AutoSpec to spectral probe perturbations (Appendix G.2). In practice, the procedure and accuracy used to obtain the spectral probe may differ from those seen during training, so it is important to understand whether the AutoSpec engine can robustly generates recurrences even when the probe is perturbed via different approximation. Varying the probe quality by changing the number of Lanczos iterations, we find that the preconditioners produced by AutoSpec yield consistent PCG performance, demonstrating its robustness.

Extended ablation study on the neural network structures:

Ablation study on the structure of the backbone layers. The current backbone layer consists of a linear layer followed by a learned scaling. We compare it with a vanilla linear layer (without the scaling), and an MLP with one hidden layer and ReLU activation. We train a 15-layer backbone and observe the convergence improvement ρlog\rho_{\text{log}}.

linear_norm (paper) linear mlp Chebyshev baseline
Convergence Improvement (↑\uparrow) 16.90 9.015 17.43 16.37

As shown in the table, using only linear layer results in significantly worse performance than linear with scaling, while the MLP layer has similar performance compared to linear with scaling. We note that linear with scaling layer provides sufficient expressiveness. In fact, it can be shown that, for any prescribed shift and scaling parameters, there exists a choice of network weights such that the polynomial represented by the neural network coincides exactly with the corresponding shifted and scaled Chebyshev polynomial. We will include the proof sketch in the revision. While MLP is more expressive, it increases the total parameter count and actual number of layers, which would cost more to train.

Ablation on the structure of the embedding layer. Our intention for the embedding layer was to generate the embedding features of the largest and smallest end of the spectrum separately using two MLP layers, and concatenate them. This is to prevent the magnitude difference of largest and smallest eigenvalues to affect the training. We perform an ablation study that trains one MLP layer taking all λ^\widehat{\lambda} and r^\widehat{r} as input to generate the embedding vector. We train the embedding of a 15-layer backbone and observe the convergence improvement ρlog\rho_{\text{log}}.

Two MLPs (paper) One MLP Chebyshev baseline
Convergence Improvement (↑\uparrow) 15.47 9.015 15.24

The table above shows that using only one MLP layer as embedding results in significantly worse convergence improvement than two MLPs. Therefore, our current design is effective for our chosen tasks, and developing more expressive network structures is an interesting direction for more complex NLA tasks.

W3: In Appendix B.1 we briefly discuss several extensions: higher-order polynomial updates, rational models, and gradient-driven transitions. For example, AutoSpec can accelerate or tune Newton- and Newton-Schulz-based iterations for computing matrix rational powers, where the transition operator Mk\mathbf{M}_k is quadratic or rational in the iterate Vk\mathbf{V}_k (see e.g. Eq. 10). Our framework can also target momentum-based methods for nonlinear optimization, such as heavy-ball, which on a local quadratic model coincides with the Chebyshev semi-iterative recurrence. For instance, given a spectral probe of the (approximate) Hessian, AutoSpec can predict the coefficients of the update; and because it is trained end-to-end on downstream performance, it can learn coefficients that remain robust, e.g., to numerical/approximation errors and changes in the Hessian along the optimization trajectory.

Using AutoSpec to discover higher-order and momentum-based recurrences for optimization is a promising direction for future work.

Reviewer 3C1e · CommentOpenReview ↗

Response to Authors

Thank you for the complete response. I keep my score of 5.

Reviewer WWK4OpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
concept_feasibility
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes AutoSpec, a framework for learning iterative spectral algorithms for numerical linear algebra. The main idea is to map coarse spectral probes, such as Ritz value estimates and residual features, to matrix-polynomial recurrences that can be executed with matrix-vector products. The paper studies applications to linear systems, eigenvalue problems, and matrix-function approximation, and reports that the learned recurrences can reduce iteration counts or improve approximation quality compared with simple baselines.

Strengths and weaknesses

Strengths:

  • The topic is interesting and ambitious, and the attempt to learn executable spectral algorithms rather than discrete program sketches is appealing. The motivation is well-aligned with an important problem: discovering numerical algorithms that are adaptive to spectral structure while remaining matrix-free and executable.
  • The paper evaluates the method on several numerical linear algebra tasks, including linear systems, eigenvalue problems, and matrix-function approximation, which helps demonstrate the generality of the framework.

My concerns:

  • The advantage over strong classical baselines is not clearly established. In the main paper, the strongest visual evidence compares AutoSpec mostly against no acceleration, Neumann acceleration, or power-polynomial baselines. The more important AutoSpec-vs-Chebyshev comparison is in the appendix and appears mixed: Chebyshev matches or outperforms AutoSpec on several SuiteSparse cases. This makes the claim that the learned method goes beyond classical polynomial designs less convincing. The paper should present AutoSpec as competitive and sometimes better, rather than broadly better than classical polynomial designs. This still limits the current case for significance.
  • The evaluation relies heavily on iteration counts or approximation curves, but the full end-to-end computational cost is not sufficiently characterized. AutoSpec requires spectral probes, learned coefficient prediction, and additional training/inference machinery. Without wall-clock timings, probe overhead, memory/runtime breakdowns, and implementation details, it's pretty vague to judge whether the iteration-count improvements translate into practical speedups.
  • I understand that "algorithm discovery" is a common high-level framing in ML. However, in this paper the term "discovering" feels somewhat overstated. The method appears to learn spectrum-conditioned coefficients within a fixed polynomial recurrence family. I would suggest tightening the framing/title to better reflect the constrained design space.
Questions
  1. Could you please clarify the practical advantage of AutoSpec over Chebyshev polynomial acceleration? In Appendix Table 3 and Figure 9, the comparison appears mixed rather than consistently favorable to AutoSpec.

  2. Could you report end-to-end runtime, including spectral probing, coefficient generation, and any implementation overhead, rather than only iteration counts or approximation curves?

Limitations

Yes.

Final justification

I have already changed my rating from 3 to 4. The idea is clear, and the original experiments show that it can work. The rebuttal adds useful runtime results: AutoSpec is faster on most of the tested matrices, though not all of them. It also gives a more careful comparison with Chebyshev methods and clarifies the scope of the algorithm discovery claim. The results support saying that AutoSpec is competitive and sometimes better in the tested setting, while the Chebyshev comparison remains mixed. Robustness to probe or spectral mismatch is still only partly tested, and strong baselines for the other tasks remain limited. These points keep my rating below 5.

Formatting concerns

All good.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for providing valuable comments on our work. In the following, we address the reviewer's questions and concerns. 

W1 & Q1: One of AutoSpec's contributions is precisely its ability to match Chebyshev-level performance while resolving Chebyshev's robustness issues across diverse spectral structures. This robustness stems from AutoSpec's ability to work from coarse spectral probes and to handle clustered small eigenvalues, which classical interval-based designs tend to mishandle, as illustrated in Fig. 4b (we will update the plot to show the eigenvalues on a log scale for clarity). From Table 3, which characterizes practical pcg acceleration, we see that AutoSpec often outperforms Chebyshev substantially (by up to 2×), whereas in the rare cases where Chebyshev wins, the margin is modest (typically under 15%). To strengthen this evidence, we have enlarged Table 3 with six additional matrices, on which the same pattern holds.

Matrix AutoSpec (probe=200) AutoSpec (probe=50) Cheb (probe=200) Cheb (probe=50) Neumann No acceleration
laplacian_small 29±029\pm0 27±027\pm0 48±048\pm0 39±539\pm5 79±079\pm0 275±1275\pm1
laplacian_medium 194±1194\pm1 207±2207\pm2 231±22231\pm22 272±98272\pm98 602±4602\pm4 2108±172108\pm17
laplacian_large 390±4390\pm4 397±3397\pm3 444±87444\pm87 1012±4581012\pm458 1188±81188\pm8 4153±324153\pm32
thermal_cookie 313±6313\pm6 336±5336\pm5 481±176481\pm176 689±300689\pm300 963±19963\pm19 3383±773383\pm77
Dubcova2 36±036\pm0 35±035\pm0 67±167\pm1 71±2471\pm24 102±1102\pm1 357±3357\pm3
thermal1 154±1154\pm1 162±2162\pm2 236±40236\pm40 145±1145\pm1 480±6480\pm6 1642±181642\pm18

In addition, we will move the AutoSpec-vs-Chebyshev comparison into the main manuscript, in the section "Potential to advance the state of the art," and for clarity, we will revise the framing of the Neumann and power polynomial comparisons to present them as standard baselines that do not exploit spectral information.

We would also note that the primary objective of this work is to show that a neural network can learn, in a self-supervised manner, to effectively exploit spectral information from the input, yielding robust accelerators with significant gains in accuracy and/or iteration count over spectrum-unaware baselines. That is why we focus on comparisons with Neumann and power polynomial preconditioners. This situates AutoSpec's contribution within the broader ML and NLA context, rather than framing it as a mere improvement over Chebyshev.

W2 & Q2: We ran additional experiments on representative matrices showing that AutoSpec delivers up to 1.8× end-to-end runtime reduction of pcg (relying on MATLAB's native handling of communication). They also show that spectral probing and neural inference should entail negligible/minor overhead. The results below are averaged over 3 random seeds and each per-seed timing is itself the median of 3 runs; Op applies counts total matvecs  including the 200 spectral-probe matvecs, Precond applies counts polynomial preconditioner applications (= outer 'pcg' iterations), Inner products represent the global reductions.

Matrix Method Iters Op applies Precond applies Inner products peak mem, MB Probe+setup, s Solve, s End-to-end, s
G2_circuit (150k) pcg 2241 2243 2241 4483 19.10 — 3.66 3.66
AutoSpec 205 2662 205 410 23.69 0.35 1.97 2.32
Chebyshev 304 3850 304 608 23.69 0.31 2.77 3.08
thermal1 (83k) pcg 1630 1632 1630 3260 13.18 — 1.83 1.83
AutoSpec 153 2038 153 306 15.70 0.25 1.18 1.43
Chebyshev 234 3006 234 467 15.70 0.24 1.78 2.02
shipsec5 (180k) pcg 4529 4543 4536 9058 79.77 — 14.79 14.79
AutoSpec 421 5263 421 843 85.26 0.59 11.07 11.66
Chebyshev 402 5067 405 803 85.26 0.57 10.51 11.08
parabolic_fem (526k) pcg 3428 3430 3428 6855 84.15 — 17.73 17.73
AutoSpec 315 3982 315 630 100.20 0.89 11.75 12.64
Chebyshev 468 5822 468 937 100.20 0.90 16.92 17.82
Emilia_923 (923k) pcg 11023 11032 11025 22046 665.35 — 194.04 194.04
AutoSpec 1096 13354 1096 2192 693.52 3.28 189.47 192.75
Chebyshev 1030 12563 1030 2060 693.52 3.22 175.38 178.60
G3_circuit (1.59M) pcg 4289 4291 4289 8579 201.57 — 54.94 54.94
AutoSpec 397 4966 397 794 249.95 1.84 35.36 37.20
Chebyshev 523 6482 523 1047 249.95 1.83 45.14 46.97
thermal_cookie (250k) pcg 3467 3470 3467 6933 32.39 — 12.80 12.80
AutoSpec 318 4013 318 635 40.02 0.63 5.74 6.37
Chebyshev 402 5027 402 804 40.02 0.63 6.46 7.09
laplacian_medium (389k) pcg 2102 2105 2102 4204 50.46 — 9.82 9.82
AutoSpec 194 2525 194 387 62.35 0.80 4.77 5.57
Chebyshev 252 3221 252 503 62.35 0.77 5.83 6.60
laplacian_large (1.56M) pcg 4172 4175 4172 8343 201.93 — 59.02 59.04
AutoSpec 383 4803 383 767 249.46 1.89 33.24 35.14
Chebyshev 456 5671 456 911 249.46 1.83 38.50 40.34

At the same time, absolute runtimes are inherently implementation- and architecture-dependent, and higher (or lower) gains can be expected under a proper hpc implementation, which is not the aim of this paper and is left for hpc practitioners. For instance, in matlab we see no speedup on Emilia_923, yet with a proper implementation polynomial preconditioners provide a significant speedup on this matrix (1). See in (1) a comprehensive hpc study of the runtime benefits of polynomial (Chebyshev) preconditioning.

W3: We appreciate this point. We use the term algorithm discovery because the neural engine is trained entirely through self-supervision using downstream numerical performance, without access to target coefficients or handcrafted algorithms. From this perspective, the method discovers effective executable recurrences. We nevertheless agree that the introduction should more explicitly state that the search space consists of spectrum-conditioned polynomial recurrences, and we will revise the wording accordingly.

[1] https://arxiv.org/abs/2008.01440

Reviewer WWK4 · CommentOpenReview ↗

Response to Authors

Thank you for the detailed response. The new end-to-end runtime results address most of my practical cost concern. They show actual speedups on most of the tested matrices, though not all of them. The clearer comparison with Chebyshev methods is also helpful. The explanation that AutoSpec searches for polynomial recurrences clarifies the scope of the algorithm discovery claim. The response refers to an additional six-matrix Chebyshev table, but the visible rebuttal does not show its numbers, so I cannot assess it. My remaining concerns are robustness when the probes or spectra differ from training and the limited strong baselines for the eigenvalue and matrix-function tasks. Overall, the response addresses my main concerns, and I raise the rating to 4.

Authors · CommentOpenReview ↗

We thank the reviewer for the feedback. The remaining concerns are addressed below.

Regarding the table comparing AutoSpec and Chebyshev on six additional matrices, we would like to point out that in this table AutoSpec shows substantial convergence speedups over both unpreconditioned CG and Chebyshev preconditioning. For example, on laplacian_large, using a spectral probe with 50 eigs iterations, AutoSpec requires 397 outer iterations, whereas Chebyshev requires 1012. Similarly, on Dubcova2, using a 50-iteration spectral probe, AutoSpec requires only 35 iterations compared to 71 for Chebyshev.

Robustness under train-test probe mismatch. In Appendix G.2, we provide an ablation study investigating the robustness of AutoSpec to variations in the spectral probe. We evaluate the iteration counts of AutoSpec-generated preconditioners using spectral probes of different quality. The spectral probes used during evaluation differ from those used in training in three important ways: (1) training uses subspace iteration, whereas evaluation uses Lanczos iteration; (2) training is performed on synthetic matrices, whereas evaluation is conducted on real-world matrices from the SuiteSparse collection; and (3) the number of eigenvalue solver iterations used for spectral probing differs between training and evaluation. The results in Figure 14 show that the preconditioners produced by AutoSpec deliver consistently strong pcg acceleration across these settings. This demonstrates that AutoSpec generalizes to spectral probes that differ from those seen during training and remains robust to variations in probe quality at inference time.

Comparison with spectrum-aware baselines for the eigenvalue and/or matrix-function tasks. We note that the classical spectrum-aware baseline in these settings is again Chebyshev polynomial acceleration/approximation, just as for linear systems. In Section 6, we already compare the AutoSpec polynomials discovered for eigenvalue problems against Chebyshev from the perspective of minimax approximation, demonstrating that the learned recurrences inherit the same fundamental minimax approximation behavior. We have also verified experimentally on several SuiteSparse matrices that AutoSpec performs at least as well as Chebyshev in terms of the number of iterations required by eigs. We will incorporate these additional experiments into the final version of the paper.

Reviewer TAvCOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
concept_feasibility
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors introduce AutoSpec, a neural framework for learning spectrum-adaptive polynomial algorithms for numerical linear algebra. Given approximate eigenvalues and residual norms from a short spectral probe, AutoSpec predicts the coefficients of a matrix-free recurrence that evaluates Pd(X)zP_d(X)z using only matrix-vector products and vector operations. The model is trained in two stages: a backbone is first learned self-supervised on synthetic diagonal matrices using exact spectral features, after which an embedding network is trained to map approximate spectral probes to the backbone representation. The framework is evaluated on three SPD tasks: polynomial preconditioning for conjugate-gradient solvers, spectral filtering for eigenvalue computation, and approximation of the matrix inverse square root. Across real sparse matrices, AutoSpec substantially reduces outer iteration counts relative to unaccelerated methods and basic polynomial baselines, is competitive with same-degree Chebyshev preconditioning, and sometimes performs considerably better. The learned polynomials also exhibit empirically observed Chebyshev-like equioscillation behavior.

Strengths and weaknesses

Strengths

  1. AutoSpec is an original and well-motivated framework for learning spectrum-adaptive numerical algorithms. Rather than predicting a dense preconditioner or an approximate solution, it predicts coefficients of a short matrix-free recurrence implementing Pd(X)zP_d(X)z. The recurrence uses only matrix-vector products and vector operations, and its accumulator, delayed state, and current state encompass classical three-term recurrences and polynomial-basis expansions as special cases. This gives the architecture a meaningful connection to classical approximation theory.

  2. The synthetic training strategy is another strength. For the SPD objectives studied, the losses depend only on eigenvalues, allowing efficient training on diagonal matrices. The resulting dimension-independent mapping transfers from small synthetic operators to real sparse matrices with dimensions approaching 10610^6. The evaluation also covers three distinct tasks: (a) linear-system preconditioning, (b) eigenvalue filtering, and (c) inverse-square-root approximation, providing credible evidence of the framework’s generality. AutoSpec is competitive with same-degree Chebyshev preconditioning and sometimes substantially better, while some learned polynomials exhibit Chebyshev-like equioscillation behavior.

Weaknesses

  1. My main concern is that computational performance is evaluated primarily through outer iteration counts. The paper motivates this metric for regimes where communication, synchronization, and Krylov-basis storage dominate, and it estimates the spectral-probe cost as equivalent to approximately 50 unpreconditioned linear-solver iterations. However, it does not report measured end-to-end wall-clock times, total operator/preconditioner applications, communication counts, or peak memory. Since each AutoSpec outer iteration applies a degree-11 polynomial preconditioner, fewer outer iterations do not by themselves establish an overall speedup relative to unaccelerated CG. A measured runtime and cost breakdown would clarify whether the assumed communication- or memory-dominated regime holds on the tested systems.

  2. A second concern is the absence of an per-instance polynomial-fitting baseline. Given the same approximate eigenvalues and residual norms, one could directly fit a degree-dd polynomial using least squares, minimax optimization, or the paper's own spectral objective. For example, in the linear-system setting one could minimize max⁡i∥λ^iPd(λ^i)−c∥\max_i\|\widehat\lambda_iP_d(\widehat\lambda_i)-c\| for a nonzero fixed cc. Since a degree-11 or degree-21 polynomial has only 12 or 22 coefficients, this optimization may be inexpensive relative to constructing the spectral probe. Such a comparison would clarify whether the neural network provides advantages beyond amortizing a small coefficient-fitting problem.

  3. The appendix contains several reproducibility issues. Algorithm 3 declares an output in R5\mathbb R^5, but concatenates two vectors in R5\mathbb R^5, apparently producing a ten-dimensional vector. It also declares W4W_4 without using it and contains inconsistent references to xx, x1x_1, and x2x_2 (inputs are defined as x1x_1 and x2x_2, but the branch equations use an undefined xx). These are likely correctable presentation errors, but they prevent an unambiguous implementation in the absence of released code.

  4. Generalization depends on the coverage of the synthetic training spectra. In particular, the paper reports that, for the eigenvalue task, a model trained only on spectra with relatively large eigengaps can degrade when evaluated on matrices with smaller eigengaps (fig 12). A controlled experiment varying the test eigengap beyond the range seen during training would more clearly characterize this limitation. In addition, if I am not missing anything, although the experiments use SPD preconditioners, the paper does not report whether positivity (i.e., P(λ)>0P(\lambda)>0) violations of the learned polynomial were observed.

Questions
  1. Could the authors report end-to-end wall-clock time and total operator/preconditioner applications for representative linear-system experiments, including the cost of spectral-probe construction? This would clarify whether the reduction in outer iterations translates into an actual computational benefit.

  2. Could the authors compare AutoSpec against directly fitting a degree-dd polynomial from the same approximate eigenvalues and residual norms, using least squares, minimax fitting, or the paper’s spectral objective? This would clarify the benefit of neural amortization over per-instance optimization.

  3. How does performance change when the test eigengap or condition-number range falls outside the synthetic training distribution? For the CG experiments, did the authors verify that P(λ)>0P(\lambda)>0 over the relevant spectral interval?

Limitations

Yes.

Final justification

I thank the authors for their response which essentially addresses my main concerns through end-to-end runtime results, direct polynomial-fitting baselines, and clarifications on reproducibility, eigengap generalization, and positivity. Therefore, I'll increase my score.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their careful reading and constructive feedback. We address each concern and question below.

W3 & Q1: We have extended the linear system evaluation to report, per matrix and method, measured wall-clock time, total operator and preconditioner applications, communication counts (we report global inner-product reductions, since we use direct MATLAB pcg call with native handling of communication), and estimated peak memory.  Two conclusions follow. First, spectral probing and neural inference add negligible/minor overhead. Second, AutoSpec's reduction in outer iterations yields up to 1.8× lower measured runtime and 10× fewer inner products, despite the modest rise in matvecs. Values below are averaged over 3 random seeds (each per-seed timing is itself the median of 3 runs).

Matrix Method Iters Op applies Precond applies Inner products peak mem, MB Probe+setup, s Solve, s End-to-end, s
G2_circuit (150k) pcg 2241 2243 2241 4483 19.10 — 3.66 3.66
AutoSpec 205 2662 205 410 23.69 0.35 1.97 2.32
Chebyshev 304 3850 304 608 23.69 0.31 2.77 3.08
thermal1 (83k) pcg 1630 1632 1630 3260 13.18 — 1.83 1.83
AutoSpec 153 2038 153 306 15.70 0.25 1.18 1.43
Chebyshev 234 3006 234 467 15.70 0.24 1.78 2.02
shipsec5 (180k) pcg 4529 4543 4536 9058 79.77 — 14.79 14.79
AutoSpec 421 5263 421 843 85.26 0.59 11.07 11.66
Chebyshev 402 5067 405 803 85.26 0.57 10.51 11.08
parabolic_fem (526k) pcg 3428 3430 3428 6855 84.15 — 17.73 17.73
AutoSpec 315 3982 315 630 100.20 0.89 11.75 12.64
Chebyshev 468 5822 468 937 100.20 0.90 16.92 17.82
Emilia_923 (923k) pcg 11023 11032 11025 22046 665.35 — 194.04 194.04
AutoSpec 1096 13354 1096 2192 693.52 3.28 189.47 192.75
Chebyshev 1030 12563 1030 2060 693.52 3.22 175.38 178.60
G3_circuit (1.59M) pcg 4289 4291 4289 8579 201.57 — 54.94 54.94
AutoSpec 397 4966 397 794 249.95 1.84 35.36 37.20
Chebyshev 523 6482 523 1047 249.95 1.83 45.14 46.97
thermal_cookie (250k) pcg 3467 3470 3467 6933 32.39 — 12.80 12.80
AutoSpec 318 4013 318 635 40.02 0.63 5.74 6.37
Chebyshev 402 5027 402 804 40.02 0.63 6.46 7.09
laplacian_medium (389k) pcg 2102 2105 2102 4204 50.46 — 9.82 9.82
AutoSpec 194 2525 194 387 62.35 0.80 4.77 5.57
Chebyshev 252 3221 252 503 62.35 0.77 5.83 6.60
laplacian_large (1.56M) pcg 4172 4175 4172 8343 201.93 — 59.02 59.04
AutoSpec 383 4803 383 767 249.46 1.89 33.24 35.14
Chebyshev 456 5671 456 911 249.46 1.83 38.50 40.34

We note that absolute runtimes are, however, inherently implementation- and architecture-dependent, and larger (or smaller) gains can be expected under a dedicated hpc implementation, which is beyond the scope of this paper and left to hpc practitioners. For instance, in matlab we observe no speedup on Emilia_923, whereas a proper implementation yields significant speedups for polynomial preconditioners on this matrix; see (1) for a comprehensive hpc study of the runtime benefits of polynomial (Chebyshev) preconditioning.

W4 & Q2. We added per-instance polynomial-fitting baselines to experiments. As before, for each matrix we run Lanczos on the (Jacobi-preconditioned) operator and keep the 20 largest and 20 smallest Ritz values. Then we fit a degree-11 polynomial PdP_d to λiPd(λi)≈1\lambda_i P_d(\lambda_i)\approx 1 under two criteria: least squares (solved with an SVD) and minimax (solved with linear programming). We use a shifted-Chebyshev basis, since the monomial basis is poorly conditioned and can lead to numerical issues. Fitting on the 40 probe points alone is degenerate and leads to very poor results, so we densify the estimated interval with 2000 points. PCG iterations to reach 10−1010^{-10} (5 seeds) are given below:

Matrix Probe iters No preconditioner AutoSpec Chebyshev LS Minimax
G2_circuit 50 2242±162242\pm16 213±1213\pm1 223±56223\pm56 254±1254\pm1 218±44218\pm44
200 2242±162242\pm16 210±2210\pm2 262±31262\pm31 271±1271\pm1 264±31264\pm31
Dubcova2 50 359±2359\pm2 35±035\pm0 62±1662\pm16 41±041\pm0 66±2266\pm22
200 359±2359\pm2 36±036\pm0 69±469\pm4 43±043\pm0 70±470\pm4
laplacian_small 50 274±1274\pm1 28±028\pm0 37±537\pm5 31±031\pm0 40±740\pm7
200 274±1274\pm1 29±029\pm0 48±048\pm0 33±033\pm0 49±049\pm0
laplacian_medium 50 2112±152112\pm15 202±1202\pm1 263±68263\pm68 240±2240\pm2 264±68264\pm68
200 2112±152112\pm15 199±1199\pm1 233±24233\pm24 255±2255\pm2 234±25234\pm25
laplacian_large 50 4152±304152\pm30 397±3397\pm3 426±128426\pm128 470±3470\pm3 427±130427\pm130
200 4152±304152\pm30 390±3390\pm3 534±143534\pm143 500±3500\pm3 529±136529\pm136
thermal_cookie 50 3377±763377\pm76 322±7322\pm7 659±337659\pm337 382±7382\pm7 718±393718\pm393
200 3377±763377\pm76 316±7316\pm7 417±172417\pm172 405±6405\pm6 422±183422\pm183
parabolic_fem 50 3438±543438\pm54 329±3329\pm3 445±298445\pm298 390±7390\pm7 453±307453\pm307
200 3438±543438\pm54 324±3324\pm3 346±85346\pm85 414±8414\pm8 347±86347\pm86
G3_circuit 50 4440±704440\pm70 426±6426\pm6 394±4394\pm4 487±9487\pm9 392±4392\pm4
200 4440±704440\pm70 418±6418\pm6 706±100706\pm100 519±10519\pm10 691±95691\pm95

AutoSpec uses the fewest iterations on every matrix (except G3_circuit with 50 probe iters, where AutoSpec has 10% more iterations than Minimax fitting), showing it learns better preconditioners than direct fitting from the same spectral probe. Minimax mirrors Chebyshev, including its high seed variance (e.g. ±298\pm298 on parabolic_fem); LS is much more stable but consistently suboptimal. These experiments will be added to the paper. 

W5. We thank the reviewer for identifying the inconsistencies. Algorithm 3 contains several presentation errors, but the intended implementation is unaffected. Specifically:

  • Lines 2--3 should read   $y1=W3⊤σ(W1⊤x1), y2=W4⊤σ(W2⊤x2).y_1 = W_3^\top \sigma(W_1^\top x_1), \qquad   y_2 = W_4^\top \sigma(W_2^\top x_2).$
  • Output dimension. Each branch outputs a 5-dimensional embedding (y1,y2∈R5y_1, y_2 \in \mathbb{R}^5). Their concatenation therefore produces the intended 10-dimensional embedding   $e=[y1⊤,y2⊤]⊤∈R10,e = [y_1^\top, y_2^\top]^\top \in \mathbb{R}^{10},$   which is the input to the backbone network.
  • Notation consistency. The unused variable mm and the inconsistent notation (xx, x1x_1, x2x_2) are typographical errors only and will be corrected for consistency in the revised manuscript.

We apologize for the confusion and will update Algorithm 3 accordingly in the revised version.

W6 & Q3. The table below shows the log eigengap improvement ρlog\rho_{\text{log}} for different methods evaluated on synthetic eigenspectra with varying eigengap between λ10\lambda_{10} and λ100\lambda_{100} (measured by (λ10−λ100)/λ10(\lambda_{10}-\lambda_{100})/\lambda_{10}), AutoSpec trained with eigengap in [10−2,10−1][10^{-2},10^{-1}] has only moderate ρlog\rho_{\text{log}} for eigengaps outside training range. As we increase the span of eigengap in the training data, AutoSpec achieves significantly better performance with superior ρlog\rho_{\text{log}}.

Method (10−2,10−1](10^{-2},10^{-1}] (10−3,10−2](10^{-3},10^{-2}] (10−4,10−3](10^{-4},10^{-3}] [10−5,10−4][10^{-5},10^{-4}]
AutoSpec [10−2,10−1][10^{-2},10^{-1}] 4.20 9.32 9.28 9.28
AutoSpec [10−5,10−1][10^{-5},10^{-1}] 5.21 11.80 16.13 16.77

For preconditioning linear systems, we do not observe cases in real-world SuiteSparse matrices where P(X)>0P(X)>0 is violated. However, as all ML models, AutoSpec has failure cases. From training with synthetic systems, we do see a portion of training spectra (<0.01%) where P(X)>0P(X)>0 is violated. We believe the rare cases shouldn't affect its practical usage.

[1] https://arxiv.org/abs/2008.01440

Reviewer TAvC · CommentOpenReview ↗

I thank the authors for their response which essentially addresses my main concerns through end-to-end runtime results, direct polynomial-fitting baselines, and clarifications on reproducibility, eigengap generalization, and positivity. Therefore, I increase my score.

Comments on the paper

1 comment
Authors · CommentOpenReview ↗

Rebuttal Summary

We are grateful to the reviewers and the Area Chair for their constructive feedback.

During the rebuttal period, we addressed the main concerns raised by the reviewers. Specifically, we added end-to-end runtime evaluations demonstrating that AutoSpec should incur only negligible setup overhead, expanded the experimental comparison with Chebyshev polynomial preconditioning on additional SuiteSparse and classical FEM benchmark matrices, and introduced direct polynomial-fitting baselines that further validate the advantages of AutoSpec. We also clarified the framing of the algorithm discovery objectives, and corrected the presentation issues identified during the review process. Following these revisions, all reviewers acknowledged that their primary concerns had been satisfactorily addressed.

In the final version of the paper, we will incorporate all additional experiments and analyses presented during the rebuttal. To ensure full reproducibility, we will also publicly release the complete source code upon publication.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…