Manuscript Offprint

arXiv:2610.01821

Beyond Linear Concepts: Discovering and Aligning Non-Linear Concept Manifolds in Large Language Models

Tido Specht, Elias Benedict Krey, Nils Neukirch, Nils Strodthoff

ABSTRACT

Understanding information processing in large language models (LLMs) requires dissecting the geometric organization of their internal token representations. While existing mechanistic interpretability (MI) methods seek to extract human-understandable concepts, they are constrained by a strong linearity assumption—an assumption increasingly challenged by evidence of non-linear feature manifolds. In this work, we move beyond linear concepts by adapting Non-Linear Multi-Dimensional Concept Discovery (NLMCD) from computer vision to token-level LLM activations, modeling concepts as low-dimensional manifolds. To enable quantitative comparison of these independently discovered concept manifolds across layers and models, we introduce a concept-based alignment (CBA) score, a generalized Rand index that measures geometric proximity without requiring explicit feature matching. Our analysis yields six key findings: (i) a neighboring-layer sanity check shows CBA is more sensitive than PCA- or CKA-based linear baselines; (ii) layer×layer alignment matrices reveal two characteristic block structures concentrated in intermediate and late layers, consistent across models and obscured by linear metrics; (iii) concept composition remains syntax-dominated through most of the network before giving way to increasingly mixed syntactic–semantic concepts in later layers, with increasing output-orientation toward the final layers; (iv) multilingual concept sharing between English and Mandarin is training-dependent rather than universal — strongest in Qwen, weaker in Llama, and absent in GPT-2; (v) inter-model alignment mirrors this structure: strong correspondence between same-family Qwen models of different scale, consistent with the block structures in (ii), but weak alignment across model families; and (vi) tracing representational alignment across the training stages of the Tulu-3 pipeline shows alignment is highest between adjacent stages, validating CBA, with the largest shift occurring between the base model and the SFT stage, while subsequent preference-alignment stages (DPO, RLVR) leave early layers largely unchanged and RLVR mostly preserves DPO’s concepts in late layers.

1 INTRODUCTION

Large Language Models (LLMs) are gaining traction in a variety of tasks, most notably as assistant chatbots, as agents that solve complex tasks, and as coding support, making them among the most influential machine-learning paradigms of the present day. As LLMs are trained, scaled, finetuned, and adapted across languages, a recurring question is whether and how their internal representations change: Does finetuning reorganize concepts or merely refine them? Do larger models within a family preserve the representational structure of smaller ones? Do multilingual models encode shared, language-agnostic concepts, or largely separate ones per language? Answering such questions requires comparing internal representations across layers, model scales, training stages, and languages — a task that depends entirely on having a reliable notion of representational alignment.

The standard tools for this comparison are global alignment metrics such as Centered Kernel Alignment (CKA) or canonical correlation analysis (CCA). These methods compare entire activation spaces under an implicit linear representation hypothesis: similarity is measured via linear projections or kernel similarities over the full activation vector, rather than over the discrete, interpretable units.

(concepts, features) that individual activations may encode. This is a poor fit for evidence that some computationally relevant structures in LLMs are intrinsically multi-dimensional and non-linear (Engels et al., 2025), and it makes such metrics comparatively insensitive: two representation spaces can appear highly similar under CKA/CCA even when their underlying concept structure diverges substantially at a finer grain.

We investigate an alternative based on Non-Linear Multi-Dimensional Concept Discovery (NLMCD) (Vielhaben et al., 2026), which treats concepts as density-supported manifolds rather than linear directions. It builds on evidence, including from sparse autoencoders (SAEs), that concept-level decompositions of LLM activations are a productive unit of comparison (Bricken et al., 2023; Gao et al., 2024), while relaxing the linearity assumption most such methods share. Activations are embedded with UMAP, clustered with HDBSCAN, and represented by fuzzy token-to-concept memberships. These memberships enable Concept-Based Alignment (CBA), a fuzzy generalization of the Rand index that compares the pairwise relations induced by two independently discovered concept spaces — without requiring the same architecture, tokenizer, or training stage on both sides, unlike global alignment metrics that presume a shared coordinate system. While the discovered concepts could also support other uses, such as mechanistic interpretability, we focus entirely on their use for alignment, and present a comprehensive view of intra- and inter-model representational alignment across a variety of LLMs.

Our technical contributions and most important findings are: (R0) We adapt NLMCD to residual stream hidden activations and validate the resulting clustering via coverage, reconstruction, and density-based quality metrics. (R1) We propose a neighboring-layer sanity check showing CBA is more sensitive than PCA- and CKA-based baselines. (R2) We find qualitatively similar block structures in layer×layer alignment across models, with two characteristic blocks in intermediate and late layers. (R3) We characterize discovered concepts quantitatively in terms of syntactic/semantic content, finding a relative decrease of purely syntactic concepts in favor of joint syntactic-semantic concepts toward later layers, alongside increasing output-orientation toward final layers. (R4) We find multilingual concepts shared across an aligned English–Mandarin corpus, strongest in Qwen, weaker in Llama, and absent in GPT-2. (R5) We find strong inter-model alignment between same-family Qwen models of different scale, consistent with the block structures identified in (R2), but weak structural alignment across model families. (R6) We trace representational alignment across Tulu-3 training stages: alignment is highest between adjacent stages, validating CBA; the largest shift occurs between the base model and SFT; and preference-alignment (DPO, RLVR) leaves early layers largely unchanged while RLVR mostly preserves DPO's concepts in late layers. Fig. 1 summarizes the method and the three main uses studied in this paper.

Figure

Figure 1: Overview of NLMCD-NLP. Layer-wise token activations are clustered into nonlinear concepts with fuzzy memberships. Using a concept-based alignment (CBA) score, we conduct several experiments on these concept manifolds.

References (33)