Elamur Research

On the application of Transformers for estimating the difficulty of Multiple-Choice Questions from text

Paper · 2021 · Luca Benedetto, Giovanni Aradelli, Paolo Cremonesi et al.

Summary

Before a new exam question can help measure a student’s skill, someone needs to know how demanding it is. An expert can make a judgment from the wording, while pretesting can establish a difficulty estimate from actual answers. The first approach depends on the expert’s judgment. The second requires students to see the question before it can be used for scoring. Luca Benedetto and colleagues investigate whether a Transformer can learn from previously calibrated questions and estimate the difficulty of a new item from its text. The target is a difficulty score that takes differences in student skill into account. A question with a low fraction of correct answers may have been especially hard, or it may have been given to students who were less prepared. The calibration procedure uses the students’ other responses to help distinguish those possibilities.

The authors first estimate difficulty from response records, then use those estimates to train BERT and DistilBERT to predict a score for a question they have never seen. They run separate experiments on public ASSISTments tutoring data and private CloudAcademy assessment data. On the ASSISTments test set, where the available input is the question stem, BERT achieves a root mean squared error of 1.228. The strongest earlier approach on that split, based on ELMo, reaches 1.255. On CloudAcademy, the authors can also give the predictor answer-choice text and adapt it to the subject through lecture transcripts. BERT with that extra training and the correct choices achieves a test root mean squared error of 0.981, the lowest reported there.

The gains depend on what the predictor reads. On CloudAcademy, the correct choices are more useful than the full choice list for most of the Transformer configurations, and additional training on transcripts brings its clearest benefit when the correct choices are included. The analysis also finds larger errors for items near the easy and hard ends of the difficulty scale, and higher average errors for questions with blanks than for questions ending in a question mark. Input length shows no clear overall relationship with error. The paper calls attention to questions with several correct choices as well, but its detailed subgroup figures compare those items with the full test set. They leave the direction of BERT’s single-choice advantage unclear. The experiments establish that text can help reproduce response-based difficulty estimates for held-out questions in the same collection. How those predictions would perform when used to score students remains an open question.

Deep dive: On the application of Transformers for estimating the difficulty of Multiple-Choice Questions from text

How BERT and DistilBERT estimate multiple-choice question difficulty from text, and when answer choices and lecture transcripts improve calibration. · about 34 minutes to read

The problem and its context

What a difficulty estimate is meant to measure

An exam score combines evidence from the questions a student answers. The same correct response can carry different implications depending on what the student was asked to do. Getting an elementary item right gives a different indication of skill from solving an item that students with similar preparation commonly miss. Difficulty also matters before anyone takes the test. An assessment designer wants questions that are demanding enough to distinguish the students being assessed and accessible enough to yield meaningful variation in their answers. If almost everyone answers an item the same way, that item offers little help in telling students apart.

The paper uses calibration for the task of assigning difficulty to an item. Its starting point is the practical tension between two established ways to do this. An expert can examine a newly written question, but different judgments can give inconsistent estimates. Pretesting supplies evidence from student behavior and gives a more consistent basis for calibration. The cost is that an institution must administer the question before it can rely on it for scoring, and it must wait while enough responses accumulate. The delay matters precisely when the item is new and the assessment provider wants to put it to use.

Text prediction changes when the evidence is needed. An existing collection of questions has already been answered, so those response records can be used to learn how item text relates to empirically estimated difficulty. Once that relationship has been fitted, the text of another question is available as soon as it is written. In the CloudAcademy setting, that can include the answer key and the wording of the alternatives, both of which are already known to the author of the question. The task is to produce an estimate before a student has to respond to that specific item. The historical response records still supply the examples from which the procedure learns.

That distinction matters because several targets can plausibly be called difficulty. One used in earlier work is the p-value of an item, the fraction of students who answer it correctly. In this context the term refers to correctness, instead of the result of a statistical significance test. An item can have a low correct-response fraction because it is demanding for a typical student or because the particular students who attempted it were less skilled. A fraction calculated over those students describes what happened. It has no separate term for differences in skill among them. Some earlier researchers instead predict wrongness, the complement of that fraction. This reverses the direction of the target while preserving the same dependence on the observed group.

Benedetto and colleagues use Item Response Theory, or IRT, to define the target differently. Their version gives each student a skill value and each item a difficulty value. The chance of a correct response depends on how those values compare. A student who did poorly on otherwise accessible questions provides different evidence about an item from a student who succeeded on demanding ones. The procedure uses response patterns across items and students to estimate both sets of values jointly. The difficulty subsequently predicted from text is one of those fitted values.

This gives the paper two separate estimation problems. The first turns a record of student behavior into an item-level score. The second asks how well written material can reproduce that score. For a reader interested in assessment, the distinction explains what has been calibrated and against which evidence. For a reader interested in natural language processing, it explains why the output is a continuous value associated with a question instead of the correct choice, a topic label, or a probability assigned to a particular student.

Earlier ways of using text

The paper situates the study within research on how wording relates to difficulty. Earlier work had looked at language in science and mathematics assessments. The authors also mention work on community question answering, where estimating how demanding a question is has a different application. Their own experiments concern educational items with recorded correctness, which is what makes a response-based reference score possible.

Some early approaches to multiple-choice difficulty used properties of the words and similarities among the stem, the answer and the distractors. A distractor is an incorrect option offered alongside a correct one. For a question writer, its usefulness depends partly on whether it presents a plausible alternative. A method that measures relationships among choices can therefore use information absent from the stem on its own. The approaches reviewed in the paper include bag-of-words representations, which summarize which words occur without retaining their order, and methods that explicitly compare the alternatives with other parts of the question.

The authors also describe a different task in which a student must find an answer in a passage supplied with the question. Huang and colleagues gave their neural predictor both the question and that passage. The relevant difficulty includes how challenging it is to locate the answer in the available text. In Benedetto and colleagues’ experiments, there is no accompanying passage searched on behalf of each item. The lecture transcripts, when used, serve as material for learning about the domain in advance. This difference separates access to an item-specific source from familiarity with the subject matter across an assessment collection.

Two previous projects used medical documents alongside exam questions. Yaneva and colleagues trained a predictor of the correct-response fraction using question text and a large medical collection. Qiu and colleagues used medical documents to predict wrongness, dividing the task into two aspects. One concerned choosing among the alternatives. The other concerned recalling the knowledge necessary to answer. Both projects illustrate why subject documents might help. They also motivate an experimental question for an assessment provider whose item bank has no comparable body of supporting text.

Of the earlier approaches compared directly in the experiments, R2DE is the closest in how it defines difficulty. It was developed to estimate both difficulty and discrimination under IRT. Discrimination concerns how strongly an item distinguishes students at different skill levels. The present study focuses on difficulty. R2DE turns the wording of an item and its available choices into TF-IDF features. These give weight to terms based on their occurrence in the text and how broadly they occur across texts. Random Forest regressors then use the resulting features to estimate item properties. The paper also notes a follow-up in which readability and linguistic features improved upon that approach.

Xue and colleagues provide the paper’s earlier example of transfer learning for text-based calibration. They adapt the contextual representations from ELMo first to predict response time and then to estimate the proportion of correct answers. Response time is an intermediate training task there. The use of ELMo also brings in representations built before the difficulty task, so the 2021 study’s contribution is more specific than applying transfer learning to question text for the first time. It tests whether Transformer-based representations support the IRT target and whether subject-specific text can improve them further.

This sets up separate questions about the form of the text and the source of the supervision. The stem, keyed answers and distractors offer different descriptions of the same item. The response records and lecture transcripts supply different evidence during training. Earlier work had used several of these ingredients in different combinations and had frequently been evaluated on a single private collection. The authors design their comparison around two collections with different available inputs so they can examine which choices are feasible in each setting.

The method, step by step

Turning answers into difficulty targets

Each collection starts with two records that can be joined by question identifier. The answer record, called A, identifies the student, the question, whether the student answered correctly and the time of the interaction. The question record, called Q, contains the item identifier and wording, plus the choice text where available. The study considers a student’s first recorded encounter with an item. Later attempts would reflect an encounter with a question the student had already seen, so the first-attempt condition helps keep the calibration observations comparable in that respect.

The authors fit the difficulty scale before training a text predictor. They use the one-parameter IRT formulation associated with Rasch. A student has a skill value, and each question has a difficulty value. If the student’s skill is high relative to the question’s difficulty, a correct response is more probable. For a fixed student, increasing the difficulty moves the probability in the other direction. At the extremes of the theoretical scale, questions that are very easy for that student have a correct-response probability approaching 1, while questions that are very hard have a probability approaching 0.

P꜀ = 1 / (1 + e^(−1.7 · (θᵢ − bⱼ)))

Here P꜀ is the probability of answering correctly. The subscript C stands for a correct response. The index i identifies the student, whose skill is θᵢ, and j identifies the question, whose difficulty is bⱼ. The letter e is the base of the natural exponential. The caret marks exponentiation, the dot denotes multiplication, and 1.7 is the constant in the paper’s logistic response function. The 1 in the numerator and the added 1 in the denominator are constants. The exponent depends on the difference between skill and difficulty, with the negative sign making a larger skill advantage correspond to a higher probability of success.

Correctness is recorded as a choice between two outcomes. The probability used for an incorrect response is the complement of the probability of a correct one.

1 − P꜀

Here 1 represents the total probability of the possible outcomes, P꜀ is the probability of a correct answer for the student and item, and the minus sign gives the part of the probability assigned to an incorrect answer. These two terms allow both kinds of observations to contribute to fitting the difficulty scale.

The authors use likelihood maximization. In practical terms, a candidate set of student skills and item difficulties gives a probability for every observed response. A correct response contributes the chance of success under those candidate values, while an incorrect response contributes its complement. The selected values are the ones for which the observed response pattern is most probable. The paper also describes the reverse assessment use. Once item difficulties are fixed, the same approach can estimate a student’s skill from the responses that student gives to the calibrated items. The experiments evaluate how well the text predictor estimates item difficulty, with this assessment use explaining why the target matters.

For the calibration in each collection, the authors use the pyirt package and restrict admissible item difficulties to the range from −5 to 5. They add the estimated difficulty to the question record as the supervised target. The text component thus receives a question and a number to learn from. Individual students’ identifiers, skills and correctness records are used to construct the targets, while the input that the text component later receives comes from Q.

The flow combines the response-based and text-based parts of the experiment. The transcripts belong to an optional branch because they are available only for CloudAcademy.

From recorded answers to held-out difficulty estimates

The steps in order.

From recorded answers to held-out difficulty estimatesStep 1: Collect first attempts and question text1. Collect first attempts and question textStep 2: Fit item difficulties from response records2. Fit item difficulties from response recordsStep 3: Attach difficulty targets and split the items3. Attach difficulty targets and split the itemsStep 4: Optionally adapt to the subject through transcripts4. Optionally adapt to the subject through transcriptsStep 5: Encode the stem and available choices5. Encode the stem and available choicesStep 6: Fine-tune the Transformer to predict difficulty6. Fine-tune the Transformer to predict difficultyStep 7: Compare predictions with held-out difficulty targets7. Compare predictions with held-out difficulty targets

Representing an item as text

The starting language representation is BERT or its smaller counterpart, DistilBERT. BERT comes from earlier work applying the Transformer’s self-attention mechanism to language. Self-attention lets a token’s representation depend on other tokens in the input. For a question stem, this means a word can be represented in light of the condition or action it appears with. When choices are appended, their words are part of the same input, so the representation can also take account of their context in the combined sequence. The paper tests the effectiveness of this arrangement through prediction errors. Its experiments do not attribute a particular prediction to a particular attention pattern. Attention Is All You Need

BERT’s original training includes masked language prediction and a task about sentence succession. In masked language prediction, surrounding text provides the evidence for recovering a hidden word. In the succession task, the system judges whether a second sentence plausibly follows a first. The paper uses the pretrained weights as a starting point and adapts them to a new objective. DistilBERT is obtained through knowledge distillation, in which a smaller network learns to reproduce the distribution of outputs from a larger one. The paper reports that DistilBERT retains 95% of BERT’s performance on several earlier language-understanding tasks while using about half as many parameters. That comparison motivates including the smaller architecture. The calibration experiments themselves test whether its accuracy remains close on the new task. Distilling the Knowledge in a Neural Network

The authors use the original conventions for tokenization and input encoding. Tokenization is the conversion of written text into the units the network reads. An input sequence begins with the special token [CLS]. The question stem comes next, with [SEP] marking the end of the stem and separating it from the choice segment. The paper calls these two segments sentences to follow BERT’s terminology. A question that actually contains several grammatical sentences still goes wholly into the first segment. That placement keeps the boundary between the wording of the question and any appended answers.

In the configuration called Q only, the second segment is empty and the stem is the sole source of item wording. In Q+correct, the second segment contains the text of the correct choice or choices. This supplies information about what a successful answer looks like, and it relies on the answer key supplied by the item writer. In Q+all, the second segment contains all choices concatenated into a single sequence. This version exposes the predictor to distractors alongside the correct wording. The authors also tried putting extra [SEP] tokens between choices and report a much weaker outcome for that arrangement. The main comparison uses the configurations with a single boundary after the stem.

The difference is concrete in the CloudAcademy example. The stem describes a cloud instance and asks how to establish a disaster recovery setup in another region. The keyed answer describes making a machine image, copying it to the destination region and launching an instance there. Distractors propose other ways to copy or launch the resource. The stem supplies the goal and the technical setting. The keyed answer adds the operations the student is expected to identify. The full set adds competing operations a student has to distinguish from the keyed one. The amount of text grows across these inputs, but the kind of evidence also changes.

ASSISTments offers a different example. An original word problem gives a purchase-price range and an hourly earning rate and asks for an inequality expressing how much work will cover the purchase. After an unsuccessful attempt, its scaffolding prompts ask about intermediate quantities and build toward the same relationship. The task treats the original and scaffolding prompts as items with their own wording and calibrated difficulty. The authors have the stems for this collection, so they use Q only. One consequence is that an original problem and the prompts that break it down can enter the same item-level analysis even though their roles in tutoring differ.

Fitting the regressor

The authors add a fully connected output layer above the Transformer. They use the final representation at the [CLS] position as the input to that layer. Because the output is a difficulty score, a regression task, the added layer has a single output unit. Its connections start with randomly initialized weights. The pretrained network already has weights acquired during language training, and the gradient updates during fine-tuning change both those weights and the connections in the new layer. This makes the language representation itself adaptable to distinctions that help predict difficulty.

The distinction between initialization and supervision explains where the training information comes from. The pretrained weights contain language regularities acquired before the assessment experiment. The randomly initialized output layer begins without a fitted mapping from those representations to difficulty. Text paired with calibrated IRT values supplies the supervision for learning that mapping. For a held-out item, the predictor uses the encoded stem and whatever choices the setting permits. Its output is compared against the reference score that was computed from recorded answers to that item.

The authors estimate response-based targets for the questions in each collection and then split Q by item. They reserve 80% of the questions for the training partition and 20% for testing. During training they hold back 10% of the training partition for development, where they tune hyper-parameters. Hyper-parameters are settings of the training procedure, such as batch size and the dropout applied to the network. The test questions are held out from supervised text training. Their difficulty targets still come from the prior IRT fit, which uses the response data to establish the values against which the predictions are scored.

The appendix lists regression batch sizes of 16, 32 and 64 and gives learning-rate candidates including 1e-5 and 2e-5. For both internal dropout and dropout in the added layer, the candidates are 0.1, 0.2, 0.3, 0.4 and 0.5. Dropout reduces reliance on particular activations during training by temporarily omitting some of them. The patience for early stopping is 10 epochs, where an epoch is a pass through the training data. That setting determines how long training can continue without improvement under the stopping criterion. The appendix describes a search over settings, so a candidate value is distinct from a value known to have been used for every reported run.

Adapting to the domain first

The optional stage starts with the same pretrained weights but gives them additional exposure to CloudAcademy lecture transcripts before regression. The authors use masked language modeling, abbreviated MLM. They randomly mask 15% of the words in the available lecture material and train on the sentences to predict what belongs at each masked position. A special [MASK] token marks a position to recover. To make the prediction, an added dense layer reads the contextual representation at that position, and a softmax layer turns its scores into a distribution over candidate words.

This stage gets its training signal from the transcript itself. The original word at a masked position provides the known answer, so the authors can use the whole lecture collection without needing difficulty judgments for the transcript sentences. The setup is meant to familiarize the network with the subject vocabulary and how it is used. In the cloud example, such familiarity could concern descriptions of resources or operations in training materials. The objective teaches the network to recover words in context. Whether that helps it estimate difficulty is determined later by the held-out question comparison.

After the transcript stage, the authors remove the added layers used for word prediction. They retain the updated weights of the original network and add the output layer for difficulty regression. An adapted and a directly fine-tuned BERT therefore have the same arrangement when they make a difficulty prediction. They differ in the weights with which they begin task-specific training. This allows the experiment to compare additional language training with direct fine-tuning while leaving the item encoding and regression architecture the same in matched conditions.

For the transcript stage, the appendix specifies a batch size of 64, a learning rate of 1e-5 and dropout of 0.1, with candidate training durations of 4, 12, 24 and 36 epochs. Both stages use a sequence length of 256 and the Adam optimizer. The paper identifies Hugging Face’s Transformers library and TensorFlow as the implementation tools and reports that the authors make the experiment code available. The training sequence is repeated separately for the two collections. ASSISTments supplies a test of direct text regression without the corresponding transcript adaptation.

Experiments and results

The two assessment collections

ASSISTments is a tutoring platform that can respond to an incorrect answer by presenting a sequence of prompts that break the original task into steps. The authors include original problems and scaffolding problems. They retain items answered by at least 50 students so that the response-based difficulty estimates have enough observations to be useful as targets. They remove questions that require an outside resource and remove system messages that do not function as assessment items. The resulting collection has 11,393 distinct items. The paper reports an average of 151 students per item and 64 different items per student. The answer records are public, and the question texts are available by request.

CloudAcademy is a private collection drawn from online instruction about information technology. Every question in this collection is multiple choice, and its alternatives are available as text. The sample also applies a minimum of 50 students per retained question. According to the paper, the answer record covers 7,323,502 interactions across 13,603 distinct questions and 34,696 students. It reports averages of 304 students per item and 115 items per student, with overall correctness of 66%. That correctness figure describes the recorded answers in the collection. The experiment scores difficulty at the item level after calibration.

The CloudAcademy lecture collection contains 159,563 sentences and 3,228,038 words. These transcripts concern cloud technologies covered by the assessment items. They make it possible to ask whether text written for instruction can improve predictions for exam questions about the same broad subject. The eligible question texts and the transcripts have different roles. The questions provide item inputs and receive difficulty targets. The transcripts provide additional examples of language use and are never themselves assigned difficulty scores for this experiment.

The datasets therefore differ on several dimensions at once. The tutoring questions include mathematical material and scaffolds, while the CloudAcademy items concern a technical subject and come with explicitly recorded options. The corresponding lecture collection is available only in the latter setting. Within CloudAcademy, the authors can change which parts of the same questions are used or compare training with and without the same body of transcripts. Comparisons across the two collections describe performance in different settings, with less control over which characteristic accounts for the difference.

Baselines and measures

ZeroR is the simplest baseline. It calculates the average difficulty of the training questions and predicts that value for every test item. Its errors show what can be achieved by knowing the center of the training targets while ignoring the individual questions. A predictor that improves on ZeroR must make use of some information that helps it assign different values to different items. ZeroR is also relevant to the extreme-item analysis because a single central prediction is especially limited when the target lies far from that value.

R2DE learns from the words in each item. In the authors’ implementation, TF-IDF converts the text to an array of features, and a Random Forest uses those features to make the difficulty estimate. It gives the study a comparison with a non-neural approach to the same IRT target. The authors use the existing R2DE code. They reimplement the method based on ELMo to fit their data and try all the applicable input configurations for it. ELMo is a useful second comparison because it already uses contextual text representations, while the Transformer is a different way of obtaining and adapting those representations.

The evaluation uses mean absolute error, or MAE, and root mean squared error, or RMSE. For each item, the error is the deviation of the text prediction from its response-based difficulty target. MAE averages the magnitude of those deviations. RMSE squares the deviations before averaging and then takes the square root. Both report error on the difficulty scale. Squaring makes RMSE more sensitive to large misses, so a method can rank differently depending on whether the comparison emphasizes typical absolute deviation or penalizes large errors more heavily.

The principal tables give the mean and standard deviation over three independent runs. The runs use different random initializations. The reported standard deviations describe how the measured errors vary across those runs. In addition to evaluating on the full test split, the authors isolate items with difficulty magnitude greater than 2, referred to as extreme items. This subset encompasses both unusually easy and unusually hard questions on the calibrated scale, so it tests performance in the parts of the range where a tendency to predict near the center would be consequential.

CloudAcademy

The configuration comparison covers both Transformer architectures, all available ways of supplying choice text and training with or without the transcript stage. Its main outcome is that the answer representation matters. BERT with transcript adaptation and correct-choice text has a test MAE of 0.774 and RMSE of 0.981, the lowest mean errors in the comparison. BERT trained directly with the correct choices reaches an MAE of 0.789 and RMSE of 0.999. DistilBERT with transcript adaptation and those choices reaches an MAE of 0.788 and RMSE of 0.998. For direct fine-tuning of DistilBERT, the best input is the full choice list, which gives an MAE of 0.794 and RMSE of 1.013.

The earlier approaches also use the answer text. R2DE with all choices gives the lowest R2DE MAE on the full test split, 0.813. With only the correct choices it has an MAE of 0.819 but attains the slightly lower overall RMSE of 1.033, compared with 1.034 using all choices. This distinction matters when calling one input the best. For the reimplemented ELMo approach, the correct-choice input gives the lowest overall errors among its tested encodings, with an MAE of 0.831 and RMSE of 1.048. ZeroR gives an MAE of 0.845 and RMSE of 1.069 on the same test split.

CloudAcademy full test split RMSE for selected comparisons

BERT with transcript adaptation and the correct choices has the lowest error in this comparison.

CloudAcademy full test split RMSE for selected comparisonsZeroR: 1.069ZeroR1.069R2DE with correct choices: 1.033R2DE with correct choices1.033ELMo with correct choices: 1.048ELMo with correct choices1.048BERT with correct choices and transcript adaptation (this paper): 0.981BERT with correct choices and transcriptadaptation (this paper)0.981
The numbers
System or settingRMSE
ZeroR1.069
R2DE with correct choices1.033
ELMo with correct choices1.048
BERT with correct choices and transcript adaptation (this paper)0.981

Among the selected configurations in the full-system comparison, the BERT version adapted on transcripts and supplied with correct choices leads on both overall metrics. Its test MAE is reported as 0.774 ± 0.011 and its RMSE as 0.981 ± 0.015. The error ordering makes clear that the strongest BERT result depends on how it is trained and what it reads. The paper’s overall claim of an RMSE reduction of up to 6.5% summarizes the authors’ comparisons with earlier approaches. The table entries for each condition show the errors on their original scale.

For extreme CloudAcademy items, the adapted BERT configuration gives a test MAE of 1.962 ± 0.042 and RMSE of 2.079 ± 0.047. Directly fine-tuned BERT using the same input has an extreme-item MAE of 2.118 and RMSE of 2.222. DistilBERT with transcripts and the correct choices achieves an MAE of 2.067 and RMSE of 2.187 on that subset. The best BERT result therefore also leads among the tested configurations when performance is evaluated away from the center of the difficulty scale. Its errors there remain considerably larger than its errors over the full test set.

The comparison between ELMo and directly fine-tuned DistilBERT goes in different directions depending on the subset. The ELMo configuration with the correct choices has higher overall errors than DistilBERT with all choices. On extreme items, ELMo yields an MAE of 2.184 and RMSE of 2.276, while DistilBERT in that condition gives 2.203 and 2.309. The authors suggest that ELMo may make more predictions at high and low difficulties. The subset results show where its relative advantage appears. Establishing the shape or source of that tendency would require examining the predictions themselves by direction and magnitude of difficulty.

ASSISTments

Only the question stems are available as inputs in this experiment. The authors compare direct fine-tuning of BERT and DistilBERT with the same baselines, while the extra transcript stage is absent. BERT has a full-test MAE of 0.911 ± 0.003 and RMSE of 1.228 ± 0.003. DistilBERT reaches 0.919 ± 0.009 and 1.239 ± 0.010, respectively. The strongest earlier approach on both overall measures is ELMo, with an MAE of 0.933 ± 0.013 and RMSE of 1.255 ± 0.017. R2DE gives 0.966 and 1.304, respectively. The constant ZeroR prediction produces an MAE of 1.066 and RMSE of 1.424.

ASSISTments full test split RMSE with question stems

BERT has the lowest error, with DistilBERT the closest among the compared approaches.

ASSISTments full test split RMSE with question stemsR2DE: 1.304R2DE1.304ELMo: 1.255ELMo1.255DistilBERT: 1.239DistilBERT1.239BERT (this paper): 1.228BERT (this paper)1.228
The numbers
System or settingRMSE
R2DE1.304
ELMo1.255
DistilBERT1.239
BERT (this paper)1.228

The ordering is similar on extreme ASSISTments items. BERT records an MAE of 1.849 ± 0.074 and RMSE of 2.243 ± 0.038 on the test subset. DistilBERT gives an MAE of 1.864 and RMSE of 2.259. ELMo reaches 2.025 and 2.375. R2DE reaches 2.408 and 2.700, while ZeroR gives 2.882 and 3.033. The two Transformer approaches thus improve on the earlier text predictors on this subset as well as on the full test split.

Full-split errors are higher on ASSISTments than on CloudAcademy. The authors suggest two possible explanations. Some ASSISTments questions use images that were unavailable to the predictors, and some present equations with little accompanying language. Both features can reduce the amount of usable information in the stem. Other aspects of the comparison also vary across the collections, including the presence of choices and the availability of lectures. The result establishes that stems alone provide a viable input in ASSISTments. The reported errors describe how well that input recovers calibration in a collection with those constraints.

The authors also consider the choice between BERT and DistilBERT in practical terms. With only stems on ASSISTments, their overall error estimates are close. On CloudAcademy, the larger gains for BERT appear when correct choices and transcript adaptation are available together. The authors therefore regard DistilBERT as a plausible choice when only question text is available, given the lower computational demands of the smaller architecture. The paper reports prediction errors for that choice and points to the size advantage. It supplies no calibration-specific timing comparison from which to estimate the savings.

What the ablations show

Choice text and transcripts interact

The CloudAcademy configuration experiment changes two parts of the procedure. One is the input text at fine-tuning and prediction time. The other is whether the pretrained weights receive additional language training on transcripts before regression. Each part can be examined while holding the architecture fixed. The resulting comparisons are more informative than simply contrasting the best result with a baseline, because they show whether improvement follows from choice text, transcript adaptation or a particular combination.

BERT’s matched configurations give the clearest example. Without transcripts, its CloudAcademy test RMSE is 1.022 with stems, 0.999 with correct choices and 1.027 with all choices. With transcripts, the corresponding test RMSE values are 1.023, 0.981 and 1.005. Its MAEs without transcripts are 0.807, 0.789 and 0.811 in those same input conditions. After transcript adaptation they are 0.809, 0.774 and 0.794. Both metrics identify the same strongest BERT input in each training condition. The stem-only errors are essentially unchanged across the transcript comparison and move slightly in the unfavorable direction. Both choice-bearing inputs show lower mean errors after adaptation.

CloudAcademy test RMSE across BERT inputs and transcript training

The correct-choice input leads in both training conditions and gets its lowest error after transcript adaptation.

CloudAcademy test RMSE across BERT inputs and transcript trainingStem without transcript adaptation: 1.022Stem without transcript adaptation1.022Correct choices without transcript adaptation: 0.999Correct choices without transcriptadaptation0.999All choices without transcript adaptation: 1.027All choices without transcriptadaptation1.027Stem with transcript adaptation: 1.023Stem with transcript adaptation1.023Correct choices with transcript adaptation (this paper): 0.981Correct choices with transcriptadaptation (this paper)0.981All choices with transcript adaptation: 1.005All choices with transcript adaptation1.005
The numbers
System or settingRMSE
Stem without transcript adaptation1.022
Correct choices without transcript adaptation0.999
All choices without transcript adaptation1.027
Stem with transcript adaptation1.023
Correct choices with transcript adaptation (this paper)0.981
All choices with transcript adaptation1.005

The smaller architecture shows a related pattern with an important exception. Directly fine-tuned DistilBERT has CloudAcademy test RMSE values of 1.017 for stems, 1.019 for correct choices and 1.013 for all choices. Its corresponding MAE values are 0.805, 0.799 and 0.794. The full list is the best input for both metrics in that condition. With transcript training, the RMSE values are 1.016, 0.998 and 1.009, and the MAE values are 0.801, 0.788 and 0.795. After adaptation, the correct-choice setting takes the lead. The all-choice RMSE improves slightly after adaptation, while its MAE is slightly higher. The usefulness of the extra language training depends on which measure and input the reader examines.

A correct choice can name an operation, concept or distinction that the stem asks the student to retrieve. Giving the network that text makes the relevant material explicit. Giving it all choices adds the competing answers that make the decision a multiple-choice task, but it also asks the network to use a longer sequence of alternatives supplied as one segment. The configuration results establish that these encodings differ in predictive value. They leave open whether the advantage of the keyed answer comes from identifying a topic, specifying the required knowledge more closely or reducing the burden of interpreting unrelated choice text.

The result with additional separators tests another representation of the alternatives. The authors report that inserting [SEP] between individual choices works much worse and omit its numerical results from the main comparisons. They suggest that pretraining accustomed the network to one separator and that the available assessment questions provided too little evidence to learn a new pattern of boundaries. The result identifies a weak arrangement among those tried. The proposed explanation would need a comparison that changes the amount of training or the familiarity of the boundary encoding while keeping the choices fixed.

Length and difficulty

The authors compare the best BERT configuration with R2DE to see whether their errors respond similarly to characteristics of the questions. R2DE is a useful comparator because it uses word-based TF-IDF features and yields strong CloudAcademy results among the earlier approaches. On that collection the analysis uses correct choices for BERT and all choices for R2DE. On ASSISTments, both receive the stem. This difference in input matters when discussing length, because the measured sequence on CloudAcademy can include different amounts of choice text for the same underlying item.

Before comparing errors, the authors plot item counts by input length and calibrated difficulty. The distribution is uneven. There are many observations in some combinations of length and difficulty and few in others, so the error plots exclude sparsely represented regions. The CloudAcademy BERT analysis keeps inputs of length at most 110 with difficulty magnitude below 3, covering 96.4% of the questions. The same thresholds cover 96.9% with the R2DE input. On ASSISTments, the included inputs have length at most 80 and difficulty magnitude below 4, retaining 94.3%. The authors use the same bounds for both predictors on ASSISTments because their input configuration is the same.

Within the displayed regions, errors vary more clearly with the target difficulty than with length. The authors observe that the distributions of predictions and targets are approximately Gaussian, with more spread in the targets. In other words, the prediction values are concentrated more tightly near the center of the scale. A question calibrated as quite easy or quite hard can therefore receive an estimate closer to 0 than its response record suggests. This concentration is particularly apparent for R2DE in ASSISTments. BERT shows a weaker dependence on target difficulty there, consistent with its better results on extreme items.

Some rows of the plots suggest a relationship between length and error at particular difficulty values. The authors point to the CloudAcademy BERT row for difficulty −1 as one such case. Across the broader plots, however, they see no clear relationship between length and calibration accuracy. Longer inputs may combine a longer stem with more answer text, while mathematics stems can be short and still express demanding content. The reported comparison establishes that length alone offers little explanatory power across the included portions of these collections. It leaves room for local patterns and for effects in regions omitted because observations were scarce.

Blanks and multiple keyed answers

CloudAcademy cloze questions use an underscore where the correct choice belongs. The authors contrast them with questions ending in a question mark. In the cloze analysis, they report 222 cloze items among 1259 test questions. BERT gives a mean absolute error of 0.804 on the cloze items and 0.756 on the other items. R2DE gives 0.893 on the cloze items and 0.794 on the others. Both approaches therefore do worse on this format in the reported comparison, and the authors find the decrease in accuracy smaller for BERT.

A blank gives a choice a role inside the stem. In the paper’s encoding, the choice is appended to the stem, so the input leaves the blank in place and presents its potential completion later in the sequence. The authors suggest that underscores are uncommon in the language encountered during pretraining and that question-level fine-tuning gives limited evidence about how to interpret them. The contrast is between existing groups of items. It provides evidence of a format-associated error pattern, while the explanation about underscores remains a hypothesis. A comparison of the same items encoded both with the blank and with an inserted choice would address a different, more specific question.

The comparison by answer count covers 141 CloudAcademy test questions with multiple correct choices. On that subgroup, BERT has an MAE of 0.764 and R2DE has an MAE of 0.750. The full-test MAEs are 0.774 for BERT and 0.813 for R2DE. The relative ordering of the two predictors therefore reverses on the multiple-answer subset. The subgroup result is notable because BERT is the stronger predictor overall, while R2DE has the lower error for those particular questions.

The authors conclude that BERT does better on items with a single correct choice. The detailed figures give a lower MAE for BERT on the multiple-answer subset than on the full set, and they provide no separate single-answer mean. The detailed reporting consequently leaves the claimed direction of BERT’s own subgroup difference unclear. It does show that R2DE fares better than BERT on the subset as reported. The authors suggest that concatenating several keyed choices may be less suitable for a contextual representation sensitive to word position than for the bag-of-words representation used by R2DE. The experiment compares existing items and does not vary their encoding independently of the number of correct choices, so it leaves that proposed mechanism unresolved.

Limitations

Limits identified by the authors

The accuracy of the estimates depends on what is available when a question is represented as text. The authors identify missing images and equation-heavy stems as possible reasons for the higher overall errors on ASSISTments. An image can carry information necessary to understand a problem, and an equation can express most of an item with very little ordinary prose. The paper does not present a comparison of otherwise identical items with and without images or substitute different representations of the equations. These are plausible explanations grounded in the collection’s contents.

The authors also identify coverage as a limit on the analysis of error by length and difficulty. Some groups are too small for a meaningful comparison, so they restrict the plots to regions with more observations. This makes the displayed patterns easier to interpret. The conclusion about length applies most directly inside those regions. The prevalence and accuracy of very long items at unusual difficulty values remain harder to assess from the plots.

Choice formatting is another open issue raised by the paper. The weaker results for cloze items and R2DE’s advantage among multiple-answer items give the authors reasons to investigate alternate representations. They suggest that the network may receive too few examples to learn what extra separators mean or how several concatenated correct choices should be interpreted. They also propose studying attention patterns to understand the errors and exploring specialized predictors that could be combined according to item characteristics. The experiments leave those explanations and proposed changes for future work.

The availability of related documents limits the scope of the transcript result. The paper evaluates additional masked language training only on CloudAcademy, where lectures about relevant subjects are available. The comparison supplies evidence for one domain and one kind of instructional material. Its effectiveness with a much smaller transcript collection, with texts in another style or with a different degree of subject overlap is an open question. Direct fine-tuning provides the evidence for the setting in which matching documents are unavailable.

Limits of the experimental design

The reference difficulty is fitted from responses under a specific psychometric formulation. It depends on the students and items whose interactions enter that fit, with their differences accounted for through the skill and difficulty terms. The minimum-response filter helps make these estimates more reliable. Measurement uncertainty in the fitted item scores is still part of the evaluation, and the reported regression errors do not incorporate separate uncertainty estimates for those targets. A discrepancy can reflect the text predictor’s error, imprecision in the target or both. The results quantify agreement with this chosen calibration procedure.

The one-parameter formulation also bounds what the learned number represents. It gives an item a position on the difficulty scale. It does not let the item have its own independently fitted ability to distinguish among students at nearby skill levels. That distinction matters because the paper’s educational motivation includes using calibrated items to measure student skill. A lower item-level error shows improved agreement with the target. Evidence of better scoring would require looking at the students’ resulting skill estimates or another assessment outcome, which is outside the reported experiments.

The item split evaluates performance within each collection. Calibration comes first, so the held-out item scores are fitted from actual student responses, as they must be for the authors to score the predictions. The text predictor itself is evaluated on held-out question text. A separate question is how well the method carries over when a question writer starts in a new subject, a different institution or a later pool of students. The two experiments fit independent predictors. They provide evidence of applicability in both settings, while giving no direct estimate of transfer between them.

Related prompts also deserve attention when interpreting a split by item. ASSISTments contains original problems and scaffolds that can share wording, quantities or an underlying task. The reported split describes partitions of questions. It does not specify keeping each original problem together with all its scaffolds, or grouping other closely related items. As a consequence, the test scores do not establish how well the approach handles an entirely unfamiliar problem family. There is likewise no reported chronological comparison that would measure performance as the item bank changes over time.

The cloud dataset counts introduce an additional ambiguity about coverage. The paper gives 13,603 unique questions when describing the interaction collection, specifies a 20% test share in the general setup and later refers to 1259 questions in the test-set cloze analysis. It does not explain how that analysis count relates to the earlier figures. The subgroup numbers identify the items discussed in the format analysis. The relationship between that group and the initial item count cannot be reconstructed from the reported procedure.

The best CloudAcademy configuration uses the keyed answers. That is consistent with calibration by an assessment provider that already has the answer key, but it limits the meaning of question text alone for that particular result. The stem-only comparisons directly address what can be achieved without the choice text. Likewise, the all-choice and correct-choice inputs differ both in length and in whether every included answer is valid. Those comparisons show which representation works better as used in the experiment, while the separate contribution of length, key information and distractor quality remains uncertain.

Finally, the paper reports run-to-run variation alongside mean errors and describes the best CloudAcademy configuration as significantly stronger. The comparison tables give standard deviations across runs, without a corresponding inferential test that would quantify uncertainty across samples of questions. This matters when interpreting close results, such as the overall differences between BERT and DistilBERT on ASSISTments. The results support a ranking of the reported mean errors under the tested procedure. They leave the reliability of very small gaps across independently collected assessments undetermined.

What came after

The later citing works approach assessment from three different directions. A review places text-based difficulty prediction in the context of automatic approaches to the task. A paper on language teaching considers the application of newer language technology to teaching and assessment. A study of multiple-choice evaluation turns attention to the way multiple-choice tests are used to assess language systems. These are identifiable connections through the citing works’ stated topics. Their citations alone leave the extent of any reuse of the Rasch targets, the choice encodings or the transcript training procedure unspecified.

The systematic review takes the narrowest continuation of Benedetto and colleagues’ question as its subject. Its focus is automatic prediction of question difficulty from text, the same task for which the original study compares contextual representations with word-based features. From the perspective of a review, the two parts of the task are both important. A method needs a target that defines what difficulty means, and it needs a representation of the text from which that target is to be predicted. Benedetto and colleagues supply an example in which the target separates skill from difficulty and the text representation can include a keyed answer as well as the stem. The review cites this study in the setting of a broader examination of automatic approaches. Text-based Question Difficulty Prediction: A Systematic Review of Automatic Approaches

The work on language teaching and assessment technology has a broader application focus. Calibrating a question from text is one possible use of language technology inside an assessment workflow. The original study makes that use concrete by defining an output an assessment provider could compare against a score fitted from student responses. The later work concerns how larger language systems can be applied to language teaching and assessment technology more generally. Its connection through citation places item calibration alongside that broader application area. The scope of the later work does not establish a replication of the CloudAcademy or ASSISTments results. Application of language technology to teaching and assessment

The work on multiple-choice evaluation takes up the question format in a different role. In Benedetto and colleagues’ study, student answers establish the reference difficulty, and the Transformer predicts that property of the item. In the later study, multiple-choice evaluation is itself the subject under scrutiny when language systems are the examinees. This puts attention on how a question and its alternatives function as a measurement instrument. The connection is especially clear in the original comparison between stems, correct answers and full option sets. These inputs express different aspects of the same item, so the format determines which evidence is available to the system. The citation connects the studies at that level, while a reuse of the original calibration procedure is unspecified. Which of These Best Describes Multiple Choice Evaluation with LLMs?

Cite

Cite as Luca Benedetto, Giovanni Aradelli, Paolo Cremonesi, Andrea Cappelli, Andrea Giussani and Roberto Turrin. 2021. On the application of Transformers for estimating the difficulty of Multiple-Choice Questions from text. Proceedings of the 16th Workshop on Innovative Use of NLP for Building Educational Applications.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{benedetto2021application,
  title = {{On the application of Transformers for estimating the difficulty of Multiple-Choice Questions from text}},
  author = {Luca Benedetto, Giovanni Aradelli, Paolo Cremonesi, Andrea Cappelli, Andrea Giussani and Roberto Turrin},
  booktitle = {Proceedings of the 16th Workshop on Innovative Use of NLP for Building Educational Applications},
  year = {2021},
  url = {https://aclanthology.org/2021.bea-1.16/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/benedetto-2021-application-transformers-estimating-difficulty-multiple/