2023

How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representations

Guo, Tianyu, Hu, Wei, Mei, Song et al.

Understand

While large language models based on the transformer architecture have demonstrated remarkable in-context learning (ICL) capabilities, understandings of such capabilities are still in an early stage, where existing theory and mechanistic understanding focus mostly on simple scenarios such as learning simple function classes.

  • This paper takes initial steps on understanding ICL in more complex scenarios, by studying learning with representations.
  • Concretely, we construct synthetic in-context learning problems with a compositional structure, where the label depends on the input through a possibly complex but fixed representation function, composed with a linear function that differs in each instance.
  • By construction, the optimal ICL algorithm first transforms the inputs by the representation function, and then performs linear ICL on top of the transformed dataset.

Reading the bibliography…