Introduction • Results • Quick Start • Core Code
We construct a few-shot ASQP dataset (
- BvSP, a various templates-based soft prompt learning method that improves quad prediction by taking into account the correlation between the different templates.
- A new few-shot ASQP dataset
$\mathtt{FSQP}$ contains richer categories and is more balanced for the few-shot study. To the best of our knowledge, this is the first work to explore the few-shot ASQP problem.
Experimental results under four few-shot settings (i.e. one-shot, two-shot, five-shot, and ten-shot) demonstrate that BvSP outperforms strong baselines and has significant gains in other public datasets.
Under the same few-shot settings, BvSP demonstrates superior performance compared to MvP. These results validate the effectiveness of BvSP in providing a broader view of templates.
BvSP continues to outperform all baselines in the full-shot setting. It is worth noting that BvSP exhibits superiority over MvP in both the top-3 and top-15. This underscores that BvSP not only excels in few-shot scenarios but also proves beneficial in full-shot scenarios.
conda create -n bvsp python=3.8
conda activate bvsp
torch==1.11.0
transformers==4.14.1
pytorch_lightning==0.8.1
numpy==1.21.2
To obtain the training model:
- Pre-Train models:
bash scripts/pretrain.sh
- Train in few-shot settings
bash scripts/run.sh
BvSP/js.py
Data processing
BvSP/data_utils.py: line 271
Model init and freeze parameters
BvSP/model.py: line 117~127
Model forward
BvSP/model.py: line 263