arXiv:2609.08136cs.LGSep 2026

Manuscript Offprint

arXiv:2609.08136

GPU-Enabled Large-Scale Optimization Using Randomized Linear Algebra

Pratik Rathore, Zachary Frangella, Parth Nobel, Xuning Hu, Madeleine Udell

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

ABSTRACT

This paper introduces rlaopt, a PyTorch-based package for large-scale optimization and scientific computing using randomized numerical linear algebra (RandNLA). Despite substantial progress in RandNLA-based algorithms, few implementations combine GPU acceleration with a simple interface for specifying optimization problems. rlaopt addresses this gap by providing GPU-enabled solvers for positive-definite linear systems and convex empirical risk minimization with constraints and regularizers. These solvers use RandNLA to accelerate conjugate gradient (NystromPCG), operator splitting (NysADMM), and stochastic gradient methods (SAPPHIRE). Moreover, rlaopt includes a modeling language that lets users specify problems using natural mathematical syntax. rlaopt automatically checks compatibility with the selected solver and performs the required problem decomposition. The solvers also support differentiation through their iterations, enabling applications such as hyperparameter tuning. Experiments on ridge regression, bounded multinomial logistic regression, and bounded elastic net identify when randomized preconditioning improves performance and demonstrate substantial speedups from GPU execution. The package is open-source under an Apache license, with source code at https://github.com/udellgroup/rlaopt and version 0.1.0 available on PyPI.

Keywords randomized linear algebra, stochastic optimization, operator splitting, scientific computing, machine learning

1 Introduction

Large-scale optimization lies at the heart of modern machine learning and scientific computing. Datasets routinely contain millions of samples and features, giving rise to optimization problems whose sheer scale demands efficient algorithms and hardware-aware implementations. Over the past two decades, randomized numerical linear algebra (RandNLA) has emerged as a powerful toolkit for addressing these challenges, producing algorithms that exploit low-rank structure and stochastic approximations to dramatically reduce computational costs [Halko et al. 2011; Mahoney 2011; Woodruff 2014; Martinsson and Tropp 2020]. However, a significant gap remains between the strong algorithmic foundations of RandNLA and the software available to practitioners: existing implementations of RandNLA-based methods lack the ability to leverage modern parallel hardware such as GPUs, and do not provide a simple, user-friendly syntax for modeling optimization problems. Consequently, practitioners who wish to apply RandNLA-based algorithms to large-scale problems must piece together ad hoc implementations, limiting both accessibility and performance.

We now describe two important problem classes where RandNLA-based algorithms offer significant advantages, and where the lack of high-quality implementations is particularly acute.

*Both authors contributed equally to this work.

PREPRINT

Large-scale linear systems. Dense linear systems of the form (A+λI)x=b(A + \lambda I)x = b arise in kernel ridge regression [Schölkopf and Smola 2002], Gaussian process inference [Rasmussen and Williams 2005; Gardner et al. 2018], and other settings throughout machine learning and scientific computing. Direct methods such as Cholesky decomposition require O(n3)\mathcal{O}(n^3) computation and O(n2)\mathcal{O}(n^2) storage, limiting them to problems with n∼104n \sim 10^4. Iterative methods such as conjugate gradient scale more favorably, with per-iteration complexity O(n2)\mathcal{O}(n^2), but converge slowly when the problem is ill-conditioned—a common occurrence in practice. RandNLA-based preconditioning, in particular the randomized Nyström preconditioner [Frangella et al. 2023], dramatically accelerates convergence by constructing high-quality low-rank approximations of the kernel matrix at modest cost. The resulting preconditioned conjugate gradient (NyströmPCG) method combines the scalability of iterative methods with robustness to ill-conditioning.

Large-scale optimization. Classical optimization methods, such as interior-point methods, produce high-accuracy solutions but rely on expensive matrix factorizations that limit their applicability to large-scale problems [O'Donoghue et al. 2016; Stellato et al. 2020; Applegate et al. 2021]. On the other end of the spectrum, first-order methods such as stochastic gradient descent (SGD) and its variants [Robbins and Monro 1951; Johnson and Zhang 2013; Defazio et al. 2014; Allen-Zhu 2018] scale to massive datasets but suffer from slow convergence on ill-conditioned problems and sensitivity to hyperparameters such as the learning rate [Nemirovski et al. 2009]. Operator splitting frameworks such as the alternating direction method of multipliers (ADMM) [Boyd et al. 2011] naturally handle constraints and nonsmooth regularizers, but also require the solution of subproblems that can be ill-conditioned. RandNLA techniques integrate naturally with both stochastic gradient methods and operator splitting: Nyström-based preconditioning accelerates ADMM by improving the conditioning of linear system subproblems [Zhao et al. 2022; Diamandis et al. 2026], and randomized curvature estimates yield preconditioned stochastic gradient methods with reliable default hyperparameters and fast convergence [Frangella et al. 2024b,a; Sun et al. 2025]. Crucially, the dominant operations in these RandNLA-enhanced methods are matrix-matrix and matrix-vector products, which are highly amenable to GPU acceleration.

To address the gap between RandNLA algorithms and practical software, we develop rlaopt, a PyTorch-based package for large-scale optimization and scientific computing. rlaopt includes GPU-enabled implementations of NyströmPCG for large-scale positive-definite linear systems, NysADMM [Zhao et al. 2022] for constrained convex optimization, and SAPPHIRE [Frangella et al. 2024a; Sun et al. 2025] for empirical risk minimization. To make these solvers accessible, we create a flexible modeling language inspired by disciplined convex programming [Grant et al. 2006] and CVXPY [Diamond and Boyd 2016] that allows users to specify optimization problems using natural mathematical syntax. rlaopt also supports differentiating through the solver, making it suitable for modern machine learning pipelines that require end-to-end gradient computation. Our implementation is open-sourced under an Apache license and is available at https://github.com/udellgroup/rlaopt. Documentation can be found at https://rlaopt.readthedocs.io, and version 0.1.0 is available on PyPI.

References (33)