LGMLOct 16, 2024

Context-Scaling versus Task-Scaling in In-Context Learning

arXiv:2410.12783v15 citationsh-index: 16
Originality Incremental advance
AI Analysis

This provides insights into ICL mechanisms for AI researchers, but it is incremental as it builds on existing ICL studies with a simplified model.

The paper tackles the problem of understanding In-Context Learning (ICL) in transformers by identifying and analyzing context-scaling and task-scaling, showing that transformers can do both while standard MLPs only do task-scaling, and proposing a simplified transformer that performs comparably to GPT-2 in tasks like linear regression.

Transformers exhibit In-Context Learning (ICL), where these models solve new tasks by using examples in the prompt without additional training. In our work, we identify and analyze two key components of ICL: (1) context-scaling, where model performance improves as the number of in-context examples increases and (2) task-scaling, where model performance improves as the number of pre-training tasks increases. While transformers are capable of both context-scaling and task-scaling, we empirically show that standard Multi-Layer Perceptrons (MLPs) with vectorized input are only capable of task-scaling. To understand how transformers are capable of context-scaling, we first propose a significantly simplified transformer architecture without key, query, value weights. We show that it performs ICL comparably to the original GPT-2 model in various statistical learning tasks including linear regression, teacher-student settings. Furthermore, a single block of our simplified transformer can be viewed as data dependent feature map followed by an MLP. This feature map on its own is a powerful predictor that is capable of context-scaling but is not capable of task-scaling. We show empirically that concatenating the output of this feature map with vectorized data as an input to MLPs enables both context-scaling and task-scaling. This finding provides a simple setting to study context and task-scaling for ICL.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes