Reinforcement Replaces Supervision: Query focused Summarization using Deep Reinforcement Learning
Swaroop Nath1, Pushpak Bhattacharyya1, Harshad Khadilkar2
1IIT Bombay 2TCS Research
Training BART for query-focused summarization with policy-gradient rewards, instead of token-by-token supervision, improves ROUGE-L on ELI5 by about 10 points.
Interactive Demo
Score a summary with the rewards used in the paper, read outputs from the trained models, and browse the results.
Query
What is String Pool in Java?
Document (shortened, from Table 1 of the paper)
String pool is nothing but a storage area in Java heap where string literals are stored. It is also known as String Intern Pool or String Constant Pool. It is just like object allocation. By default, it is empty and privately maintained by the Java …
* Written for this demo, not taken from the paper.
Needs the fine-tuned BERT-large passage embedder (see Method). It scores meaning, so it does not penalise rewording the way the lexical rewards above do.
Candidate, with the words ROUGE-L matches
Computed in your browser on lower-cased words, without stemming. ROUGE-L is the LCS-based F1. BLEU follows the paper's Table 2 (mean of cumulative BLEU-1 to BLEU-4, with brevity penalty, no smoothing); the authors' implementation may differ in tokenisation. Token match compares words position by position, as an illustration of Eq. 1.
Outputs are reproduced from the paper's appendix; the documents are omitted there for readability unless shown.
Abstract
Query-focused Summarization (QfS) deals with systems that generate summaries from document(s) based on a query. Motivated by the insight that Reinforcement Learning (RL) provides a generalization to Supervised Learning (SL) for Natural Language Generation, and thereby performs better (empirically) than SL, we use an RL-based approach for this task of QfS. Additionally, we also resolve the conflict of employing RL in Transformers with Teacher Forcing. We develop multiple Policy Gradient networks, trained on various reward signals: ROUGE, BLEU, and Semantic Similarity, which lead to a 10-point improvement over the State-of-the-Art approach on the ROUGE-L metric for a benchmark dataset (ELI5). We also show performance of our approach in zero-shot setting for another benchmark dataset (DebatePedia) – our approach leads to results comparable to baselines, which were specifically trained on DebatePedia. To aid the RL training, we propose a better semantic similarity reward, enabled by a novel Passage Embedding scheme developed using Cluster Hypothesis. Lastly, we contribute a gold-standard test dataset to further research in QfS and Long-form Question Answering (LfQA).
Method
Supervised (cross-entropy)
Rewards a token-by-token match with the reference.
Policy gradient
Replaces it with a sequence-level reward; the baseline b is the reward of the greedy decode.
-
1
Policy. BART-large reads the query and document concatenated, with positional embeddings extended to 1,568 tokens to fit ELI5's long inputs.
-
2
Making RL affordable. RL needs the model to generate from its own outputs, which costs O(n3) in attention over ~150-token summaries, against O(n2) with Teacher Forcing. A two-pass decoder based on scheduled sampling feeds Gumbel-softmax samples from the first pass into the second, keeping O(n2), with gradients through both passes.
-
3
Rewards. The finished summary is scored against the reference with ROUGE-L, BLEU, SimCSE, SBERT or SfPEG, alone or combined (Table 2).
-
4
Mixed objective. Training keeps a small supervised term:
SfPEG: Similarity From Passage EmbeddinG
Averaging sentence embeddings gives only an approximate passage representation. SfPEG instead trains a passage embedder on the Cluster Hypothesis — passages that answer the same information need should cluster together. A BERT-large dual encoder learns to tell whether two Reddit answers reply to the same question; the reward is the cosine similarity between the embeddings of the generated and reference summaries.
Does the Model Read the Document?
On RQFT, replacing the document with an unrelated one costs the supervised baseline 5.4 ROUGE-L points but the RL models 15.8–17.8. The paper reads this as the RL models summarising the document, while the supervised model largely answers from the query alone (Section 6.3).
In human evaluation of 50 RQFT samples by two annotators, BART R-SfPEG scored highest: fluency 3.46 / 3.48 out of 4 and correctness 0.48 / 0.44, against 3.08 / 3.12 and 0.26 / 0.28 for the supervised BART SL.
Datasets
RQFT · Reliable QfS Tester
250 hand-curated query–document–summary triplets from Wikipedia and high-school textbooks, across 13 domains. Documents carry 1.41 queries on average, to avoid topic centralisation.
RPEDT · Reddit Passage Embedding DataseT
Questions and their answers scraped from 39 subreddits (154,722 training questions), used to train the SfPEG passage embedder.
Citation
@inproceedings{nath-etal-2023-reinforcement,
title = "Reinforcement Replaces Supervision: Query focused Summarization using Deep Reinforcement Learning",
author = "Nath, Swaroop and
Bhattacharyya, Pushpak and
Khadilkar, Harshad",
editor = "Bouamor, Houda and
Pino, Juan and
Bali, Kalika",
booktitle = "Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",
month = dec,
year = "2023",
address = "Singapore",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.emnlp-main.977/",
doi = "10.18653/v1/2023.emnlp-main.977",
pages = "15770--15789"
}