Tutorials › Statistical Methods for Single-Cell RNA Sequencing › Reading Diffusion Eigenvalues and Eigenvectors

Pseudotime and Trajectory Inference · Tutorial 376 of 700

Reading Diffusion Eigenvalues and Eigenvectors

Interpret diffusion-map modes and spectral gaps to assess whether a one-dimensional cell ordering is a reasonable summary of the inferred geometry.

Advanced 10 min read

What You'll Learn

  • Identify the stationary eigenvector and the leading nontrivial diffusion modes.
  • Interpret eigenvalues as rates of persistence across diffusion steps.
  • Use eigenvalue gaps as evidence about the number of prominent modes, not as proof of trajectory shape.
  • Inspect eigenvector patterns for smooth ordering, branches, oscillations, and instability.
  • Recognize sign ambiguity, near-tied eigenvalues, and sensitivity to graph construction.
  • Distinguish diffusion-spectrum diagnostics from direct confirmation of a biological trajectory.

Why Read the Spectrum?

A diffusion map represents cells using eigenvectors of a transition operator built from a cell-neighborhood graph. The coordinates are useful, but their interpretation is not automatic: some eigenvectors describe broad, smooth differences among cells, while others vary more rapidly or reflect details of the graph. Reading the eigenvalues alongside the eigenvectors helps assess which patterns dominate the diffusion geometry and whether a single coordinate could reasonably summarize cell-state variation.

The key diagnostic is joint rather than numerical alone. A clearly separated leading nontrivial eigenvalue can indicate one dominant mode of variation, but it does not prove that cells lie on one biological path. The corresponding eigenvector must also have a pattern consistent with a smooth ordering, and the result should be checked for instability and graph artifacts.

Eigenvalues and Modes of Variation

Let \(W\) be a symmetric, nonnegative affinity matrix for \(n\) cells, with degree matrix \(D\) whose \(i\)th diagonal entry is \(d_i=\sum_j W_{ij}\). Assume every cell has positive degree. The row-stochastic transition matrix is \(P=D^{-1}W\), and its symmetrically normalized counterpart is \(S=D^{-1/2}WD^{-1/2}\). These matrices have the same eigenvalues. Because the graph is undirected and the chain is reversible, the eigenvalues are real. Write them as \(\lambda_0,\lambda_1,\ldots,\lambda_{n-1}\), ordered by decreasing magnitude when discussing diffusion-time persistence, with \(\lambda_0=1\) for a connected graph.

A right eigenvector \(\psi_\ell\) of \(P\) satisfies \(P\psi_\ell=\lambda_\ell\psi_\ell\). The corresponding eigenvector \(u_\ell\) of \(S\) is related by \(\psi_\ell=D^{-1/2}u_\ell\). The mode \(\psi_0\) is constant for a connected graph; it describes the stationary component rather than a cell ordering. The nontrivial eigenvectors \(\psi_1,\psi_2,\ldots\) describe patterns of variation across cells. In diffusion-map coordinates, a common convention weights the \(\ell\)th mode by \(\lambda_\ell^t\), where \(t\) is the number of diffusion steps.

Definition: A diffusion eigenmode is a nontrivial eigenvector of the transition operator, interpreted together with its eigenvalue. Its entries give a cell-wise pattern of variation; its eigenvalue indicates how strongly that pattern persists under repeated transitions. The leading nontrivial mode is the nonstationary mode with the greatest persistence under the chosen eigenvalue ordering.

For nonnegative transition probabilities, eigenvalues lie between \(-1\) and \(1\). A mode with eigenvalue near \(1\) changes slowly under repeated transitions; a mode with smaller absolute eigenvalue decays more quickly. A negative eigenvalue also changes sign from one step to the next, so a large negative eigenvalue can signal oscillatory behavior rather than a smooth, persistent ordering. In many practical graphs the modes of interest have positive eigenvalues, but the spectrum should be checked rather than assumed to be so.

When the relevant eigenvalues are positive and ordered \(\lambda_1\geq\lambda_2\), the gap \(\lambda_1-\lambda_2\) compares the leading nontrivial mode with the next mode. A large gap is evidence that the first mode is more prominent in the diffusion representation. When signs matter, compare magnitudes and inspect negative modes too; an absolute-value gap is \(|\lambda_1|-|\lambda_2|\) when the modes are ordered by magnitude. Neither gap is a universal cutoff or a formal test of one-dimensionality.

Why Eigenvalues Weight the Modes

The connection between eigenvalues and persistence follows directly from repeated transitions. For a reversible operator with a complete eigenbasis, a cell-wise function \(f\) can be expanded in the right eigenvectors. Applying \(P\) repeatedly multiplies each eigenvector component by the corresponding eigenvalue at every step.

$$ f=\sum_{\ell=0}^{n-1}c_\ell\psi_\ell \qquad\Longrightarrow\qquad P^t f=\sum_{\ell=0}^{n-1}c_\ell\lambda_\ell^t\psi_\ell. $$

Thus, if \(0<\lambda_2<\lambda_1<1\), the relative contribution of mode 2 to mode 1 after \(t\) steps is multiplied by \((\lambda_2/\lambda_1)^t\). This explains why a mode with a larger positive eigenvalue persists longer and why diffusion coordinates downweight less persistent modes. It does not show that the persistent mode is biological: it only describes the transition geometry encoded by the chosen graph.

Worked Example: A Separated Leading Mode

Suppose a hypothetical connected cell graph has positive nontrivial eigenvalues \(\lambda_1=0.82\) and \(\lambda_2=0.31\). The gap is \(0.82-0.31=0.51\). At diffusion time \(t=3\), the mode weights are \(\lambda_1^3\) and \(\lambda_2^3\).

$$ 0.82^3=0.551368,\qquad 0.31^3=0.029791,\qquad \frac{0.31^3}{0.82^3}\approx 0.05403. $$

At this time, mode 2 has about 5.4% of mode 1’s weight. This spectrum therefore supports the view that the first nontrivial mode is substantially more persistent than the second. If the first eigenvector also varies smoothly along a candidate cell-state path, a one-dimensional summary is plausible. The eigenvalues alone cannot establish that conclusion: they do not reveal whether the first eigenvector is monotone, whether it separates a branch, or whether the graph has faithfully represented the data.

Read the Eigenvector Pattern, Not Just the Gap

An eigenvector is a vector of values indexed by cells. To evaluate it as a possible ordering coordinate, inspect those values against the inferred neighborhood structure or a proposed path. A plausible one-dimensional mode often changes gradually across connected neighborhoods. If an independent ordering along a candidate path is available, the eigenvector may rise or fall smoothly along it. Its sign is arbitrary: replacing \(\psi_1\) by \(-\psi_1\) gives the same eigenspace and reverses the ordering, not its substantive content.

Patterns that deserve closer inspection include a sharp division between two groups, a mode that distinguishes two arms from their shared region, and rapid alternation between neighboring cells. These can indicate a split, a poorly connected graph, or a mode that does not represent progression along one path. A smooth-looking coordinate is not sufficient evidence either: the graph construction and the data may impose a smooth pattern even when the biology is not a single trajectory.

Worked Example: Comparing Eigenvector Patterns

Consider four hypothetical cells arranged along a candidate path \(A\)—\(B\)—\(C\)—\(D\). Suppose the first two positive nontrivial eigenvalues are \(\lambda_1=0.78\) and \(\lambda_2=0.74\), and the eigenvector entries are as follows. The values are shown for pattern inspection; their overall scale and sign do not determine the ordering.

Cell\(\psi_1\)\(\psi_2\)
A-0.670.50
B-0.22-0.50
C0.22-0.50
D0.670.50

The first mode increases in equal increments along the proposed path: \(-0.22-(-0.67)=0.45\), \(0.22-(-0.22)=0.44\), and \(0.67-0.22=0.45\), up to rounding. That pattern is consistent with a smooth one-dimensional ordering. However, the eigenvalue gap is only \(0.78-0.74=0.04\), so the second mode is nearly as persistent as the first.

The second mode distinguishes the two endpoints from the two middle cells: it is positive at \(A,D\) and negative at \(B,C\). This is not a monotone progression along the path. The near-tie and distinct pattern together warn that the cell variation may have more than one prominent direction, or that the apparent pattern depends on graph construction. They do not by themselves establish a particular alternative geometry. A one-dimensional ordering should therefore be treated as provisional, not selected solely because \(\psi_1\) looks smooth.

Near-Ties, Stability, and Diagnostics

If two eigenvalues are equal, their eigenvectors are not individually determined: any orthonormal rotation within their shared eigenspace is also a valid basis. When eigenvalues are close, small changes to the graph or data can substantially rotate the estimated eigenvectors, even when the combined subspace is stable. Consequently, comparing a particular eigenvector across runs can be misleading when its eigenvalue is nearly tied with another. In that situation, assess the span of the modes as a group rather than treating each coordinate as uniquely identified.

Worked Example: A Nearly Tied Pair Can Rotate

Suppose two hypothetical modes have eigenvalues \(0.701\) and \(0.699\). Their difference is \(0.002\). If a small change to the graph changes the estimated basis within this two-dimensional subspace, a reported first coordinate may become a mixture of the original two coordinates. For a rotation of \(30^\circ\), the new first coordinate is

$$ \psi_1^{\ast}=\cos(30^\circ)\psi_1+\sin(30^\circ)\psi_2 \approx 0.866\psi_1+0.500\psi_2. $$

The displayed coordinate can therefore change noticeably without a comparable change in the two-dimensional subspace. A large change in the first eigenvector between nearby graph choices is not, by itself, proof that the geometry is entirely different. Check whether the leading subspace remains similar, and whether the proposed one-dimensional interpretation survives the change.

Useful diagnostics include examining the ordered eigenvalues and their gaps, plotting or tabulating leading eigenvector values across neighboring cells, and checking for negative eigenvalues with large magnitude. Repeat the inspection under reasonable neighborhood and kernel choices from the earlier material on selecting neighborhood and kernel scales. A claimed one-dimensional structure is more credible if its leading mode remains interpretable across such choices. If a graph has disconnected components, the stationary eigenspace is not just one constant mode; handle connectivity before interpreting a nontrivial spectrum.

These are diagnostics, not a mechanical decision rule. No fixed gap size identifies a trajectory dimension across datasets: the spectrum depends on the graph, its scaling, the number of cells, and sampling variation. A gap can be small even when a useful one-dimensional approximation exists, or large when a graph artifact creates one dominant split. Eigenvector smoothness also cannot establish a temporal direction, a biological mechanism, or causation.

Common Mistake and Practical Comparison

A common mistake is to conclude, “The first eigenvalue is the largest nontrivial one, so the first eigenvector is the trajectory.” The correction is that eigenvalue rank indicates persistence under the chosen transition operator, not biological meaning or one-dimensionality. Inspect the eigenvector pattern, the next modes, the graph’s connectivity, and sensitivity to reasonable graph choices before using it as an ordering coordinate.

The spectrum is a compact diagnostic for diffusion-based geometry. In contrast, a principal curve asks whether cells can be summarized by a smooth curve in a chosen representation, while an MST represents cells using connected paths in a graph. These approaches answer related but different geometric questions. A leading diffusion eigenvector can support or challenge a one-dimensional interpretation, but it is not a substitute for inspecting the inferred curve or graph structure. The introductory material on diffusion maps establishes the coordinate construction; here the emphasis is on how to interpret its modes and limitations.

Key takeaway: A separated, positive leading nontrivial eigenvalue and a smoothly varying first eigenvector provide evidence for one dominant ordering mode. They do not prove a single biological trajectory. Near-tied modes, irregular patterns, negative eigenvalues, disconnection, and sensitivity to graph choices call for more cautious interpretation.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A graph has positive eigenvalues \(\lambda_1=0.90\) and \(\lambda_2=0.60\). What is their gap, and what does it suggest—and not establish?
  2. Why does changing the sign of a leading eigenvector not change the underlying ordering information?
  3. For positive eigenvalues \(\lambda_1=0.80\) and \(\lambda_2=0.40\), calculate the ratio of their diffusion weights at \(t=2\).
  4. Two leading eigenvalues are nearly equal, and the corresponding eigenvectors differ substantially across small graph changes. What should be compared before declaring the trajectory geometry unstable?
  5. What does a large-magnitude negative eigenvalue caution you to examine?

Solutions. (1) The gap is \(0.90-0.60=0.30\). This is evidence that the first mode is more persistent, but it does not establish that the mode is a biological trajectory or that one dimension is sufficient. (2) If \(\psi_1\) is replaced by \(-\psi_1\), all pairwise orderings reverse together; the same cells remain separated and the same smooth pattern is represented in the opposite direction. (3) The ratio is \((0.40/0.80)^2=0.25\), so mode 2 has one quarter of mode 1’s diffusion weight at \(t=2\). (4) Compare the leading two-dimensional subspace as a whole, because a near-tied eigenspace can rotate while remaining similar. (5) A large-magnitude negative eigenvalue may indicate alternating, oscillatory behavior across steps; inspect it rather than treating it as an ordinary smooth ordering mode.

Clinical Biostats