Skip to main content
QUICK REVIEW

[Paper Review] PANDA: Prompt Transfer Meets Knowledge Distillation for Efficient Model Adaptation

Qihuang Zhong, Liang Ding|arXiv (Cornell University)|Aug 22, 2022
Domain Adaptation and Few-Shot LearningComputer Science14 citations
TL;DR

PANDA proposes a novel prompt transfer method that combines a new task-similarity metric with knowledge distillation to improve few-shot prompt tuning across small and large pretrained language models. By using semantic task embeddings to guide transfer and distilling knowledge from source to target prompts, PANDA achieves performance on par with or better than full fine-tuning, outperforming vanilla prompt transfer by 2.3% average across 189 task pairs.

ABSTRACT

Prompt Transfer (PoT) is a recently-proposed approach to improve prompt-tuning, by initializing the target prompt with the existing prompt trained on similar source tasks. However, such a vanilla PoT approach usually achieves sub-optimal performance, as (i) the PoT is sensitive to the similarity of source-target pair and (ii) directly fine-tuning the prompt initialized with source prompt on target task might lead to forgetting of the useful general knowledge learned from source task. To tackle these issues, we propose a new metric to accurately predict the prompt transferability (regarding (i)), and a novel PoT approach (namely PANDA) that leverages the knowledge distillation technique to alleviate the knowledge forgetting effectively (regarding (ii)). Extensive and systematic experiments on 189 combinations of 21 source and 9 target datasets across 5 scales of PLMs demonstrate that: 1) our proposed metric works well to predict the prompt transferability; 2) our PANDA consistently outperforms the vanilla PoT approach by 2.3% average score (up to 24.1%) among all tasks and model sizes; 3) with our PANDA approach, prompt-tuning can achieve competitive and even better performance than model-tuning in various PLM scales scenarios. We have publicly released our code in https://github.com/WHU-ZQH/PANDA.

Motivation & Objective

  • Address the poor performance of prompt-tuning on small pretrained language models (PLMs), where it lags behind full fine-tuning.
  • Overcome two key limitations of vanilla prompt transfer (PoT): sensitivity to source-target task similarity and catastrophic forgetting of source knowledge.
  • Develop a reliable metric to predict prompt transferability based on semantic task embeddings rather than prompt parameter similarity.
  • Design a knowledge distillation-based prompt transfer mechanism to subtly transfer knowledge from source to target prompts and prevent forgetting.
  • Enable adaptive prompt transfer by using the proposed metric as a dynamic balancing factor between ground-truth and soft label supervision.

Proposed method

  • Propose a new prompt transferability metric that maps source and target tasks into a shared semantic space using their soft prompts, then computes similarity between task embeddings.
  • Introduce PANDA, a prompt transfer framework that uses knowledge distillation: the source prompt acts as a teacher, and a randomly initialized target prompt as a student.
  • Train the student prompt using both ground-truth labels and soft labels predicted by the teacher network, with only the student prompt parameters updated.
  • Dynamically balance the two supervision signals (ground-truth and soft labels) using the predicted prompt transferability score as a weighting factor.
  • Apply the method across multiple PLM sizes (from BERT-tiny to large models) and 21 source and 9 target datasets to evaluate generalization.
  • Use a shared encoder for all tasks, keeping all PLM parameters frozen, while only tuning the soft prompt for each task.

Experimental results

Research questions

  • RQ1Can a semantic-based metric better predict prompt transferability than existing methods relying on prompt parameter similarity?
  • RQ2Does knowledge distillation in prompt transfer effectively reduce catastrophic forgetting during fine-tuning on new tasks?
  • RQ3Can the proposed PANDA framework achieve performance competitive with or better than full-parameter fine-tuning (model-tuning) across various PLM sizes?
  • RQ4How does PANDA perform across diverse NLP tasks and model scales compared to vanilla prompt transfer and standard fine-tuning?
  • RQ5Can the transferability metric enable adaptive prompt transfer by dynamically adjusting knowledge distillation strength per source-target pair?

Key findings

  • The proposed prompt transferability metric significantly outperforms prior methods (e.g., cosine similarity of prompt embeddings) in predicting effective source-target task pairs.
  • PANDA consistently improves over vanilla prompt transfer (SPoT) by an average of 2.3% across all 189 task combinations and all PLM sizes, with gains up to 24.1% on specific tasks.
  • With PANDA, prompt-tuning achieves performance comparable to or better than full model-tuning across all PLM scales, including small models like BERT-tiny.
  • The ablation study confirms that both the transferability metric and knowledge distillation are essential components, as removing either leads to performance degradation.
  • On BERT-small, PANDA achieves a 68.3% average score on SuperGLUE, outperforming SPoT (66.1%) and approaching model-tuning performance.
  • The method generalizes well across diverse NLP benchmarks, including GLUE, SuperGLUE, and named entity recognition tasks (e.g., CoNLL04), demonstrating robustness and scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.