Analogical Reasoning Inside Large Language Models: Concept Vectors and the Limits of Abstraction

Gustaw Opiełka, Hannes Rosenbusch, Claire E. Stevenson
3/5/2025
cs.CLcs.LG

No official code found. Best implementation: gucioopielka/concept_vectors (2 stars, last commit 2025-11-26).

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.

View on arXivView PDF

Code Implementations(1)

Analogical Reasoning Inside Large Language Models: Concept Vectors and the Limits of Abstraction

20Shell, PythonJun 20, 202410 months ago

Cite this paper

@article{opieka2025analogical,
  title  = {Analogical Reasoning Inside Large Language Models: Concept Vectors and the Limits of Abstraction},
  author = {Gustaw Opiełka and Hannes Rosenbusch and Claire E. Stevenson},
  year   = {2025},
  eprint = {2503.03666},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.03666v1}
}

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

Discussion