Prior work on hierarchical representations in language models (LMs) has focused on static unembedding representations and single-token concepts. To examine hierarchical representations across intermediate layers and for multi-token entities, we extend the analytical approach of Chanin et al. (2024) to entire concept hierarchies. We refer to this analytical setup as Linear Hierarchical Encoding (LHE). Across four LMs and five domains (locations, persons, organizations, organisms, and research topics), parent--child relations are linearly decodable, and interventions along the extracted directions can causally steer predictions. The behaviorally relevant information is concentrated in relatively low-dimensional, domain-specific subspaces, yet their internal organization is similar across domains. Finally, editing only a direct-parent relation can produce hierarchy-consistent changes and preservation effects in predictions about higher ancestors, although success varies across domains and models. These results show that LMs instantiate concept hierarchies in distinct subspaces with similar geometry, and that these representations can influence hierarchical predictions.
翻译:暂无翻译