arXiv:2610.31894cs.CLOct 2026

Manuscript Offprint

arXiv:2610.31894

TaxoSAE: Rethinking Sparse Autoencoders through Taxonomic Logic

Xinyu Guo, Minglai Yang, Clayton T. Morrison, Eduardo Blanco, Mihai Surdeanu

Abstract

Recent Sparse Autoencoders (SAEs) decompose the representations of large language models (LLMs) into interpretable features, enabling precise readout and control of encoded knowledge. However, existing SAEs treat each feature as a standalone unit, whereas real-world knowledge is often taxonomically organized. As a result, readout carries no guarantee of taxonomic consistency, and control lacks the granularity to specify the scope of an edit. We propose TaxoSAE, which explicitly encodes taxonomical information, built on is-a (hypernym–hyponym) relations, into the SAE feature space. TaxoSAE mirrors a taxonomy with a stack of SAEs, one per taxonomy level, and introduces a taxonomic alignment loss that trains each concept to be active whenever one of its hyponyms is. On two factual QA taxonomies, one over biographical relations and one over animals, TaxoSAE enables (1) more accurate readout through the taxonomy with concentrated activations, e.g., +31.3 points in reading out the hypernyms of abstract concepts never queried in training; (2) more precise control, with +25.5 points in swap success, while suppressing a concept removes only its own answers (0–2% accuracy vs. 91–100% on other concepts); and, more importantly, (3) readout of unseen concepts through their hypernyms, with up to +37.9 points in hypernym readout accuracy. GitHub

1 Introduction

Large Language Models (LLMs) encode substantial factual knowledge in their internal representations (Sun et al., 2024a; Cohen et al., 2023; Hu et al., 2025) and have achieved strong performance on a wide range of knowledge-intensive tasks (Yu et al., 2022; Yifei et al., 2026). However, the internal representations of LLMs remain largely opaque (Bereska and Gavves, 2024; Sharkey et al., 2025), making it difficult to read out what knowledge they encode and to precisely control it (Chang et al., 2024; Cohen et al., 2024; Belinkov, 2022).

To mitigate this limitation, some recent Sparse Autoencoders (SAEs) learn disentangled feature spaces by explicitly aligning known concepts with SAE features (Yang et al., 2025; Härle et al., 2026). Similarly, contrastive activation differences (Ferrando et al., 2025; Yeo et al., 2025; Shi et al., 2025) are used with unsupervised SAEs to identify features for specific semantic information. These approaches enable more precise interpretation that can read out specific semantic information, and more targeted control via feature interventions.

Despite this progress, most prior work ignores dependencies between features, leading to a flat feature space where features are not logically linked. This limits readout and control in realistic scenarios, where the knowledge is not flat, but often taxonomically organized. For example, in biology (Diehl et al., 2011), knowledge about cell types follows taxonomic logic: a T cell is a type of lymphocyte, and a lymphocyte is a type of immune cell. In such domains, one often needs to look beyond final answers to their underlying taxonomy, e.g., checking whether an LLM identifies an unfamiliar cell type as an immune cell, and sometimes to control knowledge through this taxonomy, e.g., suppressing knowledge of lymphocytes and all their subtypes without affecting other immune cells.

Specifically, a flat feature space limits SAEs in two ways. First, readout carries no guarantee of taxonomic consistency: features are isolated, so readout yields disconnected activations, e.g., a T cell feature may activate while the lymphocyte feature stays silent. Second, control lacks granularity: a flat space has no notion of an edit's scale or scope, so one cannot specify whether an edit should be minor or substantial, or which dependent information should stay unchanged. For example, replacing T cell with B cell is a minor edit that keeps it a lymphocyte, whereas replacing it with neuron is a substantial one that also changes its hypernyms, yet a flat space treats both as the same feature swap.

To bridge this gap, we propose to encode taxonomical logic directly into the feature space. We introduce TaxoSAE with two components: (1) Stacked SAEs. TaxoSAE mirrors the taxonomy with a stack of SAEs, one per taxonomy level, ordered from the most specific to the most abstract concepts. The first SAE reads the LLM representation and maps it onto the most specific concepts, and each higher SAE reads the reconstruction of the SAE below and maps it onto its hypernyms. (2) Taxonomic alignment loss. To realize the is-a logic (i.e., hyponym-hypernym) between the stacked SAEs, we link concept activations across levels through a training loss: a concept is trained to be active whenever one of its hyponyms is. This turns the rule “if a concept holds, its hypernym holds” into a training objective. Further, this simplifies training considerably, as TaxoSAE requires explicit data points only for terminal concepts, given the taxonomy.

Empirically, on two taxonomies, one over biographical relations and one over animals, TaxoSAE yields cleaner, more readable and more controllable features than the baselines under three evaluations. (i) Readout: with concentrated activations (1.0–1.7 slots per abstract concept), readout accuracy on questions about abstract concepts never seen in training is +31.3 percentage points over the strongest baseline. (ii) Control: editing the feature of a concept steers the model's answer to another concept with +25.5 percentage points in success, and suppressing it removes only that concept's answers, with 0–2% accuracy against 91–100% on other concepts. (iii) Unseen concepts: for concepts absent from training, the upper levels still place them under the right hypernym, with up to +37.9 percentage points in accuracy.

Our contributions are as follows:

• We identify a misalignment between SAE feature spaces and the structure of real-world knowledge: while knowledge is often taxonomically organized, SAE features are not aligned with it, leaving readout without taxonomic consistency and control without granularity.

• We propose TaxoSAE, which, to the best of our knowledge, is the first to explicitly encode a target taxonomy into the SAE feature space. It mirrors a taxonomy with stacked SAEs and turns the is-a rule into a taxonomic alignment loss, requiring supervision only on terminal concepts. It outperforms all baselines in taxonomy readout, control.

• TaxoSAE generalizes: it reads out unseen concepts at their hypernyms, whose is-a relations are absent from the SAEs' supervision; e.g., with honeybee bound but beetle unseen, beetle questions still activate the insect slot, the baselines rarely read them as insect. This improves data efficiency, as not every concept needs binding, and suggests alignment with the taxonomy.

References (19)