A Unified Theoretical Framework for Task Recognition and Task Learning in In-Context Learning
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:50 UTC · 176f0193fd4a ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,26 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "mzLkPTQDvG"- }- ],- "title": "A Unified Theoretical Framework for Task Recognition and Task Learning in In-Context Learning",- "authors": [- "Zhixuan Pan",- "Li Cao",- "Yiqi Dong",- "Chenyu Gan",- "Shaowen Wang",- "Jian Li"- ],- "abstract": "In-context learning (ICL) allows large language models (LLMs) to adapt to new tasks from a few examples without parameter updates. Previous work and our empirical studies suggest two modes in ICL: {\\em Task Recognition}, which applies pre-trained knowledge to familiar tasks, and {\\em Task Learning}, which generalizes to novel mappings during inference. \nHowever, a unified theoretical account of these behaviors remains lacking.\nWe propose a new Bayesian prediction framework that models pre-training data using a {\\em species-sampling mixture} over latent tasks to capture the continual emergence of new tasks as the pre-training corpus grows.\nBy formulating an information-theoretic optimization problem, we derive the structure of the optimal ICL predictor under explicit capacity constraints.\n\nOur analysis characterizes optimal capacity allocation across task frequencies: a water-filling strategy that prioritizes high-frequency tasks while assigning zero task-specific information to rare ones. This gives rise to two regimes: for frequent tasks, the model performs \\textit{Task Recognition}, with a prediction-error upper bound consisting of an exponentially decaying recognition term and a residual pre-training error. For rare or unseen tasks, the model performs Task Learning by executing an implicit inference algorithm, with a power-law lower bound on its expected prediction error.\nOur results provide a principled explanation for the dual nature of ICL\nand establish a direct connection between pre-training data distributions, model capacity, and in-context generalization behavior.",- "year": 2026,- "venue": "NeurIPS 2026",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "d5ba20ab-69a5-4f89-81d7-1623dba3c77d"}
paper.json added
+++ b/paper.json@@ -0,0 +1,16 @@+{+ "title": "A Unified Theoretical Framework for Task Recognition and Task Learning in In-Context Learning",+ "authors": [+ "Zhixuan Pan",+ "Li Cao",+ "Yiqi Dong",+ "Chenyu Gan",+ "Shaowen Wang",+ "Jian Li"+ ],+ "abstract": "In-context learning (ICL) allows large language models (LLMs) to adapt to new tasks from a few examples without parameter updates. Previous work and our empirical studies suggest two modes in ICL: {\\em Task Recognition}, which applies pre-trained knowledge to familiar tasks, and {\\em Task Learning}, which generalizes to novel mappings during inference. \nHowever, a unified theoretical account of these behaviors remains lacking.\nWe propose a new Bayesian prediction framework that models pre-training data using a {\\em species-sampling mixture} over latent tasks to capture the continual emergence of new tasks as the pre-training corpus grows.\nBy formulating an information-theoretic optimization problem, we derive the structure of the optimal ICL predictor under explicit capacity constraints.\n\nOur analysis characterizes optimal capacity allocation across task frequencies: a water-filling strategy that prioritizes high-frequency tasks while assigning zero task-specific information to rare ones. This gives rise to two regimes: for frequent tasks, the model performs \\textit{Task Recognition}, with a prediction-error upper bound consisting of an exponentially decaying recognition term and a residual pre-training error. For rare or unseen tasks, the model performs Task Learning by executing an implicit inference algorithm, with a power-law lower bound on its expected prediction error.\nOur results provide a principled explanation for the dual nature of ICL\nand establish a direct connection between pre-training data distributions, model capacity, and in-context generalization behavior.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}