Exploring Interpretability of Independent Components of Word Embeddings with Automated Word Intruder Test

Tomás Musil, David MarecekCOLING 2024

Abstract

Word embeddings are powerful but lack inherent interpretability. This research investigates the application of Independent Component Analysis (ICA) to decompose word2vec embeddings into semantically meaningful features. By pioneering an automated "Word Intruder Test" using Large Language Models (LLMs), the authors provide a scalable method for evaluating model interpretability. Results show that ICA components are significantly more interpretable than raw embedding dimensions, and GPT-4 serves as a reliable proxy for human judgment.

Introduction: The Black Box of Word Embeddings

Word embeddings, such as word2vec, are fundamental to modern Natural Language Processing (NLP). While these dense vectors effectively capture semantic relationships, their individual dimensions are typically "black boxes" that do not correspond to human-understandable concepts. Standard dimensionality reduction techniques like Principal Component Analysis (PCA) often fail to resolve this, as they prioritize variance and frequently result in components that mix multiple syntactic or semantic structures.

This study addresses two primary challenges:

  1. Discovery: Transforming dense embeddings into a set of "unstructured" features where each dimension represents a distinct semantic concept.
  2. Evaluation: Measuring interpretability efficiently without the high cost and time required for human-led "Word Intruder Tests."

Methodology: ICA and Automated Evaluation

The researchers employ Independent Component Analysis (ICA), specifically the FastICA algorithm, to uncover latent semantic features. Unlike PCA, ICA searches for directions in the data that are maximally non-Gaussian. This approach is based on the premise that word embeddings are mixtures of independent semantic signals; by isolating the least-normal distributions, the original "source" features can be recovered.

To evaluate these components, the authors utilize the Word Intruder Test. In this setup, a subject is presented with five words: four "extreme" words from a specific component and one "intruder" from a different component. High interpretability is indicated when the subject can consistently identify the intruder. A key contribution of this work is the automation of this test using LLMs (GPT-3.5 and GPT-4), employing a rotating prompt strategy to mitigate positional bias.

Key Insights: Uni-directionality and Composition

A significant finding is the relationship between a component's distribution shape and its interpretability. The researchers observed a strong correlation ($r = 0.65$) between "uni-directionality"—where a component has a small cluster of words at one extreme and most others near zero—and its semantic clarity.

Figure 3: Histograms of component distributions. The shape of the distribution, particularly its skewness or "uni-directionality," serves as a proxy for how interpretable a semantic feature is.

Furthermore, ICA components exhibit semantic composition via multiplication. For instance, multiplying a "Sound" component by an "Animal" component highlights words like growl, barking, and chirping. This suggests that ICA dimensions function as binary semantic primitives that can be combined intuitively.

Results: LLMs as Human Proxies

The experimental results demonstrate that ICA significantly improves interpretability over raw word2vec dimensions. Human evaluators correctly identified intruders in ICA components 42% of the time, compared to 31% for raw dimensions.

Figure 5: Performance comparison on the Word Intruder Test. GPT-4 achieves the highest interpretability scores, closely mirroring and even exceeding human performance in identifying semantic intruders.

As shown in the table above, GPT-4 outperformed GPT-3.5 and achieved an interpretability score of 524 out of 1024 for ICA, far exceeding the random baseline of 20%. This high performance suggests that LLMs can effectively serve as "human-in-the-loop" proxies, allowing researchers to iterate on model interpretability much faster than previously possible.

Discussion and Future Work

While promising, the use of ICA has limitations. The algorithm is stochastic, meaning different runs can produce slightly varied components. Additionally, some components may be overly granular, capturing very specific niches (e.g., lists of specific politicians) rather than general semantic primitives.

Future research will focus on automated labeling, using LLMs to generate descriptive names for ICA components. The ultimate goal is to construct "compositional semantic maps" to further decode the internal logic of large-scale language models.

Summary updated

BibTeX
@inproceedings{musil2024exploring,
  author = {Tomás Musil and David Marecek},
  title = {{Exploring Interpretability of Independent Components of Word Embeddings with Automated Word Intruder Test}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure