There are exponentially many vectors with small inner product | Longest path search
An interesting observation that Alex stumbled across while reading some of Anthropic's work on LLM interpretability is the following Although it's only possible to have 𝑛 orthogonal vectors in an 𝑛 -dimensional space, it's possible to have exp ( 𝑛 ) many "almost orthogonal" ( 𝜀 cosine similarity) vectors in high-dimensional spaces. See the Johnson–Lindenstrauss lemma. While the JL lemma does indicate that this might be true (ish, in a certain sense) it is not obvious that this statement directly translates to the one given here. (I won't comment on the content on the rest of the linked post, some of which I find somewhat, uh, loose in construction, but I'll focus specifically on this point.) For example, a simple fact from linear algebra is that, given 𝑚 vectors 𝑥 1 , … , 𝑥 𝑚 ∈ 𝐑 𝑛 in 𝑛 dimensional space each of which has nonpositive inner product with any other vector 𝑥 𝑖 𝑇 𝑥 𝑗 ≤ 0 for 𝑖 ≠ 𝑗 , we have that 𝑚 ≤ 2 𝑛 . In other words: no more than 2 �
There are exponentially many vectors with small inner product – Longest path search There are exponentially many vectors with small inner product 09 Jul, 2025 An interesting observation that Alex stumbled across while reading some of Anthropic's work on LLM interpretability is the following Although it's only possible to have n orthogonal vectors in an n -dimensional space, it's possible to have exp ( n ) many "almost orthogonal" ( ε cosine similarity) vectors in high-dimensional spaces. See the Johnson–Lindenstrauss lemma . While the JL lemma does indicate that this mi
related reading
- A short survey on almost orthogonal vectors in a few specific large dimensionsarxiv.org
- Functions are Vectorsthenumb.at
- Your Transformer is Secretly an EOT Solver | Elements of a Vector Spaceelonlit.com
- What Would Non-Linear Features Actually Look Like? — Liv Gortonlivgorton.com
- Johnson–Lindenstrauss lemma - Wikipediaen.wikipedia.org
- The Linear Representation Hypothesis and the Geometry of Large Language Modelsarxiv.org
- unit-distance-cot.pdfcdn.openai.com
- I found >800 orthogonal “write code” steering vectors | Jacob’s Blogjacobgw.com
- Some ML-Related Math I Now Understand Better — LessWronglesswrong.com
- Maybe I was too harsh on deep learning theory (three days ago) — LessWronglesswrong.com
- Johnson–Lindenstrauss lemma - Wikipediam.wikipedia.org
- unit-distance-remarks.pdfcdn.openai.com