# Eigenvalues and eigenvectors

> Source: https://aiwiki.ai/wiki/eigenvalue
> Updated: 2026-11-18
> Fact-checked: 2026-11-18
> Categories: Algorithms, Machine Learning, Mathematics
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Eigenvalues and eigenvectors." aiwiki.ai, 18 Nov 2026. https://aiwiki.ai/wiki/eigenvalue
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Eigenvalues and eigenvectors** describe the directions that a square matrix leaves unchanged apart from scaling: a nonzero vector $$x$$ is an eigenvector of a matrix $$A$$ when $$Ax = \lambda x$$ for some number $$\lambda$$, and that number is the corresponding eigenvalue.[1][2] Most vectors change direction when multiplied by a matrix, so the few that do not, together with the factors by which they are stretched, shrunk or reversed, reveal much of the matrix's structure.[1] The concept is central to [linear algebra](https://aiwiki.ai/wiki/linear_algebra) and to [machine learning](https://aiwiki.ai/wiki/machine_learning), where eigenvectors of a covariance matrix define the axes of [principal component analysis](https://aiwiki.ai/wiki/principal_component_analysis), eigenvectors of graph matrices drive spectral clustering, graph convolutions and [PageRank](https://aiwiki.ai/wiki/pagerank), and eigenvalues of the Hessian of a [loss function](https://aiwiki.ai/wiki/loss_function) measure the curvature that governs how [gradient descent](https://aiwiki.ai/wiki/gradient_descent) behaves.[3][4][18][5][6][7]

The modern terms come from the German *Eigenwert* and *Eigenfunktion*, which David Hilbert used in his 1904 work on integral equations; older English names include "latent root" (introduced by James Joseph Sylvester in 1883) and "characteristic value".[8] Because, by the Abel-Ruffini theorem, no finite procedure gives the roots of a general polynomial of degree higher than four, eigenvalues of general matrices are computed by iterative algorithms, from the power method to the QR algorithm and Lanczos-type Krylov methods that numerical libraries use today.[9][12][14]

<figure>
<img src="/images/media-2026-11-18-eigenvalue-ce1d7c62e410.png" alt="Axes with a red vector x from the origin and a longer, lighter vector along the same line labelled Ax = λx" width="1200" height="960" />
<figcaption>Diagram of the eigenvalue equation Ax = λx: multiplying the eigenvector x by A scales it by λ along the same line through the origin. Lyudmil Antonov Lantonov 16:35, 13 March 2008 (UTC), via <a href="https://commons.wikimedia.org/wiki/File:Eigenvalue_equation.svg">Wikimedia Commons</a>, <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0</a>.</figcaption>
</figure>

## Definition

Let $$A$$ be an $$n \times n$$ matrix. A nonzero vector $$x$$ is an **eigenvector** of $$A$$ if multiplying by $$A$$ changes only its length (and possibly its sign):

$$
A x = \lambda x, \qquad x \neq 0.
$$

The scalar $$\lambda$$ is the **eigenvalue** that belongs to $$x$$.[1][2] Any nonzero multiple $$s x$$ of an eigenvector is also an eigenvector with the same eigenvalue, so software and textbooks usually report unit-length eigenvectors.[2] The eigenvectors that share one eigenvalue, together with the zero vector, form the nullspace of $$A - \lambda I$$, often called the eigenspace of $$\lambda$$.[1][5] A zero eigenvalue is allowed: $$Ax = 0x$$ means that $$x$$ lies in the nullspace of $$A$$, and a matrix has $$0$$ as an eigenvalue exactly when it is singular.[1][2] The equation above defines right eigenvectors; a left eigenvector satisfies $$v^\top A = \lambda v^\top$$, and most applications use right eigenvectors.[2]

Geometrically, the matrix of a linear map acts on each eigenvector as a pure scaling by its eigenvalue. If $$\lambda$$ is between 0 and 1 the vector is shrunk, if it is greater than 1 it is stretched, and if it is negative the vector's direction is reversed.[1]

### The characteristic polynomial

Rewriting $$Ax = \lambda x$$ as $$(A - \lambda I)x = 0$$ shows that $$\lambda$$ is an eigenvalue exactly when $$A - \lambda I$$ is singular, which is the same as

$$
\det(A - \lambda I) = 0.
$$

The left side is the **characteristic polynomial** of $$A$$, a polynomial of degree $$n$$ in $$\lambda$$. An $$n \times n$$ matrix therefore has $$n$$ eigenvalues when they are counted with repetition. Once an eigenvalue is known, its eigenvectors are found by solving $$(A - \lambda I)x = 0$$.[1]

Gilbert Strang's textbook uses the following $$2 \times 2$$ Markov matrix as its first example:[1]

$$
A = \begin{bmatrix} 0.8 & 0.3 \\ 0.2 & 0.7 \end{bmatrix}, \qquad \det(A - \lambda I) = \lambda^2 - \tfrac{3}{2}\lambda + \tfrac{1}{2} = (\lambda - 1)\left(\lambda - \tfrac{1}{2}\right).
$$

Its eigenvalues are $$\lambda_1 = 1$$ and $$\lambda_2 = 1/2$$, with eigenvectors $$x_1 = (0.6, 0.4)$$ and $$x_2 = (1, -1)$$. Every column of $$A$$ sums to 1, which is why 1 is an eigenvalue, and $$x_1$$ is the steady state that the columns of high powers $$A^k$$ approach.[1]

### Basic properties

The following facts hold for any square matrix with eigenvalues $$\lambda_1, \ldots, \lambda_n$$ (counted with repetition):[1][2]

- **Trace and determinant.** The sum of the eigenvalues equals the trace (the sum of the diagonal entries), and their product equals the determinant.
- **Powers and inverses.** If $$Ax = \lambda x$$, then $$A^2 x = \lambda^2 x$$, $$A^{-1} x = \lambda^{-1} x$$ (when $$A$$ is invertible) and $$(A + cI)x = (\lambda + c)x$$, all with the same eigenvector $$x$$.
- **Triangular matrices.** The eigenvalues of a triangular matrix are its diagonal entries.
- **Row operations change eigenvalues.** Unlike the solution of $$Ax = b$$, the eigenvalues are not preserved by elimination: adding one row to another usually changes them.
- **Products and sums.** In general the eigenvalues of $$AB$$ are not products of eigenvalues of $$A$$ and $$B$$, and the eigenvalues of $$A + B$$ are not sums. The products do appear when $$A$$ and $$B$$ share the same $$n$$ independent eigenvectors, which Strang states happens exactly when $$AB = BA$$.
- **Complex eigenvalues.** A real matrix can have complex eigenvalues. The 90-degree rotation matrix has eigenvalues $$i$$ and $$-i$$, since no real vector keeps its direction under a rotation.

Some special matrices have characteristic eigenvalues:[1]

| Matrix type | Eigenvalues |
|---|---|
| Projection ($$P^2 = P$$) | 0 and 1 |
| Reflection | 1 and -1 |
| Rotation by angle $$\theta$$ (2 x 2) | $$e^{i\theta}$$ and $$e^{-i\theta}$$ |
| Orthogonal ($$Q^\top Q = I$$) | all have absolute value 1 |
| Permutation | all have absolute value 1 |
| Skew-symmetric ($$A^\top = -A$$) | purely imaginary |
| Markov (columns sum to 1) | 1 is an eigenvalue |
| Singular | 0 is an eigenvalue |
| Triangular | the diagonal entries |

<figure class="embedvideo">
<iframe src="https://www.youtube-nocookie.com/embed/PFDu9oVAE-g" title="Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra"></iframe>
<figcaption>"Eigenvectors and eigenvalues | Chapter 14, Essence of linear algebra", video from 3Blue1Brown, published September 15, 2016. <a href="https://www.youtube.com/watch?v=PFDu9oVAE-g">Watch on YouTube</a>.</figcaption>
</figure>

## Eigendecomposition

If an $$n \times n$$ matrix has $$n$$ linearly independent eigenvectors $$v^{(1)}, \ldots, v^{(n)}$$ with eigenvalues $$\lambda_1, \ldots, \lambda_n$$, they can be placed as the columns of a matrix $$V$$, and the matrix factors as

$$
A = V \operatorname{diag}(\lambda) V^{-1}.
$$

This **eigendecomposition** expresses $$A$$ as a change of basis into eigenvector coordinates, a scaling of each coordinate by its eigenvalue, and a change back.[2] Not every matrix has one. Some matrices with repeated eigenvalues have too few independent eigenvectors to form a basis (Strang notes that some $$2 \times 2$$ matrices have only one line of eigenvectors), and others have eigendecompositions only over the complex numbers.[1][2]

The decomposition makes powers cheap. Strang's example computes $$A^{100}$$ for the Markov matrix above from its eigenvalues rather than by multiplying 100 matrices: the component along $$x_1$$ is multiplied by $$1^{100} = 1$$ and the component along $$x_2$$ by $$(1/2)^{100}$$, which is negligible.[1] The same reasoning explains why repeated multiplication by a matrix amplifies the eigenvector of largest absolute eigenvalue, the basis of the power method described below.[9]

### Symmetric matrices and the spectral theorem

Real symmetric matrices, which include covariance matrices, Hessians of smooth functions and graph Laplacians, are the most important case in machine learning.[3][6][4] Every real symmetric $$n \times n$$ matrix has exactly $$n$$ real eigenvalues, and its eigenvectors can be chosen to be orthonormal.[3] It can therefore be written as

$$
A = Q \Lambda Q^\top,
$$

where $$Q$$ is an orthogonal matrix whose columns are eigenvectors and $$\Lambda$$ is the diagonal matrix of eigenvalues. Such a matrix scales space by $$\lambda_i$$ along each eigenvector direction. The decomposition is unique (once eigenvalues are sorted) only if all eigenvalues are distinct; when an eigenvalue repeats, any orthonormal basis of its eigenspace works.[2] The fact that the roots of a symmetric determinant are real goes back to a paper Augustin-Louis Cauchy published in 1829.[8]

For a real symmetric matrix, the quadratic form $$f(x) = x^\top A x$$ restricted to unit vectors takes the value $$\lambda_i$$ at each unit eigenvector, its maximum is the largest eigenvalue and its minimum is the smallest.[2] This variational property is what links eigenvectors to optimization problems such as PCA. The signs of the eigenvalues classify the matrix:[2]

| All eigenvalues are | Name | Consequence |
|---|---|---|
| Positive | Positive definite | $$x^\top A x > 0$$ for every $$x \neq 0$$ |
| Positive or zero | Positive semidefinite | $$x^\top A x \ge 0$$ for every $$x$$ |
| Negative | Negative definite | $$x^\top A x < 0$$ for every $$x \neq 0$$ |
| Negative or zero | Negative semidefinite | $$x^\top A x \le 0$$ for every $$x$$ |

### Relation to singular values

The eigendecomposition applies only to square matrices. The [singular value decomposition](https://aiwiki.ai/wiki/singular_value_decomposition) (SVD) applies to every real matrix, and the two are linked: for any matrix $$Y$$, the right singular vectors are eigenvectors of $$Y^\top Y$$, the left singular vectors are eigenvectors of $$Y Y^\top$$, and the singular values are the non-negative square roots of the nonzero eigenvalues those two matrices share.[2][3]

## History and terminology

The eigenvalue problem developed in roughly the reverse of the order in which it is now taught. According to the MacTutor history of mathematical terms, a polynomial equation arising from the differential equations of celestial mechanics came first (around 1780), was expressed with determinants around 1830, was associated with matrices around 1880 and with integral equations around 1900, and the modern presentation that starts from $$Ax = \lambda x$$ became established around 1940.[8] That celestial origin left the name "secular equation", from the problem of the long-run behavior of the solar system studied by Laplace and Lagrange; C. G. J. Jacobi's 1846 paper on his eigenvalue algorithm is an early use of the term.[8][9]

The vocabulary was unsettled for decades. Paul Halmos wrote in 1958 that "Almost every combination of the adjectives proper, latent, characteristic, eigen and secular, with the nouns root, number and value, has been used in the literature for what we call a proper value".[8]

| Year | Development |
|---|---|
| 1829 | Cauchy shows that the roots of a symmetric determinant are real |
| 1840 | Cauchy introduces *l'équation caractéristique* (characteristic equation) |
| 1846 | Jacobi computes eigenvalues of symmetric matrices with plane rotations |
| 1874 | Frobenius uses *die charakteristische Determinante* |
| 1883 | Sylvester introduces "latent roots" of a matrix |
| 1904 | Hilbert uses *Eigenfunktion* and *Eigenwert* in work on integral equations |
| 1924 | *Eigenvektor* appears in Courant and Hilbert's *Methoden der Mathematischen Physik* |
| 1929 | John von Neumann uses *Eigenwert* in the modern sense, later the dominant usage |
| 1946 | H. and B. Jeffreys treat eigenvalue, characteristic value and latent root as synonyms |

Sources for the table: [8][9].

Hilbert's original *Eigenwerte* were the reciprocals of what are now called eigenvalues, because his starting point was an equation of the form $$(I - \lambda A)x = y$$; von Neumann's 1929 paper on Hermitian operators defined the term in the modern way. The matrix mechanics of the 1920s, written in the language of Hilbert's school, spread the "eigen" terms through physics, and by 1946 eigenvalue was being used as a synonym for characteristic value and latent root.[8] Sylvester described latent roots as "latent in a somewhat similar sense as vapour may be said to be latent in water or smoke in a tobacco-leaf".[8]

## Computing eigenvalues

The characteristic polynomial is a definition, not a practical algorithm. Its coefficients cannot be computed stably from determinants, and even exact coefficients can be a poor route to the roots, because small changes in the coefficients may move the roots a great deal.[9] There is also a theoretical barrier: by the Abel-Ruffini theorem, no finite procedure computes the roots of a general polynomial of degree greater than four, so every eigenvalue algorithm for general matrices must be iterative.[9]

### Power iteration

The simplest method multiplies a starting vector by $$A$$ over and over and normalizes it. The component along the eigenvector whose eigenvalue is largest in absolute value grows relative to the others, so the vector turns toward that eigenvector. Its speed depends on the ratio of the second-largest to the largest eigenvalue in absolute value, which in many applications is close to 1 and makes plain power iteration slow.[9] Householder, whose account Golub and van der Vorst follow, called it "simple iteration" and attributed its first treatment to Ch. Müntz (1913), while E. Bodewig attributed the power method to R. von Mises, whose 1929 paper with H. Pollaczek-Geiringer they cite. Wielandt proposed the inverse power method, which works with $$(A - \sigma I)^{-1}$$ to find the eigenvalue nearest a shift $$\sigma$$, in 1944.[9] Power iteration survives mainly as a building block inside better methods, and in machine learning wherever only the top eigenvalue or singular value is needed, for example in PageRank, in Hessian analysis and in spectral normalization.[5][10][11]

### Dense matrices: Jacobi, Householder and QR

Jacobi's 1846 method diagonalizes a symmetric matrix through a sequence of plane rotations, and from 1950 on it received much attention.[9] Givens (1954) and Householder (1958) showed how orthogonal transformations reduce a symmetric matrix to tridiagonal form in a finite number of steps (a nonsymmetric matrix can be brought to upper Hessenberg form in the same way), a reduced form on which later computations are more efficient.[9]

The method that came to dominate dense problems is the **QR algorithm**. Rutishauser's LR algorithm (1958) repeatedly factored a matrix and multiplied the factors in reverse order; replacing the LR factorization with the more stable QR factorization gave the QR algorithm. J. G. F. Francis developed it in 1961 and 1962, recognizing that a QR step keeps a Hessenberg matrix in Hessenberg form and using implicit shifts, and V. N. Kublanovskaya discovered the same process independently in 1961, without exploiting the Hessenberg form.[9] With suitable shifts its order of convergence is cubic for symmetric matrices and quadratic for nonsymmetric ones.[9]

### Large sparse matrices: Lanczos and Arnoldi

For large sparse matrices, where only a few eigenvalues are needed, methods build an orthonormal basis of the Krylov subspace spanned by $$x, Ax, A^2x, \ldots$$. Lanczos proposed his method in 1950, and Arnoldi gave a reduction algorithm for nonsymmetric matrices in 1951. For years both were viewed either as direct reduction methods that could not compete with Householder's, or as iterative methods that could not be safely automated, partly because Wilkinson showed that rounding errors could spoil the Lanczos process badly.[9] Lanczos-type methods are used for large sparse problems today; SciPy's sparse symmetric eigensolver, for example, uses an implicitly restarted Lanczos method.[14]

### Software

The EISPACK library of the early 1970s concentrated on eigenvalue problems, and LAPACK replaced it in 1995.[9] Modern scientific Python wraps these libraries: [NumPy](https://aiwiki.ai/wiki/numpy)'s `numpy.linalg.eig` calls the LAPACK `_geev` routines for general square matrices and returns eigenvalues that are not necessarily ordered and may be complex, while `numpy.linalg.eigh` uses the LAPACK `_syevd` and `_heevd` routines for real symmetric or complex Hermitian matrices and returns eigenvalues in ascending order.[12][13] [SciPy](https://aiwiki.ai/wiki/scipy)'s `scipy.sparse.linalg.eigsh` finds a requested number $$k$$ of eigenvalues of a large real symmetric matrix through ARPACK's implicitly restarted Lanczos method; for complex Hermitian input, which has no specialized routine, it calls the general solver `eigs`.[14]

| Method | Introduced | Typical use |
|---|---|---|
| Jacobi rotations | 1846 (Jacobi) | Dense symmetric matrices, high relative accuracy |
| Power iteration | 1913 (Müntz); 1929 (von Mises and Pollaczek-Geiringer) | Dominant eigenvalue only |
| Inverse iteration | 1944 (Wielandt) | Eigenvalue nearest a shift; eigenvectors |
| Lanczos | 1950 (Lanczos) | A few eigenvalues of large sparse symmetric matrices |
| Arnoldi | 1951 (Arnoldi) | A few eigenvalues of large sparse nonsymmetric matrices |
| QR algorithm | 1961 (Francis; Kublanovskaya) | All eigenvalues of dense matrices |

Sources for the table: [9].

## Uses in machine learning

### Principal component analysis

[Principal component analysis](https://aiwiki.ai/wiki/principal_component_analysis) (PCA), whose earliest literature dates from Karl Pearson (1901) and Harold Hotelling (1933), looks for linear combinations of the $$p$$ variables in a dataset that have maximal variance and are uncorrelated with each other.[3] The variance of a combination $$Xa$$ is $$a^\top S a$$, where $$S$$ is the sample covariance matrix. Maximizing it over unit vectors with a Lagrange multiplier gives $$S a = \lambda a$$, so the coefficient vector $$a$$ must be an eigenvector of $$S$$ and the variance it captures equals the eigenvalue $$\lambda$$.[3] The first principal component is the eigenvector with the largest eigenvalue, and the full set of eigenvectors gives up to $$p$$ successive uncorrelated components.[3] Because the eigenvalues sum to the trace of $$S$$, which is the total variance, the ratio $$\lambda_k / \operatorname{tr}(S)$$ is the proportion of variance explained by component $$k$$, and a common rule keeps enough components to reach a chosen percentage.[3] The same components can be computed from the SVD of the centered data matrix, whose squared singular values are proportional to the eigenvalues of the covariance matrix.[3] The *Deep Learning* textbook by Goodfellow, Bengio and Courville derives PCA the same way, with the optimal encoding direction given by the eigenvector of $$X^\top X$$ with the largest eigenvalue.[2]

An early example in [computer vision](https://aiwiki.ai/wiki/computer_vision) was the "eigenfaces" method of Matthew Turk and Alex Pentland (1991). They treated each face image as a point in a very high-dimensional space (a 256 by 256 image becomes a vector of dimension 65,536), computed the eigenvectors of the covariance matrix of a set of training faces, kept the eigenfaces with the largest eigenvalues to define a low-dimensional "face space", and recognized a new face by projecting it into that space and comparing its weights with those of known people.[15]

### Spectral clustering and graph learning

Graph methods use the eigenvectors of the **graph Laplacian**. For an undirected graph with weighted adjacency matrix $$W$$ and diagonal degree matrix $$D$$, the unnormalized Laplacian is $$L = D - W$$. It is symmetric and positive semidefinite, its smallest eigenvalue is 0 with the constant vector as eigenvector, and the multiplicity of the eigenvalue 0 equals the number of connected components of the graph.[4] Spectral clustering exploits this: it builds a similarity graph over the data points, computes the eigenvectors of the $$k$$ smallest eigenvalues of a Laplacian (the unnormalized one, or the normalized variants used in the algorithms of Shi and Malik and of Ng, Jordan and Weiss), uses them as new coordinates for the points, and runs [k-means](https://aiwiki.ai/wiki/k-means) in that space.[4] Ulrike von Luxburg's tutorial describes the method as easy to implement with standard linear algebra software and reports that it often does better than traditional algorithms such as k-means.[4] The "eigengap heuristic" picks the number of clusters $$k$$ so that the first $$k$$ eigenvalues are small and the $$(k+1)$$-th is relatively large; the tutorial reports that it works well for clearly separated clusters and gives ambiguous answers for overlapping ones.[4]

The same eigenvectors define a Fourier transform on graphs, which underlies spectral [graph neural networks](https://aiwiki.ai/wiki/graph_neural_network). Joan Bruna and colleagues proposed in 2013 a convolutional architecture built on the spectrum of the graph Laplacian.[16] Michaël Defferrard, Xavier Bresson and Pierre Vandergheynst formulated graph CNNs in terms of spectral graph theory with fast localized filters (NIPS 2016).[17] Thomas Kipf and Max Welling's graph convolutional network (ICLR 2017) starts from spectral convolutions $$U g_\theta U^\top x$$, where $$U$$ holds the eigenvectors of the normalized Laplacian, and observes that multiplying by $$U$$ costs $$O(N^2)$$ and that computing the eigendecomposition may be prohibitively expensive for large graphs. They therefore use a first-order approximation of Chebyshev polynomial filters that never computes eigenvectors at all.[18]

### PageRank and Markov chains

A [Markov chain](https://aiwiki.ai/wiki/markov_chain) with a column-stochastic transition matrix (non-negative entries, columns summing to 1) always has 1 as an eigenvalue, and its steady state is the corresponding eigenvector.[5][1] Google's PageRank ranks web pages by such an eigenvector of a weighted link matrix, which Kurt Bryan and Tanya Leise analyzed in a 2006 *SIAM Review* article titled "The $25,000,000,000 Eigenvector".[5] Because the raw link matrix of a web with disconnected parts can have several independent eigenvectors for eigenvalue 1, PageRank mixes it with a uniform matrix, $$M = (1 - m)A + mS$$, where the value of $$m$$ originally used by Google is reportedly 0.15; the resulting matrix is positive, and a special case of the Perron-Frobenius theorem then guarantees a unique ranking vector.[5] For a matrix with billions of rows, Bryan and Leise describe the power method (with modifications) as a reasonable way to compute the eigenvector.[5]

### Hessian eigenvalues and optimization

The **Hessian matrix** of second derivatives of a loss function is symmetric wherever the second partial derivatives are continuous, so it has real eigenvalues and an orthogonal basis of eigenvectors. The second derivative in a unit direction $$d$$ is $$d^\top H d$$: it equals an eigenvalue when $$d$$ is the matching eigenvector, and otherwise it is a weighted average of the eigenvalues.[6] Eigenvalues therefore measure curvature, and they are used in three main ways.

**Classifying critical points.** At a point where the gradient is zero, a Hessian with all positive eigenvalues indicates a local minimum, all negative eigenvalues a local maximum, and eigenvalues of both signs a saddle point. The test is inconclusive when the nonzero eigenvalues share a sign but at least one eigenvalue is zero.[6] Yann Dauphin and colleagues argued in 2014 that in high-dimensional [neural network](https://aiwiki.ai/wiki/neural_network) training, saddle points rather than poor local minima are the main obstacle, and proposed a "saddle-free Newton method" to escape them.[19]

**Choosing step sizes.** For a quadratic approximation of the loss, the best step along the gradient is $$g^\top g / g^\top H g$$, which in the worst case equals $$1/\lambda_{\max}$$, so the Hessian eigenvalues set the scale of the [learning rate](https://aiwiki.ai/wiki/learning_rate).[6] On a quadratic objective, gradient descent with step size $$\eta$$ diverges if any eigenvalue of the Hessian exceeds $$2/\eta$$.[7] A large ratio between the largest and smallest eigenvalues (the condition number) makes gradient descent slow, because a step small enough to avoid overshooting in high-curvature directions makes little progress in low-curvature ones.[6]

**Studying the loss landscape.** Levent Sagun, Léon Bottou and Yann LeCun reported in 2016 that the Hessian eigenvalues of trained networks split into a "bulk" concentrated near zero and a few "edges" scattered away from zero, with the bulk reflecting over-parametrization and the edges depending on the input data.[20] A 2017 follow-up presented evidence that adding parameters merely scales the bulk while changing the data affects only the outliers.[21] Jeremy Cohen and colleagues (ICLR 2021) found that full-batch gradient descent on neural networks typically operates at the "Edge of Stability", where the largest Hessian eigenvalue (which they call the sharpness) rises until it hovers just above $$2/\eta$$ while the loss still decreases over long timescales, behavior the authors describe as inconsistent with several widespread presumptions in optimization.[7] Yushun Zhang and colleagues (NeurIPS 2024) attributed the gap between SGD and [Adam](https://aiwiki.ai/wiki/adam_optimizer) on [transformers](https://aiwiki.ai/wiki/transformers) to "block heterogeneity", meaning Hessian spectra that vary dramatically across parameter blocks, which a single learning rate cannot handle.[22] Eigendecompositions also appear inside optimizers: Nikhil Vyas and colleagues (2024) showed that Shampoo, a higher-order preconditioning method, is equivalent to running Adafactor in the eigenbasis of Shampoo's preconditioner, and proposed SOAP, which runs Adam in that slowly changing eigenbasis and adds only one hyperparameter to Adam, the frequency at which the preconditioner is updated.[26]

For a network with millions of parameters the Hessian cannot be formed explicitly, so these studies work from Hessian-vector products, which cost about as much as one backpropagation pass.[10] Behrooz Ghorbani, Shankar Krishnan and Ying Xiao estimated the full Hessian eigenvalue density of ImageNet-scale networks with stochastic Lanczos quadrature and observed large isolated eigenvalues appearing quickly in networks without [batch normalization](https://aiwiki.ai/wiki/batch_normalization), an effect almost absent when batch normalization was used.[23] The open-source PyHessian framework computes top eigenvalues by power iteration, the trace by Hutchinson's method and the spectral density by stochastic Lanczos quadrature; its authors reported that batch normalization does not necessarily make the loss landscape smoother, especially for shallower networks.[10]

### Recurrent networks and gradient stability

In a [recurrent neural network](https://aiwiki.ai/wiki/recurrent_neural_network), the gradient that flows back through time is a product of one Jacobian matrix per time step, each involving the recurrent weight matrix. Razvan Pascanu, Tomas Mikolov and Yoshua Bengio analyzed this product with the power iteration method and showed that for a linear recurrence it is sufficient for the largest eigenvalue (in absolute value) of the recurrent weight matrix to be smaller than 1 for long-term gradient components to vanish, and necessary for it to be larger than 1 for gradients to explode; with a nonlinearity whose derivative is bounded by $$\gamma$$, the threshold becomes $$1/\gamma$$ (with $$\gamma = 1$$ for tanh and $$1/4$$ for the sigmoid).[24] This analysis underlies their gradient-clipping remedy for [exploding gradients](https://aiwiki.ai/wiki/exploding_gradient_problem) and their treatment of the [vanishing gradient problem](https://aiwiki.ai/wiki/vanishing_gradient_problem).[24]

### Spectral normalization and weight spectra

Spectral normalization, introduced by Takeru Miyato and colleagues (ICLR 2018) to stabilize the discriminator of a [generative adversarial network](https://aiwiki.ai/wiki/generative_adversarial_network), divides each weight matrix $$W$$ by its spectral norm $$\sigma(W)$$, the largest singular value, which bounds each layer's Lipschitz constant. The largest singular value of $$W$$ is the square root of the largest eigenvalue of $$W^\top W$$, and rather than computing a full SVD at every step, the method estimates it with power iteration.[11][2]

Eigenvalue spectra are also used to diagnose trained models. Charles Martin and Michael Mahoney applied random matrix theory to the empirical spectral density of layer weight matrices in networks such as AlexNet and Inception, and argued that training implicitly produces a form of self-regularization visible in heavy-tailed spectra.[25]

## See also

- [Singular value decomposition](https://aiwiki.ai/wiki/singular_value_decomposition)
- [Principal component analysis](https://aiwiki.ai/wiki/principal_component_analysis)
- [Dimensionality reduction](https://aiwiki.ai/wiki/dimensionality_reduction)
- [Matrix factorization](https://aiwiki.ai/wiki/matrix_factorization)
- [Graph neural network](https://aiwiki.ai/wiki/graph_neural_network)
- [Neural tangent kernel](https://aiwiki.ai/wiki/neural_tangent_kernel)

## References

1. Gilbert Strang. "Introduction to Eigenvalues" (Section 6.1 of Introduction to Linear Algebra, Fifth Edition). Wellesley-Cambridge Press, 2016. https://math.mit.edu/~gs/linearalgebra/ila5/linearalgebra5_6-1.pdf
2. Ian Goodfellow, Yoshua Bengio and Aaron Courville. "Linear Algebra" (Chapter 2 of Deep Learning). MIT Press, 2016. https://www.deeplearningbook.org/contents/linear_algebra.html
3. Ian T. Jolliffe and Jorge Cadima. "Principal component analysis: a review and recent developments". Philosophical Transactions of the Royal Society A, 374, 2016. https://doi.org/10.1098/rsta.2015.0202
4. Ulrike von Luxburg. "A Tutorial on Spectral Clustering". Statistics and Computing 17(4), 2007 (arXiv:0711.0189). https://arxiv.org/abs/0711.0189
5. Kurt Bryan and Tanya Leise. "The $25,000,000,000 Eigenvector: The Linear Algebra behind Google". SIAM Review 48(3), 569-581, 2006. https://doi.org/10.1137/050623280
6. Ian Goodfellow, Yoshua Bengio and Aaron Courville. "Numerical Computation" (Chapter 4 of Deep Learning). MIT Press, 2016. https://www.deeplearningbook.org/contents/numerical.html
7. Jeremy M. Cohen, Simran Kaur, Yuanzhi Li, J. Zico Kolter and Ameet Talwalkar. "Gradient Descent on Neural Networks Typically Occurs at the Edge of Stability". ICLR 2021 (arXiv:2103.00065). https://arxiv.org/abs/2103.00065
8. MacTutor History of Mathematics. "Earliest Known Uses of Some of the Words of Mathematics (E)", entry "Eigenvalue, eigenfunction, eigenvector and related terms". University of St Andrews. https://mathshistory.st-andrews.ac.uk/Miller/mathword/e/
9. Gene H. Golub and Henk A. van der Vorst. "Eigenvalue computation in the 20th century". Journal of Computational and Applied Mathematics 123, 35-65, 2000. https://doi.org/10.1016/S0377-0427(00)00413-1
10. Zhewei Yao, Amir Gholami, Kurt Keutzer and Michael Mahoney. "PyHessian: Neural Networks Through the Lens of the Hessian". IEEE BigData 2020 (arXiv:1912.07145). https://arxiv.org/abs/1912.07145
11. Takeru Miyato, Toshiki Kataoka, Masanori Koyama and Yuichi Yoshida. "Spectral Normalization for Generative Adversarial Networks". ICLR 2018 (arXiv:1802.05957). https://arxiv.org/abs/1802.05957
12. NumPy. "numpy.linalg.eig". NumPy v2.5 Manual. https://numpy.org/doc/stable/reference/generated/numpy.linalg.eig.html
13. NumPy. "numpy.linalg.eigh". NumPy v2.5 Manual. https://numpy.org/doc/stable/reference/generated/numpy.linalg.eigh.html
14. SciPy. "scipy.sparse.linalg.eigsh". SciPy v1.18.0 Manual. https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.eigsh.html
15. Matthew Turk and Alex Pentland. "Eigenfaces for Recognition". Journal of Cognitive Neuroscience 3(1), 71-86, 1991. https://doi.org/10.1162/jocn.1991.3.1.71
16. Joan Bruna, Wojciech Zaremba, Arthur Szlam and Yann LeCun. "Spectral Networks and Locally Connected Networks on Graphs". arXiv:1312.6203, 2013. https://arxiv.org/abs/1312.6203
17. Michaël Defferrard, Xavier Bresson and Pierre Vandergheynst. "Convolutional Neural Networks on Graphs with Fast Localized Spectral Filtering". Advances in Neural Information Processing Systems 29, 2016 (arXiv:1606.09375). https://arxiv.org/abs/1606.09375
18. Thomas N. Kipf and Max Welling. "Semi-Supervised Classification with Graph Convolutional Networks". ICLR 2017 (arXiv:1609.02907). https://arxiv.org/abs/1609.02907
19. Yann Dauphin, Razvan Pascanu, Caglar Gulcehre, Kyunghyun Cho, Surya Ganguli and Yoshua Bengio. "Identifying and attacking the saddle point problem in high-dimensional non-convex optimization". arXiv:1406.2572, 2014. https://arxiv.org/abs/1406.2572
20. Levent Sagun, Leon Bottou and Yann LeCun. "Eigenvalues of the Hessian in Deep Learning: Singularity and Beyond". arXiv:1611.07476, 2016. https://arxiv.org/abs/1611.07476
21. Levent Sagun, Utku Evci, V. Ugur Guney, Yann Dauphin and Leon Bottou. "Empirical Analysis of the Hessian of Over-Parametrized Neural Networks". ICLR 2018 Workshop Track (arXiv:1706.04454). https://arxiv.org/abs/1706.04454
22. Yushun Zhang, Congliang Chen, Tian Ding, Ziniu Li, Ruoyu Sun and Zhi-Quan Luo. "Why Transformers Need Adam: A Hessian Perspective". Advances in Neural Information Processing Systems, 2024 (arXiv:2402.16788). https://arxiv.org/abs/2402.16788
23. Behrooz Ghorbani, Shankar Krishnan and Ying Xiao. "An Investigation into Neural Net Optimization via Hessian Eigenvalue Density". arXiv:1901.10159, 2019. https://arxiv.org/abs/1901.10159
24. Razvan Pascanu, Tomas Mikolov and Yoshua Bengio. "On the difficulty of training Recurrent Neural Networks". arXiv:1211.5063, 2012. https://arxiv.org/abs/1211.5063
25. Charles H. Martin and Michael W. Mahoney. "Implicit Self-Regularization in Deep Neural Networks: Evidence from Random Matrix Theory and Implications for Learning". arXiv:1810.01075, 2018. https://arxiv.org/abs/1810.01075
26. Nikhil Vyas, Depen Morwani, Rosie Zhao, Mujin Kwun, Itai Shapira, David Brandfonbrener, Lucas Janson and Sham Kakade. "SOAP: Improving and Stabilizing Shampoo using Adam". arXiv:2409.11321, 2024. https://arxiv.org/abs/2409.11321

