TY - GEN
T1 - Task-Dependent Algorithmic Equivalence of In-Context Learning
AU - Zhang, Hongyuan
AU - Zhang, Di
N1 - Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2027.
PY - 2027
Y1 - 2027
N2 - 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.
AB - 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.
KW - Algorithmic equivalence
KW - In-context learning
KW - Intelligent computing
KW - Task dependency
KW - Transformer theory
UR - https://www.scopus.com/pages/publications/105046906450
U2 - 10.1007/978-981-92-3435-6_21
DO - 10.1007/978-981-92-3435-6_21
M3 - Conference Proceeding
AN - SCOPUS:105046906450
SN - 9789819234349
T3 - Lecture Notes in Computer Science
SP - 244
EP - 254
BT - Advanced Intelligent Computing Technology and Applications - 22nd International Conference on Intelligent Computing, ICIC 2026, Proceedings
A2 - Huang, De-Shuang
A2 - Zhang, Chuanlei
A2 - Chen, Wei
A2 - Pan, Yijie
A2 - Premaratne, Prashan
PB - Springer Science and Business Media Deutschland GmbH
T2 - 22nd International Conference on Intelligent Computing, ICIC 2026
Y2 - 22 July 2026 through 26 July 2026
ER -