Mathematical language and representation

Vectors, dot products and representation spaces

Rajesh Ranjan Mahapatra

A vector becomes a meaningful representation only when a declared geometry preserves task-relevant relations and a downstream system demonstrably uses them; coordinates, closeness and projection alone do not supply meaning.

© 2026 Rajesh Ranjan Mahapatra. 32 min read

Vectors, dot products and representation spacesAll Human–Machine Convergence
Rajesh R. Mahapatra
Human and machine intelligence

Mathematical language and representation

Vectors, dot products and representation spaces

A vector becomes a meaningful representation only when a declared geometry preserves task-relevant relations and a downstream system demonstrably uses them; coordinates, closeness and projection alone do not supply meaning.

TLDR

  1. Coordinates depend on a basis; rotating every vector can change every coordinate while preserving the relations a linear system uses.
  2. A dot product is a question asked with a particular ruler; cosine similarity adds the choice to ignore magnitude.
  3. A nearest neighbour is produced jointly by the encoder, normalisation, metric, candidate set and decision threshold.
  4. Information that a probe can decode may be ignored by the model, while information the model uses may resist a linear probe.
  5. Representation claims should climb from geometry to decodability, causal uptake and scoped semantic warrant.
Opening thought experiment

The constellation that moved without changing

Imagine a planetarium whose operator has plotted five stars on a transparent dome. Two stars form a tight pair. A third sits twice as far away. The operator now turns the entire dome through thirty degrees while leaving the audience fixed. Every star receives new horizontal and vertical coordinates. Nothing about the constellation changes. The pair remains a pair, the angle between sightlines remains the same and the distant star remains distant.

Now imagine that the operator does something subtler. She stretches the dome east to west but not north to south. The same five lights remain labelled with the same names, yet some pairs now appear closer and others farther apart. A navigator who uses angular separation will alter the route. The data points did not change identity. The ruler changed.

This is the puzzle at the centre of representation spaces. A language model, vision system or retrieval engine may turn an input into hundreds or thousands of numbers. We draw those numbers as a point and speak as though the point contains a concept. We say that one direction is gender, another is truth, or two documents are semantically close. The language is convenient, but it hides a dependency: geometry becomes informative only through the relations a system preserves and the operations that consume them.

The first turn of the dome changed coordinates but preserved its Euclidean geometry. The stretch changed the geometry itself. A third operation could leave the geometry intact while changing the downstream decision rule. These are not cosmetic distinctions. They decide whether a vector claim is a coordinate description, a useful prediction, a mechanism claim or an interpretation that has outrun its evidence.

The constellation survives the coordinate change

Start with a physical arrow drawn on a sheet of paper. The arrow has a length and a direction before anyone draws axes. Add a horizontal and vertical grid, and the arrow can be described by two coordinates. Rotate the grid and the coordinates change, although the arrow does not. A vector is the arrow-like object. A coordinate list is its description in a chosen basis.

In two dimensions, a basis is a pair of independent reference directions. In a conventional grid they are the unit arrows pointing right and up. In a representation space with 4,096 dimensions, the same principle holds, even though no person can picture all the axes. The vector x is written as a weighted combination of basis directions. Its coordinate xᵢ says how much of basis direction eᵢ participates in that description.

The hidden assumption is easy to miss: we often treat coordinate number 731 as though it were an intrinsic property of the represented object. Usually it is not. If an orthogonal matrix Q rotates or reflects every vector, then the transformed vectors Qx and Qy preserve lengths, angles and dot products. A matching rotation of a linear readout preserves its output as well. Individual coordinates may move while the operational relation remains exactly the same.

A rotating semantic sky Two coordinate grids contain the same five labelled points. The second grid is rotated, so coordinates change, but pairwise distances and angles remain the same. Basis A Basis B, rotated 28° river bridge road map apple river bridge road map apple coordinates change relations survive
Figure 1. The rotating semantic sky. A change of orthonormal basis alters coordinates but preserves Euclidean lengths, angles and dot products. The conclusion is not that every neural network admits arbitrary rotation. It is that coordinate meaning must be justified rather than assumed. Illustrative · author synthesis

Alt text: Two panels show identical point constellations on differently oriented grids. Labels and pairwise relations remain fixed while the coordinate grid rotates.

Worked example · the same score after rotation

Suppose a hidden vector is x = (2, 1) and a linear readout uses w = (3, −1). The score is wᵀx = 5. Rotate both vectors by the same orthogonal matrix Q. The new score is (Qw)ᵀ(Qx) = wᵀQᵀQx = wᵀx = 5. The numbers assigned to each axis can change completely while the decision remains fixed.

Counterfactual basis interventions Three paths compare an original representation and readout, a jointly rotated representation and readout with the same output, and a rotated representation with an unchanged readout that changes the output. Observed system Matched rotation Unmatched rotation x readout w score 5 Qx readout Qw score 5 Qx readout w score changes
Figure 2. What a basis intervention must preserve. Rotating a representation is behaviour-preserving only when the relevant downstream structure is transformed consistently. Rotating the vector alone is an intervention on the computation, not a neutral relabelling. Illustrative · counterfactual mechanism diagram

Alt text: Three horizontal rows show an original vector and readout producing score five, a matched rotation producing the same score, and an unmatched rotation producing a changed score.

Boundary condition

Arbitrary rotations are not symmetries of every complete network. Element-wise nonlinearities, sparse units, normalisation rules and hardware layouts can privilege axes. The rotation argument applies cleanly at a declared interface when the consuming operations are transformed with it. Its purpose is to block an invalid inference: a coordinate is not meaningful merely because it has an index.

The origin is not innocent

A point needs an origin as well as a basis. Shift every point by the same amount and pairwise differences remain fixed, so Euclidean distances between points do not change. Angles measured from the origin can change sharply, however, which means cosine similarity can change. This is why centring an embedding cloud is not a neutral formatting step. It changes the question from “which points point in the same direction from the model’s zero?” to “which deviations from the chosen centre align?”

Take x = (3, 1) and y = (4, 2). Their cosine is about 0.99. Translate both by c = (2, 1). The new coordinates are x′ = (1, 0) and y′ = (2, 1), whose cosine is about 0.89. The distance between the two points remains √2. Nothing contradictory occurred. Distance and cosine preserve different structures.

This matters in learned spaces because the zero vector rarely arrives with a natural semantic interpretation. It may be the output for padding after a mask, the origin implied by an optimiser, or simply the coordinate zero selected by parameterisation. A mean vector can dominate many token directions, and subtracting it can make local contrasts easier to see. Before interpreting an angle, ask what the origin makes that angle an angle from.

When an axis can earn local meaning

The coordinate warning should not be turned into the opposite dogma that axes never matter. An architecture can privilege them. A rectified linear unit acts coordinate by coordinate. Sparse coding rewards a small set of active coordinates. Non-negative representations forbid cancellation across positive and negative values. A downstream component may read one neuron directly. Under those constraints, rotating the space without redesigning the computation changes the system.

An axis earns a local interpretation when three things agree. Its activation predicts a property on held-out cases. Directly changing it produces a selective downstream effect. The relationship remains stable across reasonable prompts, data shifts and retraining seeds, or the instability itself is explicitly scoped. Even then, the right statement is functional: this coordinate participates in this computation under this architecture. It is not “coordinate 731 is the concept” in every equivalent description of the system.

Optional derivation: why orthogonal rotation preserves the dot product

Let Q be orthogonal, so QᵀQ = I. For any vectors x and y, the transformed dot product is (Qx)ᵀ(Qy) = xᵀQᵀQy = xᵀy. Length is a vector dotted with itself, so length is preserved. Cosine is the dot product divided by two preserved lengths, so cosine is preserved too. A general invertible matrix need not satisfy AᵀA = I; it can stretch or shear the space and thereby change these quantities.

The argument in one pass
Chart · flow
flowchart TD
  A["The constellation that moved<br/>without changing"] --> B["The constellation survives the<br/>coordinate change"]
  B --> C["Similarity depends on the ruler"]
  C --> D["A readable direction is not<br/>yet a mechanism"]
  D -. "re-test" .-> A
  classDef first fill:#0a1424,stroke:#5B5CF6,stroke-width:2px,color:#e6f3ff
  classDef step fill:#0a1424,stroke:#3f7da0,stroke-width:1px,color:#e6f3ff
  class A first
  class B,C,D step
A structural route through Vectors, dot products and representation spaces: from The constellation that moved without… to Grant semantic authority only to…. Reading use: follow the relation, then return to the surrounding argument for evidence and limits.

Similarity depends on the ruler

Place two arrows tail to tail. When they point in the same direction, their dot product is positive and large if both are long. When they are perpendicular, the dot product is zero. When they point in opposing directions, it is negative. The dot product therefore combines two ingredients: directional alignment and magnitude.

For vectors x and y, the Euclidean dot product is the sum of coordinate-wise products. Its value is also ||x|| ||y|| cos θ, where θ is the angle between the arrows. Cosine similarity divides out the two lengths and keeps only the angle. This is useful when magnitude is nuisance. It is destructive when magnitude carries confidence, frequency, salience or a logit-relevant signal. Cosine similarity is not a discovered law of meaning; it is a modelling decision to treat direction as the relevant relation.

x · y = Σᵢ xᵢyᵢ = ||x|| ||y|| cos θ
cosine(x, y) = (x · y) / (||x|| ||y||)
projd(x) = ((x · d) / (d · d)) d Here x is the vector being analysed, y is the comparison vector, d is a chosen direction, and the equations assume the ordinary Euclidean inner product.
Worked example · projection you can calculate mentally

Let x = (2, 1) and let the direction of interest be d = (1, 1). Their dot product is 3. Since d · d = 2, the projection of x onto d is (3/2)(1, 1) = (1.5, 1.5). The residual is (0.5, −0.5), which is perpendicular to d. Projection answers a precise question: what component of x lies along the declared direction under this inner product? It does not answer what the direction means.

Projection of a vector onto a direction A coordinate plane shows x equals two comma one, the direction d equals one comma one, the projection of x onto d, and a perpendicular residual. x = (2, 1) projection = (1.5, 1.5) residual direction d = (1, 1)
Figure 3. Projection separates a declared direction from its orthogonal residual. The calculation is exact only relative to the chosen inner product. Changing the metric changes which residual counts as perpendicular. Illustrative · worked numerical example

Alt text: A two-dimensional grid shows a blue vector, its green projection onto a diagonal purple direction, and a coral perpendicular residual.

The metric is part of the claim

The ordinary dot product gives every coordinate equal status after units have been chosen. That is sometimes sensible. Suppose one axis records metres and another seconds. Adding their products without a conversion rule is meaningless. Even when every coordinate is dimensionless, treating each axis equally still encodes an assumption.

A more general inner product can be written xᵀMy, where M is a positive-definite matrix. The matrix can weight some directions more heavily or account for correlations. In effect, it installs a ruler. Once the ruler changes, angles, projections and neighbours may change too.

Thought experiment · the bridge chooses a side

A toy retrieval space has two latent coordinates. The query “bridge” is at (1, 1). “River” is at (0.20, 1.76); “road” is at (1.67, 0.56). Under a ruler that downweights the first coordinate by a factor of two, river has the higher cosine. Under a ruler that upweights it by a factor of three, road becomes the clear neighbour. Which result is semantically correct? The vectors cannot answer until the purpose of the comparison tells us what differences should count.

Table 1. The same vectors under two declared rulers
Metric choicecos(bridge, river)cos(bridge, road)Nearest
First coordinate scaled by 0.50.9190.871River
First coordinate scaled by 3.00.6100.978Road
Nearest neighbour flips when one axis is stretched A line chart plots cosine similarity from axis weight 0.5 to 3.0. River starts above road, then road rises and becomes the nearest neighbour. 0.50.60.70.80.91.0 0.5×1.0×1.5×2.0×2.5×3.0× Weight on first coordinate Cosine similarity ranking flips riverroad
Figure 4. The neighbour is partly a property of the ruler. A similarity claim should therefore record the metric and preprocessing, not just the vector model. The numeric values are generated from the bridge, river and road vectors in the worked example. Illustrative · synthetic calculation

Alt text: A chart shows river similarity decreasing and road similarity increasing as the first axis receives more weight. Their ranking crosses near the left side.

Similarity is not one relation

Cosine is symmetric: cos(x, y) = cos(y, x). Many semantic and operational relations are not. “Surgeon” implies “person” more readily than “person” implies “surgeon”. A query can be adequately answered by a detailed document even when the document would be a poor query for the original phrase. A cause can predict an effect without the effect identifying one cause. Treating all of these as undirected closeness discards structure before the model is evaluated.

Similarity also changes with the comparison set. “Mercury” may be closest to “Venus” in an astronomy corpus, to “cadmium” in a toxicology corpus, and to “Ford” in a list of historic car brands. Nearest-neighbour search asks which candidate wins among those supplied. Add a new candidate or filter the index and the answer can change even when every vector and metric stays fixed.

Recent work on word similarity has explored classifier confusion as an alternative that can condition the comparison on selected features and represent asymmetry or polysemy more directly.[1] The broader lesson is not that one replacement metric is universally superior. It is that the relation required by the decision should choose the scoring geometry, rather than cosine choosing the relation by default.

Directions can encode relations without defining concepts

Vector arithmetic becomes interesting when differences repeat. If the displacement from one city to its country resembles the displacement from another city to its country, a shared relation direction may exist. The familiar analogy pattern subtracts one vector, adds another and searches for a point near the resulting location. Geometrically, it asks whether several examples form approximately parallel sides of parallelograms.

This can work because a training objective arranges many co-occurrence constraints jointly. A stable offset is a compressed regularity across those constraints. It does not follow that the relation is stored in one pristine axis, that every pair obeys it, or that the arithmetic expresses logical composition. Frequency, morphology, social bias and corpus domain can all bend the parallelogram.

A useful test therefore begins with many held-out counterfactual pairs, not one memorable example. Estimate a direction on the training pairs, measure angular dispersion on held-out pairs, compare with label-shuffled pairs, then test whether moving along the direction changes the relevant downstream output. A repeated offset supports a Level 1 geometric claim. It reaches a stronger warrant only when access and use are also demonstrated.

Why learned vectors develop useful geometry

Early word-embedding systems made vector relations unusually visible. Word2vec learned vectors useful for similarity and regularity tasks, while GloVe tied its objective to global co-occurrence statistics.[2][3] Levy and Goldberg then showed that skip-gram with negative sampling implicitly factorises a shifted pointwise-mutual-information matrix.[4] This matters because it replaces a mystical story with a mechanism: dot products become useful because the training objective pushes frequently associated word-context pairs towards values related to corpus statistics.

The result is not “meaning stored as coordinates”. It is a low-dimensional arrangement whose relations support tasks shaped by the objective, corpus and evaluation. A direction can be stable enough to predict a linguistic contrast without being a dictionary definition. An analogy can work for one relation and fail for another. A neighbour can reflect topical association rather than synonymy.

Cross-lingual work has also reported directions associated with latent grammatical concepts across typologically diverse languages.[5] Transfer across languages is stronger evidence than a single-dataset probe because it narrows some shortcut explanations. It still establishes neither a universal concept axis nor downstream causal use without the corresponding interventions.

Published evidence

Vector geometry has repeatedly supported prediction, retrieval, analogy and probing. The evidence establishes useful statistical structure. It does not by itself establish human-like understanding, reference to the world or conscious meaning. Those are different claims with additional bridges.

Comparing two spaces requires an invariance choice

Train the same architecture twice and its useful geometry may appear in different coordinates. Comparing neuron 731 in one run with neuron 731 in another can fail even when both models organise examples similarly. One response is to align the spaces with an orthogonal map. Another is to compare pairwise similarities among the same examples, which ignores the original basis. Each method decides in advance which transformations count as “the same representation”.

Kornblith and colleagues analysed this problem and introduced centred kernel alignment as a representation-similarity measure with a particular invariance profile.[6] Their broader contribution is methodological: a similarity measure that is invariant to too many transformations can declare substantively different spaces equivalent, while one tied too closely to coordinates can miss clear functional correspondence. Representation comparison is therefore another version of the paper’s central rule. State the preserved relation before reading meaning from the score.

Context turns a point into a trajectory

A static embedding gives one vector to “bank”. A contextual model computes a vector for this occurrence of “bank” in this sentence, at this token position and this layer. “She deposited cash at the bank” and “the river crossed the bank” can begin near a shared lexical region and diverge as context is integrated. Different layers may emphasise different relations. Pooling several token vectors introduces another operation.

Ethayarajh found that contextual representations in studied models were anisotropic rather than uniformly spread across directions.[7] That result makes raw cosine harder to interpret because many vectors can share a large common component. Centering, whitening or removing dominant directions may change rankings, but each repair installs a new ruler. A contextual embedding is not a timeless word meaning; it is a state produced by a configured computation.

Two contextual trajectories for the token bank Two paths start together at the token bank and diverge across six model layers towards a finance region and a river region. finance region river region bank L1 L3 L6 L1 L3 L6 “deposit cash at the bank” “walk along the river bank”
Figure 5. Context makes representation a path, not a single lexical location. The paths are conceptual rather than measured model activations. They show why token, sentence, position, layer and pooling rule belong in the representation’s identity. Illustrative · contextual trajectory

Alt text: The word bank begins in the centre. One curved path travels upward through model layers into a finance region, while another travels downward into a river region.

High dimension changes intuition

In two dimensions, random directions can have almost any angle. In a high-dimensional isotropic space, independently sampled unit vectors concentrate near perpendicular. Under the idealised assumptions, their cosine has mean zero and a standard deviation of roughly 1/√d. At one thousand dimensions, a cosine of 0.10 is already several standard deviations from the random baseline.

This does not rescue cosine as universal meaning. Learned spaces are not usually isotropic, points are not independent and preprocessing changes the baseline. The lesson is narrower: a raw number such as 0.72 has no stable interpretation without a reference distribution for that model, layer and dataset.

Cosine concentration as dimension increases Four bell-shaped illustrative distributions centred at zero become narrower from dimension two to dimension one thousand. −1−0.500.51Cosine between random unit vectors d = 2d = 10d = 100d = 1,000
Figure 6. Random directions become nearly orthogonal in high dimension. These curves illustrate the isotropic ideal, not a measured language-model space. Real embeddings can be anisotropic, clustered and correlated, so their empirical baseline must be measured. Illustrative · synthetic high-dimensional model

Alt text: Four distributions centred at cosine zero become progressively narrower as dimension increases from two to one thousand.

A readable direction is not yet a mechanism

Suppose a researcher trains a linear classifier on hidden vectors and predicts whether a sentence is past or present tense with high accuracy. The result is often described as “tense is encoded in the representation”. That phrase compresses several claims. The labels may be recoverable. A simple readout may recover them. The original model may use the same direction. Changing that direction may change behaviour. These statements are not equivalent.

Probes are valuable because they ask whether a property is accessible to a specified decoder. Hewitt and Manning’s structural probe asked whether syntactic tree distances could be recovered after a linear transformation of contextual word representations.[8] Hewitt and Liang showed why probe capacity and control tasks matter: a powerful probe can learn structure that the representation does not make especially accessible.[9] The right conclusion from a good probe is therefore conditional: this property is decodable by this class of readout on this held-out distribution.

Thought experiment · the perfect label bit nobody reads

Take a hidden state h and append one extra coordinate that stores the correct class label. A linear probe reaches perfect accuracy by reading that bit. Now set every downstream weight connected to the new coordinate to zero. The model’s output is unchanged when the bit flips. The label is perfectly available but causally unused. Probe success and mechanism have been separated by construction.

Worked example · 100 per cent access, zero uptake

Create 1,000 synthetic states h = (y, z₁, …, z₉₉), where y is either −1 or +1 and the remaining values are ordinary features. A probe using sign(h₁) recovers every label. Now define the system output as sign(z₁ + z₂ + z₃). Its downstream rule never reads h₁. Replacing h₁ with zero or flipping its sign changes 0 of 1,000 outputs. The correct report is “the label is linearly decodable”, not “the system uses the label”. This synthetic failure case reaches warrant Level 2 but not Level 3.

Decodability and causal uptake can diverge A hidden representation branches to a probe and to the model output. The probe can read a label bit, while a dotted path shows the downstream model ignores it. A second branch shows a causal feature whose intervention changes the output. hidden state h features + label bit linear probe 100% label accuracy downstream model weight on bit = 0 decodable availability established not used flip bit, output fixed selective intervention changes output Availability ≠ uptake
Figure 7. The probe and the mechanism can take different paths. A property can be perfectly decodable yet ignored by the system. The reverse can also occur when the system uses a nonlinear or distributed feature that the chosen probe cannot recover. Illustrative · failure-path diagram

Alt text: A hidden state branches upward to a successful probe and downward to a model that assigns zero weight to the label bit. The figure states that availability is not uptake.

Projection as intervention

Projection turns the distinction into an experiment. If a unit direction d is claimed to carry a property, the matrix P = I − ddᵀ removes the component along that direction. Apply P to a representation and measure what changes. Iterative null-space projection, amnesic probing and later closed-form erasure methods build more elaborate versions of this idea.[10][11][12]

A behaviour change is stronger evidence than decodability because the representation has been altered before the model acts. Yet intervention does not automatically settle the mechanism. Removing one direction can also remove correlated information. The edited vector may move off the distribution on which later layers were trained. Redundant features may reconstruct what was erased. A linear eraser can eliminate every linear decoder while nonlinear information remains.

Recent evaluations of causal probing methods report a trade-off between completeness, which asks whether the target information was thoroughly removed, and selectivity, which asks whether unrelated information was preserved.[13] This is the intervention version of the ruler problem. An eraser encodes assumptions about what counts as the concept and what counts as minimal damage.

Three checks make an intervention interpretable

Completeness asks whether the target information actually disappeared. Retest with fresh linear probes, nonlinear probes and counterfactual examples that were not used to learn the eraser. If a decoder immediately recovers the property, an unchanged behaviour cannot tell us whether the model ignored the property or the intervention failed to remove it.

Selectivity asks what else was damaged. Compare performance on matched control tasks, distances to unedited vectors and removal of random subspaces with the same dimension and norm effect. A large target-task drop accompanied by a large general degradation is not a surgical mechanism result. It may be ordinary corruption.

Plausibility asks whether the edited state resembles one the downstream network could have encountered. A projection can create a mathematically valid vector that lies far from the activation distribution. Later layers may respond unpredictably because the intervention is off-manifold. Counterfactual activation replacement, generative editing or small dose-response steps can reduce this problem, but none removes it automatically. An intervention is evidence only after the intervention itself has been validated.

Mechanism test

Run four matched conditions: remove the proposed direction; remove a norm-matched random direction; remove a label-shuffled direction learned with the same procedure; and add or subtract the proposed direction across counterfactual inputs. Record the target behaviour, collateral-task behaviour, vector norm, distance from the training distribution and whether another decoder recovers the property. Causal uptake requires a selective change, rather than only any change after editing.

Thought experiment · the concept returns through a side door

A model represents urgency through a linear direction and through punctuation patterns encoded on a curved manifold. Project away the urgency direction. A linear probe falls to chance, but the downstream model continues to prioritise urgent messages by using the nonlinear route. Did the model lose urgency? No. The experiment removed linear accessibility, not the whole functional property.

Some concepts are not single directions

The attraction of a direction is simplicity. It lets us classify, steer and erase with one vector. Park, Choe and Veitch formalised versions of the linear representation hypothesis using counterfactuals and showed why the choice of inner product is fundamental.[14] Later work extended the account towards categorical and hierarchical geometry.[15] These results strengthen the case for carefully scoped linear structure.

They do not imply that every useful feature is one-dimensional. Engels and colleagues report irreducibly multi-dimensional circular features, including representations related to days and months that participate in modular computations.[16] A circle cannot be reduced to one globally ordered direction without cutting it. “Monday after Sunday” is local movement around a loop, not movement to a higher scalar value.

The practical boundary is clear. A direction is an empirical hypothesis about geometry, not the default ontology of concepts. It should earn its role by prediction, intervention and transfer.

Strongest alternative explanation

A successful direction may be a convenient summary created by the analyst rather than the unit the model manipulates. Correlated features, dataset shortcuts, probe capacity or local linearisation can produce the same evidence. The rival is weakened when the direction transfers across counterfactual contexts, survives reasonable metric changes and supports selective interventions that the alternatives do not predict.

The representation warrant ladder

The word “encoded” has become too elastic. To make it useful, separate five levels of warrant. Each level permits a stronger sentence and demands a stronger test. This ladder is a practitioner synthesis, not a claim that the scientific literature has adopted one standard vocabulary.

Figure 8. The representation warrant ladder. Moving upward does not make a vector intrinsically meaningful. It earns a more consequential, more tightly scoped claim by adding evidence about invariance, access, use and transfer. Practitioner synthesis · decision instrument

Alt text: A five-level ladder moves from coordinate record through geometric regularity, decodability and causal uptake to scoped semantic warrant. Each level lists required evidence and permitted wording.

Open research hypothesis

Representation claims that are genuinely tied to a system’s computation should be more stable under orthogonal basis changes than under targeted changes to the task-relevant metric, and they should predict intervention effects better than equally decodable control directions. Evidence across model families would strengthen this proposal. Failure of intervention prediction would weaken it. A rival explanation is that local geometry tracks data statistics while the real computation is nonlinear and distributed.

How the claim changes under pressure
Chart · state
stateDiagram-v2
  [*] --> Claim
  state "The origin is not innocent" as Claim
  state "When an axis can earn local<br/>meaning" as Test
  state "The metric is part of the claim" as Revision
  Claim --> Test: expose mechanism
  Test --> Decision: evidence survives
  Test --> Revision: rival survives
  Revision --> Claim: narrow or rebuild
  Decision --> [*]
The revision loop begins with The origin is not innocent and keeps counterexamples inside the reasoning path. Reading use: follow the relation, then return to the surrounding argument for evidence and limits.

The projection notebook

The quickest way to internalise vector geometry is to change one assumption and watch what survives. The notebook below contains three operations. Rotation changes the coordinate basis while preserving Euclidean dot products. Axis weighting changes the ruler and can flip neighbours. Projection erasure removes one declared direction and reveals how much of the observed relation depends on it.

A representation system as an optical bench A text query passes through lenses representing encoder, pooling, normalisation, metric, candidate set and threshold before producing a ranked action. Each lens changes the claim. query “warm-start pump vibration” encoderversion + layer pooltoken rule normalisekeep magnitude? metriccosine / M corpuscandidates rank + threshold retrieve or abstain The vector is one station in the decision system, not the verdict.
Figure 9. The representation pipeline as an optical bench. A statement such as “document A is semantically close to query Q” is produced by the whole configured path. Encoder version, pooling, normalisation, metric, corpus and threshold all belong in the decision receipt. Illustrative · system-boundary view

Alt text: A query beam passes through six optical lenses labelled encoder, pooling, normalisation, metric and corpus before reaching a rank-and-threshold decision.

Realistic configured-system example

A maintenance team retrieves prior incident reports for the query “pump vibrates after warm start”. The system embeds the query, averages selected token vectors, normalises to unit length, searches a fixed index by cosine, reranks the top twenty results and asks an engineer to approve any suggested remedy. A report’s rank is not an intrinsic semantic fact. It is an output of this exact configuration. A model upgrade, a new pooling rule or a changed corpus can reorder the same reports without any document changing.

Now suppose analysts identify an “urgency” direction and observe that high-urgency incidents rank earlier. The warrant ladder changes the investigation. First measure whether the direction generalises to held-out incidents. Then test a norm-matched random direction. Add and subtract small doses of urgency while monitoring both ranking and unrelated attributes such as equipment type. Finally replay the complete retrieval path and record which candidate entered or left the approved set. A movement in cosine without a decision change is not operational uptake. A decision change caused by broad vector damage is not selective uptake.

The resulting decision receipt should name the encoder, layer or output embedding, pooling and normalisation, metric, corpus snapshot, candidate filters, reranker, threshold and human approval step. This level of precision may seem excessive until a ranking is contested. Then it separates a reproducible geometry claim from a screenshot of one run.

Representation claim contract

A compact claim should bind five items: the represented object, the ruler, the invariance class, the readout or action, and the tested scope. For example: “In encoder E, layer L, mean-pooled and unit-normalised, direction d linearly predicts urgency on dataset S; adding d changes top-k retrieval under cosine metric M without degrading equipment-type retrieval across the tested dose range.” Every phrase blocks a different ambiguity. Remove the configuration and the sentence becomes impossible to reproduce.

Executable lab: rotate, stretch, project

Move the controls. Rotation should change displayed coordinates without changing cosine. Axis weighting should change the ranking. Projection erasure removes the dashed direction.

Interactive two-dimensional representation space A query named bridge and candidates river and road move under rotation, stretching and projection controls. Display coordinates after transformation
bridge · river cosine
0.000
bridge · road cosine
0.000
nearest candidate
–
bridge coordinates
(0, 0)
rotation invariant?
yes

Synthetic vectors: bridge (1, 1), river (0.20, 1.76), road (1.67, 0.56). The lab is explanatory, not a benchmark or model measurement.

Projection notebook experimental sequence A circular sequence moves from record configuration to rotate, stretch, decode, intervene and read back, with a stop sign before semantic claim. Recordobject + scope Rotatetest basis Stretchtest ruler Decodecontrols Intervenematched edits Read backeffects + damage Representationclaim contractclaim only what survived
Figure 10. The projection notebook is a sequence of break tests. Record the configured object, test coordinate freedom, perturb the ruler, measure decodability, intervene, and read back both target and collateral effects. The permitted claim is the strongest one that survives the sequence. Practitioner synthesis · experimental protocol

Alt text: Six circular stations form a loop around the phrase representation claim contract: record, rotate, stretch, decode, intervene and read back.

How to use the artefact

The browser lab is immediately runnable. Begin at axis weight one and rotate the space. The displayed coordinates move while both cosines stay fixed. Next change the axis weight. The road and river ranking flips because the metric has changed. Finally remove the purple direction. The remaining vectors show what a single projection preserves and destroys.

For a real model, replace the three toy vectors with a matrix of held-out representations. Define a candidate direction from training-only counterfactual pairs. Run the same sequence with three additions: a calibrated probe, matched control directions and downstream task evaluation. Keep the model version, layer, token selection, normalisation and dataset fixed in the experiment manifest.

Table 2. What notebook outcomes permit and what they do not
ObservationPermitted conclusionStill unresolved
Relations survive matched orthogonal rotationThe claim is not tied to the original coordinate labels.Whether the chosen metric is task-correct.
Ranking changes under modest metric perturbationThe neighbour claim is ruler-sensitive.Which ruler best serves the real decision.
A controlled probe generalisesThe property is accessible to that decoder class.Whether the model uses it.
Selective erasure changes target behaviourTargeted information contributes causally in tested conditions.Whether the direction exhausts the concept.
Erasure has no effectThe tested edit was not necessary for the measured behaviour.Redundancy, recovery, weak intervention or alternative mechanisms.
What positive and negative results mean

A positive intervention result permits a scoped statement about causal contribution only when collateral damage and control directions are acceptably small. A negative result means the tested direction was not shown necessary under that intervention. It does not establish that the concept is absent. The notebook cannot establish intrinsic intentionality, conscious meaning or a universal semantic geometry.

Runnable Python counterpart and extended checks

Save the following as projection_notebook.py and run it with Python 3.9 or later. It uses only the standard library. The script verifies rotation invariance, demonstrates the metric-induced neighbour flip and projects away a declared direction.

Python 3.9+ · synthetic projection notebook
from __future__ import annotations

from math import cos, sin, sqrt, radians
from typing import Dict, Tuple

Vector = Tuple[float, float]

VECTORS: Dict[str, Vector] = {
    "bridge": (1.00, 1.00),
    "river": (0.20, 1.76),
    "road": (1.67, 0.56),
}


def dot(a: Vector, b: Vector) -> float:
    return a[0] * b[0] + a[1] * b[1]


def norm(a: Vector) -> float:
    return sqrt(dot(a, a))


def cosine(a: Vector, b: Vector) -> float:
    denominator = norm(a) * norm(b)
    if denominator == 0:
        raise ValueError("Cosine is undefined for a zero vector")
    return dot(a, b) / denominator


def rotate(a: Vector, degrees: float) -> Vector:
    theta = radians(degrees)
    c, s = cos(theta), sin(theta)
    return (c * a[0] - s * a[1], s * a[0] + c * a[1])


def stretch(a: Vector, x_weight: float) -> Vector:
    if x_weight <= 0:
        raise ValueError("Axis weight must be positive")
    return (x_weight * a[0], a[1])


def project_out(a: Vector, direction: Vector) -> Vector:
    denominator = dot(direction, direction)
    if denominator == 0:
        raise ValueError("Projection direction cannot be zero")
    scale = dot(a, direction) / denominator
    return (a[0] - scale * direction[0], a[1] - scale * direction[1])


def transform(
    a: Vector,
    *,
    degrees: float = 0.0,
    x_weight: float = 1.0,
    erase: bool = False,
    direction: Vector = (1.0, 0.73),
) -> Vector:
    value = stretch(a, x_weight)
    if erase:
        value = project_out(value, direction)
    return rotate(value, degrees)


def ranking(degrees: float, x_weight: float, erase: bool) -> list[tuple[str, float]]:
    transformed = {
        name: transform(vec, degrees=degrees, x_weight=x_weight, erase=erase)
        for name, vec in VECTORS.items()
    }
    query = transformed["bridge"]
    scores = [
        (name, cosine(query, vec))
        for name, vec in transformed.items()
        if name != "bridge"
    ]
    return sorted(scores, key=lambda item: item[1], reverse=True)


def main() -> None:
    baseline = ranking(degrees=0, x_weight=1.0, erase=False)
    rotated = ranking(degrees=73, x_weight=1.0, erase=False)
    assert all(abs(a[1] - b[1]) < 1e-12 for a, b in zip(baseline, rotated))

    river_ruler = ranking(degrees=0, x_weight=0.5, erase=False)
    road_ruler = ranking(degrees=0, x_weight=3.0, erase=False)
    assert river_ruler[0][0] == "river"
    assert road_ruler[0][0] == "road"

    direction = (1.0, 0.73)
    erased = {name: transform(vec, erase=True) for name, vec in VECTORS.items()}
    assert all(abs(dot(vec, direction)) < 1e-12 for vec in erased.values())

    print("Baseline:", baseline)
    print("After a 73 degree rotation:", rotated)
    print("First coordinate weighted 0.5x:", river_ruler)
    print("First coordinate weighted 3.0x:", road_ruler)
    print("After projection erasure:", ranking(0, 1.0, True))


if __name__ == "__main__":
    main()

The invariant encoded by the test is strict: applying the same orthogonal rotation to every vector must preserve cosine up to floating-point error. The stretch test intentionally violates that invariant. The projection test removes only information linearly aligned with the declared direction.

Consequence
The evidence conversation
Chart · sequence
sequenceDiagram
  participant Q as Question
  participant M as Mechanism
  participant E as Evidence
  participant D as Decision
  Q->>M: The constellation that moved without changing
  M->>E: The origin is not innocent
  E-->>M: compare rival explanations
  E->>D: Grant semantic authority only to geometry that survives
  D-->>Q: revise scope or act
Question, mechanism, evidence and decision exchange the burdens developed in Vectors, dot products and representation spaces. Reading use: follow the relation, then return to the surrounding argument for evidence and limits.

Grant semantic authority only to geometry that survives

When a plot, probe or retrieval score appears to reveal a concept, do not ask only whether the picture looks persuasive. Ask what operation made the relation visible and what would remain after changing that operation. The decision is not whether vectors are meaningful in the abstract. The decision is how much authority a particular geometric observation should receive.

  1. Name the represented object. Record model, version, layer, token or pooled unit, context, preprocessing and dataset. “The embedding” is not specific enough.
  2. Declare the ruler. State the inner product, normalisation, centring, whitening, candidate population and baseline distribution. Treat each as part of the hypothesis.
  3. List the expected invariances. Decide which rotations, rescalings, translations or permutations should leave the claim unchanged. A result that fails its own invariance test is a coordinate artefact.
  4. Separate access from use. Use controlled probes for accessibility and matched interventions for causal uptake. Read back target effects, collateral effects and recovery.
  5. Scope the semantic sentence. Say what the geometry supports for which task and counterfactual range. Do not promote a local, linear relation into a universal account of meaning.

A vector space is powerful because it turns relations into operations. Direction enables comparison. Dot products score alignment. Projection isolates a component. Bases let us rewrite the same object. None of these operations carries its own interpretation. The responsible decision is to grant semantic authority only to geometry that survives its declared ruler, predicts downstream use and defeats plausible rival explanations.

Glossary

Vector
An element of a vector space. Coordinates describe it relative to a basis; they are not the vector’s intrinsic identity.
Basis
A set of independent reference directions from which every vector in the space can be composed.
Dot product
An inner product that combines alignment and magnitude. The Euclidean form is the sum of coordinate-wise products.
Cosine similarity
The Euclidean dot product divided by the vectors’ lengths. It compares direction and discards magnitude.
Projection
The component of a vector lying in a declared direction or subspace under a chosen inner product.
Representation space
A set of vectors produced by a system, together with the operations and geometry used to compare or transform them.
Anisotropy
A non-uniform distribution of directions, often including dominant common components that alter cosine baselines.
Probe
A fitted decoder used to test whether a property is accessible from a representation.
Causal intervention
A controlled alteration of a representation followed by measurement of downstream effects and collateral changes.

References

  1. Zhou, K., Gao, H., Chen, S. L., Edelstein, D., Jurafsky, D. and Shani, C. (2025). Rethinking Word Similarity: Semantic Similarity through Classification Confusion. NAACL-HLT.
  2. Mikolov, T., Chen, K., Corrado, G. and Dean, J. (2013). Efficient Estimation of Word Representations in Vector Space.
  3. Pennington, J., Socher, R. and Manning, C. (2014). GloVe: Global Vectors for Word Representation. EMNLP.
  4. Levy, O. and Goldberg, Y. (2014). Neural Word Embedding as Implicit Matrix Factorization. NeurIPS.
  5. Brinkmann, J., Wendler, C., Bartelt, C. and Mueller, A. (2025). Large Language Models Share Representations of Latent Grammatical Concepts Across Typologically Diverse Languages. NAACL-HLT.
  6. Kornblith, S., Norouzi, M., Lee, H. and Hinton, G. (2019). Similarity of Neural Network Representations Revisited. ICML.
  7. Ethayarajh, K. (2019). How Contextual are Contextualized Word Representations? EMNLP-IJCNLP.
  8. Hewitt, J. and Manning, C. D. (2019). A Structural Probe for Finding Syntax in Word Representations. NAACL-HLT.
  9. Hewitt, J. and Liang, P. (2019). Designing and Interpreting Probes with Control Tasks. EMNLP-IJCNLP.
  10. Ravfogel, S., Elazar, Y., Gonen, H., Twiton, M. and Goldberg, Y. (2020). Null It Out: Guarding Protected Attributes by Iterative Nullspace Projection. ACL.
  11. Elazar, Y., Ravfogel, S., Jacovi, A. and Goldberg, Y. (2021). Amnesic Probing: Behavioral Explanation with Amnesic Counterfactuals. TACL.
  12. Belrose, N., Schneider-Joseph, D., Ravfogel, S., Cotterell, R., Raff, E. and Biderman, S. (2023). LEACE: Perfect Linear Concept Erasure in Closed Form. NeurIPS.
  13. Canby, M. E., Davies, A., Rao, C. and Rudinger, R. (2025). How Reliable are Causal Probing Interventions? IJCNLP-AACL.
  14. Park, K., Choe, Y. J. and Veitch, V. (2024). The Linear Representation Hypothesis and the Geometry of Large Language Models. ICML.
  15. Park, K., Choe, Y. J., Jiang, Y. and Veitch, V. (2024). The Geometry of Categorical and Hierarchical Concepts in Large Language Models.
  16. Engels, J., Michaud, E. J., Liao, I., Gurnee, W. and Tegmark, M. (2024). Not All Language Model Features Are One-Dimensionally Linear.