The Geometry of Categorical and Hierarchical Concepts in Large Language Models

Kiho Park, Yo Joong Choe, Yibo Jiang, Victor Veitch

arXiv:2406.01506 · 2026-07-27 공개 · arXiv · PDF

llama-3 gemma representation-space hierarchical-structure wordnet concept-features linear-representation categorical-concepts

Abstract

The linear representation hypothesis is the informal idea that semantic concepts are encoded as linear directions in the representation spaces of large language models (LLMs). Previous work has shown how to make this notion precise for representing binary concepts that have natural contrasts (e.g., {male, female}) as directions in representation space. However, many natural concepts do not have natural contrasts (e.g., whether the output is about an animal). In this work, we show how to extend the formalization of the linear representation hypothesis to represent features (e.g., is_animal) as vectors. This allows us to immediately formalize the representation of categorical concepts as polytopes in the representation space. Further, we use the formalization to prove a relationship between the hierarchical structure of concepts and the geometry of their representations. We validate these theoretical results on the Gemma and LLaMA-3 large language models, estimating representations for 900+ hierarchically related concepts using data from WordNet.

한국어 요약

한 줄 요약

LLM에서 범주적·계층적 개념을 다각형과 직교성으로 정식화하고, 이 기하 구조를 Gemma와 LLaMA-3에서 검증한다.

핵심 기여도

핵심 아이디어

기존 연구는 이진 개념(예: `male ⇒ female`)을 표현 공간의 방향(direction)으로 정식화했으나, 이는 자연스러운 대조쌍이 없는 개념(예: `is_animal`)을 표현하기 어려웠다. 본 연구는 이러한 한계를 극복하기 위해 개념을 벡터(vector)로 정식화함으로써, 범주적 개념(예: `{mammal, bird, reptile, fish}`)을 다각형(polytope)으로 표현할 수 있도록 확장했다. 이는 기하학적 구조를 통해 개념 간 계층 관계를 분석하는 기초를 제공한다. 또한, 개념 간 직교성(orthogonality)이 의미적 계층 구조와 관련 있음을 이론적으로 증명하여, LLM 내 의미 구조의 기하학적 해석 가능성을 제시한다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용

본 연구는 LLM의 표현 공간을 기하학적으로 해석하는 데 활용될 수 있으며, 모델 조작, 편향 제거, 생성 결과 제어 등 다양한 연구 분야에 적용 가능하다. 특히, `is_animal`과 같은 특성을 벡터로 표현하는 방법은 자연어 생성 시 특정 주제를 강화하거나 제한하는 데 유용할 수 있다.