[Paper Review] Differentiable Prompt Makes Pre-trained Language Models Better Few-shot Learners
DART introduces differentiable prompt and label optimization to convert small language models into stronger few-shot learners, achieving notable gains over standard fine-tuning and competitive results with state-of-the-art prompt-tuning methods across 15 NLP tasks.
Large-scale pre-trained language models have contributed significantly to natural language processing by demonstrating remarkable abilities as few-shot learners. However, their effectiveness depends mainly on scaling the model parameters and prompt design, hindering their implementation in most real-world applications. This study proposes a novel pluggable, extensible, and efficient approach named DifferentiAble pRompT (DART), which can convert small language models into better few-shot learners without any prompt engineering. The main principle behind this approach involves reformulating potential natural language processing tasks into the task of a pre-trained language model and differentially optimizing the prompt template as well as the target label with backpropagation. Furthermore, the proposed approach can be: (i) Plugged to any pre-trained language models; (ii) Extended to widespread classification tasks. A comprehensive evaluation of standard NLP tasks demonstrates that the proposed approach achieves a better few-shot performance. Code is available in https://github.com/zjunlp/DART.
Motivation & Objective
- Motivate and address the limitations of large-scale prompting by enabling efficient, plug-in few-shot learning with small LMs.
- Propose DifferentiAble pRompT (DART) to optimize prompt templates and labels in continuous space.
- Ensure model-agnostic applicability and extendability to widespread classification tasks.
- Stabilize training in few-shot regimes with an auxiliary fluency constraint.
- Empirically demonstrate improvements across 15 NLP datasets, including tasks with complex label spaces.
Proposed method
- Use pseudo tokens to construct differentiable templates and optimize them via backpropagation without adding model parameters.
- Represent labels in a continuous space using trainable embeddings mapped to unused tokens in the vocabulary to avoid external parameter optimization.
- Introduce an auxiliary fluency constraint to enforce co-dependency among prompt embeddings and maintain language model fluency.
- Optimize a joint loss combining class discrimination (cross-entropy) and fluency constraint (binary cross-entropy).
- Demonstrate plug-in compatibility with different PLMs (e.g., RoBERTa-large, GPT-2-medium) and extendability to tasks like relation extraction and event extraction.
- Compare against conventional fine-tuning and LM-BFF-style prompt tuning, highlighting improved performance in few-shot settings.
Experimental results
Research questions
- RQ1Can differentiable prompt and label optimization improve few-shot learning when using small-to-medium pre-trained language models?
- RQ2Does jointly optimizing template and label embeddings with a fluency constraint yield more discriminative representations than fixed prompts?
- RQ3Is the DART approach plug-in and model-agnostic across diverse NLP tasks and label spaces?
- RQ4How does DART perform on tasks with complex label semantics (e.g., relation extraction, event extraction) compared to standard fine-tuning and existing prompt-tuning methods?
Key findings
- DART consistently outperforms conventional fine-tuning across 15 NLP datasets in few-shot settings (e.g., with K=8, up to 23.28% absolute improvement on relation extraction datasets).
- DART achieves competitive results with LM-BFF and surpasses P-tuning in several tasks, especially when labels have complex semantics.
- In relation extraction and event extraction with many classes, DART shows substantial gains in few-shot and fully supervised settings (e.g., TACRED-Revisit, Wiki80, ChemProt).
- Ablation studies show all components—fluency constraint, differentiable template, and differentiable label—contribute to performance, with differentiable label optimization being particularly impactful in low-resource regimes.
- Visualization analyses indicate differentiable prompts yield more discriminative, compact representations than fixed prompts, correlating with improved accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.