Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Language Models are General-Purpose Interfaces

About

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.

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

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
Accuracy53.5
1891
Visual Question AnsweringVQA v2
Accuracy45.3
1362
Commonsense ReasoningWinoGrande
Accuracy56.1
1085
Commonsense ReasoningPIQA
Accuracy72.3
751
Visual Question AnsweringVQA v2 (test-dev)
Overall Accuracy74.4
706
Image CaptioningMS COCO Karpathy (test)
CIDEr1.266
682
Visual Question AnsweringVQA v2 (test-std)
Accuracy74.5
486
Natural Language Visual ReasoningNLVR2 (test-p)
Accuracy80.9
346
Visual Question AnsweringOK-VQA (test)
Accuracy11.4
327
Visual Question AnsweringOKVQA
Top-1 Accuracy11.4
283
Showing 10 of 24 rows

Other info

Code

Follow for update