Understanding In-context Learning of Addition via Activation Subspaces
원문 초록
To perform in-context learning, language models must extract signals from individual few-shot examples, aggregate these into a learned prediction rule, and then apply this rule to new examples. How is this implemented in the forward pass of modern transformer models? To study this, we consider a structured family of few-shot learning tasks for which the true prediction rule is to add an integer $k$ to the input. We find that Llama-3-8B attains high accuracy on this task for a range of $k$, and localize its few-shot ability to just three attention heads via a novel optimization approach. We further show the extracted signals lie in a six-dimensional subspace, where four of the dimensions track the unit digit and the other two dimensions track overall magnitude. We finally examine how these heads extract information from individual few-shot examples, identifying a self-correction mechanism in which mistakes from earlier examples are suppressed by later examples. Our results demonstrate how tracking low-dimensional subspaces across a forward pass can provide insight into fine-grained computational structures.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
From Parameters to Prompts: Understanding and Mitigating the Factuality Gap between Fine-Tuned LLMs
Large Language Models as Computable Approximations to Solomonoff Induction
Mechanistic Fine-tuning for In-context Learning
Improving Instruct Models for Free: A Study on Partial Adaptation
Assay2Mol: large language model-based drug design using BioAssay context
Few-Shot Learning by Explicit Physics Integration: An Application to Groundwater Heat Transport
토론
이 논문과 연결된 포럼 글이 아직 없습니다.