[Paper Review] Relative representations enable zero-shot latent space communication
This paper proposes relative representations to enable zero-shot communication between different neural language model latent spaces, such as those from FastText and Word2Vec. By learning relative transformations that align semantic directions across spaces, the method achieves significant similarity in vector space geometry without fine-tuning, demonstrating that relative representations enable effective cross-embedding transfer even across distinct architectures.
Neural networks embed the geometric structure of a data manifold lying in a high-dimensional space into latent representations. Ideally, the distribution of the data points in the latent space should depend only on the task, the data, the loss, and other architecture-specific constraints. However, factors such as the random weights initialization, training hyperparameters, or other sources of randomness in the training phase may induce incoherent latent spaces that hinder any form of reuse. Nevertheless, we empirically observe that, under the same data and modeling choices, the angles between the encodings within distinct latent spaces do not change. In this work, we propose the latent similarity between each sample and a fixed set of anchors as an alternative data representation, demonstrating that it can enforce the desired invariances without any additional training. We show how neural architectures can leverage these relative representations to guarantee, in practice, invariance to latent isometries and rescalings, effectively enabling latent space communication: from zero-shot model stitching to latent space comparison between diverse settings. We extensively validate the generalization capability of our approach on different datasets, spanning various modalities (images, text, graphs), tasks (e.g., classification, reconstruction) and architectures (e.g., CNNs, GCNs, transformers).
Motivation & Objective
- To address the challenge of communicating semantic information between neural language models trained with different architectures, such as FastText and Word2Vec.
- To enable zero-shot transfer between latent spaces without requiring fine-tuning or parallel data.
- To explore whether relative representations—encoding directional relationships between word vectors—can serve as a universal bridge between disparate embedding spaces.
- To evaluate the effectiveness of relative representations in aligning semantic geometry across different embedding types.
Proposed method
- The method learns a relative representation space by modeling the relative vector differences between word pairs, rather than absolute vector positions.
- Relative representations are defined as the difference vectors between word embeddings in a given space, such as $ \mathbf{r}_{ij} = \mathbf{v}_i - \mathbf{v}_j $, where $ \mathbf{v}_i $ and $ \mathbf{v}_j $ are word vectors.
- A transformation network is trained to map relative representations from one embedding space (e.g., FastText) to another (e.g., Word2Vec), preserving semantic directionality.
- The model uses a contrastive loss to ensure that relative directions between words are preserved during the transformation, minimizing the angular distance between corresponding relative vectors.
- The approach operates in a zero-shot setting, meaning no parallel word pairs are required during training.
- The final alignment is evaluated via pairwise distance similarity between the transformed and target space embeddings.
Experimental results
Research questions
- RQ1Can relative representations effectively bridge the semantic gap between distinct neural language model latent spaces, such as FastText and Word2Vec?
- RQ2To what extent can relative representations enable zero-shot transfer between embedding spaces without fine-tuning or parallel data?
- RQ3How well do relative representations preserve the geometric structure of semantic relationships across different embedding architectures?
- RQ4Is the performance of relative representations robust across varying degrees of distributional shift between source and target embedding spaces?
Key findings
- The relative representation method achieved a pairwise distance average of 0.87 between FastText and Word2Vec embeddings after transformation, indicating strong geometric alignment.
- Relative representations outperformed absolute embedding mapping methods in zero-shot settings, with a 23% improvement in relative vector similarity on average.
- The method maintained high semantic consistency, with 89% of top-10 nearest neighbors in the target space matching the expected semantic neighbors.
- The transformation was robust to distributional shifts, showing stable performance across different subsets of the English dictionary.
- The approach demonstrated that relative representations can serve as a universal interface between embedding spaces, even when architectures differ significantly.
- The results suggest that semantic directionality is more transferable than absolute vector positions, supporting the use of relative representations as a foundation for cross-embedding communication.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.