Analogical Reasoning Inside Large Language Models: Concept Vectors and the Limits of Abstraction
Gustaw Opiełka, Hannes Rosenbusch, Claire E. Stevenson
TL;DR
This work formalizes abstraction as invariance and investigates whether large language models (LLMs) manifest internal abstract representations. Using function vectors (FVs) and representational similarity analysis (RSA), the authors show FVs are not invariant to low-level input changes and tend to encode multiple task attributes, while verbal concept vectors (CVs) emerge as invariant, concept-specific detectors that can causally influence behavior. CVs reliably capture verbal concepts but fail to produce invariant representations for abstract concepts like 'previous' and 'next', suggesting current LLMs generalize poorly to new domains that require abstract relational reasoning. The findings imply internal knowledge in LLMs is context-dependent and not grounded in reusable abstract concepts, highlighting limits to analogical reasoning and guiding future work on fostering true abstraction in AI systems.
Abstract
Analogical reasoning relies on conceptual abstractions, but it is unclear whether Large Language Models (LLMs) harbor such internal representations. We explore distilled representations from LLM activations and find that function vectors (FVs; Todd et al., 2024) - compact representations for in-context learning (ICL) tasks - are not invariant to simple input changes (e.g., open-ended vs. multiple-choice), suggesting they capture more than pure concepts. Using representational similarity analysis (RSA), we localize a small set of attention heads that encode invariant concept vectors (CVs) for verbal concepts like "antonym". These CVs function as feature detectors that operate independently of the final output - meaning that a model may form a correct internal representation yet still produce an incorrect output. Furthermore, CVs can be used to causally guide model behaviour. However, for more abstract concepts like "previous" and "next", we do not observe invariant linear representations, a finding we link to generalizability issues LLMs display within these domains.
