Re-examining learning linear functions in context

Omar Naim, Guilhem Fouilhé, Nicholas Asher
11/18/2024
cs.LGcs.CL
transformer-attention

No confident code implementation found for this paper.

Abstract

In-context learning (ICL) has emerged as a powerful paradigm for easily adapting Large Language Models (LLMs) to various tasks. However, our understanding of how ICL works remains limited.

Show full abstract

We explore a simple model of ICL in a controlled setup with synthetic training data to investigate ICL of univariate linear functions. We experiment with a range of GPT-2-like transformer models trained from scratch. Our findings challenge the prevailing narrative that transformers adopt algorithmic approaches like linear regression to learn a linear function in-context. These models fail to generalize beyond their training distribution, highlighting fundamental limitations in their capacity to infer abstract task structures. Our experiments lead us to propose a mathematically precise hypothesis of what the model might be learning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{naim2024reexamining,
  title  = {Re-examining learning linear functions in context},
  author = {Omar Naim and Guilhem Fouilhé and Nicholas Asher},
  year   = {2024},
  eprint = {2411.11465},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.11465v4}
}

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

Discussion