In a standard sequence-to-sequence task like translation, the mapping from input to output is relatively constrained. However, in Neural Question Generation (NQG), a single paragraph can support dozens of valid questions. Without a specific target, a model might generate a generic query or, worse, "hallucinate" by asking about a date when the intended answer is a person.
To solve this, researchers have converged on a shared strategy: answer-aware conditioning. Instead of asking a model to "generate a question for this text," they ask it to "generate the specific question that leads to this answer."
Grounding the Encoder with Answer Spans
The most fundamental challenge in NQG is ensuring the model "looks" at the right part of the source text. If the target answer is "1969," the model must focus on the temporal context of the sentence rather than the subjects or locations.
Early work by Xingdi Yuan and colleagues at Microsoft Maluuba established the importance of treating the answer as a primary input feature, constraining the search space to generate content contextually relevant to a specific span. This grounding is often achieved through "meta-word" features. Yao Zhao and Xiaochuan Ni 0001 demonstrated that augmenting input embeddings with tags that identify which tokens constitute the answer allows the encoder to distinguish the target from the surrounding noise.
This "answer-awareness" can take several forms:
- BIO Tagging: Marking tokens as Beginning, Inside, or Outside the answer span, as noted in surveys by Wenqiang Lei and Liangming Pan.
- Delimiter Tokens: Asahi Ushio and Fernando Alva-Manchego showed that simply inserting special tokens (e.g.,
<answer> ... </answer>) around the target span is a highly effective way to fine-tune generative models like T5 and BART. - Position Embeddings: Samm Sun and Xingwu Sun incorporated the relative distance between words and the answer span into the attention mechanism, preventing the model from copying irrelevant text from distant parts of a document.
Seeding the Decoder for Semantic Focus
Even with a grounded encoder, the decoder can still fail by choosing the wrong interrogative word—for example, starting a question with "Where" when the answer is a person's name. This is known as "semantic drift."
To fix this, researchers have moved away from initializing decoders with generic start-of-sequence tokens. Sheng Bi and Yuan-Fang Li proposed initializing the decoder with the actual embedding of the target answer entity. This provides an immediate semantic signal that guides the model toward the appropriate question word (e.g., "Who") from the very first step of generation.
A similar intuition has emerged in multi-modal tasks. In video moment retrieval, Weijia Liu and Jiuxin Cao developed the LMR framework, which initializes Transformer decoder queries with the semantic features of a natural language search query. By seeding the search process with these specific constraints, the model is forced to focus on the target event from the start, rather than wandering through visually similar but irrelevant scenes.
Balancing Context and Specificity
As the field moves from single-sentence inputs to paragraph-level generation, the tension between broad context and narrow conditioning increases. Vishwajeet Kumar and Ganesh Ramakrishnan argue that hierarchical models are necessary to capture the structure of paragraphs while maintaining the answer-conditioned focus.
By integrating answer-aware type embeddings—which identify the semantic category of the answer (e.g., "Location" or "Entity")—models like those developed by Xusen Yin can generate "Suggested Questions" that are not only relevant to the text but also self-explanatory to a user.
As summarized in the comprehensive survey by Shasha Guo and Tat-Seng Chua, these answer-aware mechanisms have transformed NQG from a simple data augmentation trick into a sophisticated tool for proactive tutoring and conversational AI. The core intuition remains the same: to ask a good question, the model must first understand exactly what it is looking for.