Elamur Research

CDGP: Automatic Cloze Distractor Generation based on Pre-trained Language Model

Paper · 2022 · Shang-Hsuan Chiang, Ssu-Cheng Wang and Yao-Chung Fan

Summary

Writing a fill-in-the-blank question means deciding which wrong answers a learner might reasonably consider. An obviously unsuitable option makes the question easier to answer by elimination. An option that also completes the sentence correctly makes the question ambiguous. CDGP addresses the work between those extremes. Given a sentence with a blank and the intended answer, it proposes distractors, the incorrect choices in a multiple-choice item, and ranks them for use in the question.

The method builds on an earlier system that collected candidates from lexical resources and then ranked them. CDGP learns to propose candidates from existing cloze exercises. In its preferred training setup, it sees the sentence and the correct answer and learns to predict an existing distractor for that item. A separate selector scores each proposal using the generator’s confidence, the relationship between the two words, the relationship between the sentence completions, and whether the words share a grammatical category. The authors release the code and data for CDGP.

On DGen, a benchmark containing science and other multiple-choice questions, CDGP with SciBERT achieves 34.17 NDCG@10, a measure that rewards putting recorded distractors near the top of the ranking. The strongest configuration from the earlier system scores 19.31, and its WordNet configuration scores 14.94. BERT performs best among the CDGP variants on CLOTH, a collection of school-level English exercises. The CLOTH comparisons also show that supplying the answer during training improves every reported automatic score and that the largest gain in the component study comes from training the candidate generator.

The authors also ask people to take a CLOTH test mixing original questions with questions whose distractors CDGP supplies. Participants answer 50.5% of the original items and 66% of the CDGP items correctly. They identify the origin of the distractors with 53% accuracy. The generated choices are therefore harder for participants to identify by origin than the difference in test performance might suggest. CDGP improves recovery of recorded distractors and produces options the authors see as useful for preparing questions. The study leaves open how to guarantee that every generated option is wrong and how to set the difficulty of the finished item.

Deep dive: CDGP: Automatic Cloze Distractor Generation based on Pre-trained Language Model

CDGP fills cloze tests with plausible wrong options by learning from existing distractors, then ranks the candidates for each blank. · about 34 minutes to read

The problem and its context

The work involved in writing a wrong answer

A cloze exercise removes words from a passage and asks the reader to supply them. The paper studies the multiple-choice form. Each item presents a stem, the text containing the blank, and a set of options that includes the intended answer. The introductory example has one correct choice and three distractors. The stem and answer are already decided when CDGP receives the item. Its job is to supply the other choices.

There are several reasons that a word might be easy to rule out. It might be the wrong grammatical category for the slot, make little sense alongside the surrounding words, or clash with information elsewhere in the passage. The question writer has to decide which of these cues should matter. A grammatical mismatch may be relevant in an exercise about grammar. In an exercise about the meaning of a passage, the same mismatch might let a reader choose the answer without understanding the passage. The appropriateness of a distractor depends on how the item is meant to work.

The opposite problem arises when the writer finds a word that fits too well. Consider a candidate with a meaning close to the intended answer. Its similarity makes it worth considering as a distractor. The writer still has to read the sentence with that word in place and decide whether the context rules it out. If both completions are defensible, the reader has grounds to choose either. A method for proposing alternatives faces both questions at once. It needs to find words that belong in the discussion and leave room to distinguish the intended completion from its competitors.

The aim is also different from that of ordinary blank filling. A blank filler is rewarded for recovering the missing word. Here the missing word is already supplied, and the useful prediction is a word that an item writer could include as a wrong choice. Many plausible completions would be poor distractors because they say much the same thing as the key. Conversely, a word that a reader might choose through a specific misunderstanding could make a good option even if it is an unlikely completion. The training data give the authors a way to study that distinction through examples of previously written questions.

The authors motivate automation by the effort involved in designing these alternatives. A passage with several blanks gives the writer several separate sets of choices to prepare. Useful automation would take some of the work out of finding candidates, even if a person still had to check the set before using it. The paper examines one specific part of that process, from a stem and key to a ranked list of alternatives. This scope matters when reading the results. A successful distractor generator can assist with an item whose tested content is already chosen.

Rules, vocabulary lists, and structured relations

The paper groups earlier approaches into families according to where their candidates come from. One family uses linguistic heuristics. A rule can specify what kinds of words to consider or what transformations might produce a wrong option. The attraction is straightforward. A rule gives the designer direct control over the property it targets. The authors describe the resulting options as falling short of practical needs. A rule that produces a plausible alternative for a particular kind of blank may cover only a narrow portion of the questions a writer encounters.

Another family draws candidates from a vocabulary or taxonomy for a specific domain and uses a classifier to select among them. This splits the work into finding words worth considering and making a judgment about each. The vocabulary puts useful bounds on the search, especially when an exercise concerns specialized material. It also limits what the selector can recover. A term omitted during candidate construction cannot be rescued later, however well the selector judges the terms it does receive. The paper identifies both the quality of proposed distractors and generalization to other domains as concerns with these approaches.

Ren and Zhu, whose system provides the direct comparison for CDGP, use knowledge bases to find candidates. Their method draws on semantic relations and on links between broader and narrower terms. A taxonomy gives an item writer a way to start with the answer and look for nearby concepts. The usefulness of a related term still depends on the stem. A relation between words can place one on a shortlist without establishing that the word will fit the blank or that it will be unambiguously incorrect there. The resources examined in the earlier system include Probase and WordNet.

CDGP keeps the earlier division between proposing and selecting. It changes the source of the proposals to a pretrained predictor that can use the words surrounding the blank. It also tests a set of ranking signals that use both the stem and the intended answer. This arrangement lets the authors ask whether much of the difficulty lies in the original candidate search, whether an explicit selector can improve the order of the resulting candidates, and whether the answer itself should be visible when the candidate generator learns its task.

Why recorded options are a useful starting point

An existing cloze item contains examples of the decision the authors want to automate. Its wrong options were included as alternatives to a known answer in a specific piece of text. This makes the item usable for training and gives the experiments a reference for comparing systems. A ranking that recovers the published alternatives has found words that someone actually used for that question, a stronger point of comparison than a judgment that the words merely belong to the right topic.

The record nonetheless captures a particular set of choices. An item writer could have used other words, and the available record usually gives no account of alternatives that were considered and discarded. Even the options selected for publication may serve different purposes within a set. One might resemble the key in meaning, while another might be tempting because of something else in the passage. A reference list gives the experiment a consistent target and also leaves part of the underlying task unobserved. This tension explains why the study uses both automatic comparisons and a test with people.

The method, step by step

From the stem to a shortlist

CDGP starts from a question stem and its answer. The candidate set generator, called CSG, turns the blank into a marked position and proposes words for it. The distractor selector, called DS, then evaluates the shortlisted words. For each one, it considers the confidence assigned by CSG and draws comparisons with the answer and the sentence containing it. The selector puts the component scores on comparable scales, combines them, and orders the candidates by the combined score. The highest-ranked candidates become the wrong choices.

How CDGP prepares cloze distractors

The steps in order.

How CDGP prepares cloze distractorsStep 1: Receive the stem and intended answer1. Receive the stem and intended answerStep 2: Mark the blank for candidate prediction2. Mark the blank for candidate predictionStep 3: Propose distractors using the trained generator3. Propose distractors using the trained generatorStep 4: Score each candidate with the selector4. Score each candidate with the selectorStep 5: Normalize and combine the feature scores5. Normalize and combine the feature scoresStep 6: Return the highest-ranked wrong options6. Return the highest-ranked wrong options

The distinction between the shortlist and the final output is important. Candidate generation narrows the problem from the available vocabulary to a set the selector can inspect. Selection can then change the order within that set. Its word and sentence comparisons cannot recover a candidate that the generator never proposed. With the default candidate set size of 10, CDGP selects the top 3 after ranking. Those are the two different cutoffs to keep in mind when the experiments report results at different ranks.

The generator uses a pretrained system capable of predicting what belongs at a masked position. A mask is a special marker that says where the text is missing. CDGP adapts the prediction task to cloze distractors through fine-tuning. In this procedure, the starting system is trained further on labeled examples from the target task. Here a labeled example contains the stem, the answer, and an existing distractor. The target at the mask is that distractor. Training therefore changes what a high score at the blank is supposed to signify.

Training with the stem alone

The authors call the first setup naive fine-tuning. The generator sees the stem with the special mask in place of the blank. It is trained to give probability to a recorded distractor. This setup asks how much the surrounding words alone can tell the system about which wrong choice an item writer might have used.

M(S ⊗ [Mask]) → D

M is the pretrained predictor being adapted. S is the stem with a blank. The operation ⊗ fills that blank with the item given to its right, in this case the special marker [Mask]. The arrow shows the training prediction, and D is the recorded distractor used as the target for this example. Though the example has an intended answer, that answer does not appear in the input to this version.

−log(p(D | S; θ))

This expression is the loss for the stem-only setup. p is the probability the predictor assigns to the target D. The vertical bar introduces the conditioning information, S, which is supplied with its blank masked. θ is the collection of trainable parameters, separated from the input in the notation by the semicolon. log is the logarithm, and the leading minus sign makes a larger probability for the target correspond to a smaller loss. Training seeks parameter values that reduce this loss.

From the learner’s point of view, the stem is the text to interpret before choosing an option. From the training system’s point of view, the stem is also evidence about what sort of mistake the item makes available. A blank can constrain grammar, meaning, or both, so the context already provides information relevant to a wrong word. Yet the relationship between a wrong choice and the intended completion has to be inferred from the stem alone in this setup. That is the restriction the second training condition removes.

Giving the generator the intended answer

The answer-relating setup appends the key after a separator. The blank stays masked in its original position. The answer is additional information outside the stem, so the input identifies which word the writer regards as correct while preserving the position at which the distractor is predicted.

M(S ⊗ [Mask] [Sep] A) → D

M is the predictor. S is the stem, and ⊗ [Mask] places the marker [Mask] in its blank. [Sep] is the special separator between the masked stem and A, the intended answer appended to the input. The arrow again points to the prediction target D, a recorded distractor. The key is available as a condition for prediction and remains distinct from the word the system is trained to return.

−log(p(D | S, A; θ))

Here p assigns a probability to D, conditioned on the masked stem S and the supplied key A, with trainable parameters θ. The vertical bar marks the conditioning information, the comma indicates that both pieces of input are available, and the semicolon separates the parameters. The logarithm log and the leading minus sign give the same direction of optimization as before. Increasing the probability of the recorded distractor lowers the loss.

This input arrangement is meant to let the predictor learn relationships that stem-only training has to infer indirectly. A distractor can be chosen in part because of how it resembles or differs from the answer. Once the key is visible, the training setup can associate those relationships with particular stems. The objective itself remains a probability objective for observed distractors. It supplies no separate test of whether substituting the predicted word would leave the sentence true, grammatical, or capable of more than one reasonable interpretation.

The authors use the observed distractor as the target in a training instance. An item with several wrong choices thus supplies examples of several words that can serve as the target for the same stem and answer. At use time, the point is to obtain a set of proposals rather than a single predicted word. The paper’s formulation calls the size of that set k and sets its default to 10. The shortlist is what passes from the generator to the selector.

Confidence, words, and completed sentences

The selector receives the stem, its answer, and the candidates. It uses four signals. The expressions below use j to identify a candidate, leaving the numbered subscripts on s to identify the different signals. This keeps apart the identity of the proposed word and the identity of the feature being computed.

The first signal carries forward the generator’s own confidence. A candidate can start with a high score because, in the presence of this stem and answer, it looks like the kind of wrong option seen in training.

s₀ = p(Dⱼ | S, A; θ)

s₀ is the confidence feature for the candidate under consideration. Dⱼ is the candidate indexed by j. p gives its predicted probability using the stem S and answer A as the information to the right of the vertical bar. θ denotes the fitted parameters. The comma separates the two inputs and the semicolon distinguishes them from the parameters. This signal comes from the generator, so it preserves information that would otherwise be lost once the proposals were reduced to a list of words.

The next signal compares the words on their own. A word embedding describes a word with a vector, a list of numerical coordinates. Cosine similarity compares the directions of two such vectors. The paper’s feature subtracts the cosine from 1, so a higher cosine gives a smaller feature value. The feature is best read as a cosine distance even though the paper groups it under similarity. The comparison uses word embeddings.

s₁ = 1 − cos(A⃗, D⃗ⱼ)

s₁ is the word-level feature. A⃗ is the vector for the answer, D⃗ⱼ is the vector for candidate j, and arrows over the letters denote vectors. The comma separates the two arguments of cos, the cosine similarity between them. The constant 1 and subtraction reverse the order that the raw similarity would give. The authors use fastText for this comparison by default, drawing on work on subword information in word vectors.

The third signal compares two readings of the stem. The selector fills the blank with the intended answer to obtain one completed sentence. It fills the same blank with the proposed distractor to obtain another. The surrounding text is shared. What changes is the word placed in the blank and, potentially, the meaning and structure of the sentence containing it. A sentence-level comparison can respond to an effect of the substitution that a comparison of isolated word vectors misses.

s₂ = 1 − cos(V(S ⊗ A), V(S ⊗ Dⱼ))

s₂ is the context feature. S is the stem, A the answer, and Dⱼ the candidate indexed by j. The operation ⊗ inserts the word on its right into the blank in S. V denotes the sentence vector in this explanation of the formula. Its two arguments across the cosine comparison are the completed stem with the answer and the completed stem with the candidate. cos is the cosine similarity between the resulting vectors. As in the word feature, subtracting the similarity from the constant 1 gives a larger raw value to a pair with a lower cosine. The paper describes the comparison at the level of the completed sentences without identifying a separate sentence-vector encoder in its account of the implementation.

The last signal checks for a shared grammatical category. Words can be categorized as nouns, verbs, adjectives, and so on. A candidate from the same category as the key has cleared a basic hurdle for looking like a possible answer. The comparison is a binary use of part-of-speech tagging.

s₃ = 1 if POS(A) = POS(Dⱼ), and 0 otherwise

s₃ is the grammatical match feature, POS gives the part-of-speech tag, A is the intended answer, and Dⱼ is the candidate indexed by j. The equality inside the condition compares the tags. The output is 1 when they agree and 0 when they differ. This feature concerns the tag alone. Two words in the same category can still behave differently when inserted in the sentence. Because the match contributes to a score, a mismatch can be weighed against the other signals.

How the selector combines the signals

The raw features use different units and ranges. A probability, a cosine distance, and a binary indicator are numerically different kinds of evidence. The paper applies min–max normalization to the feature values before weighting them. Min–max normalization rescales a feature using its smallest and largest values so differences can be compared on a common scale. The paper gives the weighted score and names this normalization without detailing the treatment of a feature with identical values across candidates.

score(Dⱼ) = ∑ᵢ₌₀³ wᵢ · MinMax-Norm(sᵢ)

score(Dⱼ) is the final score assigned to candidate Dⱼ, with j indexing the candidate. ∑ adds the terms for feature indices i starting at 0 and ending at 3. sᵢ is the raw value of feature i for that candidate. MinMax-Norm rescales that feature. wᵢ is the weight assigned to feature i, and the centered dot indicates multiplication. The scores for confidence, word distance, sentence distance, and grammatical match enter the sum in that order. Sorting by the combined score gives the items from which CDGP takes the top 3.

The weights determine how readily another feature can change the order suggested by the generator. For instance, if two proposals have similar confidence, a grammatical match can help put one above the other. Confidence has greater influence in the default setting selected by the authors, whose weights in feature order are 0.6, 0.15, 0.15, and 0.1. The distance features are still active in that setting. Their positive contributions operate alongside confidence and grammatical agreement. No term in the score explicitly checks whether a candidate is a second correct answer.

The training and ranking steps therefore use observations in different ways. Fine-tuning adjusts the generator to predict distractors from examples. The ranking formula uses explicit features, and the authors compare several weight settings for those features. A ranking gain could come from moving a recorded distractor up among words already available. A gain from fine-tuning can also arise from changing which words enter the shortlist. Those possibilities have different consequences in a system with a candidate cutoff.

The reported implementation

The starting configuration uses bert-base-uncased, with Adam as the optimizer and an initial learning rate of 0.0001 for the pretrained predictor. An optimizer governs how the parameters are updated during training. The maximum input length is 64, and the default training batch size is 64. The batch size governs how many examples are processed together for an update. The input length is a separate setting, with the same reported value. Training runs on an NVIDIA Tesla T4. The default starting system is BERT.

For the word vectors, the authors report training fastText in the cbow setting. Their minimum and maximum n-gram parameters are 3 and 6. These parameters govern the lengths of sub-word pieces used to represent a word in this setup. The reported vector dimension is 100, which is the number of coordinates used in the comparison, and the initial learning rate for the embedding training is 0.05. These settings belong to the word-level ranking feature. They are distinct from the optimization settings for the generator and from the weights used to combine features.

Experiments and results

What the datasets contain

CLOTH consists of English cloze exercises organized in passages, with stems, answer keys, and distractors. The paper reports a middle-school subset, CLOTH-M, and a high-school subset, CLOTH-H. The distinction is useful because the source material and question types vary within the collection. The dataset serves as the basis for comparisons of the training setup, the pretrained starting point, and the selector. It also supplies the passages for the test with human participants.

The CLOTH-M training split has 2341 passages and 22,056 questions. Its development split has 355 passages and 3273 questions, and its test split has 355 passages and 3198 questions. CLOTH-H has 3172 passages and 54,794 questions in training, 450 passages and 7794 questions in development, and 478 passages and 8318 questions in testing. The collection as a whole has 5513 training passages with 76,850 questions, 805 development passages with 11,067 questions, and 813 test passages with 11,516 questions. Passage counts describe the amount of source text available. Question counts describe the number of blanks with their own answers and alternatives.

In the paper’s descriptive statistics, the average passage has 16.26 sentences and 242.88 words in CLOTH-M. The corresponding lengths in CLOTH-H are 18.92 sentences and 365.1 words. Those averages describe passages in the source collection. The generator is formulated around a question stem, and the implementation limits the input length. The statistics on the original passages therefore describe the setting in which the items were written and answered, instead of the amount of surrounding text established to reach every prediction.

The paper also includes a breakdown based on 3000 sampled questions. It groups items by skills such as grammar, short-term reasoning, matching paraphrases, and longer-range reasoning. Short-term reasoning accounts for a reported share of 0.503 in the CLOTH sample, while grammar accounts for 0.265 and longer-range reasoning for 0.180. Here the reported values are shares of question types, not distractor scores. This breakdown helps explain why the dataset can put different demands on a writer. Some blanks can be resolved from a local construction, while others depend on a connection between parts of the text.

DGen is the comparison dataset inherited from Ren and Zhu. It reorganizes material from SciQ and MCQL and contains 2880 questions, with 2321 for training, 300 for validation, and 259 for testing. The paper describes material from several domains, including science, vocabulary, common sense, and trivia. The science material is relevant to the authors’ interpretation of the results for SciBERT. SciQ is described in the earlier work on crowdsourcing multiple-choice science questions.

The two datasets serve different roles in the article’s evidence. DGen puts the new system on the same benchmark as the earlier candidate-ranking framework. CLOTH lets the authors study how the design choices behave on school cloze exercises and lets participants answer passages with both kinds of distractor. The strongest score reported on one dataset answers a question about that dataset’s items and reference choices. Comparing the ordering of starting systems across the two is more informative than comparing the raw score levels as though both datasets contained the same questions.

What the scores reward

The automatic evaluation checks the ranked output against the recorded distractors. Precision at the first rank, P@1, concerns whether the highest-ranked proposal is a recorded option. It gives immediate credit when the first choice matches and ignores the placement of alternatives below it. This makes it a direct check on the leading candidate, even when the item ultimately needs a set.

F1@3 and F1@10 consider the quality of the proposals up to their respective cutoffs. F1 balances precision, the share of returned proposals that match reference options, and recall, the share of reference options recovered among the proposals. At the shorter cutoff the metric concerns the part of the ranking used to produce the finished wrong choices. At the longer cutoff it can also register matches that were available farther down the list. A useful candidate can therefore help the longer-cutoff result without making it into the question.

Mean reciprocal rank at 10, MRR@10, rewards placing the first match near the top, considering ranks through the stated cutoff. A match at the very top counts more heavily than a first match farther down. It describes how soon a reader encounters a recorded choice in the ranking. Once the first match has been found, the positions of the remaining matches make no further contribution to that question’s reciprocal rank.

Normalized discounted cumulative gain at 10, NDCG@10, rewards ranked matches throughout that portion of the list and gives more credit to matches at higher positions. Normalization relates the observed gain to an ideal ordering for the item. The metric can distinguish rankings that recover the same reference options but put them in different places. This is why it can improve even when a score concerned only with the first result stays the same or moves in the opposite direction.

Taken together, the metrics can show whether CDGP finds recorded choices, moves them into the first few positions, or improves their overall order. They all depend on matching existing options. None uses the choices made by learners as its relevance judgment. The human comparison addresses a different outcome by giving the resulting questions to people.

DGen and the knowledge-based comparison

The DGen experiment compares CDGP with Ren and Zhu’s earlier system using a WordNet candidate generator, a Probase candidate generator, and a setting without that candidate-generation stage. These baselines answer different questions. The first two show what the earlier approach obtained from different resources. The setting without candidate generation shows how its evaluation behaves with that stage omitted. The strongest of these baselines on the reported measures uses Probase.

Alongside BERT, the authors run CDGP with SciBERT, RoBERTa, and BART. The BERT and RoBERTa variants improve ranking quality on DGen relative to the earlier best result on NDCG@10, while the SciBERT variant shows the largest improvement on that metric. The BART variant also exceeds the Probase NDCG@10 result, although the earlier Probase system does better on some of the other measures.

DGen ranking quality across systems on NDCG@10

SciBERT leads the CDGP variants, which all score above the earlier knowledge-based configurations.

DGen ranking quality across systems on NDCG@10Earlier system without candidate generation: 11.6Earlier system without candidategeneration11.6Earlier system with WordNet: 14.94Earlier system with WordNet14.94Earlier system with Probase: 19.31Earlier system with Probase19.31CDGP with BART: 22.66CDGP with BART22.66CDGP with BERT: 24.47CDGP with BERT24.47CDGP with RoBERTa: 24.52CDGP with RoBERTa24.52CDGP with SciBERT (this paper): 34.17CDGP with SciBERT (this paper)34.17
The numbers
System or settingNDCG@10
Earlier system without candidate generation11.6
Earlier system with WordNet14.94
Earlier system with Probase19.31
CDGP with BART22.66
CDGP with BERT24.47
CDGP with RoBERTa24.52
CDGP with SciBERT (this paper)34.17

The DGen scores make clear which baseline goes with each of the paper’s headline comparisons. The earlier WordNet configuration scores 14.94 NDCG@10. The earlier Probase configuration scores 19.31 on that metric. The latter is the stronger baseline for interpreting CDGP’s best result of 34.17. The paper’s abstract and its detailed DGen discussion use different starting values, and both are entries in the same comparison.

The improvement is clearest when more than the top position is considered. With SciBERT on DGen, CDGP reaches 12.23 on F1@3 and 25.12 on MRR@10. The earlier Probase system records 9.19 and 17.51 on those measures, respectively. SciBERT and RoBERTa tie at 13.13 on P@1. Their NDCG@10 scores differ, which indicates that the tie at the first position carries little information about how well the rest of the rankings agree with the recorded distractors.

The BERT result illustrates the same distinction in a different way. Its P@1 on DGen is 10.81, close to the Probase result of 10.85. At F1@3, BERT has 7.72 and Probase has 9.19. On the longer ranking measure, BERT reaches 24.47 NDCG@10 against Probase’s 19.31. Thus, the improvement at the longer cutoff is compatible with the older system recovering a better set at the shorter cutoff. The choice of measure changes which system a reader would prefer for a particular purpose.

The authors connect SciBERT’s lead to the fit between scientific pretraining material and the science content in DGen. The dataset includes other domains as well, and the comparison reports aggregate results. The proposed explanation concerns a property of the starting system and a property of the dataset that line up. The paper’s result establishes the benchmark ordering and gives this domain connection as an interpretation.

CLOTH and the starting point for generation

The same family of pretrained systems produces a different ranking on CLOTH. With answer-relating fine-tuning, BERT leads the reported comparisons across the automatic metrics. It reaches 18.50 on P@1, 13.80 on F1@3, 15.37 on F1@10, and 29.96 on MRR@10. The authors use it for the subsequent CLOTH tests. Among the other systems in this comparison, BART is closest to BERT on NDCG@10.

CLOTH ranking quality by pretrained starting point on NDCG@10

BERT leads the CLOTH comparison, with BART the closest of the other variants.

CLOTH ranking quality by pretrained starting point on NDCG@10RoBERTa: 28.17RoBERTa28.17SciBERT: 28.76SciBERT28.76BART: 31.74BART31.74BERT (this paper): 37.82BERT (this paper)37.82
The numbers
System or settingNDCG@10
RoBERTa28.17
SciBERT28.76
BART31.74
BERT (this paper)37.82

The contrast between the two datasets is visible even with the same ranking metric. SciBERT is the highest-scoring starting point on DGen, whereas BERT leads on CLOTH. Within CLOTH, SciBERT scores 12.22 on F1@10 and BART scores 11.37, despite BART having the better NDCG@10. The longer-cutoff F1 measure concerns which references are present, while the ranking measure also concerns how favorably they are placed. These comparisons give the reader two distinct reasons a system can look better at the same cutoff.

What happened when people took the test

The authors recruit 40 evaluators from their campus and ask them to take a cloze test. They randomly select passages from CLOTH. A test passage contains 10 multiple-choice questions, with five original questions and five whose distractors come from CDGP. The passage thus provides a shared reading context for both sources of wrong choices. Participants first answer the items and later judge which ones used generated distractors. They also rate the difficulty of the generated choices.

On the answering task, participants answer 50.5% of the original questions correctly and 66% of the CDGP questions correctly. In this study the generated alternatives make for easier items as measured by correctness. The answers chosen by participants show the practical consequence of the alternatives a writer supplies. If fewer of the wrong choices compete seriously with the answer, a reader may be able to respond correctly even while being unsure of the missing word by itself.

The origin judgment gives a different result. The participants guess the source of the distractors correctly at a rate of 53%, which the authors describe as close to guessing. This judgment comes after participants have answered the questions. It asks whether they can recognize which questions were constructed with generated options. Whether an item is easy to answer and whether its choices look automatically written are separate judgments, and the two outcomes in this study differ.

For the rating task, the paper uses a scale from 1 to 5, with 1 at the easiest end and 5 at the most difficult. The authors describe the distribution in their figure as concentrated around moderate difficulty. This is a report of perceived difficulty for the generated choices. The answering rates provide a comparison with the original items, while the ratings describe how the evaluators experienced the generated ones. Together with the difficulty of identifying their origin, the results support the authors’ view of CDGP as an aid to preparation while showing scope for making its alternatives more demanding.

What the ablations show

The value of making the answer visible

The first controlled comparison asks whether the answer needs to appear in the generator’s input. On CLOTH, stem-only fine-tuning gives P@1 of 12.60 and F1@3 of 10.00. Answer-relating fine-tuning gives 18.50 and 13.80 on the same measures. The longer-cutoff F1 measure moves from 12.45 to 15.37, and MRR@10 moves from 22.70 to 29.96. NDCG@10 is 30.32 with the stem alone and 37.82 when the answer is available.

Improvement across all the reported metrics makes the result easier to interpret than a gain at only one cutoff. The difference appears both in the first choice and farther down the list. The answer is useful input for reproducing how existing options relate to the item. The comparison concerns a change in conditioning information. Both setups are trained to predict a recorded distractor, and the answer-aware condition gives the predictor something more to base that prediction on.

The experiment also distinguishes answer conditioning from the later comparison between word vectors. The answer-aware generator has access to the key while predicting a word at the mask. The selector’s word feature is computed on the proposals it receives. The former can influence which words are on the list, while the latter can influence only the order. That distinction matters if finding a suitable candidate is a larger bottleneck than judging a fixed list.

What changes when confidence carries more weight

In the weighting experiment, the first setting assigns 0.25 to each of the four features. On CLOTH it yields 18.50 P@1, 13.80 F1@3, 29.96 MRR@10, and 37.82 NDCG@10. Shifting the weights changes the extent to which the explicit comparisons can overrule the probability from the generator. The configurations tested all keep the same feature set. The experiment therefore studies their joint balance.

The setting with weights 0.4, 0.2, 0.2, and 0.2 reaches 19.40 on P@1, the highest first-rank result among the weight settings reported. It gives 15.33 on F1@3, 31.11 on MRR@10, and 39.12 on NDCG@10. The result indicates that emphasizing confidence while keeping the other weights equal can help the first candidate in particular. The setting selected by the authors gives more weight still to confidence and changes how the remaining weight is divided.

With the selected weights 0.6, 0.15, 0.15, and 0.1, the scores are 19.30 on P@1, 15.50 on F1@3, 31.26 on MRR@10, and 39.49 on NDCG@10. This setting has the best F1@3 and MRR@10 in the comparison. Those measures reward recovering good options near the top of the output, an important property for a question that will use only a few of them. The paper treats the setting as its default for the later component experiment.

The largest confidence weight tested is 0.8, with weights 0.05, 0.05, and 0.1 on the other signals. That setting gives the highest NDCG@10 of the weight comparison, 39.56. Its P@1 of 18.90, F1@3 of 15.43, and MRR@10 of 30.88 are all below the corresponding results for the selected default. The authors describe performance as starting to decline when the word and sentence features receive very little weight. The scores support that description for those near-top measures, while the longer-cutoff NDCG result continues to improve among the tested settings.

Several weights change together in these comparisons. A result that improves after reducing the word and sentence weights can also reflect the increase in confidence or a change in grammatical-match weight. The experiment identifies a useful joint setting, including a tradeoff among metrics. It leaves open how much either distance feature contributes on its own, whether another choice of weights would help different question types, and whether a binary grammatical match is the best use of grammatical information.

Generation accounts for most of the component gain

The component study compares the full pipeline, the trained generator alone, the selector alone, and a setting using neither trained generation nor explicit selection. The last setting still obtains proposals from BERT’s existing ability to predict a word at a mask. This detail defines the starting point. It is the score for ordinary masked prediction used for the distractor task, before specialized training and the extra ranking stage.

CDGP component comparison on CLOTH NDCG@10

The trained generator accounts for most of the gain, and the full pipeline scores highest.

CDGP component comparison on CLOTH NDCG@10Masked prediction without either component: 18.65Masked prediction without eithercomponent18.65Selector alone: 19.12Selector alone19.12Trained generator alone: 38.73Trained generator alone38.73Trained generator and selector (this paper): 39.49Trained generator and selector (thispaper)39.49
The numbers
System or settingNDCG@10
Masked prediction without either component18.65
Selector alone19.12
Trained generator alone38.73
Trained generator and selector (this paper)39.49

The largest change is associated with using the trained generator. Its 38.73 on NDCG@10 is much higher than the masked prediction score of 18.65. The selector alone reaches 19.12. When added to the trained generator, it raises NDCG@10 to 39.49. The pattern follows the limits of ranking a shortlist. A selector has a better opportunity to improve the top ranks when trained generation has already placed useful alternatives within reach.

The shorter-cutoff and first-match scores describe what the selector contributes once the generator is in place. The generator alone reaches 14.90 F1@3 and 30.57 MRR@10. The full system reaches 15.50 and 31.26, respectively. Both have 15.37 on F1@10. This pattern is consistent with improvement in moving useful candidates into more favorable positions, while the reported longer-cutoff overlap stays the same. The metrics do not identify which particular candidates moved or how the reorderings affect individual questions.

Using the selector alone gives 6.43 on F1@3 and 12.02 on MRR@10. The condition without either component gives 6.03 and 11.81. The selector-only P@1 is 4.00, against 4.10 with neither component. That small reversal at the first position is another reason to read the ablation across metrics. The main difference is between ordinary masking and specialized candidate training. Adding selection to the trained generator gives further, smaller changes in where reference distractors occur in the ranking.

Limitations

Limits the authors identify

The authors’ principal concern is that automatic reference matching gives an incomplete account of distractor quality. A question can have several workable sets of wrong choices, even though its dataset entry contains only the set used by its writer. A generated candidate outside that set lowers or fails to improve the reference-based score even if it would work in the exercise. Benchmark results are therefore directly interpretable as recovery and ordering of recorded options. Their interpretation as educational quality depends on how representative those options are.

This problem affects both stages of the system. For evaluation, the benchmark gives credit to a shortlist that includes existing choices. During training, those same kinds of recorded choices define what the generator is encouraged to predict. An alternative that was never written down can be absent from both the training signal and the scoring rule. The system can still propose such a word, but the experiment has no item-level reference judgment that would recognize its suitability.

The authors also state that CDGP lacks a way to control difficulty and correctness. The human test illustrates the difficulty problem. The generated items are answered correctly more frequently than the originals, although participants are close to guessing when asked to tell where the options came from. A user of the pipeline has no reported setting that asks it to produce choices calibrated to a desired level of challenge. Giving more weight to one ranking feature was tested for recovering reference options, a different objective from controlling how frequently learners respond correctly.

Correctness is a separate issue. The item has a supplied key, but a candidate could also fit the sentence in a way that makes it defensible as an answer. Another candidate could be ruled out for a superficial reason that defeats the purpose of testing the gap. The scoring procedure uses confidence, distances, and grammatical agreement. The authors identify the absence of a way to control correctness, which leaves the final decision about whether a generated set forms a valid item outside the demonstrated method.

Limits of the comparisons

The automatic improvements apply to the benchmark tasks that were run. CLOTH provides questions of different types, and DGen includes several domains. The main scores combine items within each dataset. They give no separate result for how well CDGP handles grammar questions, paraphrase questions, or blanks that require information across a passage. The settings also do not show whether changing the amount of passage visible at prediction time would particularly help the last of these groups. This matters because the contextual features described in the method compare completed stems.

The evidence on domain fit is suggestive and bounded. DGen includes science material and SciBERT leads there. The comparison does not keep the pretrained system fixed while changing only the domain of its training material, and the reported aggregate does not isolate the science questions within DGen. The paper’s explanation is a plausible reading of the ordering it observes. The experiment measures the performance of particular starting systems on each benchmark, instead of the effect of domain-specific pretraining by itself.

There is also a limit to what can be inferred about candidate coverage independently of ordering. The ablation records the output scores of generation and selection as configured, including scores at the longer cutoff. It does not report the complete set of candidates that a human might approve for each blank. So a higher candidate score can mean better recovery of conventional distractors without telling us how much broader the range of viable choices has become. A high-ranked novel distractor and a high-ranked clearly unsuitable word can both appear as a miss in the automatic results.

The feature-weight study gives a related example of what the comparison can resolve. It identifies a balance that performs well across several reported measures. It does not isolate the causal effect of each word or sentence feature because the weights vary together. The component ablation has more leverage on the distinction between trained generation and ranking. Its result supports the importance of generator training in this pipeline while leaving the contribution of any single selection feature open.

What the human test can establish

The human experiment measures how a campus group answers a mixture of original and regenerated questions from CLOTH. The participants encounter both kinds in a passage and later judge their source. This is stronger evidence about actual answering behavior than reference matching alone. The reported results concern the tested passages and recruited evaluators. The study gives no separate analysis by school level or by learner proficiency, so the answering rates give no direct estimate for a particular target classroom.

In the mixed test, the original and regenerated questions occupy different blanks. The account describes randomly selecting passages and retaining or replacing distractors across the questions in those passages. It does not describe showing the same blank with both sets of options to comparable groups. The aggregated correctness rates therefore reflect the tested mix of stems and choices. The result points towards easier generated items in that setup without isolating the effect of changing the distractors for each stem.

Source identification measures recognizability under the study conditions. A participant can give a wrong guess about where an option came from even if the option has a flaw, and a correct guess does not explain how the participant made it. The difficulty ratings add a different perspective, but they are impressions supplied after the test. The three judgments offer evidence on answering, perceived difficulty, and recognition of origin. Each bears on a different question about whether generated distractors are ready for use in assessment.

What came after

Distractor generation in language teaching and assessment

One later work cites CDGP in the broader setting of language teaching and assessment technology. Its stated subject places distractor writing alongside a larger question about applications in assessment. CDGP supplies a concrete instance of what that question can mean. An existing exercise furnishes the stem and the key, and a computational method takes on the more narrowly defined job of proposing the competing options. That division makes it possible to evaluate a contribution to item writing without asking a system to determine what the whole test should assess.

The later paper’s scope is broader than the blank-completion experiment. CDGP’s results give that discussion an example in which benchmark improvement, the difficulty learners experience, and the recognizability of generated choices are separate outcomes. The connection is at the level of an assessment use case. The title and citation establish the context in which the work is taken up, with no basis for attributing a new CDGP implementation or an independent evaluation of its results to the later paper. Application to language teaching and assessment technology.

Distractors across multiple-choice tasks

A survey of distractor generation cites CDGP as part of a field that spans methods, datasets, and evaluation. Those three aspects are closely connected in the CDGP study. The method changes both how proposals are obtained and how they are scored. Its comparisons use datasets with different source material and purposes. Its evaluation combines benchmarks against recorded choices with a test in which participants actually attempt to answer the questions. The survey’s stated scope puts this combination in the wider setting of research on multiple-choice tasks.

The connection is especially relevant to the distinction between a distractor that matches a recorded option and one that functions well in a question. A comparison of methods needs to know which of those outcomes its evaluation captures. A comparison of datasets needs to know what kinds of questions and choices each contains. CDGP offers one set of design and evaluation decisions for that broader comparison. The survey is a later treatment of the research area, with no specific reanalysis or experiment on CDGP established here. Distractor Generation in Multiple-Choice Tasks.

Generating wrong choices and feedback in mathematics

The mathematics paper takes up automatic distractor generation in a different subject and pairs it with feedback generation. Its stated approach is in-context learning, whereas CDGP trains its generator further on examples of cloze distractors and uses a separate score to rank the resulting candidates. The mathematics paper’s title makes the difference in the requested output clear. It addresses a wrong choice and also feedback for the multiple-choice question. CDGP’s output ends with the ranked choices.

Taken together, these tasks illustrate two ways to use a generated alternative. In the cloze setting it is a possible completion that competes with the key. When distractors are paired with feedback, there is also an opportunity to explain a wrong choice. That broader output makes the quality of the relationship between the distractor and the question relevant in another way. The citation connects the mathematics work to the same generation problem. Its stated approach does not establish that it adopts CDGP’s ranking features or training procedure. Automated distractor and feedback generation for math multiple-choice questions.

Revisiting selection for vocabulary tests

ISSR addresses distractor generation for vocabulary tests and names iterative selection with self-review as its approach. Vocabulary tests bring the problem back to word choices, close to the setting in which CDGP compares individual words and their use in a completed stem. The points of connection are candidate choice and the need to judge alternatives against a target answer. CDGP scores its shortlist with a weighted combination of fixed features. ISSR’s stated approach makes selection iterative and includes self-review.

The vocabulary paper is therefore a later investigation of the selection problem under a different stated procedure. Its citation connects it to CDGP, but the description of its approach supplies no detail about which CDGP components it uses, what its self-review checks, or whether it improves on CDGP in a shared experiment. The supported connection is the continued effort to judge generated wrong options for language tests, with selection itself made the focus of the newer method. ISSR: Iterative Selection with Self-Review for Vocabulary Test Distractor Generation.

Cite

Cite as Shang-Hsuan Chiang, Ssu-Cheng Wang and Yao-Chung Fan. 2022. CDGP: Automatic Cloze Distractor Generation based on Pre-trained Language Model. Findings of the Association for Computational Linguistics: EMNLP 2022.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.findings-emnlp.429

@inproceedings{chiang2022cdgp,
  title = {{CDGP: Automatic Cloze Distractor Generation based on Pre-trained Language Model}},
  author = {Shang-Hsuan Chiang, Ssu-Cheng Wang and Yao-Chung Fan},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2022},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.429},
  url = {https://doi.org/10.18653/v1/2022.findings-emnlp.429}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chiang-2022-cdgp-automatic-cloze-distractor-generation/