arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.07536cs.LGcs.AIcs.CL
收藏

TART:一种用于任务无关推理的即插即用Transformer模块

TART: A plug-and-play Transformer module for task-agnostic reasoning

Stanford University(斯坦福大学);Cornell University(康奈尔大学)

Kush Bhatia, Avanika Narayan, Christopher De Sa, Christopher Ré

AI总结:

针对大语言模型上下文学习性能弱于任务调优的问题,提出即插即用的TART推理模块,用合成逻辑回归任务训练,无需额外训练即可搭配任意预训练模型,跨模型、任务、模态提升推理性能。

摘要:

大语言模型(LLM)具备上下文学习能力,无需任何任务特定训练,同一模型即可执行多种任务。相比之下,微调等传统适配方法需要针对每个特定任务修改底层模型。然而,即便提供相同的示例,上下文学习的表现始终不及任务特定调优方法。现有大多数方法(例如提示工程)都聚焦于LLM的已学习表征以弥补这一性能差距,但我们的分析显示,LLM的表征中已包含足够信息来做出良好预测。因此,我们聚焦于LLM的推理能力,并证明这一性能差距的存在是因为它们无法执行简单的概率推理任务。这引出了一个有趣的问题:LLM是否真的能够以任务无关的方式学习如何推理?我们给出了肯定的答案,并提出了TART,它通过一个合成训练的基于Transformer的推理模块,从通用层面提升LLM的推理能力。TART仅使用合成逻辑回归任务,以任务无关的方式训练该推理模块,无需额外训练即可将其与任意真实世界预训练模型组合。仅需单个推理模块,TART就能在不同模型家族(GPT-Neo、Pythia、BLOOM)、模型规模(1亿-60亿参数)、任务(14项NLP二分类任务)甚至不同模态(音频和视觉)中提升性能。此外,在RAFT基准测试上,TART提升了GPT-Neo(1.25亿参数)的性能,使其超越了BLOOM(1760亿参数),且与GPT-3(1750亿参数)的差距在4%以内。我们的代码和模型可在https://github.com/HazyResearch/TART 获取。

英文摘要:

Large language models (LLMs) exhibit in-context learning abilities which enable the same model to perform several tasks without any task-specific training. In contrast, traditional adaptation approaches, such as fine-tuning, modify the underlying models for each specific task. In-context learning, however, consistently underperforms task-specific tuning approaches even when presented with the same examples. While most existing approaches (e.g., prompt engineering) focus on the LLM's learned representations to patch this performance gap, our analysis actually reveal that LLM representations contain sufficient information to make good predictions. As such, we focus on the LLM's reasoning abilities and demonstrate that this performance gap exists due to their inability to perform simple probabilistic reasoning tasks. This raises an intriguing question: Are LLMs actually capable of learning how to reason in a task-agnostic manner? We answer this in the affirmative and propose TART which generically improves an LLM's reasoning abilities using a synthetically trained Transformer-based reasoning module. TART trains this reasoning module in a task-agnostic manner using only synthetic logistic regression tasks and composes it with an arbitrary real-world pre-trained model without any additional training. With a single inference module, TART improves performance across different model families (GPT-Neo, Pythia, BLOOM), model sizes (100M - 6B), tasks (14 NLP binary classification tasks), and even across different modalities (audio and vision). Additionally, on the RAFT Benchmark, TART improves GPT-Neo (125M)'s performance such that it outperforms BLOOM (176B), and is within 4% of GPT-3 (175B). Our code and models are available at https://github.com/HazyResearch/TART .

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

↑