Abstract
Question generation has recently gained a lot of research interest, especially with the advent of large language models. In and of itself, question generation can be considered 'AI-hard', as there is a lack of unanimously agreed sense of what makes a question 'good' or 'bad'. In this paper, we tackle two fundamental problems in parallel: on one hand, we try to solve the scaling problem, where question-generation and answering applications have to be applied to a massive amount of text without ground truth labeling. The usual approach to solve this problem is to either downsample or summarize. However, there are critical risks of misinformation with these approaches. On the other hand, and related to the misinformation problem, we try to solve the 'safety' problem, as many public institutions rely on a much higher level of accuracy for the content they provide. We introduce an adversarial approach to tackle the question generation safety problem with scale. Specifically, we designed a question-answering system that specifically prunes out unanswerable questions that may be generated, and further increases the quality of the answers that are generated. We build a production-ready, easily-plugged pipeline that can be used on any given body of text, that is scalable and immune from generating any hate speech, profanity, or misinformation. Based on the results, we are able to generate more than six times the number of quality questions generated by the abstractive approach, with a perceived quality being 44% higher, according to a survey of 168 participants.
The Challenges of Scale and Safety
Question Generation (QG)—the task of automatically creating questions from a text—is increasingly used in education and news. However, it faces two major hurdles that prevent widespread deployment in sensitive sectors:
- The Scaling Problem: To process massive amounts of text, most systems use "abstractive summarization" to shorten the input. Unfortunately, these summarizers often "hallucinate" or create misinformation. The authors highlight a hilarious yet concerning example where a model linked pumpkins to drugs and condoms, illustrating how generative models can veer wildly off-course when summarizing context.
- The Safety Problem: Generative models often produce unanswerable, nonsensical, or toxic questions. In sensitive fields like education or public health, these errors are unacceptable. There is a critical need for a system that can scale to massive datasets without sacrificing factual integrity or safety.
Methods: The Adversarial Pipeline
To address these issues, we propose an Adversarial Question Generation Pipeline that replaces traditional summarization with a "Maximal Generation" strategy and uses a secondary model as an adversarial filter. The pipeline consists of four main stages:
- Coreference Resolution: Using SpanBERT, the system replaces ambiguous pronouns (like "he" or "it") with actual entities (like "Obama" or "The Apple iPhone"). This ensures questions can stand alone without needing the previous sentence for context.
- Maximal Generation: Instead of summarizing the text first, the system uses KeyBERT to extract keywords from every sentence and generates a question-answer pair for every keyword-context pair using a T5 model. This prevents the information loss inherent in summarization and preserves the "absolute truth" of the source text.
- Adversarial Filtering: The system passes the generated question and context to a secondary, state-of-the-art QA model (RoBERTa trained on SQuAD v2.0). If the QA model cannot find a valid answer in the text, the question is deemed "unanswerable" and is discarded. This "adversarial" check effectively prunes out hallucinations.
- Toxicity Filtering: A final pass through an adapted ToxicBERT ensures no profanity or hate speech makes it to the end user, ensuring the output is safe for public consumption.
Datasets and Training
The primary corpus used for testing consisted of 11,028 news articles from a "top push news" database, specifically selected for high user engagement (over 1,500 clicks). The adversarial QA models were trained on SQuAD v1.1 and SQuAD v2.0. The latter is particularly important because it includes "negative examples" (questions that cannot be answered from the text), which helps the filter recognize and reject bad generations.
Key Results
The adversarial approach significantly outperformed traditional abstractive methods across several metrics:
- Efficiency: The "Maximal Generation" approach is roughly 6.3x more efficient at generating questions. It requires only 6.67 articles to generate 100 questions, compared to 42.2 articles needed when using abstractive summarization.
- Quality: In a human study involving 168 participants, the adversarial approach achieved a 44% higher perceived quality score than vanilla generative methods.
- Coherence: The adversarial RoBERTa-based filter improved the "Coherence" score (how well an answer suits a question) from 3.19 to 3.81 on a 5-point Likert scale.
- Dropout Rate: The adversarial filter successfully pruned about 22% of generated questions as "bad" or unanswerable, demonstrating the effectiveness of the QA-as-judge mechanism.
Limitations and Future Work
While the system is excellent at generating factual questions, it still generates many irrelevant ones. The "Relevance Fraction" was only 0.15, meaning many questions, while accurate, weren't particularly interesting or important. Furthermore, the lack of purely objective semantic measures for QG quality remains a challenge, as the field currently relies heavily on expensive human surveys.
Future directions include exploring "Longformer" models to handle even larger contexts and training models with specific objectives to prioritize "interesting" questions over merely "answerable" ones. By refining the selection process, we hope to move from merely factual generation to truly engaging content creation.
Summary updated