The geometry of meaning: Semantic Embedding Transformations Research #1
Replies: 3 comments
Literature for our researchSemantic Directions
linear transformations in embeddings
Linguistic Interpretability
Distributional Semantics
Word Analogy Tasks
Embedding Geometry
Morphological Transformations
Cross-Lingual Embedding Alignment
Subspace Identification
Probing Classifiers
Contextual Embeddings (BERT, GPT)
Bias and Fairness in NLP
Manifold Learning in Representation Spaces
|
relational vector miningMoved to this discussion |
Nearly Orthogonal Directions in High DimensionsWorking on code for this here In an ( n )-dimensional Euclidean space ( \mathbb{R}^n ), we can have at most ( n ) mutually orthogonal unit vectors. However, as ( n ) increases, we can fit exponentially many nearly orthogonal vectors—vectors whose pairwise dot products are small but nonzero. This is a well-known phenomenon in high-dimensional geometry. 1. Expected Dot Product Between Random Unit VectorsIf we pick two random unit vectors ( \mathbf{v}_1, \mathbf{v}_2 ) from the unit sphere ( S^{n-1} ), their dot product ( \cos \theta ) follows a normal distribution with mean zero and variance:
As Concentration of Measure in High Dimensions 2. Distribution of Dot Products in High DimensionsFor two random unit vectors, the probability density function (PDF) of their dot product ( x = \cos \theta ) is approximately:
This shows that as ( n ) grows, the dot products cluster around zero (i.e., angles near ( 90^\circ )). See Distribution of scalar products of two random unit vectors in 𝐷 dimensions 3. Number of Nearly Orthogonal VectorsThis comes from the Johnson-Lindenstrauss Lemma If we define near-orthogonality as:
for some small
This means that the number of nearly orthogonal vectors grows exponentially with dimension ( n ), making high-dimensional spaces highly expressive. See: Also this video. 4. Applications
As dimensions increase, the behavior of nearly orthogonal vectors becomes an essential property in many applications! |
![E[(\mathbf{v}_1 \cdot \mathbf{v}_2)^2] = \frac{1}{n}](https://private-user-images.githubusercontent.com/1906276/411266148-b1ed2c1f-a606-4f38-a58f-c2f6ef22988c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODcxMzc0NjAsIm5iZiI6MTc4NzEzNzE2MCwicGF0aCI6Ii8xOTA2Mjc2LzQxMTI2NjE0OC1iMWVkMmMxZi1hNjA2LTRmMzgtYTU4Zi1jMmY2ZWYyMjk4OGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDgxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA4MTlUMTA1OTIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTI1ZDY0YjU3ZThiMzZlZTk4MTgzZGJjYzI1MjRjNGRmMDI4Y2UyY2MzNjE0MGU3M2UxY2M1MWRlYjI0NjFkMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.5cEepLbF9zofedqMRfm5QecUUAFUQGQObVIcNP1sHbQ)



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Quick links:
Semantic Embedding Transformations Research
Research on discovering linear relationships within embedding spaces focuses on systematically identifying vectors or directions that correspond to meaningful linguistic transformations. This approach has been studied in the context of word embeddings such as Word2Vec and GloVe, as well as in more advanced, contextual models like BERT or GPT. In these embedding spaces, certain linear transformations often encode grammatical or semantic shifts, such as moving from singular to plural forms, changing tense, or flipping a conceptual property like gender. One of the most widely cited examples is the analogy king – male + female ≈ queen, which suggests that an axis in the embedding space represents a gender transformation.
Within the framework of natural language processing (NLP) and machine learning (ML), it is useful to think of these embeddings as points in a high-dimensional distributional space, where semantic or syntactic similarities emerge as geometric regularities. The discovery of specific “semantic directions” in the space can be treated as a problem in subspace identification, matrix factorization, and interpretability. From a deep learning perspective, the challenge lies in separating meaningful signals from random noise in high-dimensional embeddings, especially when the models are trained on large corpora and contextual transformations (e.g., via Transformers) introduce additional complexity.
From a linguistic point of view, these directions often correlate with classical morphological and syntactic categories, such as number, tense, aspect, and gender, reflecting the morphological and grammatical structures captured by the model. Research into typological variation is also relevant, as different languages might encode such distinctions differently, or not at all, raising interesting questions about cross-lingual embedding alignment and how to isolate or disentangle shared linguistic features.
A key line of research investigates whether these embedding directions are robust and consistent across multiple language models and corpora. This links to broader questions of interpretability and bias: for instance, identifying and mitigating unwanted stereotypes or biases embedded in these directions. Other methodological areas include probing tasks to test whether a model’s latent representations capture certain linguistic properties, as well as designing specialized losses or regularization techniques that encourage embeddings to reflect particular conceptual dimensions.
Numerous research topics arise at the intersection of these ideas. For example, subspace alignment techniques in multilingual NLP explore whether similar transformations emerge across languages and whether they can be mapped or transferred. In interpretability studies, linear transformation analyses aim to locate inherent biases in the geometry of embeddings. Meanwhile, advanced factorization or decomposition methods (PCA, SVD, or more sophisticated manifold learning approaches) are used to extract principal axes corresponding to salient linguistic and semantic distinctions.
Relevant keywords for searching the literature include:
• word embeddings
• semantic directions
• linear transformations in embeddings
• linguistic interpretability
• distributional semantics
• word analogy tasks
• embedding geometry
• debiasing word embeddings
• morphological transformations
• cross-lingual embedding alignment
• subspace identification
• probing classifiers
• contextual embeddings (BERT, GPT)
• bias and fairness in NLP
• manifold learning in representation spaces
• interpretability and explainability in deep learning
Such terms often appear in the technical literature and conference proceedings related to NLP (e.g., ACL, EMNLP, NAACL) and ML (e.g., NeurIPS, ICML, ICLR).
All reactions