Abstract
Pretrained word embeddings like Word2Vec and GloVe are fundamental to modern NLP, capturing a wide array of linguistic relationships. However, domain-specific information is often obscured by noise in these general-purpose high-dimensional spaces. This paper introduces a novel refinement technique using Layer-wise Relevance Propagation (LRP) to "sharpen" embeddings for specific target knowledge. By isolating dimensions that contribute to specific semantic concepts, the proposed method projects vectors into specialized subspaces that significantly outperform original embeddings in targeted tasks.
Introduction
While general-purpose embeddings are versatile, they often lack the precision required for domain-specific applications. For instance, determining if a word relates to "visual darkness" might be difficult if that information is distributed across dimensions also encoding unrelated semantic features. Existing refinement methods typically rely on external lexicons or task-specific fine-tuning. This work explores a systematic approach to identify and isolate internal dimensions within existing vectors that encode specific types of knowledge.
Methodology: LRP-based Refinement
The proposed pipeline consists of three primary stages:
- Mapping to Semantic Space: A neural network is trained to map original word vectors ($x$) to target semantic representations ($y$). The target space utilizes "brain-based" vectors from Binder et al. (2016), which score words across 65 distinct properties such as Taste, Smell, or Fear.
- Relevance Attribution: Once the mapping is established, Layer-wise Relevance Propagation (LRP) is employed. Originally designed for Explainable AI (XAI) to interpret model decisions, LRP here back-propagates prediction scores to the input vector, assigning a relevance score to each dimension of the original embedding.
- Subspace Projection: Dimensions with low relevance are filtered out. The original $n$-dimensional vector is projected into an $m$-dimensional subspace containing only the features relevant to the target property.
Experimental Results
The method was evaluated using SGNS and GloVe embeddings trained on the COCA corpus. Performance was measured via binary classification tasks—judging if word pairs share a specific property—using both the original (Orig) and refined (Refn) vectors.
As shown in the scatter plot above, the refined vectors consistently demonstrate superior precision across a wide range of properties. For SGNS embeddings (dim=200), the Mean Average Precision improved from 75.6 to 79.4. This improvement was consistent across different embedding types and dimensionalities.
Qualitative Analysis and Generalization
The refinement process effectively reorganizes the embedding space to better cluster words sharing specific properties. This is particularly evident when visualizing the vectors in a reduced dimensional space.
The visualization highlights how the LRP-based projection "mutes" irrelevant dimensions, allowing the targeted semantic features to dominate the vector representation. Furthermore, the method generalizes well to "untrained" words (tested using CSLB concept property norms), suggesting that the identified relevant dimensions capture general linguistic features rather than just memorizing the training set.
Discussion and Limitations
A key insight from this work is that sensorimotor and spatiotemporal concepts (e.g., Shape or Space) are generally harder to refine than abstract or emotional concepts. This suggests a potential limitation in how text-based embeddings capture physical world positioning.
Future work includes addressing the small size of current target datasets (535 words) and automating the thresholding process for dimension selection. Additionally, combining this "internal" XAI-based refinement with "external" knowledge-base adjustments (like retrofitting) could yield even more robust specialized embeddings.
Summary updated