Abstract
This paper introduces ASQ, a tool that automatically translates Abstract Meaning Representation (AMR) graphs into Question-Answer Meaning Representations (QMRs). By mapping complex, machine-readable semantic graphs into intuitive, human-readable question-answer pairs, ASQ enables the scalable, automatic creation of semantic datasets without the need for expensive crowdsourcing.
Introduction
In natural language processing, understanding the predicate-argument structure of a sentence—essentially "who did what to whom, when, and where"—is crucial for extracting meaning. Traditionally, this is annotated using formal representations like Abstract Meaning Representation (AMR). While AMRs are unambiguous and highly useful for downstream machine learning tasks, they are dense and virtually unreadable to non-experts.
Recently, researchers have proposed Question-Answer Meaning Representations (QMRs), such as QA-SRL and QAMR, which represent these semantic relationships as simple question-answer pairs (e.g., Q: What was broken? A: the engine). These are highly intuitive for humans but require expensive, manual crowdsourcing to create. ASQ bridges this gap by building an automated system that maps the rigorous structure of AMR into the accessible format of QMR, providing the benefits of both formal semantics and human readability.
The ASQ Pipeline
Overview of the ASQ pipeline for generating QA pairs from AMR graphs. ASQ: Automatically Generating Question-Answer Pairs using AMRs, page 3
The authors developed a template-based pipeline called ASQ (AMR Sourced Questions) to convert AMR graphs into QA pairs through four primary stages:
- Template Creation: The authors handcrafted hundreds of templates for different AMR relations. For "core roles" (the main arguments of a verb), they use Semlink to map PropBank arguments to VerbNet thematic roles. For "non-core roles" (like location or time), templates are based directly on the AMR relation name.
- AMR Graph Preprocessing: The system condenses fragmented AMR nodes (e.g., combining a quantity and a unit into a single concept like "1 year") to ensure questions are cohesive.
- Question Generation: For each node in the AMR graph, ASQ retrieves appropriate templates and fills them using lemmatized words from the sentence. To ensure natural output, candidate questions are scored using the GPT-2 language model.
- Answer Generation: To extract complete phrases rather than single words, ASQ uses the Stanza dependency parser to locate the core answer word and extract its entire syntactic sub-tree.
Datasets and Evaluation
The system was evaluated using several key corpora:
- AMR 2.0 Corpus: 39,260 sentences with gold-standard AMRs.
- Little Prince Corpus: 1,562 sentences used to test generation.
- QAMR Dataset: ~5,000 sentences used to compare ASQ's automated outputs against human annotations.
Results and Key Insights
Sample of generated QA pairs demonstrating the variety and semantic coverage of the ASQ system. ASQ: Automatically Generating Question-Answer Pairs using AMRs, page 6
ASQ successfully generated massive QA datasets automatically, producing 468,263 questions for the AMR 2.0 corpus (averaging ~11.9 questions per sentence). Human evaluators rated the generated questions highly, with scores of 4.1 out of 5 for grammaticality and 3.7 out of 5 for naturalness. Approximately 67.8% of the generated answers were correct, covering about 69% of the information content in the source sentences.
Key insights from the project include:
- AMR as a QA Engine: High-quality AMR graphs capture nearly all factual information and semantic roles, ensuring high coverage and validity in generated questions.
- Reduced Redundancy: Unlike human annotators who often write redundant questions, ASQ's systematic processing of AMR relations naturally minimizes overlap.
- The "Synonym Gap": Automated generation is currently limited by the lemmas in the text, whereas humans naturally use synonyms (e.g., asking about "money" when the text says "currency"), leading to less vocabulary diversity in ASQ's output.
Limitations and Future Work
The system's performance is currently bottlenecked by error propagation from automatic AMR parsers; errors in parsing cascade directly into the generated QA pairs. Additionally, the current lack of synonym integration makes questions less varied than human-authored ones. Future work aims to expand the template library, integrate synonyms, and explore using ASQ to generate "first drafts" for human post-editing to drastically speed up dataset creation.
Summary updated