Unlocking In-Context Learning for Natural Datasets Beyond Language Modelling

Jelena Bratulić, Sudhanshu Mittal, David T. Hoffmann, Samuel Böhm, Robin Tibor Schirrmeister +3 more
1/9/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: jelenab98/unlocking_icl (3 stars, last commit 2025-10-02).

Abstract

Large Language Models (LLMs) exhibit In-Context Learning (ICL), which enables the model to perform new tasks conditioning only on the examples provided in the context without updating the model's weights. While ICL offers fast adaptation across natural language tasks and domains, its emergence is less straightforward for modalities beyond text. In this work, we systematically uncover properties present in LLMs that support the emergence of ICL for autoregressive models and various modalities by promoting the learning of the needed mechanisms for ICL. We identify exact token repetitions in the training data sequences as an important factor for ICL. Such repetitions further improve stability and reduce transiency in ICL performance. Moreover, we emphasise the significance of training task difficulty for the emergence of ICL. Finally, by applying our novel insights on ICL emergence, we unlock ICL capabilities for various visual datasets and a more challenging EEG classification task.

View on arXivView PDF

Code Implementations(1)

Official GitHub repository for Unlocking In-Context Learning for Natural Datasets Beyond Language Modelling (GCPR 2025)

30Shell, PythonJun 18, 20251 years ago

Similar Papers

Cite this paper

@article{bratuli2025unlocking,
  title  = {Unlocking In-Context Learning for Natural Datasets Beyond Language Modelling},
  author = {Jelena Bratulić and Sudhanshu Mittal and David T. Hoffmann and Samuel Böhm and Robin Tibor Schirrmeister and Tonio Ball and Christian Rupprecht and Thomas Brox},
  year   = {2025},
  eprint = {2501.06256},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.06256v3}
}

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

Discussion