HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Language Models are General-Purpose Interfaces

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

Language Models are General-Purpose Interfaces

Abstract

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.

Code Repositories

microsoft/unilm
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
image-captioning-on-flickr30k-captions-testMetaLM
CIDEr: 43.3
SPICE: 11.7
image-captioning-on-nocaps-valMetaLM
CIDEr: 58.7
SPICE: 8.6
visual-question-answering-on-ok-vqaMetaLM
Accuracy: 11.4
visual-question-answering-on-vqa-v2-valMetaLM
Accuracy: 41.1

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Language Models are General-Purpose Interfaces | Papers | HyperAI