Title: Latent Concept Disentanglement in Transformer-based Language Models
Primary area: interpretability and explainable AI
Keywords: Mechanistic interpretability, in-context learning, transformers, large language models, disentanglement

Abstract: When large language models (LLMs) use in-context learning (ICL) to solve a new task, they must infer latent concepts from demonstration examples. This raises the question of whether and how transformers represent latent structures as part of their computation. Our work experiments with several controlled tasks, studying this question using mechanistic interpretability. First, we show that in transitive reasoning tasks with a latent, discrete concept, the model successfully identifies the latent concept and does step-by-step concept composition. This builds upon prior work that analyzes single-step reasoning. Then, we consider tasks parameterized by a latent numerical concept. We discover low-dimensional subspaces in the model's representation space, where the geometry cleanly reflects the underlying parameterization. Overall, we show that small and large models can indeed disentangle and utilize latent concepts that they learn in-context from a handful of abbreviated demonstrations.

TL;DR: We mechanistically analyze how transformers solve in-context learning problems which require multi-hop reasoning, or with continuous parameterization.