The Geometry of Categorical and Hierarchical Concepts in Large Language Models

Abstract

Understanding how semantic meaning is encoded in the representation spaces of large language models is a fundamental problem in interpretability. In this paper, we study the two foundational questions in this area. First, how are categorical concepts, such as 'mammal', 'bird', 'reptile', 'fish', represented? Second, how are hierarchical relations between concepts encoded? For example, how is the fact that 'dog' is a kind of 'mammal' encoded? We show how to extend the linear representation hypothesis to answer these questions. We then find a remarkably simple structure: simple categorical concepts are represented as simplices, hierarchically related concepts are orthogonal in a sense we make precise, and (in consequence) complex concepts are represented as polytopes constructed from direct sums of simplices, reflecting the hierarchical structure. We validate the results on the Gemma large language model, estimating representations for 957 hierarchically related concepts using data from the WordNet hierarchy.

Cite

Text

Park et al. "The Geometry of Categorical and Hierarchical Concepts in Large Language Models." ICML 2024 Workshops: MI, 2024.

Markdown

[Park et al. "The Geometry of Categorical and Hierarchical Concepts in Large Language Models." ICML 2024 Workshops: MI, 2024.](https://mlanthology.org/icmlw/2024/park2024icmlw-geometry/)

BibTeX

@inproceedings{park2024icmlw-geometry,
  title     = {{The Geometry of Categorical and Hierarchical Concepts in Large Language Models}},
  author    = {Park, Kiho and Choe, Yo Joong and Jiang, Yibo and Veitch, Victor},
  booktitle = {ICML 2024 Workshops: MI},
  year      = {2024},
  url       = {https://mlanthology.org/icmlw/2024/park2024icmlw-geometry/}
}