Co-training Improves Prompt-based Learning for Large Language Models

Hunter Lang, Monica N. Agrawal, Yoon Kim, David A. Sontag

Introduction

Prompt-based learning has emerged as a standard paradigm for adapting Large Language Models (LLMs) like GPT-3 to new tasks using minimal data. However, this approach suffers from two major drawbacks: brittleness (performance is highly sensitive to prompt wording and few-shot examples) and inefficiency (LLMs are computationally expensive to deploy for specific downstream tasks).

While standard supervised fine-tuning yields better, more robust results, it requires large labeled datasets. This paper introduces a co-training framework that leverages unlabeled data to bridge the performance gap between few-shot prompting and full supervised fine-tuning. By iteratively training a large "prompt model" alongside a smaller, task-specific model, the authors produce a highly efficient, deployable model without needing massive labeled datasets.

Methodology: Co-Training with LLMs

The core idea adapts co-training—a classic semi-supervised learning technique—to the modern LLM era. Co-training requires two independent "views" of the data. In this framework, the authors define two models:

  1. Model $h_0$ (The Prompt Model): Uses the LLM's output probabilities as its view.
  2. Model $h_1$ (The Task Model): A smaller model (e.g., DeBERTa) that uses standard contextual embeddings as its view.

The process is iterative: $h_0$ labels a set of unlabeled data, and the most confident pseudo-labels are used to train $h_1$. Subsequently, $h_1$ labels data to help refine $h_0$.

The authors explore two scenarios based on LLM access:

  • Partial Access (e.g., GPT-3): Only output probabilities are available. The system learns a "label model" that calibrates and ensembles multiple prompts.
  • Full Access (e.g., T0): Model gradients are available. The system uses soft prompt tuning—learning a small set of continuous vectors prepended to the input—to iteratively update the prompt model.
The co-training setup for partial access (left) and full access (right).

Key Insights

  • Pseudolabel Correction: Co-training does more than expand data coverage; it actively corrects errors. Because the two models have different inductive biases, one model can often correctly label examples that the other was confidently wrong about.
  • Automatic Distillation: The iterative loop naturally distills the knowledge of a massive LLM into a much smaller, task-specific model (DeBERTa) without requiring a large, human-labeled teacher dataset.
  • Calibration is Key: For the partial access setting, initializing the label model with a "Calibrate-Before-Use" (CBU) strategy is essential to provide a stable starting signal for the co-training loop.

Experimental Results

The authors evaluated their approach on standard Natural Language Understanding (NLU) benchmarks known to be difficult for few-shot prompting, including RTE (Recognizing Textual Entailment), CB (CommitmentBank), TREC (question classification), and BoolQ.

The quantitative results are striking, often outperforming much heavier baselines:

  • Beating GPT-3 32-shot: On the CB dataset, the co-trained model using only 4 labeled examples outperformed GPT-3's standard 32-shot performance (86.2% vs 75.6% accuracy).
  • Closing the Gap: On RTE, the co-trained models nearly matched the performance of models trained on the full supervised dataset.
  • Efficiency Gains: The co-trained DeBERTa model consistently outperformed the initial prompt-based signal, yielding a high-performance model that is orders of magnitude smaller than the original LLM.
Few-shot learning results across various models and datasets.

Limitations and Future Work

While powerful, the co-training approach has limitations. It can fail if the initial prompt model is too noisy; for instance, high initial noise on the BoolQ dataset caused the co-training process to degrade performance rather than improve it. Additionally, the method relies on having a sufficient amount of unlabeled data to allow for generalization. Finally, while soft prompt tuning is parameter-efficient, it still requires computationally intensive backpropagation through the entire large model.

Future work may explore "warm-starting" models to reduce training time or developing better ways to select initial prompts that are most amenable to the co-training process.

Summary updated

BibTeX
@inproceedings{lang2022co,
  author = {Hunter Lang and Monica N. Agrawal and Yoon Kim and David A. Sontag},
  title = {{Co-training Improves Prompt-based Learning for Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=_Dul-gkVwqlN},
}
Figure