Skip to content

Generalized Singular Value Decomposition

Factoring two linear maps into shared input coordinates to compare their action direction by direction.

Version
v1 · 2026-11-14 · History
Domain-specific #
14730
Domain group
Formal Sciences
Origin domain
Mathematics
Subdomains
Linear Algebra, Numerical Analysis → Mathematics
Aliases
Matrix-pair GSVD

Core Idea

The two-matrix generalized singular value decomposition (GSVD) expresses two linear maps with the same input dimension in shared input coordinates. It separates directions that one map represents more strongly than the other, while retaining a distinct output basis for each. The paired values compare two maps; they depend on their scaling and are not probabilities or measures of statistical importance on their own.[1]

This is one use of the name. A weighted or constrained single-matrix decomposition is another construction; the equations below concern the matrix-pair form.

How would you explain it like I'm…

Two Stretchy Machines Compared

Imagine two stretchy machines that take in the same thing. Some directions get stretched a lot by the first machine and only a little by the second, and some the other way around. This math trick finds those directions, using one shared way of pointing for what goes in, so you can compare the two machines direction by direction.

Shared Directions for Two Machines

Think of a matrix as a machine that takes in arrows and stretches and turns them. The generalized singular value decomposition, or GSVD, takes two such machines that accept the same kind of input. It finds a single set of input directions that works for both, and for each direction shows how strongly one machine responds compared with the other. Each machine keeps its own set of output directions. The comparison numbers depend on how big the machines are scaled, so they are not chances or importance scores by themselves.

Matrix-Pair Generalized SVD

A matrix represents a linear map, which transforms input vectors into output vectors. The two-matrix generalized singular value decomposition (GSVD) takes two linear maps with the same input dimension and expresses both in shared input coordinates. In those coordinates you can separate directions that one map represents more strongly than the other, while each map keeps its own output basis. The result is a set of paired values comparing the two maps in each direction. These values depend on how the matrices are scaled and are not probabilities or statistical importance measures on their own. The name GSVD is also used for a different, weighted or constrained single-matrix decomposition, which is a separate construction.

 

The two-matrix generalized singular value decomposition (GSVD) factors a pair of matrices A and B with the same number of columns using a common transformation of the shared input space, together with a separate output basis for each matrix. In these coordinates each input direction carries a pair of values describing how strongly A and how strongly B act on it. Directions with a large A-value relative to the B-value are those that A represents more strongly than B, and vice versa. The paired values compare the two maps and depend on their relative scaling; on their own they are neither probabilities nor measures of statistical importance. The same name is used for a weighted or constrained single-matrix decomposition, which is a distinct construction from the matrix-pair GSVD.

Shared Coordinates

For a simple full-rank case, let real matrices \(A\in\mathbb R^{m\times n}\) and \(B\in\mathbb R^{p\times n}\) have \(m,p\ge n\), with the stacked matrix \([A;B]\) of full column rank. There are matrices with orthonormal columns \(U\in\mathbb R^{m\times n}\), \(V\in\mathbb R^{p\times n}\), an invertible \(X\in\mathbb R^{n\times n}\), and nonnegative diagonal \(C,S\in\mathbb R^{n\times n}\) such that

\[ A=UCX,\qquad B=VSX,\qquad C^TC+S^TS=I. \]

Write the paired diagonal entries as \((c_i,s_i)\), so \(c_i^2+s_i^2=1\). The ratio \(c_i/s_i\) is a generalized singular value when \(s_i>0\); \(s_i=0\) gives an infinite value, and \(c_i=0\) gives zero. The generalized input direction is \(x_i=X^{-1}e_i\): its images are \(Ax_i=c_i u_i\) and \(Bx_i=s_i v_i\). These directions need not be orthogonal, because \(X\) need not be orthogonal. Changing the relative scaling of \(A\) and \(B\) changes the comparison.[1]

For example, with \(X=I\), \(C=\operatorname{diag}(3/5,4/5)\) and \(S=\operatorname{diag}(4/5,3/5)\), the two ratios are \(3/4\) and \(4/3\). The first coordinate is more prominent through \(B\), the second through \(A\), relative to their chosen scales.

If \([A;B]\) is rank deficient, the common nullspace has directions annihilated by both maps; a notional \(0/0\) there is not a defined generalized singular value. LAPACK's general form uses the stacked rank and a rectangular common factor instead of assuming an invertible \(X\). Complex versions replace transposes with conjugate transposes and orthogonal factors with unitary ones.[1]

A Regularized Inverse Problem

A common use is to balance data fit against a penalty, for example

\[ \min_x \|Ax-b\|^2+\lambda^2\|Lx\|^2, \qquad \lambda>0. \]

Using the full-rank GSVD of \((A,L)\) and setting \(y=Xx\), each coordinate minimizes \((c_i y_i-u_i^Tb)^2+\lambda^2s_i^2 y_i^2\). Thus

\[ y_i=\frac{c_i\,u_i^Tb}{c_i^2+\lambda^2s_i^2},\qquad x=X^{-1}y. \]

The part of \(b\) orthogonal to the columns of \(U\) contributes a constant residual and cannot be fitted by these coordinates. The formula assumes the dimensions and joint rank stated above, and a positive \(\lambda\); other cases need their own nullspace treatment. GSVD analysis also describes filters and truncated solutions; choosing a decomposition alone does not choose a suitable regularization strength.[2]

Comparing Data Sets

Alter, Brown and Botstein used a GSVD framework to compare yeast and human cell-cycle expression data, seeking patterns shared by or specific to the measured data sets. This example relies on how the experiments are represented and aligned; common mathematical directions do not by themselves establish a common regulatory mechanism or remove experimental artifacts.[3]

Boundaries

Low-rank matrix approximations use a rank-limited surrogate for one matrix, often via its ordinary SVD. A GSVD instead compares a pair and does not inherently require truncation. Regularization adds a penalty to a fitting problem; a GSVD is one way to analyze a suitable linear instance, not a requirement of every penalty. Generalized singular values also relate to generalized eigenvalues of the two associated quadratic forms, but common-null directions require separate treatment.[1]

Relationships to Other Abstractions

Local relationship map for Generalized Singular Value DecompositionParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Generalized SingularValue DecompositionDOMAINPrime abstraction: Linearity — presupposesLinearityPRIME

Current abstraction Generalized Singular Value Decomposition Domain-specific

Parents (1) — outgoing typed relations

  • Generalized Singular Value Decomposition presupposes Linearity Prime

    The paired maps and shared-coordinate transformations obey linear superposition.

Hierarchy path (1) — routes to 1 parentless root

  • Generalized Singular Value Decomposition → presupposes Linearity

Neighborhood in Abstraction Space

Generalized Singular Value Decomposition sits in a sparse region of the domain-specific corpus (95th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] LAPACK Users' Guide, “Generalized Singular Value Decomposition (GSVD)”, rank-revealing matrix-pair form. registry ↩a ↩b ↩c ↩d

[2] Per Christian Hansen, “Regularization, GSVD and Truncated GSVD”, UCLA CAM Report 89-10 (1989); published as BIT Numerical Mathematics 29 (1989), 491–504, doi:10.1007/BF02219234; abstract inspected. registry ↩

[3] Orly Alter, Patrick O. Brown and David Botstein, “Generalized Singular Value Decomposition for Comparative Analysis of Genome-Scale Expression Data Sets of Two Different Organisms”, Proceedings of the National Academy of Sciences 100 (2003), 3351–3356; indexed abstract inspected. registry ↩