Training Summarization models in a Reinforcement Learning context
Python
6
62 commits
updated May 1, 2022
The training process for the summarization framework with QA rewards [paper]
This project will implement the framework proposed in this paper that provides a general methodology for training abstractive summarization models to address the hallucination problems such as missing key information in source documents (low recall) or generated summaries be containing facts that are inconsistent with the source documents (low precision). The framework used question-answering based rewards to further train the pre-trained summarization models in a Reinforcement Learning (RL) context.#python3.7
pip install --upgrade pip
pip install -r requirements.txt
python run_demo_server.py --port PORT --model_type TYPE --model_path PATH --model_ref_path PATH
PORT: port to run server (default server will run on http://localhost:8769)model_type: type of summarization pre-trained model. Chose follow options
gpt2google_pegasus_xsummodel_path: pre-trained model trains with question-answering based rewardmodel_ref_path: pre-trained summarization modelpython training.py --pretrained_model_path PRETRAINED_PATH --summary_model_name MODEL_NAME
pretrained_model_path: pre-trained summarization modelsummary_model_name: type of summarization pre-trained model. Chose options
gpt2google_pegasus_xsum./checkpoint/{summary_model_name}python eval.py --model_path MODEL_PATH --model_ref_path MODEL_REF_PATH --model_type MODEL_TYPE
model_path: pre-trained model trains with question-answering based rewardmodel_ref_path: pre-trained summarization modelmodel_type: type of summarization pre-trained model. Chose follow options
gpt2google_pegasus_xsumTraining Summarization models in a Reinforcement Learning context
Python
6
62 commits
updated May 1, 2022
The training process for the summarization framework with QA rewards [paper]
This project will implement the framework proposed in this paper that provides a general methodology for training abstractive summarization models to address the hallucination problems such as missing key information in source documents (low recall) or generated summaries be containing facts that are inconsistent with the source documents (low precision). The framework used question-answering based rewards to further train the pre-trained summarization models in a Reinforcement Learning (RL) context.#python3.7
pip install --upgrade pip
pip install -r requirements.txt
python run_demo_server.py --port PORT --model_type TYPE --model_path PATH --model_ref_path PATH
PORT: port to run server (default server will run on http://localhost:8769)model_type: type of summarization pre-trained model. Chose follow options
gpt2google_pegasus_xsummodel_path: pre-trained model trains with question-answering based rewardmodel_ref_path: pre-trained summarization modelpython training.py --pretrained_model_path PRETRAINED_PATH --summary_model_name MODEL_NAME
pretrained_model_path: pre-trained summarization modelsummary_model_name: type of summarization pre-trained model. Chose options
gpt2google_pegasus_xsum./checkpoint/{summary_model_name}python eval.py --model_path MODEL_PATH --model_ref_path MODEL_REF_PATH --model_type MODEL_TYPE
model_path: pre-trained model trains with question-answering based rewardmodel_ref_path: pre-trained summarization modelmodel_type: type of summarization pre-trained model. Chose follow options
gpt2google_pegasus_xsum