Automatically generating question-answer pairs for assessing basic reading comprehension in Swedish
Paper · 2022 · Dmytro Kalpakchi and Johan Boye
Summary
A basic reading comprehension question can ask a reader to find a fact in a text and give it back as an answer. Writing such questions automatically means deciding what to ask about, how to phrase the question, and how much of the source to include in the answer. This paper evaluates Quinductor, a lightweight, data-driven method for generating Swedish question–answer pairs. The authors focus on locating information in a text, a reading skill that can be assessed with questions about explicitly stated details.
Quinductor learns paired templates from existing questions, answers, and the sentences that supply the answers. It uses dependency parsing to represent how words and phrases in a sentence relate to one another. A template can retain wording from a training question, such as its question word, and give instructions for taking other material from a new sentence. Some instructions select individual words. Others pick up whole phrases, which lets a template work in sentences whose phrases differ in length and internal structure. The authors induced 248 templates from the SweQUAD-MC training set and used them to generate questions and answers for sentences from the development and test sets.
The evaluation put 53 generated pairs alongside 53 original pairs tied to the same source sentences. The judges rated the grammar, intelligibility, and relevance of each question, as well as the quality of its suggested answer. Across the development and test sets, 50.9% of generated questions received a high grammar rating and 35.8% received a high rating for making sense. The authors counted 12 generated pairs, reported as 22% of the generated set, as completely valid under their criteria for grammar, intelligibility, relevance, and answer correctness.
The method sometimes finds a clean way to ask about a source fact. Its errors show how grammatical structure can also give a false sense of fit. A template that copies a whole phrase may bring along material that makes a question hard to follow. A template that selects isolated words can strip an answer of an essential modifier. A fixed question word can also ask for the wrong kind of information even when the source sentence fits structurally. The authors present Quinductor as a baseline for Swedish question generation, with human judgments that show both its useful output and the extent of its failures.
Deep dive: Automatically generating question-answer pairs for assessing basic reading comprehension in Swedish
Quinductor learns to turn Swedish sentences into reading comprehension questions, and human judges assess which questions and answers work. · about 35 minutes to read
The problem and its context
What the question is meant to assess
The kind of reading a test measures depends on what its questions ask the reader to do. Understanding a word, finding a fact, assessing whether a claim is credible, and identifying the purpose of a text all place different demands on the reader. The paper draws on earlier work on reading assessment to situate its task in that range. It takes the information-locating level from the PISA 2018 framework as its target. Here, the reader looks through a text, identifies the relevant passage, and retrieves the information it contains. The generation task is to produce items that elicit this kind of reading in Swedish.
This choice constrains both halves of a question–answer pair. The question must point toward something the passage actually states, while the answer must express the relevant information accurately. An item that asks for an explanation the writer never gives would require the reader to go beyond retrieval. A question that supplies enough of its own answer would make reading the passage less important. An awkwardly phrased item raises another problem. A reader may find the relevant words in the text and still be unable to tell what the question is asking. Item quality therefore matters to the interpretation of the reader’s response.
The instructions given to the writers of SweQUAD-MC make the target concrete. They were asked to write questions with an unambiguous answer that appeared directly in the text. The text had to be necessary for answering the question, and it had to provide enough information to answer it. Those are separate requirements. An answer can occur in a text even if a reader could arrive at it without consulting that text. Conversely, a text may be essential to a question while still leaving out something the reader would need to answer it. The dataset was designed to bring these requirements together.
A reading assessment and its item generator also work with different amounts of context in this study. A reader may need to scan a passage to locate the relevant information. Once that fact has been found, the generator can work on the sentence that expresses it. The paper exploits that difference by using individual declarative sentences as the basis for generation. A declarative sentence presents information that an item can ask the reader to retrieve. Selecting that sentence gives the generator a local source for both the question and the expected answer. The question it produces can still serve a task in which a reader searches a larger text.
The focus on a sentence has implications for question answering. The system starts from the source and proposes both an item and its expected response. During assessment, the reader encounters the item and has to recover the response. A generator can succeed at extracting words that would make a plausible answer and still fail to produce a question that actually asks for those words. It can also formulate a clear question and give an answer that is too short. Evaluating the pair as a unit allows the authors to examine whether these two pieces fit together.
Earlier ways to generate questions
The authors describe automatic reading comprehension question generation for Swedish as an area with limited prior work. The earlier Swedish system they discuss used grammatical transformations specified by hand. It moved suitable constituents into a position appropriate for a question and replaced selected material with a question word. A constituent in this setting is a word or group of words that functions as a unit in the sentence. The system covered questions about nominal constituents, using Swedish forms such as vem, vad, and vilken, and it could also ask about certain adverbials, which can express circumstances such as time or place.
That approach encoded the questions the system could produce in its transformation rules. The earlier system also confined the formulations it obtained from the passage to wording present there word for word. The paper describes a preliminary evaluation on ten randomly chosen Wikipedia articles. The articles were unidentified and the implementation was unavailable, so the authors had no way to run that system on a common set of inputs for a direct comparison. Its role in the paper is to establish what had been tried for Swedish and to show the difference between manually specified transformations and templates learned from examples.
The paper also places the task within text generation. It describes neural approaches to reading comprehension question generation as having been applied mainly to English. The authors’ goal is to establish a Swedish baseline with a different way of using data. Quinductor learns how to build an item from the relationship between an existing pair and its sentence. The instructions it learns are compact enough to inspect. A question can reproduce much of the source wording and still include words that came from the training question. The resulting combination gives it room to form an interrogative while keeping the requested information closely tied to the source.
The dependence on examples changes what it takes to extend the system. In the procedure the authors describe, adding training examples can introduce new question patterns without a person specifying their grammatical transformations by hand. The training pairs still embody choices about what makes a useful item, which details are worth asking about, and what an appropriate answer looks like. The system also depends on a grammatical analysis of Swedish sentences. Data-driven induction changes where the transformation instructions come from. It leaves the selection and quality of the examples, and the availability of the grammatical analysis, consequential.
A baseline of this kind gives future comparisons a concrete question to answer. How much can a system accomplish by learning to reuse the structure and wording of examples, given that the desired answer is already stated in the text? That question is narrower than asking whether a system can generate any kind of reading assessment item. It is also more closely matched to SweQUAD-MC. Because the dataset’s questions were written to be answered from a passage, the evaluation can compare generated pairs with human-written pairs grounded in the same source sentences. The paper’s design is built around that common source.
The method, step by step
From a written item to a reusable pattern
Quinductor uses an example with a declarative sentence, a question about the sentence, and an answer. It seeks a reusable description of how the words in the question and answer relate to the sentence. Some pieces of the output can be recovered by following grammatical connections in the source. Other pieces can be retained as fixed text. The two templates are learned together in the sense that they use the same source analysis and describe the question and answer of the same training example. A new sentence supplies content for both sides when the pair of templates applies.
Consider the paper’s introductory example. Its source sentence reports that John graduated in 2010. The question asks when John graduated, using English did and the uninflected form graduate. The answer gives the time phrase. To reuse the pattern, Quinductor needs something more general than the name John, the specific year, and the past-tense form graduated. The question template retains its introductory wording, inserts the subject of the new sentence, and obtains the base form of the main verb. The answer template extracts the part of the sentence that expresses the time.
The paper then uses that same pattern with a sentence about stocks crashing during previous summer months. The subject has changed, and the time expression contains a different arrangement of words. The new question asks when the stocks crashed. The generated answer takes the corresponding time phrase from the new sentence. What transfers is the relationship of the subject, verb, and time expression to one another. The system can carry out that transfer even though the whole grammatical structure of the new sentence differs from the structure of the training sentence.
From SweQUAD-MC examples to ranked Swedish question–answer pairs
The steps in order.
The English example illustrates the template notation. In the Swedish experiments, the training items were Swedish, the dependency analyses were produced for Swedish, and the ranking resources included data from Swedish texts. The example also illustrates the distinction between a question word and a phrase drawn from the source. The word that asks for a time is supplied by the template. The words that give the time come from the sentence. Both are needed, and they need to agree about the type of information the question requests.
What the template expressions select
The grammatical representation follows Universal Dependencies. A dependency tree represents a sentence by linking words according to their grammatical relationships. A dependent is attached to a head through a labeled relation. The main structural starting point is the root. In the graduation example, the root is the verb that expresses the event. The subject and the time phrase can be reached by following links from that verb. Their places in the word sequence matter for the final sentence, but the template can identify them through their roles in the tree.
A question template can include a square-bracket expression like the subject selection in the paper’s example.
[r.nsubj#1]
Square brackets select material from an individual node. The symbol r denotes the root, and the dot introduces the step to take from it. The label nsubj is the nominal subject relation. The #1 portion is the node identifier used in the example’s template notation. In the training example this expression supplies John. In another sentence it can supply the word attached to the root by the corresponding subject relation. Its role is to select the relevant node by grammatical position.
The question also needs the appropriate form of the main verb. The example uses another square-bracket expression for this purpose.
[r.lemma]
Here r again refers to the root. The dot introduces the lemma property, and the square brackets specify a value from that node. A lemma is a word’s base or dictionary form. In the paper’s example, this expression retrieves graduate from the source form graduated. In the example about stocks, it retrieves crash from crashed. The fixed part of the English question contains did, so the template needs the base verb to build that particular kind of question. Simply copying the source verb would retain the wrong form for the construction.
The answer uses a different kind of selection.
<r.obl#4>
Angle brackets tell Quinductor to take the subtree reached by the expression. The r is the root of the sentence, and the dot introduces the labeled link to follow. The label obl identifies an oblique nominal, and #4 is the node identifier in this example. The selected material includes the word at that node and the words dependent on it in its subtree. That is how the same instruction can produce a short phrase for the graduation sentence and a longer one for the sentence about stocks.
The single-node and subtree instructions encode different assumptions about what should stay together. A single-node instruction is appropriate when the selected word does the work on its own, as the base verb does in the English question. A subtree instruction allows a phrase to vary internally, provided its connection to the main structure is still suitable. A date expression and a longer expression about earlier months can occupy the same role at the sentence level. Taking the subtree lets the generator preserve words that make each expression complete.
This generality is central to the method. The template describes selected connections in the tree, so the parser can assign different internal structures to phrases without making every difference matter to the template. What counts as the same pattern is determined by the instructions the template includes. When those instructions identify an appropriate phrase, a match can preserve its content with little need for separate templates for different lengths. When they select a phrase that serves a different function in the new sentence, the same flexibility can carry material into the wrong place.
Literal wording is equally important. The question templates preserve question words from training questions as strings. That lets the generator produce words that the declarative sentence need never contain. An item asking for a location can begin with the corresponding question word even if that word appears nowhere in the statement about the location. The choice is carried over from the training example together with the structural instructions. The implementation described in the paper does not independently infer a new question word from the dependency tree of each sentence. A successful application therefore depends on the stored wording remaining appropriate in the new context.
How the Swedish templates were obtained
The source of examples was SweQUAD-MC, a dataset of texts and multiple-choice reading comprehension questions. Each question supplies a correct answer that can be located in its text. In the Swedish experiment, the authors used the training partition to induce templates. A template relates the wording of the question and correct answer to the dependency structure of the source sentence. Incorrect multiple-choice options are outside the generation and rating procedure in this paper. For the purposes of template induction, the needed material is the sentence, the question, and the correct response.
The parsing package was Stanza, version 1.4.2, and the authors used the quinductor package, version 0.2.2. These settings matter because the learned expressions refer to labeled tree relations. If the same sentence is analyzed with a different attachment or a different label, the path available to the induction procedure may change. The authors accordingly say that using different parsing resources is likely to change the learned templates. The connection between a parser’s output and the shape of the learned instructions also holds at generation time. The learned path must be interpretable against the analysis of the new sentence.
The authors calculated inverse document frequencies, or IDFs, from the SweQUAD-MC training set for use during induction. An inverse document frequency describes how widely an expression is distributed in the collection used to calculate it. It distinguishes material common across that collection from material with more limited distribution. The paper identifies training-set IDFs as one of the resources required to obtain the templates. It leaves the more detailed account of the induction procedure to the earlier Quinductor study. The Swedish evaluation gives the resource source and its role in the pipeline.
There is a difference between the number of examples in the training set and the number of distinct templates the authors obtained. The experiment yielded 248 templates. Most had support from a single training sentence. In the authors’ terminology, support counts the training sentences that give rise to the same template. The maximum observed support was 3 sentences per template. This statistic counts repeat induction of an identical template. It gives no direct count of the unseen sentences that will match that template. A pattern induced from a single sentence can still transfer if another sentence shares the relevant structure.
Induction from examples also means that a detail in a training item can become part of what the method carries forward. A fixed question form could suit many examples with comparable meanings. A phrase instruction could generalize to many new sequences of words. Conversely, the particular boundary of an answer from training may lead to an instruction that selects too little material in a different sentence. The structure of the example gives the system evidence for making a selection. Variation in unseen sentences determines whether that selection continues to make sense.
How candidate generation and ranking work together
At generation time, Quinductor tries the induced templates against an unseen declarative sentence. Its approach is to produce candidates first and rank them afterwards. If a template can be applied to the tree, its expressions can be realized as words or phrases in a question and an answer. A sentence can supply more than one possible candidate when multiple templates apply. Other sentences may offer no match. A candidate’s structural match is an admission condition for this process. Completion of the matching step alone gives no guarantee that a judge will find the question intelligible or the answer sufficient.
The ease of applying templates depends on how much the relevant structures recur. A template can successfully ask about time in sentences describing different events if their dependency analyses give it the same useful access to a subject, a verb, and a time phrase. Selecting an entire phrase can make the template less sensitive to the number of words inside that phrase. The wider the set of structures that are admitted by an instruction, the more varied the phrases it may produce. This is where candidate generation and subsequent evaluation answer different questions. Matching establishes what the procedure can build. Evaluation establishes how well those outputs work as items.
The ranking stage uses supplementary resources. One is derived from morphology and sequences of neighboring analyses. Morphology concerns the forms words take and the information those forms convey. An n-gram describes a consecutive sequence of items. The authors used a morphological sequence resource calculated from the training, development, and test partitions of the Swedish Talbanken treebank, a collection of sentences with grammatical analyses. These are partitions of Talbanken, the source for the ranking resource. The question–answer examples for template induction came from SweQUAD-MC.
The other ranking resource concerns question words and was calculated from the SweQUAD-MC training set. In describing the dataset, the authors use the opening two words of a question as an approximation to its question-word pattern. That view of the examples describes how questions begin without requiring every opening to reduce to a single word. The resource used for ranking was induced with an earlier version of Stanza. The authors note a slight difference between its distributions and what version 1.4.2 gives. The distinction matters for reproducing the setup, where the software version used for one supplementary resource differs from the main parsing version.
The paper describes the Swedish system as open source and identifies the release of its supplementary files alongside the implementation. Those files document what went into the reported configuration. Together, template matching and ranking give Quinductor a way to assemble and prioritize candidate items using a small set of examples, a dependency parser, and statistical resources. The study then examines whether that configuration produces questions and answers people consider suitable for the intended reading task.
Experiments and results
Which examples went into the evaluation
SweQUAD-MC was written by three paid linguistics students. The dataset contains 962 multiple-choice questions in its training set, 126 in its development set, and 102 in its test set. The authors use the training material for induction and examine generation on source sentences from the development and test sets. Here, a source sentence is the sentence containing the answer to the original item. This matters when interpreting the output. The system is asked to find an item it can construct from a sentence already known to contain a detail that a human question writer considered suitable for assessment.
The paper treats the ability to generate anything from a source sentence as a separate property from the quality of the result. Its coverage analysis checks whether at least 1 template applies to a given sentence. This measure concerns the source sentences from the development and test sets. Human evaluation asks a later question about the resulting pairs. A template can match and yield an item that a judge cannot understand. Coverage and quality therefore locate different points where an attempt can fail. The numbers of evaluated pairs give the size of the rating exercise, and assessments of validity within those pairs have that generated set as their denominator.
The authors evaluated all 29 generated pairs from the development set and all 24 from the test set, for 53 generated pairs in total. They added 53 original pairs from the corresponding source sentences. The original items are the human-written reference, called gold pairs in the study. The sentence, question, and proposed answer form an evaluation triple, so the judges saw 106 triples. This pairing keeps the underlying sentence comparable between the generated and original items. The human and the system can ask about different details in that sentence, and the human ratings concern how each item works with its own suggested answer.
There is no head-to-head result against another Swedish generator in this evaluation. The earlier rule-based system was unavailable for direct comparison. The human-written items establish a reference for how the rubric treats questions already present in SweQUAD-MC. Calling Quinductor a baseline refers to its intended role as an automatic system against which another approach could be evaluated. The experiment measures that baseline’s behavior on the held-out sentences and compares its items with human-written ones under the same rubric.
How the judges rated an item
Two judges took part. One was a native speaker of Swedish, and the other was a highly proficient non-native speaker. Each judge saw the triples in a separately randomized order. The evaluation was conducted online in Textinator Surveys. The judges rated 9 statements using a 4-point agreement scale. A score of 1 expressed disagreement and 4 expressed agreement. The instructions asked them to overlook formatting issues such as missing capitalization and punctuation. They were also told to give 1 on all answer statements if the question was incomprehensible.
The rubric separates qualities that frequently travel together but can come apart in an individual item. Its question criteria are these.
- C1 concerns grammatical correctness.
- C2 concerns whether the question makes sense.
- C3 asks whether more information would make the question clearer.
- C4 asks whether less information would make it clearer.
- C5 concerns the question’s relevance to the source sentence.
The answer criteria look at whether the suggested response does the job and how clearly it does so.
- C6 asks whether the response answers the question correctly.
- C7 asks whether a different phrasing would make the answer clearer.
- C8 asks whether the answer needs more information for clarity.
- C9 asks whether the answer would be clearer with less information.
High scores favor the item on C1, C2, C5, and C6. For the statements about adding, removing, or rephrasing information, a high score means that the judge sees a possible improvement. That distinction prevents a common misreading of the ratings. Agreement that a question is grammatical favors the question. Agreement that the question needs less information identifies a defect. The explicit directions for the criteria also matter when interpreting agreement between judges. Agreement may reflect a shared favorable assessment or a shared judgment that something needs repair.
The authors use a threshold to distinguish high judgments on grammar, intelligibility, relevance, and answer correctness.
median ≥ 3
median is the median rating for the item on the criterion being considered. The symbol ≥ means greater than or equal to, and 3 is the cutoff for a high rating on the scale. A question can pass this threshold on grammar and fall below it on intelligibility. The threshold is applied separately to each criterion. The combined judgment of complete validity is then based on which items pass the relevant criteria together.
The guidelines also affect what an answer score means. When a question cannot be understood, the prescribed answer ratings follow from the failure of that question. In that case, the suggested answer has lost its function as an answer to an interpretable prompt. The authors’ later restriction to grammatically sound, intelligible questions makes it possible to examine answer correctness in a group where the judges could engage with the question itself. That focused analysis has a different denominator from the initial evaluation of generated pairs.
Grammar, intelligibility, and complete validity
Almost all of the original questions in the development and test sets received a high grammar rating. For generated questions, 17 in the development set, roughly 58%, and 10 in the test set, approximately 42%, scored highly on C1. Across the generated pairs from both splits, the paper reports 50.9% with a high grammar rating. These results describe grammatical acceptability as judged in the study, where the evaluators were instructed to overlook surface formatting faults.
On C2, the authors report that 4 original questions across the development and test sets fell below the high-rating threshold. Among generated questions, 11 on the development set, roughly 38%, and 8 on the test set, approximately 33%, received a high rating for intelligibility. The reported combined share is 35.8%. It is possible for a question to have acceptable local grammar and still be difficult to interpret as a request for information. The paper also mentions a generated question with a high intelligibility judgment and a lower grammar judgment. The reported C2 counts and the separately reported size of the group passing both criteria are difficult to reconcile with that exception. The overlap analysis below uses the group size stated by the authors.
The authors report analyzing a group of 19 generated pairs rated highly for both grammar and intelligibility. In that group, 17 also had a high relevance rating, with 11 from the development set and 6 from the test set. This part of the analysis concerns whether a reader could connect a usable question to the sentence accompanying it. It gives a favorable result for most items in the group selected for closer analysis. It does not by itself establish that the answer provided with each relevant question was the right one.
For answer correctness, 12 items in the selected group, or 63.2%, received a high rating. These consisted of 7 development items and 5 test items. In this group, every answer judged correct belonged to a question that was also judged relevant. The authors consequently counted those 12 items as passing grammar, intelligibility, relevance, and answer correctness together. They report 22% completely valid pairs among all generated pairs, with 24% on the development set and 21% on the test set. The split-specific rates concern the generated pairs that entered human evaluation.
Completely valid Quinductor pairs by SweQUAD-MC evaluation split
The development split had a higher share of generated pairs that passed all validity criteria.
The numbers
| System or setting | Completely valid generated pairs % |
|---|---|
| Test | 21 |
| Development (this paper) | 24 |
Complete validity here has a specific operational meaning. The authors counted items that passed the four criteria used in the main analysis. The remaining judgments about changing the amount of information or the wording of a question or answer provide additional information about clarity. They are part of the evaluation instrument, but the reported complete-validity figure does not require favorable ratings on all 9 statements. A reader can therefore interpret 22% as a joint pass rate for the chosen acceptance criteria, rather than as a general score of perfection for the generated items.
These results also distinguish the quality of a question from the quality of the pair that contains it. A higher share of generated questions passed the grammar criterion than the intelligibility criterion. Within the group the authors took forward, relevance was more common than answer correctness. Hence, a plausible question grounded in the right sentence could still be accompanied by an inadequate answer. The pipeline produces both pieces from the same structure, yet the decisions about what to include in each piece remain distinct and can fail independently.
What agreement between judges establishes
The authors report two forms of inter-annotator agreement for the human ratings. Randolph’s κ rewards assigning the same rating to an item. It ranges from −1 to 1, with 0 representing chance-level agreement. A positive value indicates better agreement than chance, while a negative value indicates worse agreement. The point of this statistic is to capture how close the judges come to sharing the same absolute judgment. A judge who systematically uses a different point on the scale can lower exact agreement even when the judges rank items in a similar order.
Goodman–Kruskal’s γ addresses relative ordering. It takes pairs of rated items and looks at whether the judges order them in the same direction. Its range is also −1 to 1. A value of 1 denotes full agreement in the ordering, 0 denotes no agreement, and −1 indicates fully opposed ordering. The judges can agree about which item is better even if their scores for it differ. Conversely, they can give the same score to many items without providing much evidence about how they order the few items they distinguish.
The paper reports high agreement on grammar and intelligibility, especially in relative ordering.
γ > 0.5
Here γ is the relative-order agreement statistic, > means greater than, and 0.5 is the value the authors say the reported ordering agreement exceeded for these basic criteria. They also describe agreement on question relevance and answer correctness as reasonably high for the follow-up analysis. The detailed agreement results show that other statements, particularly requests for more information, can yield a less stable picture. Those results matter because the judges can distinguish clearly problematic items while differing about the changes that would make other items clearer.
What the automatic evaluation measures
The authors also present automated evaluation results for the generated questions that took first place on both SweQUAD-MC splits, development and test. They use BLEU-N, ROUGE-L, and CIDEr through nlg-eval, and calculate METEOR with METEOR-1.5 configured for Swedish. The earlier work on METEOR Universal is the paper’s reference for that metric. These computations concern the generated questions and their comparisons with reference wording. The experiment’s headline claims about intelligibility and validity come from the human judgments of pairs in context.
The same source sentence can support more than one reasonable item. A generated question can ask about a different part of it from the original question, and even questions that seek the same fact can put it differently. This is one reason the automatic comparisons have limited explanatory value in the authors’ account. In addition, a good match to reference wording leaves a separate question about whether the generated answer correctly responds to its own question. Seeing the sentence, question, and answer together lets the judges examine that relationship directly.
What the ablations show
The paper reports no ablations of individual components and instead examines generated examples, failure cases, template support, and patterns in the judges’ ratings.
When a template includes too much
One of the lowest-rated questions came from a sentence describing how duties vary with the workplace and then explaining a main responsibility toward tenants. The template uses a subject expression and takes the entire adverbial clause modifier subtree from the new sentence. The copied material in this instance is long, and the resulting question pulls in information beyond the point it appears to ask about. Its median intelligibility score was 1. The dependency link allowed a template to apply, but the extent of the associated subtree made the realized question hard to follow.
The problem can be seen by considering the proposed answer, which refers to the variation in the duties. The source sentence contains that fact and other information explaining what those duties involve. The template turns the duties into the grammatical subject of a question about what they do and incorporates much of the surrounding qualification. A reader has to work out how the large copied passage relates to a short answer about variation. The error therefore involves both the boundary of the selected material and the meaning left by putting that material into the fixed question frame.
The authors identify a similar problem in an example contrasting a surgeon’s work with a psychiatrist’s. The generated question asks who spends time in the operating room, yet it also takes along a clause about the psychiatrist. Its median intelligibility score was 2. The sentence contains information that could support a question identifying the surgeon. The template’s selection makes that information compete with another part of the source inside the same question. Here, copying accurately from the sentence preserves words at the cost of a clear focus.
The authors describe this kind of error as overgeneralization. The mechanism is the same one that makes a template useful across sentences with different phrase lengths. An instruction can take the whole phrase under the relation it specifies. In a favorable case, all of those words give a complete time or place expression. In a difficult case, they attach information that serves the source sentence as a whole but contributes little to the question. The examples establish that this failure occurred. An experiment changing the scope of the template expressions would be needed to measure what narrowing their scope would do across the dataset.
When a grammatical connection carries the wrong meaning
Another question with a median intelligibility score of 1 came from a sentence about waiting outside Sweden for a new decision. The template came from material about what a nurse may need to do at a major accident. It combines an auxiliary, a subject, fixed wording for asking what to do, and an oblique phrase. At the level of the template’s path, the two sentences offer similar structures. In context, the prepositional phrase in the waiting sentence has a different relationship to the action. Carrying it into the question produces wording that the judges found difficult to understand.
The preposition is important because the phrase is interpreted with the verb it accompanies. A phrase about waiting for a decision belongs with the verb meaning wait. Fitting that phrase into a question frame whose fixed verb means do changes what the reader has to make sense of. A dependency label tells the system how it can reach a piece of the source sentence. It leaves distinctions among the meanings of particular verbs and prepositions only partly captured by the template. The error shows the consequence in a case where the source and training structures were similar enough for the template to run.
The authors give a related example involving a description of an area consisting largely of coniferous forest. The generated question carries an unsuitable preposition into the construction that asks what the area consists of. The median intelligibility rating was 1.5. A reader may still identify the intended fact in the source, but the question itself asks for it in a form the judges found problematic. As in the waiting example, the template reaches relevant words while failing to realize the relationship that makes those words an appropriate answer to the question as phrased.
A separate error concerns the question word. A sentence describes a stunt performer replacing actors in risky situations. The template asks a location question and suggests the phrase about risky situations as the answer. The question’s median intelligibility rating was 1.5. A phrase that states the circumstances in which someone works can occupy a grammatical position for which a location question has worked before. Its meaning in the new sentence calls for a different question. The authors trace the mismatch to the decision to store question words as fixed text during induction.
These cases identify different dependencies within a generated item. A template’s structural path determines which source material it sees. Its fixed question word indicates the kind of response a reader is expected to give. Its other fixed wording provides a frame into which the selected material must fit. The oblique phrase can be reached successfully while the fixed wording is unsuitable. Fixing the answer span alone would leave that question awkward. Likewise, replacing a question word would address a different problem from cutting surplus material out of a copied clause.
When an answer leaves out too much
The authors also examine items whose questions are closer to being understandable but whose suggested answers lack important information. One source sentence states a daily cost associated with an employee on sick leave. The generated answer contains the verb for costing and the currency word while losing the amount. Another sentence says a person needs good physical condition because the work can put strain on the neck and shoulders. The generated answer takes the words for having and physical condition while omitting the modifier that says the condition should be good. The questions in these examples received a median C2 score of 2.5.
For the physical-condition case, the paper traces the answer to a template that takes the root and a specific object node.
[r] [r.obj#4]
Each bracketed expression selects a single node. In the first expression, r identifies the root. In the second, the dot introduces the path from the root through obj, the object relation. The #4 portion identifies the node as recorded in this template. The space shows the expressions as successive parts of the answer. Selecting the object node yields the object word and leaves out its dependents, including the modifier that contributes the intended qualification in this example.
The authors call this undergeneralization. A selection that was specific enough for its training example can turn out to be too narrow when the corresponding word in a new sentence has meaningful dependents. The cause is distinct from a grammatical error introduced by arranging words in the wrong order. The problem is deciding how much of the source’s meaning to keep in the response. Both a quantity in a cost statement and a modifier in a description can be essential to answering an otherwise simple question.
The successful examples help explain why this problem has no obvious uniform solution within the existing selection scheme. In the dietitian example, a full phrase gives the setting in which the work takes place. In the example about powder coating, a much shorter answer names what is applied to the components. In another example, the question about what the migration authority can do retains the conditions that make the action relevant. A phrase that looks long in isolation can still be needed to identify the fact being tested. The right boundary depends on the relationship between the wording of the question and the information the answer must supply.
The appendix also includes a question about what environmental and health protection inspectors do. Its answer attempts to preserve the action and the parties involved. The example makes visible the amount of wording a template can carry over from a source. Cases like this help explain why a structural match can yield something recognizable as a reading item without requiring a newly composed account of the source. The errors reviewed alongside it show how the same reuse can produce a question or response whose wording still needs attention.
What the agreement analysis adds
The paper examines disagreement on C3, the statement about whether a question would be clearer with more information. For generated development questions, it reports κ of 0.08 and γ of −0.7. The exact ratings were in weak agreement, and the two judges tended to order cases in opposing ways. This is a different finding from the agreement on basic grammar and intelligibility. Judges who can agree that a question works poorly may have different views about whether its problem is missing information.
For the original development questions on C3, the reported κ is 0.45 and γ is −1.0. The authors inspect the ratings behind that combination. One judge assigned 1 to nearly all of the original triples and 3 to a single triple. The other judge gave that exceptional triple a score of 1. Among the comparisons that could establish an ordering for both judges, the conspicuous item for the first judge went in the opposite direction for the second. The resulting ordering statistic can therefore look extreme even when many individual scores agree.
The paper’s table notation also distinguishes a case where ordering agreement cannot be determined.
γ = NA/X
γ is the statistic for agreement in relative ordering. The = introduces the reported status. NA indicates that the statistic is unavailable, and X is the rating that at least one judge assigned to every item in the group. The slash joins the unavailable status to that constant rating. A judge who uses the same score throughout supplies no ordering of those items for the statistic to compare. The authors point to similar issues when examining C4 for generated development questions and C6 for original test questions.
The agreement analysis demonstrates why the authors report both measures. Exact agreement describes how often judges arrive at the same scores. An ordering statistic describes their relative judgments on the cases that can be ordered. For traits that produce many identical ratings, the second measure can depend heavily on a small part of the evaluation. The error analysis and the agreement analysis accordingly provide complementary evidence. The former links particular outputs to particular template decisions. The latter shows where the evaluators’ impressions converge and where a numeric judgment depends strongly on how they used the rating scale.
Limitations
Limits the authors state
The authors confine the task to basic information location and the method to individual declarative sentences. The observed results therefore concern items asking for information that is directly represented in a sentence. A question requiring a reader to combine claims from different sentences, infer an unstated explanation, or evaluate the purpose of a passage is outside the procedure evaluated here. A reader may search within a longer passage to answer an item, but the generator receives the sentence supplying the relevant information and constructs the item from that local evidence.
The authors also emphasize the difficulty of finding the right level of generality. Matching whole phrases can help a template apply to varied sentences and preserve the material needed to make an answer complete. It can also pull a large and distracting clause into a question. Choosing individual words can produce a concise output and omit material essential to the answer. This balance depends on what the training examples teach the system to select. The fixed treatment of question words adds a separate limitation, since a source structure can recur in sentences that call for different kinds of questions.
A further source of variation is the dependency analysis itself. The authors note that errors can arise from inconsistencies in parsers. They point to earlier work in which even replacing one four-digit numeral with another could lead to substantial changes in the resulting tree, including for Swedish. Because Quinductor interprets its templates through those trees, an inconsistent analysis can affect which templates apply and what they retrieve. As the authors observe in the implementation discussion, changing the parser can also affect which templates are induced in the first place.
The authors characterize the automatic metrics as offering limited insight and put most of their interpretation on the human ratings and the examples. They also explain that a direct comparison with the earlier Swedish system was impossible given its unavailable implementation and unspecified evaluation articles. Their claim is that the evaluated system provides a viable baseline. The study gives human-rated results for that baseline without establishing a comparative performance ranking against another automatic Swedish generator.
Limits that follow from the design
The human evaluation begins after generation has produced an item. The 22% validity figure answers a question about the generated pairs that the judges examined. It does not say what share of arbitrary Swedish sentences will yield a valid item. The input sentences in this experiment were selected through the original answer locations in SweQUAD-MC. In a setting that starts from an unprocessed passage, useful sentences would first have to be identified or generation would have to be tried across them. The paper’s coverage measure addresses template applicability on its designated source sentences and is distinct from the validity rate among generated pairs.
The reference items make comparisons fairer at the sentence level, though they also guide what can be concluded. The original questions were written under particular instructions about grounded and unambiguous answers. Their presence supplies evidence about the quality of the human-written items under the same rating procedure. It does not establish how teachers, students, or other readers would use the generated items in a full assessment. The judges examined the sentence and proposed answer while rating the question. The experiment therefore tests the plausibility and correctness of the finished item, instead of measuring how effectively a learner can locate the answer unaided.
The judges’ instructions deliberately remove some editorial concerns. Missing punctuation and capitalization were to be ignored, so a high grammar or intelligibility rating is compatible with an output that still needs formatting work. The use of two judges gives a way to examine agreement, and the detailed analysis shows why that matters. It also leaves open how a wider range of evaluators would assess borderline questions, especially on criteria involving the amount of information or the best phrasing. The clearest claims apply to the decisions made under this rubric by these judges.
SweQUAD-MC is a multiple-choice dataset, while the evaluated output consists of a question and a proposed correct answer. The judges assessed whether that response answered the question. The experiment leaves the other choices outside its definition of validity. An item with a correct answer can still require work before it is ready for multiple-choice use, where the alternatives also affect what a reader must understand to select the correct response. The paper’s results therefore speak directly to the question and answer that could form the core of such an item.
Finally, the error examples explain how particular failures occurred. The study does not measure how often every error category occurs across all generated items, and it does not establish the separate contributions of the ranking resources, parsing choices, or different types of template expression. Template support describes recurrence in the training material, while the judged outcomes describe a particular overall configuration on held-out examples. The connection between a specific design choice and a specific error is strongest where the authors trace the generated wording back to a template. The effect of changing that choice across the whole task remains open.
What came after
No later study is identified that built directly on this Swedish evaluation. The paper itself frames Quinductor as a baseline for future comparisons, with an open implementation and a procedure for judging the generated question and answer against their source sentence. Its evidence concerns that baseline on SweQUAD-MC. How later studies carried over its templates, ranking procedure, or human evaluation has yet to be established here.
Cite
Cite as Dmytro Kalpakchi and Johan Boye. 2022. Automatically generating question-answer pairs for assessing basic reading comprehension in Swedish. arXiv:2211.15568.
@misc{kalpakchi2022automatically,
title = {{Automatically generating question-answer pairs for assessing basic reading comprehension in Swedish}},
author = {Dmytro Kalpakchi and Johan Boye},
year = {2022},
doi = {10.48550/arxiv.2211.15568},
eprint = {2211.15568},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2211.15568}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/kalpakchi-2022-automatically-generating-question-answer-pairs/
References
- Charles J Alderson. 2000. Assessing reading. Cambridge University Press. OpenAlex ↗ · Scholar ↗
- Michael Denkowski and Alon Lavie. 2014. Meteor universal: Language specific translation evaluation for any target language. In Proceedings of the ninth workshop on statistical machine translation, pages 376–380. our card
- Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. 2019. Unified language model pre-training for natural language understanding and generation. Advances in Neural Information Processing Systems, 32. our card
- Leo A Goodman and William H Kruskal. 1979. Measures of association for cross classifications. Measures of association for cross classifications, pages 2–34. OpenAlex ↗ · Scholar ↗
- Dmytro Kalpakchi and Johan Boye. 2021a. BERT-based distractor generation for Swedish reading comprehension questions using a small-scale dataset (https://aclanthology.org/2021.inlg-1.43). In Proceedings of the 14th International Conference on Natural Language Generation, pages 387–403, Aberdeen, Scotland, UK. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Dmytro Kalpakchi and Johan Boye. 2021b. Minor changes make a difference: a case study on the consistency of UD-based dependency parsers (https://aclanthology.org/2021.udw-1.8). In Proceedings of the Fifth Workshop on Universal Dependencies (UDW, SyntaxFest 2021), pages 96–108, Sofia, Bulgaria. Association for Computational Linguistics. our card
- Dmytro Kalpakchi and Johan Boye. 2021c. Quinductor: a multilingual data-driven method for generating reading-comprehension questions using universal dependencies. arXiv preprint arXiv:2103.10121. OpenAlex ↗ · Scholar ↗
- Dmytro Kalpakchi and Johan Boye. 2022. Textinator: an internationalized tool for annotation and human evaluation in natural language processing and generation (https://aclanthology.org/2022.lrec-1.90). In Proceedings of the Thirteenth Language Resources and Evaluation Conference, pages 856–866, Marseille, France. European Language Resources Association. OpenAlex ↗ · Scholar ↗
- Yi Liao, Xin Jiang, and Qun Liu. 2020. Probabilistically masked language model capable of autoregressive generation in arbitrary word order. arXiv preprint arXiv:2004.11579. OpenAlex ↗ · Scholar ↗
- Joakim Nivre, Marie-Catherine de Marneffe, Filip Ginter, Jan Hajic, Christopher D Manning, Sampo Pyysalo, Sebastian Schuster, Francis Tyers, and Daniel Zeman. 2020. Universal dependencies v2: An evergrowing multilingual treebank collection. In Proceedings of the 12th Language Resources and Evaluation Conference, pages 4034–4043. our card
- OECD. 2019. PISA 2018 Assessment and Analytical Framework (https://doi.org/https://doi.org/https://doi.org/10.1787/b25efab8-en). OpenAlex ↗ · Scholar ↗
- Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton, and Christopher D. Manning. 2020. Stanza: A python natural language processing toolkit for many human languages (https://doi.org/10.18653/v1/2020.acl-demos.14). In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 101–108, Online. Association for Computational Linguistics. our card
- Justus J Randolph. 2005. Free-marginal multirater kappa (multirater k [free]): An alternative to fleiss' fixed-marginal multirater kappa. Online submission. OpenAlex ↗ · Scholar ↗
- Shikhar Sharma, Layla El Asri, Hannes Schulz, and Jeremie Zumer. 2017. Relevance of unsupervised metrics in task-oriented dialogue for evaluating natural language generation (http://arxiv.org/abs/1706.09799). CoRR, abs/1706.09799. OpenAlex ↗ · Scholar ↗
- Stuart D Shaw and Cyril J Weir. 2007. Examining writing: Research and practice in assessing second language writing, volume 26. Cambridge University Press. OpenAlex ↗ · Scholar ↗
- Kenneth Wilhelmsson. 2011. Automatic question generation from swedish documents as a tool for information extraction. In Proceedings of the 18th Nordic Conference of Computational Linguistics (NODALIDA 2011), pages 323–326. OpenAlex ↗ · Scholar ↗
- Kenneth Wilhelmsson. 2012. Automatic question generation for swedish: The current state. In Proceedings of the SLTC 2012 workshop on NLP for CALL; Lund; 25th October; 2012, 080, pages 71–79. Linköping University Electronic Press. OpenAlex ↗ · Scholar ↗