Introduction
Neural embeddings, such as those generated by CLIP or Word2Vec, have revolutionized natural language processing by mapping words and concepts into high-dimensional vector spaces. While the famous analogy "King - Man + Woman = Queen" suggests a structured semantic logic, a rigorous mathematical theory explaining how this information is organized has remained elusive. This paper proposes that the semantic meaning of text embeddings is encoded through partial orthogonality—an algebraic structure that mirrors the logic of conditional independence in probability theory.
By treating embeddings as "independence models," the authors develop a framework to identify a word's Markov boundary—its most essential semantic neighbors. This approach demonstrates that these boundaries capture deep conceptual relationships more effectively than standard similarity measures.
The Geometry of Semantic Independence
The central challenge in embedding analysis is formalizing "semantic independence." Intuitively, concepts like "eggplant" and "tomato" are similar because they share the parent category "vegetable." If we could "condition" on the property of being a vegetable, the remaining unique features of an eggplant should be independent of those of a tomato. However, formalizing this intuition in high-dimensional space requires moving beyond simple distance metrics.
Partial Orthogonality ($\perp\perp_O$)
The authors define two vectors as partially orthogonal given a set of other vectors if their residuals—the components of the vectors that do not overlap with the conditioning set—are orthogonal. This definition allows vector spaces to function as independence models that satisfy the "semi-graphoid" axioms (symmetry, decomposition, etc.) used in traditional graphical models. This provides a formal justification for using linear algebra to perform logical reasoning on text.
Generalized Markov Boundaries
In traditional logic, a Markov boundary is the minimal set of variables that renders a target variable independent of all others. In the context of embeddings, which are often "crowded" (where the number of words $n$ greatly exceeds the embedding dimension $d$), the authors propose a distributional relaxation. Instead of seeking exact zero-orthogonality, they identify a set that minimizes the average cosine similarity of residuals across the dataset. This allows for the discovery of the most semantically relevant context for any given word.
Methodology and Theoretical Proofs
The researchers validated their framework through three primary pillars:
- Independence Preserving Embeddings (IPE): The authors provide a theoretical proof that it is possible to construct embeddings that perfectly preserve the conditional independence structure of any given distribution, even when reducing dimensions via random projections.
- Residual Analysis: The core insight is that the "meaning" of a word is found in its residual after projecting out common concepts. To truly understand "eggplant," one must subtract the vectors for "vegetable" and "purple."
- Denoising via Random Subspaces: Standard cosine similarity is often a blunt instrument. The paper demonstrates that by projecting embeddings onto random subspaces, one can "denoise" the vectors and uncover semantically closer neighbors that were previously obscured by high-dimensional noise.
Experimental Results
The theories were tested using CLIP text embeddings, the Brown Corpus, and WordNet as a ground-truth reference. Key findings include:
- Semantic Conditioning: When conditioning on a category word (e.g., projecting out the vector for "fruit"), the similarity between words within that category dropped significantly more than for words outside it. This confirms that the category vector effectively represents the shared information.
- Improved Neighbor Discovery: Using a random projection method (Algorithm 1), the authors found that the top 10 most correlated words were more semantically relevant than those identified by raw cosine similarity. For common nouns, the Wu-Palmer similarity (a linguistic metric) improved from 0.343 to 0.422 after projection.
- Contextual Alignment: The learned Markov boundaries for a word like "car" aligned more closely with the subspace of "road" and "vehicle" than with unrelated concepts like "sea" or "boat," proving the algorithm's ability to capture defining contexts.
Discussion and Limitations
While the framework provides a robust new lens for embedding analysis, several challenges remain:
- The Intersection Axiom: This axiom, required for a unique Markov boundary, rarely holds in practical embeddings because the dimension $d$ is typically too small relative to the vocabulary size $n$. This often results in non-unique boundaries.
- Linearity Assumption: The current framework relies on linear projections. Given that language is often hierarchical and non-linear, extending this theory to non-linear manifolds is a necessary next step.
- Training Dynamics: While CLIP embeddings exhibit this structure, the specific reasons why contrastive learning produces partial orthogonality are not yet fully understood.
Conclusion
By bridging the gap between algebraic geometry and linguistic intuition, this paper offers a powerful new method for interpreting neural embeddings. Partial orthogonality transforms embeddings from black-box vectors into transparent independence models, allowing researchers to uncover the latent logical structures that define human language.
Summary updated