Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks

Zhenhailong Wang, Xiaoman Pan, Dian Yu, Dong Yu, Jianshu Chen +1 more
10/1/2022
cs.CL

Official code: MikeWangWZHL/Zemi (15 stars, Python, last commit 2023-05-03).

Abstract

Although large language models have achieved impressive zero-shot ability, the huge model size generally incurs high cost. Recently, semi-parametric language models, which augment a smaller language model with an external retriever, have demonstrated promising language modeling capabilities.

Show full abstract

However, it remains unclear whether such semi-parametric language models can perform competitively well as their fully-parametric counterparts on zero-shot generalization to downstream tasks. In this work, we introduce $\text{Zemi}$, a zero-shot semi-parametric language model. To our best knowledge, this is the first semi-parametric language model that can demonstrate strong zero-shot performance on a wide range of held-out unseen tasks. We train $\text{Zemi}$ with a novel semi-parametric multitask prompted training paradigm, which shows significant improvement compared with the parametric multitask training as proposed by T0. Specifically, we augment the multitask training and zero-shot evaluation with retrieval from a large-scale task-agnostic unlabeled corpus. In order to incorporate multiple potentially noisy retrieved augmentations, we further propose a novel $\text{augmentation fusion}$ module leveraging perceiver resampler and gated cross-attention. Notably, our proposed $\text{Zemi}_\text{LARGE}$ outperforms T0-3B by 16% on all seven evaluation tasks while being 3.9x smaller in model size.

View on arXivView PDF

Code Implementations(1)

MikeWangWZHL/ZemiOfficial100%

Repo for "Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks" ACL 2023 Findings

150Python, ShellAug 14, 20223 years ago
language-modelmultitask-learningsemi-parametric-modelingzero-shot

Similar Papers

Cite this paper

@article{wang2022zemi,
  title  = {Zemi: Learning Zero-Shot Semi-Parametric Language Models from Multiple Tasks},
  author = {Zhenhailong Wang and Xiaoman Pan and Dian Yu and Dong Yu and Jianshu Chen and Heng Ji},
  year   = {2022},
  eprint = {2210.00185},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.00185}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.00185.svg)](https://codeofpaper.com/paper/2210.00185)

Discussion