H-Probes: Extracting Hierarchical Structures From Latent Representations of Language Models

Cutter Dawes, Aryan Sharma, Angelos Ioannis Lagos, Shivam Raval
4/15/2026
cs.CLcs.AIcs.LG

No official code found. Best implementation: aryans-15/h-probes (0 stars, last commit 2026-04-15).

Abstract

Representing and navigating hierarchy is a fundamental primitive of reasoning. Large language models have demonstrated proficiency in a wide variety of tasks requiring hierarchical reasoning, but there exists limited analysis on how the models geometrically represent the necessary latent constructions for such thinking. To this end, we develop H-probes, a collection of linear probes that extract hierarchical structure, specifically depth and pairwise distance, from latent representations. In synthetic tree traversal tasks, the H-probes robustly find the subspaces containing hierarchical structure necessary to complete the tasks; furthermore, in comprehensive ablation experiments, we show that these hierarchy-containing subspaces are low-dimensional, causally important for high task performance, and generalize within- and out-of-domain. Furthermore, we find analogous, though weaker, hierarchical structure in real-world hierarchical contexts such as mathematical reasoning traces. These results demonstrate that models represent hierarchy not only at the level of syntax and concepts, but at deeper levels of abstraction -- including the reasoning process itself.

View on arXivView PDF

Code Implementations(1)

aryans-15/h-probesCommunity66%

Code for "H-Probes: Extracting Hierarchical Structures From Latent Representations of Language Models"

00Apr 15, 20266 months ago

Similar Papers

Cite this paper

@article{dawes2026hprobes,
  title  = {H-Probes: Extracting Hierarchical Structures From Latent Representations of Language Models},
  author = {Cutter Dawes and Aryan Sharma and Angelos Ioannis Lagos and Shivam Raval},
  year   = {2026},
  eprint = {2605.00847},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.00847v2}
}

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/2605.00847.svg)](https://codeofpaper.com/paper/2605.00847)

Discussion