From Atoms to Trees: Building a Structured Feature Forest with Hierarchical Sparse Autoencoders
Yifan Luo, Yang Zhan, Jiedong Jiang, Tianyang Liu, Mingrui Wu, Zhennan Zhou, Bin Dong
TL;DR
The paper tackles the challenge of interpreting LLM representations by identifying that sparse autoencoder features are organized hierarchically rather than as flat, atomic units. It introduces Hierarchical Sparse Autoencoders (HSAE), which jointly train a sequence of SAEs at increasing dictionary sizes and enforce parent–child relationships to form a structured feature forest via a structural constraint loss and a random feature perturbation mechanism. The authors demonstrate, through qualitative case studies and rigorous quantitative metrics, that HSAE recovers coherent hierarchies that align with human semantics while preserving reconstruction fidelity across dictionary sizes; they also show the learned hierarchies reflect the geometry of the activation space and correlate with interpretability. Ablation studies, cross-model evaluations, and automated interpretability assessments further validate that the hierarchical priors improve structure consistency beyond post-hoc baselines, offering a scalable tool for multi-scale interpretation and potential applications in model steering and safety auditing.
Abstract
Sparse autoencoders (SAEs) have proven effective for extracting monosemantic features from large language models (LLMs), yet these features are typically identified in isolation. However, broad evidence suggests that LLMs capture the intrinsic structure of natural language, where the phenomenon of "feature splitting" in particular indicates that such structure is hierarchical. To capture this, we propose the Hierarchical Sparse Autoencoder (HSAE), which jointly learns a series of SAEs and the parent-child relationships between their features. HSAE strengthens the alignment between parent and child features through two novel mechanisms: a structural constraint loss and a random feature perturbation mechanism. Extensive experiments across various LLMs and layers demonstrate that HSAE consistently recovers semantically meaningful hierarchies, supported by both qualitative case studies and rigorous quantitative metrics. At the same time, HSAE preserves the reconstruction fidelity and interpretability of standard SAEs across different dictionary sizes. Our work provides a powerful, scalable tool for discovering and analyzing the multi-scale conceptual structures embedded in LLM representations.
