Vector Spaces, Basis, Direct Sum
Where do embeddings actually live?
Vishnu Boddeti
Example 1
Self-attention makes a token representation depend on the whole sequence, so geometry can encode word sense and use.
Example 2
The projector aligns dimensions; token type and position retain provenance while cross-attention learns useful correspondences.
Example 3
Activation steering treats behavior as a manipulable direction, but the intervention can also change unrelated capabilities.
Example 4
Typed state supports attribution, permission checks, and recovery when a tool result is stale or incorrect.
Each scenario hides a mathematical structure from this lecture. Identify the structure, justify it, and work through the resulting problem.
A vision-language model stores a two-number caption vector beside a three-number image vector. Since the coordinates are tagged rather than mixed, can both pieces always be recovered without ambiguity?
Text features live in $U=\mathbb{R}^2$ and image features in $W=\mathbb{R}^3$. A fused representation is written $(u_1,u_2,w_1,w_2,w_3)$.
You inherit a LoRA adapter advertised as having three trainable directions. A quick look suggests that one direction may be assembled from the other two. Before spending parameters, you also want to know whether the requested update is reachable at all.
$a_1=(1,0,1)$, $a_2=(0,1,1)$, $a_3=(1,1,2)$, and the desired update is $\Delta=(2,1,3)$.
A monitoring dashboard labels any unfamiliar embedding “out of distribution.” But an embedding can be new without pointing in a new geometric direction. Does this particular alert reveal a genuinely new direction or merely a new combination of familiar ones?
Training directions are $v_1=(1,0,1,0)$, $v_2=(0,1,0,1)$, and $v_3=(1,1,1,1)$. The new embedding is $q=(2,-1,2,-1)$.