arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.08991cs.LGstat.ML
收藏

基于自回归组合结构的任务泛化:从 $D$ 个任务中学习能否泛化到 $D^{T}$ 个任务?

Task Generalization With AutoRegressive Compositional Structure: Can Learning From $D$ Tasks Generalize to $D^{T}$ Tasks?

UC San Diego(加州大学圣地亚哥分校);Tsinghua University(清华大学);Stanford University(斯坦福大学);Amazon(亚马逊)

Amirhesam Abedsoltan, Huaqing Zhang, Kaiyue Wen, Hongzhou Lin, Jingzhao Zhang, Mikhail Belkin

AI总结:

本文从自回归组合结构出发,证明仅学习约 $\widetilde{O}(D)$ 个任务即可理论泛化至 $D^T$ 个任务,并通过 ICL 与 CoT 在稀疏奇偶校验、算术和翻译上验证该指数级泛化。

摘要:

大型语言模型(LLM)表现出显著的任务泛化能力,仅需少量示范即可解决它们从未被显式训练过的任务。这引出一个根本问题:何时从一小组任务中学习可以泛化到一个大型任务族?在本文中,我们通过自回归组合结构的视角研究任务泛化,其中每个任务都是 $T$ 个操作的组合,而每个操作都来自包含 $D$ 个子任务的有限族。由此产生一个总规模为 $D^T$ 的任务类别。我们首先表明,仅通过在 $\widetilde{O}(D)$ 个任务上进行训练,在理论上就可以实现对所有 $D^T$ 个任务的泛化。在实验上,我们证明 Transformers 能够通过上下文学习(ICL)和思维链(CoT)推理,在稀疏奇偶校验函数上实现这种指数级任务泛化。我们还进一步展示了奇偶校验函数之外的算术和翻译任务中的泛化。

英文摘要:

Large language models (LLMs) exhibit remarkable task generalization, solving tasks they were never explicitly trained on with only a few demonstrations. This raises a fundamental question: When can learning from a small set of tasks generalize to a large task family? In this paper, we investigate task generalization through the lens of autoregressive compositional structure, where each task is a composition of $T$ operations, and each operation is among a finite family of $D$ subtasks. This yields a total class of size $D^T$. We first show that generalization to all $D^T$ tasks is theoretically achievable by training on only $\widetilde{O}(D)$ tasks. Empirically, we demonstrate that Transformers achieve such exponential task generalization on sparse parity functions via In-context Learning (ICL) and chain-of-thought (CoT) reasoning. We further show generalization in arithmetic and translation, beyond parity functions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑