[Paper Review] An Empirical Study on Few-shot Knowledge Probing for Pretrained Language Models
This paper investigates few-shot knowledge probing for pretrained language models, proposing that fine-tuning bias vectors (BitFit) significantly outperforms prompt engineering and in-context learning. Using a new 2-hop relation dataset (TREx-2p), the authors show that just 10–20 few-shot examples drastically improve zero-shot performance, with BitFit achieving state-of-the-art results by effectively regularizing the model with minimal parameters.
Prompt-based knowledge probing for 1-hop relations has been used to measure how much world knowledge is stored in pretrained language models. Existing work uses considerable amounts of data to tune the prompts for better performance. In this work, we compare a variety of approaches under a few-shot knowledge probing setting, where only a small number (e.g., 10 or 20) of example triples are available. In addition, we create a new dataset named TREx-2p, which contains 2-hop relations. We report that few-shot examples can strongly boost the probing performance for both 1-hop and 2-hop relations. In particular, we find that a simple-yet-effective approach of finetuning the bias vectors in the model outperforms existing prompt-engineering methods. Our dataset and code are available at \url{https://github.com/cloudygoose/fewshot_lama}.
Motivation & Objective
- To evaluate few-shot knowledge probing in pretrained language models with limited supervision.
- To investigate whether prompt engineering or model fine-tuning yields better performance under few-shot settings.
- To create a new benchmark dataset, TREx-2p, for 2-hop relational knowledge probing.
- To assess the effectiveness of in-context learning, continuous prompt tuning (OptiPrompt), and parameter-efficient fine-tuning (BitFit) in few-shot settings.
Proposed method
- The authors introduce TREx-2p, a new dataset containing 2-hop relations to evaluate more complex knowledge probing.
- They compare multiple few-shot prompting strategies: manual templates (manT), mined templates (mineT), default templates (defT), in-context learning, OptiPrompt (continuous prompt tuning), and model fine-tuning.
- BitFit is applied by fine-tuning only the bias vectors in the final layer or hidden layer, minimizing parameters and reducing overfitting.
- Performance is evaluated using mean reciprocal rank (MRR), with early stopping on a small development set to prevent overfitting.
- OptiPrompt uses learnable continuous prompt tokens to adapt the input prompt dynamically during training.
- Ablation studies compare full fine-tuning, BitFit, and control baselines (only output or hidden layer bias tuning) to isolate the effect of bias fine-tuning.
Experimental results
Research questions
- RQ1Can few-shot examples significantly improve zero-shot knowledge probing accuracy in pretrained language models?
- RQ2Does fine-tuning bias vectors (BitFit) outperform prompt engineering and in-context learning in few-shot knowledge probing?
- RQ3How does the performance of few-shot prompting vary across 1-hop and 2-hop relations, especially given the increased syntactic complexity of 2-hop templates?
- RQ4Can continuous prompt tuning (OptiPrompt) outperform discrete manual or mined templates in few-shot settings?
- RQ5Does the combination of manual templates and OptiPrompt or BitFit provide additional gains?
Key findings
- Few-shot examples (10–20) significantly boost probing accuracy for both 1-hop and 2-hop relations, with performance saturating at around 200 examples.
- BitFit, which fine-tunes only bias vectors, achieves state-of-the-art performance and outperforms full model fine-tuning and OptiPrompt in most cases.
- OptiPrompt outperforms manual and mined templates, confirming the advantage of continuous prompt tuning over discrete templates.
- In-context learning performs competitively in 10–20-shot settings but saturates quickly and is outperformed by OptiPrompt in 40-shot settings.
- The zero-shot performance of manual templates on 2-hop relations is very low (14.4%), indicating higher syntactic complexity challenges.
- Control baselines that fine-tune only the output layer or hidden layer bias perform worse than BitFit, proving that knowledge access is enhanced beyond simple output biasing.
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.