Skip to main content
QUICK REVIEW

[Paper Review] Question Generation by Transformers

Kettip Kriangchaivech, Artit Wangperawong|arXiv (Cornell University)|Sep 9, 2019
Topic ModelingComputer Science20 references6 citations
TL;DR

This paper proposes a transformer-based sequence-to-sequence model for automatic question generation from Wikipedia passages, trained on the inverted SQuAD dataset. The model generates grammatically correct, contextually relevant questions with an average of 8 words per question, though word error rates (WER) of 9.66 indicate significant syntactic divergence from SQuAD questions, reflecting limitations in question complexity and diversity of question-starting words.

ABSTRACT

A machine learning model was developed to automatically generate questions from Wikipedia passages using transformers, an attention-based model eschewing the paradigm of existing recurrent neural networks (RNNs). The model was trained on the inverted Stanford Question Answering Dataset (SQuAD), which is a reading comprehension dataset consisting of 100,000+ questions posed by crowdworkers on a set of Wikipedia articles. After training, the question generation model is able to generate simple questions relevant to unseen passages and answers containing an average of 8 words per question. The word error rate (WER) was used as a metric to compare the similarity between SQuAD questions and the model-generated questions. Although the high average WER suggests that the questions generated differ from the original SQuAD questions, the questions generated are mostly grammatically correct and plausible in their own right.

Motivation & Objective

  • To develop a template-free, minimal-human-intervention question generation system using transformers instead of RNNs.
  • To improve efficiency and scalability in quiz and test creation for educators by automating question generation.
  • To evaluate the model's ability to generate grammatically correct and contextually relevant questions without relying on handcrafted rules or templates.
  • To diagnose limitations in question quality using word error rate (WER) and identify biases in question type distribution.
  • To explore data augmentation and pre-trained language models as future improvements to enhance question diversity and semantic accuracy.

Proposed method

  • The model uses a transformer-based sequence-to-sequence architecture with encoder-decoder attention mechanisms, replacing recurrent neural networks (RNNs).
  • Self-attention mechanisms are implemented via scaled dot-product attention: $\text{Attention}(Q,K,V) = \text{softmax}\left(\frac{QK^T}{\sqrt{d}}\right)V$.
  • The model is fine-tuned on the inverted SQuAD dataset, which contains 100,000+ question-answer pairs from Wikipedia passages.
  • Beam search and bucketing are used during decoding to improve generation quality and handle variable-length sequences.
  • Multi-head attention with $h$ heads allows the model to attend to different representation subspaces in parallel, improving contextual modeling.
  • The model is evaluated using word error rate (WER) to compare generated questions with gold-standard SQuAD questions, with additional analysis of question structure and first-word frequency.

Experimental results

Research questions

  • RQ1Can a transformer-based model generate grammatically correct and contextually relevant questions without relying on templates or human-designed rules?
  • RQ2How does the performance of a transformer-based question generator compare to RNN-based models in terms of training efficiency and output quality?
  • RQ3To what extent do generated questions match the semantic and syntactic structure of human-annotated questions in SQuAD?
  • RQ4What are the dominant biases in question type (e.g., starting word distribution) in the generated questions, and how do they compare to human-annotated questions?
  • RQ5How can data augmentation and pre-trained language models improve the diversity and semantic accuracy of generated questions?

Key findings

  • The model generates questions with an average length of 8 words, significantly shorter than the SQuAD average of 12 words, indicating simpler and less detailed questions.
  • The average word error rate (WER) between generated and SQuAD questions is 9.66, indicating substantial syntactic divergence despite grammatical correctness.
  • Despite high WER, many generated questions are semantically plausible and relevant to the context, such as generating 'what is the name of the process of water?' for 'by what means were scientists able to liquefy air?'
  • The model exhibits a strong bias toward generating questions starting with 'what', using only 10 distinct starting words compared to 21 in SQuAD, indicating limited diversity in question types.
  • Questions with WER ≥ 20 still reflect the correct answer and context, but often differ in asking word (e.g., 'who' vs. 'what'), showing semantic similarity despite structural differences.
  • The study suggests that metrics like BLEU or ROUGE may not capture semantic similarity well, and proposes using SQuAD’s question-answering models to evaluate answer agreement as a more reliable evaluation method.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.