Go-tuning: Improving Zero-shot Learning Abilities of Smaller Language Models

Jingjing Xu, Qingxiu Dong, Hongyi Liu, Lei LiarXiv 2022

Abstract

With increasing scale, large language models demonstrate both quantitative improvement and new qualitative capabilities, especially as zero-shot learners, like GPT-3. However, these results rely heavily on delicate prompt design and large computation. In this work, we explore whether the strong zero-shot ability could be achieved at a smaller model scale without any external supervised data. To achieve this goal, we revisit masked language modeling and present a geometry-guided self-supervised learning method (Go-tuning for short) by taking a small number of task-aware self-supervised data to update language models further. Experiments show that Go-tuning can enable T5-small (80M) competitive zero-shot results compared with large language models, such as T5-XL (3B). We also apply Go-tuning on multi-task settings and develop a multi-task model, mgo-T5 (250M). It can reach the average performance of OPT (175B) on 9 datasets.

Introduction

Large Language Models (LLMs) like GPT-3 are renowned for their "zero-shot" capabilities—the ability to perform tasks they weren't specifically trained for simply by following a prompt. However, this ability is typically an emergent property of massive scale, requiring billions of parameters and enormous compute. Smaller models often fail at zero-shot tasks because of a "landscape gap": the way they represent language during general pre-training does not align perfectly with the narrow constraints of a specific task (e.g., choosing between "positive" and "negative").

To address this, researchers often use "instruction tuning," which requires massive human-labeled datasets. Go-tuning (Geometry-guided self-tuning) proposes an alternative: achieving strong zero-shot abilities using only unlabeled data by aligning the model's internal representations with task-specific constraints.

Methodology

Go-tuning bridges the gap between general pre-training and task-specific inference through a three-step self-supervised process:

  1. Building a Label-space Datastore: The model's internal "vocabulary landscape" is mapped by storing token embeddings.
  2. Extracting Task-Aware Data: Given a few "seed labels" for a task (e.g., "positive/negative"), the system identifies geometric neighbors in the embedding space (e.g., "excellent," "terrible"). It then searches a massive raw text corpus (C4) for sentences containing these related tokens to create a task-specific training set.
  3. Geometry-Guided Training: The model is fine-tuned on this data using Masked Language Modeling (MLM). By using Kernel Density Estimation (KDE) to aggregate the probabilities of related tokens, the model learns that words like "negative" and "disastrous" belong to the same task-constrained direction, making it more robust to prompt variations.
The Go-tuning pipeline: Task-constraint Datastore construction and Self-Supervised Training.

Experimental Setup

The authors evaluated Go-tuning on 9 diverse datasets across 5 categories, including sentiment classification (SST2), Natural Language Inference (QNLI, RTE, CB, WNLI), Paraphrasing (MRPC, PAWS), Question Answering (BoolQ), and Grammar Checking (CoLA). Training data was sourced from the unlabeled C4 (Colossal Clean Crawled Corpus). For multi-task evaluation, the mgo-T5 model was developed by merging seed labels from 260 different tasks.

Key Results

The quantitative results demonstrate that Go-tuning allows smaller models to "punch" far above their weight class:

  • Small vs. Large: A go-T5-small (80M parameters) achieved an average score of 54.8, outperforming the much larger T5-3B (3 billion parameters) which scored 53.3.
  • Beating the Giants: The multi-task mgo-T5 (250M parameters) reached an average score of 58.2. As shown in the comparison below, this exceeds the average performance of OPT-175B (56.3), a model roughly 700 times larger.
  • Specific Task Gains: On the SST2 sentiment task, mgo-T5 reached 75.4% accuracy, a significant improvement over the base T5's 64.1%.
Comparison of mgo-T5 (250M) against massive language models like GPT-3, LaMDA, and OPT on zero-shot benchmarks.

Discussion and Conclusion

The core insight of Go-tuning is that the knowledge required for a task is often already present within a model's embeddings; it simply needs to be aligned. By grouping similar tokens during training, the model becomes robust to surface-level wording and focuses on underlying intent.

While Go-tuning excels at standard NLP tasks, LLMs still maintain a lead in complex reasoning tasks. Future work will focus on bridging this complexity gap and exploring more task-agnostic settings. Go-tuning proves that with the right self-supervised objective, massive scale is not the only path to strong zero-shot performance.

Summary updated

BibTeX
@misc{xu2022go,
  author = {Jingjing Xu and Qingxiu Dong and Hongyi Liu and Lei Li},
  title = {{Go-tuning: Improving Zero-shot Learning Abilities of Smaller Language Models}},
  year = {2022},
  eprint = {2212.10461},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.10461},
}
Figure