- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
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.
Paper formatting concerns
None
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.
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 Pd to approximate the inverse function through the objective λiPd(λi)≈1. We consider two fitting objectives:
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−10 relative residuals, recorded over 5 seeds.
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 λ obtained from cheap approximation procedures. In the training of our embedding model, we wonder whether we can use the approximation residuals 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.
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 λ and r as input to generate the embedding vector. We train the embedding of a 15-layer backbone and observe the convergence improvement ρlog.
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 is quadratic or rational in the iterate Vk (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.