Skip to main navigation Skip to search Skip to main content

Task-Dependent Algorithmic Equivalence of In-Context Learning

  • Hongyuan Zhang
  • , Di Zhang*
  • *Corresponding author for this work
  • Xi'an Jiaotong-Liverpool University

Research output: Chapter in Book or Report/Conference proceeding › Conference Proceeding › peer-review

Abstract

In-Context Learning (ICL) enables large language models to solve new tasks from a few demonstrations, yet existing theoretical accounts—gradient descent, Bayesian inference, kernel methods—each explain ICL under restricted assumptions. We hypothesise that the dominant algorithmic behaviour of ICL is task-dependent and introduce three computable task features—linear predictability (L), prior concentration (P), and nonlinear smoothness (S)—that predict which classical algorithm ICL most closely approximates. Four experiments on synthetic and real-world tasks validate the framework. Extreme task regions exhibit the predicted algorithmic specialisation; the empirical phase diagram reveals smooth but broad transition zones between regimes; real-world mapping achieves 75% prediction accuracy; and the dominant algorithm is preserved in 73.3% of architecture variants. A simplified theoretical analysis provides consistent explanations for the observed patterns, while the empirical phase diagram uncovers richer structure than the theory alone predicts, pointing to further factors governing ICL’s algorithmic selection.

Original languageEnglish
Title of host publicationAdvanced Intelligent Computing Technology and Applications - 22nd International Conference on Intelligent Computing, ICIC 2026, Proceedings
EditorsDe-Shuang Huang, Chuanlei Zhang, Wei Chen, Yijie Pan, Prashan Premaratne
PublisherSpringer Science and Business Media Deutschland GmbH
Pages244-254
Number of pages11
ISBN (Print)9789819234349
DOIs
Publication statusPublished - 2027
Event22nd International Conference on Intelligent Computing, ICIC 2026 - Toronto, Canada
Duration: 22 Jul 2026 → 26 Jul 2026

Publication series

NameLecture Notes in Computer Science
Volume16665 LNAI
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference22nd International Conference on Intelligent Computing, ICIC 2026
Country/TerritoryCanada
CityToronto
Period22/07/26 → 26/07/26

Keywords

  • Algorithmic equivalence
  • In-context learning
  • Intelligent computing
  • Task dependency
  • Transformer theory

Cite this