The Nyström method is a matrix approximation technique that constructs a low-rank surrogate for a large, dense kernel matrix by sampling a subset of its columns (or rows). This method is foundational for scaling kernel methods, such as kernel PCA and Gaussian processes, to large datasets where forming the full O(n²) matrix is computationally prohibitive. The core idea is to use the sampled columns to approximate the entire matrix's range, effectively performing an approximate eigendecomposition.
Glossary
Nyström Method

What is the Nyström Method?
The Nyström method is a scalable technique for approximating large kernel matrices and their eigendecompositions, enabling efficient low-rank approximations for kernel-based machine learning.
The approximation's quality depends on the leverage scores or sampling strategy used to select columns. The method is closely related to CUR decomposition and randomized linear algebra techniques. In model compression, it can be viewed as a form of low-rank factorization applied to the implicit feature map of a kernel, reducing the computational and memory footprint for inference. It provides a principled trade-off between accuracy and scalability for large-scale non-linear models.
Key Features of the Nyström Method
The Nyström method is a sampling-based technique for constructing a low-rank approximation of a large kernel matrix, enabling scalable kernel methods and efficient eigendecomposition.
Column Subset Selection
The core mechanism of the Nyström method is the selection of a landmark subset of m columns (or rows) from the original n x n kernel matrix K. This subset, often chosen via uniform random sampling, k-means clustering, or leverage score sampling, forms the basis for the approximation. The selected columns are assembled into matrix C (size n x m), and the intersection of these columns and corresponding rows forms matrix W (size m x m). The full approximation is then constructed as K ≈ C * W^† * C^T, where W^† is the pseudoinverse of W.
Low-Rank Matrix Approximation
The method explicitly produces a rank-k approximation of the kernel matrix, where k ≤ m. The approximation is derived from the eigendecomposition of the small m x m matrix W. By extending these eigenvectors to the full dataset via the Nyström extension formula, the method approximates the top eigenvalues and eigenvectors of the full n x n matrix K without ever computing it entirely. This is critical for applications like kernel PCA, where the dominant eigenstructure defines the projection.
Computational and Memory Efficiency
The primary advantage is a drastic reduction in computational complexity and memory footprint.
- Complexity: Building the full kernel matrix is
O(n^2)in memory andO(n^2 * d)in computation (wheredis feature dimension). The Nyström method reduces this toO(n * m)memory and computation, wherem << n. - Eigendecomposition: Performing eigenanalysis on the full
KisO(n^3). With Nyström, it is performed onW, costingO(m^3), and the extension isO(n * m * k). This enables kernel methods on datasets with millions of points.
The Nyström Extension Formula
This is the mathematical engine that generalizes eigenvectors from the sample to the full dataset. If v is an eigenvector of W with eigenvalue λ, the corresponding approximated eigenvector u for the full matrix K is given by:
u = (1/√λ) * C * v
This formula allows the out-of-sample extension of kernel-based embeddings, enabling the embedding of new, unseen data points into the low-dimensional space defined by the landmark samples without retraining.
Approximation Error Bounds
The quality of the approximation is governed by the spectral norm error ||K - K_approx|| or the Frobenius norm error. Theoretical bounds show this error is related to how well the selected columns span the column space of K. Key factors include:
- Number of landmarks (
m): Error typically decreases asmincreases. - Sampling strategy: Adaptive methods (e.g., based on leverage scores) often provide tighter bounds than uniform random sampling.
- Matrix spectrum: Matrices with rapidly decaying eigenvalues (i.e., low effective rank) are approximated more accurately with fewer samples.
Connection to Inducing Points
In Gaussian Processes (GPs), the Nyström method is conceptually identical to the subset of regressors approximation and is closely related to sparse Gaussian Processes using inducing points. The selected landmark columns correspond to the inducing inputs or pseudo-inputs. The approximation K ≈ C * W^† * C^T is used to construct a low-rank approximation of the kernel covariance matrix, reducing the O(n^3) training complexity of exact GPs to O(n * m^2). This makes large-scale GP regression and classification feasible.
Nyström Method vs. Other Approximation Techniques
A comparison of the Nyström method against other prominent techniques for approximating large kernel, covariance, or general matrices, focusing on their mechanisms, computational properties, and typical use cases in machine learning.
| Feature / Metric | Nyström Method | Randomized SVD | Truncated SVD (Classical) | Random Projection |
|---|---|---|---|---|
Core Approximation Mechanism | Subset of columns (landmark points) | Randomized linear algebra & subspace iteration | Exact partial eigendecomposition | Johnson-Lindenstrauss Lemma & random matrices |
Primary Input Requirement | Kernel or Gram matrix (implicitly via data) | General matrix (dense or sparse) | General matrix (dense) | Data matrix or pairwise distances |
Explicit Matrix Required? | ||||
Optimality Guarantee (for fixed rank) | None (data-dependent) | High probability near-optimal | Optimal (Eckart–Young Theorem) | Probabilistic distance preservation |
Dominant Computational Cost | O(n m^2 + m^3) for n samples, m landmarks | O(n^2 k) for rank k, with constants | O(n^2 k) full SVD, O(nnz * k) sparse | O(n d k) for d dimensions, k projections |
Parallelization & Distributed Friendliness | High (column sampling is embarrassingly parallel) | Moderate (iterative matrix multiplications) | Low (inherently sequential Lanczos/QR) | High (embarrassingly parallel projections) |
Interpretability of Basis | Medium (basis vectors are actual data columns) | Low (basis is random linear combination) | High (basis is optimal orthogonal directions) | Low (basis is purely random) |
Common Application Context | Kernel methods (SVM, GP), spectral clustering | Large-scale PCA, low-rank matrix completion | Dense PCA, Latent Semantic Analysis | Fast distance preservation, sketching |
Streaming / Online Data Support | Possible via reservoir sampling of landmarks | Challenging, requires block updates | Not supported | Native support via incremental projection |
Theoretical Error Bounds | Based on column leverage scores | Strong probabilistic Frobenius norm bounds | Exact residual Frobenius/Spectral norm | Probabilistic ℓ2 distance preservation |
Frequently Asked Questions
The Nyström method is a cornerstone technique for scalable kernel methods and low-rank matrix approximation. This FAQ addresses its core mechanics, applications, and relationship to other factorization methods.
The Nyström method is a sampling-based technique for approximating a large, dense kernel matrix or any positive semi-definite matrix by using a subset of its columns. It works by selecting a small set of landmark points (or columns), computing the corresponding submatrix, and using this to construct a low-rank approximation of the full matrix. The core idea is that the relationships captured in the selected columns are representative of the entire dataset's structure. Mathematically, given a kernel matrix K of size n x n, one selects m landmark columns (m << n) to form submatrices C (n x m) and W (m x m). The Nyström approximation is then given by K ≈ C W† C^T, where W† is the pseudo-inverse of W. This avoids the O(n²) memory and O(n³) computational cost of working with the full matrix.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
The Nyström method is a cornerstone technique for scalable kernel methods and matrix approximation. These related concepts provide the mathematical and algorithmic context for its application.
Kernel Matrix
A kernel matrix (or Gram matrix) is a square, symmetric matrix where each entry represents the similarity between two data points in a high-dimensional feature space, as defined by a kernel function. It is the fundamental data structure for kernel methods like Support Vector Machines (SVMs) and Gaussian Processes.
- Construction: For a dataset of
npoints, the kernel matrixKhas dimensionsn x n, withK_ij = k(x_i, x_j). - Properties: It must be positive semi-definite (PSD) for many kernel methods to be valid.
- Challenge: Its
O(n²)size andO(n³)eigendecomposition cost make direct use infeasible for large datasets, which is precisely the problem the Nyström method addresses.
Low-Rank Approximation
Low-rank approximation is the process of representing a matrix using a product of smaller matrices whose combined rank k is much less than the original matrix's dimensions. This reduces storage from O(n²) to O(nk) and computational complexity for matrix-vector products.
- Goal: Find a matrix
Bof rankkthat minimizes||A - B||under a norm like the Frobenius norm. - Foundation: The Eckart–Young theorem proves the optimal rank-
kapproximation is given by the Truncated SVD. - Connection to Nyström: The Nyström method provides a specific, scalable way to generate a low-rank approximation of a kernel matrix by sampling a subset of its columns.
Randomized Linear Algebra
Randomized linear algebra is a class of algorithms that use randomness as a computational tool to efficiently solve large-scale matrix problems, such as low-rank approximation and linear regression. These methods often provide provable performance guarantees with high probability.
- Core Idea: Use random sampling or random projections to identify a subspace that captures the matrix's essential action.
- Key Techniques: Includes Randomized SVD, random projections (Johnson-Lindenstrauss lemma), and subspace iteration.
- Relation: The Nyström method is a randomized algorithm for kernel matrices, where the randomness comes from the column subset selection. Modern Nyström implementations often use sophisticated randomized sampling strategies.
Inducing Points / Landmarks
Inducing points (or landmarks) are a strategically chosen subset of the original data points used to summarize the entire dataset in scalable Gaussian process and kernel method approximations.
- Function: They act as a basis for a low-dimensional subspace that approximates the function space defined by the full kernel.
- Selection Methods: Can be selected uniformly at random, via k-means clustering, or through leverage score sampling to maximize representativeness.
- Direct Link: In the Nyström method, the columns of the kernel matrix corresponding to these inducing points form the submatrix used for the approximation. The quality of the approximation hinges on their selection.
Singular Value Decomposition (SVD)
Singular Value Decomposition (SVD) is the fundamental matrix factorization that decomposes any real or complex matrix A into three matrices: A = U Σ V*, where U and V are orthogonal/unitary and Σ is a diagonal matrix of non-negative singular values.
- Significance: It reveals the intrinsic geometric structure of a matrix, including its rank, range, and null space.
- Optimality: The Truncated SVD, which keeps only the top
ksingular values/vectors, provides the optimal rank-kapproximation (Eckart–Young theorem). - Nyström Connection: The Nyström method approximates the eigendecomposition of a PSD kernel matrix, which is directly related to its SVD. It effectively approximates the dominant eigenvectors/eigenvalues without computing the full matrix.
Kernel Ridge Regression
Kernel Ridge Regression (KRR) is a non-parametric regression technique that combines ridge regression (L2 regularization) with the kernel trick, allowing learning of complex, non-linear functions.
- Problem: Solving
(K + λI) α = y, whereKis then x nkernel matrix, is anO(n³)operation. - Scalability Bottleneck: The need to invert the full kernel matrix makes KRR intractable for large
n. - Primary Application: The Nyström method is frequently used to approximate
Kwith a low-rank matrix~K, transforming theO(n³)solve into anO(n k²)operation, enabling the application of KRR to massive datasets.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us