Abstract
We introduce categorical modularity, a novel low-resource intrinsic metric to evaluate word embedding quality. Categorical modularity is a graph modularity metric based on the $k$-nearest neighbor graph constructed with embedding vectors of words from a fixed set of semantic categories, in which the goal is to measure the proportion of words that have nearest neighbors within the same categories. We use a core set of 500 words belonging to 59 neurobiologically motivated semantic categories in 29 languages and analyze three word embedding models per language (FastText, MUSE, and subs2vec). We find moderate to strong positive correlations between categorical modularity and performance on the monolingual tasks of sentiment analysis and word similarity calculation and on the cross-lingual task of bilingual lexicon induction both to and from English. Overall, we suggest that categorical modularity provides non-trivial predictive information about downstream task performance, with breakdowns of correlations by model suggesting some meta-predictive properties about semantic information loss as well.
Introduction
The evaluation of word embeddings typically relies on either extrinsic methods—testing on downstream NLP tasks like sentiment analysis—or intrinsic methods—testing internal properties like word analogies. While extrinsic evaluation is considered the "gold standard," it is computationally expensive and often inaccessible for low-resource languages lacking large annotated datasets. Conversely, traditional intrinsic methods often fail to correlate reliably with real-world performance. This study introduces categorical modularity, a low-resource intrinsic metric that bridges this gap by effectively predicting downstream task performance using a minimal set of 500 words.
Methodology
The proposed metric applies graph modularity to word embedding spaces through a multi-step process:
- Graph Construction: A $k$-nearest neighbor ($k$-NN) graph is built where each word is a node, and edges connect words to their closest neighbors in the embedding space.
- Categorical Labeling: Words are assigned to 59 neurobiologically motivated "Binder categories" (e.g., "Animals," "Furniture"), which reflect how the human brain processes sensory and emotional information.
- Modularity Calculation: The modularity score ($Q$) quantifies the density of edges within categories relative to edges between categories. A high $Q$ indicates that the embedding space successfully clusters semantically related words.
- Normalization: The score is normalized ($Q_{norm}$) to facilitate comparison across different languages and models.
The study evaluated three embedding models—FastText, MUSE, and subs2vec—across 29 languages. Validation was performed against sentiment analysis (IMDB), word similarity (SemEval-2017), and bilingual lexicon induction (BLI).
Results and Discussion
The analysis revealed that categorical modularity based on brain-motivated categories is a significantly better predictor of performance than unsupervised clustering. This suggests that embeddings aligning with human cognitive structures are inherently superior for NLP tasks.
As shown in the scatter plots above, there is a clear positive relationship between modularity and various performance metrics. Notably, the subs2vec model, trained on movie subtitles, showed the strongest correlations. This supports the hypothesis that subtitle data more closely mirrors human linguistic experience compared to encyclopedic text like Wikipedia.
Quantitatively, the strongest correlation was observed in Word Similarity ($\rho = 0.71$), followed by BLI and Sentiment Analysis. These results confirm that categorical modularity provides non-trivial predictive information about a model's utility in downstream applications.
Conclusion
Categorical modularity offers a robust, low-resource alternative for evaluating word embeddings, particularly for languages with limited data. While currently focused on static embeddings, future research aims to adapt this metric for contextualized models like BERT or GPT. Additionally, refining the word sets to focus on the most informative "concrete" categories may further enhance the metric's predictive power.
Summary updated