David I. Inouye
Dynamic Content · Last Updated: September 11, 2026
We began with a representation function:
\[ f:\mathbb{R}^{d}\rightarrow\mathbb{R}^{m}, \qquad \boldsymbol{y}=f(\boldsymbol{x}). \]
For this first representation model, assume \(f\) is linear:
\[ \boldsymbol{y}=A\boldsymbol{x}, \qquad A\in\mathbb{R}^{m\times d}. \]
What can this transformation do to a high-dimensional feature space?
\[ y=ax \]
\[ \boldsymbol{y}=A\boldsymbol{x} \]
\(a\) becomes \(A\): one scalar action becomes a transformation of a feature space.
\[ A= \begin{bmatrix} 2 & -1 & 0.5\\ 1 & 0 & -2 \end{bmatrix} \]
\[ \begin{aligned} y_1 &=2x_1-x_2+0.5x_3\\ &=2(1)-2+0.5(-1)\\ &=-0.5 \end{aligned} \]
\[ \begin{aligned} y_2 &=x_1+0x_2-2x_3\\ &=1+0-2(-1)\\ &=3 \end{aligned} \]
\[ \underbrace{ \begin{bmatrix}-0.5\\3\end{bmatrix} }_{\boldsymbol{y}} = \underbrace{ \begin{bmatrix}2&-1&0.5\\1&0&-2\end{bmatrix} }_{A} \underbrace{ \begin{bmatrix}1\\2\\-1\end{bmatrix} }_{\boldsymbol{x}} \]
For observation \(i\):
\[ \boldsymbol{y}_i=A\boldsymbol{x}_i, \qquad \boldsymbol{x}_i\in\mathbb{R}^{d}, \quad \boldsymbol{y}_i\in\mathbb{R}^{m}. \]
The same entries of \(A\) define every output feature for every observation.
One linear operator gives a consistent representation rule for the entire dataset.
Observations are rows:
\[ X=\begin{bmatrix} 1&2&-1\\ 0&1&2\\ 2&-1&1 \end{bmatrix} \]
Use the same transformation:
\[ A=\begin{bmatrix} 2&-1&0.5\\ 1&0&-2 \end{bmatrix} \]
\[Y=\text{???}\]
\[ \underbrace{Y}_{3\times2} =\underbrace{X}_{3\times3}\underbrace{A^T}_{3\times2} =\begin{bmatrix} -0.5&3\\ 0&-4\\ 5.5&0 \end{bmatrix} \]
Each row of \(Y\) is \((A\boldsymbol{x}_i)^T\).
\[ A(B\boldsymbol{x})=(AB)\boldsymbol{x} \]
\[ A(\boldsymbol{x}+\boldsymbol{z}) =A\boldsymbol{x}+A\boldsymbol{z} \]
\[ AI=A \]
\[ AB\ne BA \quad \text{in general} \]
\[ (AB)^T=B^TA^T \]
Changing the order can change the value or make the product undefined.
Let \(A\in\mathbb{R}^{m\times d}\) and \(B\in\mathbb{R}^{d\times p}\).
\[ AB\in\mathbb{R}^{m\times p} \]
\[ (AB)^T=B^TA^T \]
\[ BA \]
The inner dimensions would require \(p=m\).
Shape is part of the mathematical claim, not an implementation detail.
Colors track the same inputs. Three colored sectors at one output location show that three inputs have collapsed together.
For \(\boldsymbol{x}\in\mathbb{R}^{d}\):
\[ \lVert\boldsymbol{x}\rVert_2 =\sqrt{x_1^2+x_2^2+\cdots+x_d^2} \]
For two points \(\boldsymbol{x}_i\) and \(\boldsymbol{x}_j\):
\[ \operatorname{dist}(\boldsymbol{x}_i,\boldsymbol{x}_j) =\lVert\boldsymbol{x}_i-\boldsymbol{x}_j\rVert_2 \]
The subscript \(2\) identifies the Euclidean norm. Other norms measure size differently.
\[ \boldsymbol{u}\perp\boldsymbol{v} \quad\Longleftrightarrow\quad \boldsymbol{u}^{T}\boldsymbol{v}=0 \]
Are these dense five-dimensional vectors orthogonal?
\[ \boldsymbol{u}=\begin{bmatrix}1\\2\\-1\\3\\4\end{bmatrix}, \qquad \boldsymbol{v}=\begin{bmatrix}2\\-1\\3\\2\\-\tfrac34\end{bmatrix} \]
\[ \boldsymbol{u}^{T}\boldsymbol{v} =2-2-3+6-3 =0 \qquad\Longrightarrow\qquad \boldsymbol{u}\perp\boldsymbol{v} \]
Orthogonality is defined in any dimension, even when geometry cannot be visualized.
For a square matrix \(Q=[\boldsymbol{q}_1\;\cdots\;\boldsymbol{q}_d]\in\mathbb{R}^{d\times d}\), orthonormal means mutually orthogonal columns, each of unit length.
| Higher dimensions | Interpretation | 1D special case | Interpretation |
|---|---|---|---|
| \(I\boldsymbol{x}=\boldsymbol{x}\) | The identity matrix leaves a vector unchanged. | \(1x=x\) | The scalar \(1\) leaves a number unchanged. |
| \((Q^TQ)_{ij}=\boldsymbol{q}_i^T\boldsymbol{q}_j\) | Multiplication collects all column inner products. | \(q\,q=q^2\) | There is only one entry to multiply by itself. |
| \(Q^TQ=I\) | Inner products are \(1\) for the same column, \(0\) for distinct columns. | \(q^2=1\) | Hence \(q\in\{-1,1\}\). |
| \(\boldsymbol{y}=Q\boldsymbol{x}\) | Rotates or reflects about the origin, preserving length. | \(y=qx\) | Keeps or reverses direction while preserving length. |
Is \(\lVert Q\boldsymbol{x}_i-Q\boldsymbol{x}_j\rVert_2\) equal to \(\lVert\boldsymbol{x}_i-\boldsymbol{x}_j\rVert_2\) for every pair?
For any \(\boldsymbol{x}_i,\boldsymbol{x}_j\in\mathbb{R}^{d}\) and orthogonal \(Q\):
\(\displaystyle \lVert Q\boldsymbol{x}_i-Q\boldsymbol{x}_j\rVert_2\)
\(=\)
\(\displaystyle \lVert Q(\boldsymbol{x}_i-\boldsymbol{x}_j)\rVert_2\)
(Distributivity)
\(\,\)
\(=\)
\(\displaystyle \sqrt{(\boldsymbol{x}_i-\boldsymbol{x}_j)^TQ^TQ(\boldsymbol{x}_i-\boldsymbol{x}_j)}\)
(Euclidean norm)
\(\,\)
\(=\)
\(\displaystyle \sqrt{(\boldsymbol{x}_i-\boldsymbol{x}_j)^T(\boldsymbol{x}_i-\boldsymbol{x}_j)}\)
(\(Q^TQ=I\))
\(\,\)
\(=\)
\(\displaystyle \lVert\boldsymbol{x}_i-\boldsymbol{x}_j\rVert_2\)
(Euclidean norm)
\[ D=\operatorname{diag}(d_1,\ldots,d_d), \qquad y_j=d_jx_j \]
\[ \boldsymbol{y}=Q\boldsymbol{x}, \qquad Q^TQ=I \]
For \(a\ne0\):
\[ y=ax=\underbrace{\operatorname{sign}(a)}_{\text{keep or reverse}} \quad\underbrace{|a|}_{\text{scale}}\,x \]
For example, \(-3x=(-1)(3)x\):
\[ \boldsymbol{y}=A\boldsymbol{x} \]
We know how to calculate the output. But for an arbitrary matrix:
Can we decompose any \(A\) into rotations or reflections and independent scalings so that we can understand and analyze what it does?
Let \(U\Sigma V^T\) be the singular value decomposition (SVD) of \(A\), i.e., \(A=U\Sigma V^T\).
\(U\) and \(V\) are orthogonal; \(\Sigma\) is diagonal (possibly rectangular).
\[ \boldsymbol{y}=A\boldsymbol{x} =U\Sigma V^T\boldsymbol{x} =U\bigl(\Sigma(V^T\boldsymbol{x})\bigr) \]
For \(A\in\mathbb{R}^{m\times d}\), the full SVD is:
\[ \underbrace{A}_{m\times d} = \underbrace{U}_{m\times m} \quad\underbrace{\Sigma}_{m\times d} \quad\underbrace{V^T}_{d\times d} \]
| Factor | Mathematical Property | What It Does |
|---|---|---|
| \(U\) | Square and orthogonal: \(U^TU=I_m\) | Rotates or reflects in the output space. |
| \(\Sigma\) | Same shape as \(A\); \(\Sigma_{ij}=0\) whenever \(i\ne j\) | Scales directions; zero scalings can collapse them. |
| \(V^T\) | Square and orthogonal: \(V^TV=VV^T=I_d\) | Rotates or reflects in the input space. |
\(\Sigma\) is rectangular diagonal: only \(\Sigma_{ii}=\sigma_i\ge0\) may be nonzero, for \(i=1,\ldots,\min(m,d)\).
\(U\): square, sized by the rows of \(A\).
\(V^T\): square, sized by the columns of \(A\).
\[ V^T\boldsymbol{v}_j=\boldsymbol{e}_j \quad\Longrightarrow\quad A\boldsymbol{v}_j=U(\Sigma\boldsymbol{e}_j)=\sigma_j\boldsymbol{u}_j, \qquad j\le\min(m,d). \]
Order the singular values: \(\sigma_1\ge\sigma_2\ge\cdots\ge0\).
\[ \|A\boldsymbol{x}\|_2\le\sigma_1\|\boldsymbol{x}\|_2, \qquad \|A\|_2:=\max_{\|\boldsymbol{x}\|_2=1}\|A\boldsymbol{x}\|_2=\sigma_1. \]
\[ \operatorname{rank}(A)=\#\{j:\sigma_j>0\}\le\min(m,d) \]
For example:
\[ \Sigma=\begin{bmatrix}3&0&0\\0&1&0\\0&0&0\end{bmatrix} \qquad\Longrightarrow\qquad \operatorname{rank}(A)=2 \]
The null space contains all directions that map to zero:
\[ \operatorname{null}(A)=\{\boldsymbol{h}:A\boldsymbol{h}=\boldsymbol{0}\}. \]
For any nonzero \(\boldsymbol{h}\in\operatorname{null}(A)\):
\(\displaystyle A(\boldsymbol{x}+\boldsymbol{h})\)
\(=\)
\(\displaystyle A\boldsymbol{x}+A\boldsymbol{h}\)
(Distributivity)
\(\,\)
\(=\)
\(\displaystyle A\boldsymbol{x}\)
(Null direction)
In 1D, \(y=ax\) can be undone by \(x=y/a\) exactly when \(a\ne0\).
For square \(A=U\Sigma V^T\in\mathbb{R}^{d\times d}\):
\[ \text{all }\sigma_j>0 \quad\Longrightarrow\quad A^{-1}=V\Sigma^{-1}U^T, \qquad \Sigma^{-1}=\operatorname{diag}(1/\sigma_1,\ldots,1/\sigma_d). \]
\(\displaystyle A^{-1}A\)
\(=\)
\(\displaystyle (V\Sigma^{-1}U^T)(U\Sigma V^T)\)
(Substitute)
\(\,\)
\(=\)
\(\displaystyle V\Sigma^{-1}\Sigma V^T\)
(\(U^TU=I_d\))
\(\,\)
\(=\)
\(\displaystyle VV^T\)
(\(\Sigma^{-1}\Sigma=I_d\))
\(\,\)
\(=\)
\(\displaystyle I_d\)
(\(VV^T=I_d\))
\(\boldsymbol{y}=A\boldsymbol{x}\) maps \(d\) input coordinates to \(m\) output coordinates.
Recovering every \(\boldsymbol{x}\in\mathbb{R}^d\) requires \(\operatorname{rank}(A)=d\).
For any \(A=U\Sigma V^T\in\mathbb{R}^{m\times d}\), define:
\[ \underbrace{A^\dagger}_{d\times m} =\underbrace{V}_{d\times d}\underbrace{\Sigma^\dagger}_{d\times m}\underbrace{U^T}_{m\times m}. \]
\(\Sigma^\dagger\) has the transposed shape of \(\Sigma\), with zero off-diagonal entries:
\[ (\Sigma^\dagger)_{jj}= \begin{cases} 1/\sigma_j, & \sigma_j>0,\\ 0, & \sigma_j=0. \end{cases} \]
For \(\boldsymbol{y}=A\boldsymbol{x}\), recovery of every input means:
\[ \widehat{\boldsymbol{x}}=A^\dagger\boldsymbol{y}=\boldsymbol{x} \ \text{for all }\boldsymbol{x}\in\mathbb{R}^d \quad\Longleftrightarrow\quad A^\dagger A=I_d. \]
Let \(r=\operatorname{rank}(A)\) and \(V_r=[\boldsymbol{v}_1\;\cdots\;\boldsymbol{v}_r]\) contain its surviving input directions.
\(\displaystyle A^\dagger A\)
\(=\)
\(\displaystyle V\Sigma^\dagger U^TU\Sigma V^T\)
(Substitute)
\(\,\)
\(=\)
\(\displaystyle V(\Sigma^\dagger\Sigma)V^T\)
(\(U^TU=I_m\))
\(\,\)
\(=\)
\(\displaystyle V_rV_r^T\)
(Keep nonzero directions)
\(\Sigma^\dagger\Sigma\) has \(r\) diagonal ones and \(d-r\) zeros. Thus \(A^\dagger A=I_d\) exactly when \(r=d\): full column rank, requiring \(m\ge d\).
Inputs: \(\boldsymbol{x}=t\boldsymbol{u}\in\mathbb{R}^2\), \(\|\boldsymbol{u}\|_2=1\). Encoder: \(A=\boldsymbol{v}^T\), with \(\alpha=\boldsymbol{v}^T\boldsymbol{u}\ne0\).
Decode with \(B=\boldsymbol{u}/\alpha\): knowing the line lets us undo its nonzero scaling.
\[ \widehat{\boldsymbol{x}}=By=\frac{\boldsymbol{u}}{\alpha}(\alpha t)=t\boldsymbol{u}=\boldsymbol{x}. \]
If \(\boldsymbol{v}=\boldsymbol{u}\), then \(\alpha=1\), \(y=t\), and \(B=A^\dagger=\boldsymbol{u}\). In general, \(B\ne A^\dagger\).
A sensor-processing system uses \(A=U\operatorname{diag}(4,1,0)V^T\).
Can you recover every sensor input? What is the largest possible stretching factor? Could this operator preserve every pairwise distance? Explain which input direction is invisible to the system.
Rank \(2\); recovery is impossible in general; maximum scaling is \(4\). The direction \(\boldsymbol{v}_3\) disappears. All distances cannot be preserved.
What if the inputs are close to a line, but do not lie exactly on it?
\[ y=\boldsymbol{u}^T\boldsymbol{x},\qquad \widehat{\boldsymbol{x}}=\boldsymbol{u}y,\qquad \text{error}=\|\boldsymbol{x}-\widehat{\boldsymbol{x}}\|_2^2. \]
Which direction minimizes total reconstruction error?