TL;DR
This paper investigates how to best incorporate answer information into transformer-based question generation models. They find that a simple "answer prompting" method, where the answer is directly prepended to the input passage, yields the best results across several metrics, outperforming more complex methods. This suggests that for transformer architectures, explicit answer guidance can be more effective than intricate attention mechanisms or answer-centric sentence selection.
What Problem Does This Paper Address?
Generating relevant and accurate questions from a given text is a crucial task with applications in education, assessment, and improving question-answering systems. A key challenge in question generation (QG) is ensuring the generated question is directly related to a specific piece of information within the text, often the answer. While many QG methods exist, there's a need to systematically explore how different ways of providing this "answer information" impact the quality of generated questions, especially when using powerful transformer architectures. Previous work has primarily focused on RNN-based models, leaving the effectiveness of various answer incorporation strategies in transformer models less explored.
Methods
The authors employ a BART-base transformer architecture for question generation. They experiment with four primary methods for incorporating answer information:
- Answer Prompting (AP): The answer tokens are directly concatenated with the passage tokens and fed into the encoder. The idea is that the self-attention mechanism can then learn the relationship between the passage and the answer.
- Answer Attention (AA): An additional attention block is introduced in the decoder. This block calculates correlations between the answer embedding (derived from the answer tokens) and the current question token representation.
- Answer Vicinity (RS): Instead of feeding the entire passage, only sentences containing the answer are selected and fed to the model. This aims to focus the model on relevant context.
- Custom Product Method (CP): This method aligns encoder outputs with answer embeddings using matrix multiplication, creating a weighted distribution of answer information over the source text. This weighted output is then used in the decoder's cross-attention mechanism.
They also explore combinations of these methods.
Datasets
The experiments are conducted on the SQuAD 1.1 dataset. Since the official test set is not publicly available, they use a split from Zhou et al. (2018) for train, test, and validation.
Key Insights and Ideas
- Simplicity Wins: The most straightforward method, Answer Prompting (AP), surprisingly outperforms more complex techniques like Answer Attention (AA) and the Custom Product Method (CP) when using BART. This suggests that transformers are adept at leveraging direct input cues.
- Answer Focus is Key: The effectiveness of AP highlights the importance of explicitly signaling the answer to the model. This direct guidance seems to be more beneficial than relying on the model to infer answer relevance through intricate attention or sentence selection mechanisms.
- Combinations Don't Always Improve: While combining methods was explored, it didn't consistently lead to better results. In some cases, adding Answer Vicinity (RS) to other methods actually decreased performance.
Key Results
The paper reports results using ROUGE-L and METEOR scores for evaluating generated questions. They also introduce an "Answering Accuracy" metric, which uses a QA model to verify if the generated question, when answered, yields the same answer as the original ground truth.
- BART AP achieved the best scores across ROUGE-L (0.4565) and METEOR (0.4595).
- BART AP also achieved the highest Answering Accuracy (57.33%).
- Adding RS to AP led to a reduction in scores across all metrics compared to AP alone.
- Adding RS to CP showed an improvement over CP alone.
- The custom product method (CP) with a multiplication constant of $10^{-2}$ yielded the best results for that specific setting.
Limitations and Future Work
The authors acknowledge that due to limited compute resources, they were unable to experiment with different transformer architectures (e.g., BART-large) or explore a wider range of hyperparameter settings. They suggest that it would be interesting to investigate how the performance of different answer information methods correlates with the choice of the base transformer architecture. Further research could also explore more sophisticated ways to combine these methods or develop entirely new approaches tailored to transformer strengths.
Summary updated