arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2206.06336cs.CL
收藏

语言模型是通用接口

Language Models are General-Purpose Interfaces

Microsoft Research(微软研究院)

Yaru Hao, Haoyu Song, Li Dong, Shaohan Huang, Zewen Chi, Wenhui Wang, Shuming Ma, Furu Wei

摘要:

基础模型由于其在广泛的下游应用中的有效性而受到广泛关注。虽然在架构方面有很大的趋同,但大多数预训练模型通常仍然是针对特定任务或模式开发的。在这项工作中,我们建议使用语言模型作为一个通用的接口,各种基础模型。一组预先训练的编码器感知不同的模态(如视觉和语言),它们与扮演通用任务层角色的语言模型对接。我们提出了一个半因果语言建模目标,共同预训练接口和模块化编码器。我们继承了因果和非因果建模的优势和能力,从而结合了两个世界的最佳状态。具体而言,该方法不仅继承了因果语言建模的上下文学习和开放式生成的能力,而且由于双向编码器,有利于微调。更重要的是,我们的方法无缝地解锁了上述功能的组合,例如,使得能够使用微调编码器进行上下文学习或指令遵循。在各种纯语言和视觉语言基准测试中的实验结果表明,我们的模型在微调,zero-shot泛化和少样本学习方面优于或优于专业模型。

英文摘要:

Foundation models have received much attention due to their effectiveness across a broad range of downstream applications. Though there is a big convergence in terms of architecture, most pretrained models are typically still developed for specific tasks or modalities. In this work, we propose to use language models as a general-purpose interface to various foundation models. A collection of pretrained encoders perceive diverse modalities (such as vision, and language), and they dock with a language model that plays the role of a universal task layer. We propose a semi-causal language modeling objective to jointly pretrain the interface and the modular encoders. We subsume the advantages and capabilities from both causal and non-causal modeling, thereby combining the best of two worlds. Specifically, the proposed method not only inherits the capabilities of in-context learning and open-ended generation from causal language modeling, but also is conducive to finetuning because of the bidirectional encoders. More importantly, our approach seamlessly unlocks the combinations of the above capabilities, e.g., enabling in-context learning or instruction following with finetuned encoders. Experimental results across various language-only and vision-language benchmarks show that our model outperforms or is competitive with specialized models on finetuning, zero-shot generalization, and few-shot learning.

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

↑