Interpreting Embedding Spaces by Conceptualization

Adi Simhi, Shaul Markovitch
8/22/2022
cs.CLcs.AIcs.LG

Official code: adiSimhi/Interpreting-Embedding-Spaces-by-Conceptualization (15 stars, Python, MIT, last commit 2023-10-17).

Abstract

One of the main methods for computational interpretation of a text is mapping it into a vector in some embedding space. Such vectors can then be used for a variety of textual processing tasks.

Show full abstract

Recently, most embedding spaces are a product of training large language models (LLMs). One major drawback of this type of representation is their incomprehensibility to humans. Understanding the embedding space is crucial for several important needs, including the need to debug the embedding method and compare it to alternatives, and the need to detect biases hidden in the model. In this paper, we present a novel method of understanding embeddings by transforming a latent embedding space into a comprehensible conceptual space. We present an algorithm for deriving a conceptual space with dynamic on-demand granularity. We devise a new evaluation method, using either human rater or LLM-based raters, to show that the conceptualized vectors indeed represent the semantics of the original latent ones. We show the use of our method for various tasks, including comparing the semantics of alternative models and tracing the layers of the LLM. The code is available online https://github.com/adiSimhi/Interpreting-Embedding-Spaces-by-Conceptualization.

View on arXivView PDF

Code Implementations(1)

MIT
152Python, Jupyter NotebookOct 8, 20233 years agoMIT

Similar Papers

Cite this paper

@article{simhi2022interpreting,
  title  = {Interpreting Embedding Spaces by Conceptualization},
  author = {Adi Simhi and Shaul Markovitch},
  year   = {2022},
  eprint = {2209.00445},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.00445}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.00445.svg)](https://codeofpaper.com/paper/2209.00445)

Discussion