Assessing Reliability of BERT-Based Models on Question Answering Tasks
Summary
This paper evaluates the reliability of BERT-based QA models (RoBERTa, ALBERT, DistilBERT) under Monte Carlo Dropout and input paraphrasing, finding RoBERTa more consistent and validating MCD as a reliability metric.
View Cached Full Text
Cached at: 08/12/26, 08:37 AM
# Assessing Reliability of BERT-Based Models on Question Answering Tasks
Source: [https://arxiv.org/html/2608.10806](https://arxiv.org/html/2608.10806)
Pooja YadavEmail: poojayadav234422@gmail\.comDepartment of Mathematics, Malaviya National Institute of Technology, Jaipur, Rajasthan, IndiaPriyanka HarjuleBasant AgarwalDepartment of Computer Science and Engineering, Central University of Rajasthan, Kishangarh, Rajasthan, IndiaMarko Robnik ŠikonjaCorresponding author\. Email: Marko\.RobnikSikonja@fri\.uni\-lj\.siUniversity of Ljubljana, Faculty of Computer and Information Science, Ljubljana, Slovenia
Abstract:Reliability estimation of large language models is in many cases as crucial as their accuracy, as reliable models are more trustworthy, robust, and suitable for practical applications\. Recent advancements in natural language processing \(NLP\), particularly those based on transformer architectures, have significantly accelerated progress across various NLP tasks\. This study focuses on the reliability of transformer\-based question answering \(QA\) models, specifically BERT models and its variants \(RoBERTa, ALBERT, DistilBERT\)\. These encoder\-only pretrained transformers have demonstrated remarkable accuracy in QA tasks that can be treated as classification tasks\. However, their reliability remains underexplored\. This study evaluates the reliability of four BERT\-based models by assessing response stability under two conditions: \(1\) internal model variations induced via Monte Carlo Dropout \(MCD\) and \(2\) input perturbations through paraphrasing\. Using the SQuAD and QuAC datasets, we investigate how dropout rates affect prediction consistency and whether lexical changes impact answer stability\. Our findings reveal that RoBERTa maintains higher reliability, whereas AlBERT and DistilBERT exhibit significant inconsistencies\. Statistical analyses confirm that enabling MCD during prediction does not disrupt inference dynamics, validating its effectiveness as a reliability metric\. These findings underscore the importance of evaluating both accuracy and stability in QA models to ensure stability in real\-world applications\.
Keywords:Reliability Estimation, Monte Carlo Dropout, Natural Language Processing \(NLP\), BERT Models, Question Answering
## 1Introduction
In recent years, the field of Natural Language Processing \(NLP\) has witnessed remarkable advancements\. Rapid advances in Natural Language Processing \(NLP\) have been transformative, driving significant progress in the development of intelligent systems capable of processing, understanding, and generating human language with remarkable accuracy\. These advancements have not only enhanced the efficiency of language\-based applications but have also expanded the scope of tasks that machines can handle, from basic text processing to complex conversation\. Central to this progress is the introduction of transformer\-based architectures, which have redefined the capabilities of machine learning models by employing self\-attention mechanisms\[\[[28](https://arxiv.org/html/2608.10806#bib.bib5)\]\]to capture complex linguistic patterns and contextual dependencies effectively\. These architectures, characterized by their scalability and adaptability, have set new benchmarks across a wide range of NLP tasks\. Moreover, the robustness and versatility of transformer\-based models have made them indispensable tools for advancing research and practical applications, such as healthcare, customer support, and information retrieval\. Their ability to model bidirectional context and manage long\-range dependencies has enabled breakthroughs in many NLP tasks\[\[[18](https://arxiv.org/html/2608.10806#bib.bib20)\]\]\.
Among diverse tasks, question answering \(QA\) has emerged as a critical benchmark for evaluating language models’ comprehension and reasoning capabilities\. Transformer\-based representational architectures, such as BERT\-based models, have achieved remarkable accuracy across various datasets\. QA systems are crucial for applications such as virtual assistants, customer support systems, and automated knowledge retrieval\. Several authors\[\[[8](https://arxiv.org/html/2608.10806#bib.bib15),[12](https://arxiv.org/html/2608.10806#bib.bib16)\]\]have concentrated on enhancing performance with architectural innovations, pre\-training strategies, and various optimization techniques\. Given their relatively good computational efficiency and impressive performance, BERT\-like models are appropriate candidates for this task in many circumstances\.
However, while traditional evaluation metrics provide a quantitative measure of performance, they often present an incomplete picture of the model’s capabilities\. Metrics like accuracy primarily reflect how well models perform under idealized conditions, but they fail to capture how models react to uncertainty, internal stochastic variations, or input modifications\. Since real\-world applications often involve unpredictable conditions, it is crucial to assess how models respond to such changes to ensure reliability and consistency\. The motivation for this study arises from the observation that, despite their high accuracy, the reliability and prediction stability of BERT\-based QA models under controlled variations have not been systematically explored\.
This study distinguishes itself through its methodological framework\. It introduces a reliability assessment methodology that systematically examines the consistency and stability of BERT variants under stochastic variations and input perturbations\. This analysis investigates the impact of two key perturbations – internal stochastic variations and input modifications – to identify potential weaknesses in model behavior\. The considered models leverage transformer\-based architectures to deliver high accuracy by effectively capturing linguistic nuances and context\. BERT models have demonstrated consistent performance in various tasks, including QA\[\[[6](https://arxiv.org/html/2608.10806#bib.bib26)\]\]\. In 2022,Mioket al\.\[\[[17](https://arxiv.org/html/2608.10806#bib.bib7)\]\]established that BERT can be comparatively reliable in classification tasks\.Liuet al\.\[\[[14](https://arxiv.org/html/2608.10806#bib.bib27)\]\]demonstrated that RoBERTa outperformed BERT with optimized training, achieving higher accuracy on the SQuAD and GLUE benchmarks\.Lanet al\.\[\[[10](https://arxiv.org/html/2608.10806#bib.bib28)\]\]observed that ALBERT achieved comparable or better performance than BERT on QA tasks with fewer parameters\. While their performance in terms of accuracy has been evaluated and documented in the literature using various datasets, such as SQuAD, TriviaQA, WikiQA, and QuAC\[\[[20](https://arxiv.org/html/2608.10806#bib.bib1),[21](https://arxiv.org/html/2608.10806#bib.bib3)\]\], there remains a need to evaluate their reliability\. This study seeks to address this gap by examining whether BERT models and their variants, which perform consistently in QA tasks, are equally reliable under varying conditions\.
Reliability, in the context of question answering, refers to the consistency of a model in generating answers to input queries when subjected to controlled perturbations either in the model’s configuration or input\. In the context of NLP, a change in input refers to when the input undergoes modifications, such as the use of alternate phrases, synonyms, or added noise\. This process assesses the model’s reliability by examining its stability under controlled variations and evaluating the variability in outputs produced\. In this study, we examine this concept by examining the model’s reliability through controlled changes to its internal configuration and input variation for BERT\-based QA models and analyzing the variation in outputs generated\. This broader evaluation offers a deeper understanding of the model’s stability and dependability\. Reliability is quantified by analyzing the variance in outputs generated by a model when small alterations are made to the model itself or in the input provided, ensuring a comprehensive evaluation of its stability\. This study primarily focuses on:
1. 1\.To evaluate the reliability of four BERT model variants—RoBERTa, BERT\-Base, DistilBERT, and ALBERT—in question\-answering tasks\.
2. 2\.To investigate how changes in model configuration and input variations affect the consistency of the generated answers\.
3. 3\.Investigating the relationship between model accuracy and reliability using two datasets, SQuAD \(high accuracy\) and QuAC \(lower accuracy\)\.
4. 4\.To provide insights into the stability of BERT variants, contributing to the development of more stable NLP systems\.
This paper is organized into five sections\. Section[2](https://arxiv.org/html/2608.10806#S2)presents a review of related work in the field\. Section[3](https://arxiv.org/html/2608.10806#S3)outlines the research methodology, including detailed information about the datasets utilized in the study\. Section[4](https://arxiv.org/html/2608.10806#S4)reports the results obtained from the analysis, followed by Section[5](https://arxiv.org/html/2608.10806#S5), which provides a brief analysis of instances where the models fail to answer\. Finally, Section[6](https://arxiv.org/html/2608.10806#S6)provides an in\-depth discussion of these findings, and Section[7](https://arxiv.org/html/2608.10806#S7)concludes the study, summarizing the key insights and implications of the research\.
## 2Related Work
Rawat and Samant\[\[[25](https://arxiv.org/html/2608.10806#bib.bib2)\]\]conducted a detailed analysis of transformer\-based models for question answering, focusing on BERT, ALBERT, RoBERTa, XLNet, DistilBERT, Electra, and Pegasus\. Using the SQuAD2 dataset, they demonstrated how transformer models, such as HuggingFace’s BERT QA model, outperform traditional ”Bag of Words” approaches in extracting answers from large documents\. Van Aken et al\.\[\[[27](https://arxiv.org/html/2608.10806#bib.bib14)\]\]examine various LLMs, including BERT, fine\-tuned for Question Answering \(QA\), to explore how they transform token vectors to find correct answers, with a layer\-wise evaluation of hidden states to extract valuable information\. Nassiri and Akhloufi\[\[[19](https://arxiv.org/html/2608.10806#bib.bib4)\]\]presented a comprehensive review of transformer models in text\-based QA systems, categorizing architectures into encoders, decoders, and encoder\-decoders\. Their study also highlighted trends in QA datasets, system architectures, and evaluation methods, stressing the importance of simplifying transformer model implementations\. Ozkurt\[\[[20](https://arxiv.org/html/2608.10806#bib.bib1)\]\]explored the strengths of various transformer\-based models for question answering and identified ALBERT as the top performer, achieving an impressive 86\.85% exact match and 89\.91%F1F\_\{1\}score on the SQuAD v2 dataset\. Similarly, Kate Pearce and Tiffany Zhan\[\[[21](https://arxiv.org/html/2608.10806#bib.bib3)\]\]conducted a comprehensive study of transformer models across diverse QA datasets\. Their findings revealed that RoBERTa and BART pre\-trained models consistently outperformed others, while their custom BERT\-BiLSTM model surpassed the baseline BERT model inF1F\_\{1\}score\.
Despite the superior accuracy of these models, their reliability remains underexplored\. The existing literature explores diverse approaches for assessing the reliability of language models\[\[[29](https://arxiv.org/html/2608.10806#bib.bib6),[23](https://arxiv.org/html/2608.10806#bib.bib8),[22](https://arxiv.org/html/2608.10806#bib.bib11)\]\], with methodologies adapting to specific problem domains\. Miok et al\.\[\[[16](https://arxiv.org/html/2608.10806#bib.bib9)\]\]highlighted the effectiveness of LSTM models with Monte Carlo Dropout in enhancing reliability in the classification tasks \(hate speech classification\)\. In a separate study, Miok et al\.\[\[[17](https://arxiv.org/html/2608.10806#bib.bib7)\]\]evaluated the reliability of LSTM and BERT variants with Monte Carlo Dropout \(MCD BERT\)\. They found that MCD BERT variants, including BERT\-base and mBERT, are particularly reliable for classification\.
Previous studies have extensively highlighted that various BERT model variants can be designed and optimized for different Natural Language Processing \(NLP\) tasks, showcasing their versatility and adaptability across a wide range of real\-world applications\. Among these, RoBERTa, BERT\-Base, DistilBERT, and ALBERT have been identified as widely adopted models in question\-answering \(QA\) tasks\[\[[8](https://arxiv.org/html/2608.10806#bib.bib15),[12](https://arxiv.org/html/2608.10806#bib.bib16)\]\]\.
Recent studies have also explored the use of Large Language Models \(LLMs\) in question answering and recommendation\-oriented applications\. LLM\-based recommendation frameworks such as LE\-DLCM have shown that large language models can improve semantic understanding and contextual reasoning in personalized recommendation tasks\[\[[15](https://arxiv.org/html/2608.10806#bib.bib34)\]\]\.\[\[[30](https://arxiv.org/html/2608.10806#bib.bib35),[13](https://arxiv.org/html/2608.10806#bib.bib36)\]\]have similarly investigated conversational recommendation and generative reasoning using LLMs, mainly focusing on improving recommendation quality, user interaction, and generative capabilities of language models\.\[\[[26](https://arxiv.org/html/2608.10806#bib.bib37)\]\]highlighted the growing integration of LLMs into recommendation pipelines for semantic representation learning, conversational interaction, and context\-aware recommendation strategies\. These developments indicate the increasing role of LLM\-driven semantic reasoning in modern NLP\-based recommendation and QA\-related systems, while also motivating the need for systematic reliability evaluation frameworks for question\-answering models\.
## 3Experimentation and Methodology
This section outlines the datasets used in this study and the methodology employed to evaluate the reliability of the selected models\. To comprehensively evaluate reliability, two approaches were incorporated into the analysis: one involving the assessment of reliability by inducing changes in the model’s internal configuration, and the other by introducing variations in the input\.
To examine reliability under internal configuration changes while keeping the input constant, stochasticity was introduced in the model’s outputs during the prediction phase, allowing an assessment of whether the generated answers remained semantically similar to the correct answers\. This helps in evaluating the model’s reliability\. In addition, reliability was evaluated by modifying the input while maintaining a constant model configuration to assess whether models prioritize syntactic structure over semantic comprehension\. Specifically, a pre\-trained paraphrasing model is used to generate a paraphrased version of the input, and the impact on the model’s responses was observed\. This analysis facilitated the determination of whether the model maintained answer consistency despite minor lexical changes\. A detailed explanation of the datasets and the methodology employed is provided in the following sections\.
In this work, reliability refers to the consistency of model predictions under controlled perturbations\. The proposed framework evaluates reliability by examining whether transformer\-based question\-answering models continue to generate semantically consistent answers when variations are introduced either within the model through Monte Carlo Dropout or at the input level through paraphrased questions\. The resulting variations in the generated outputs are analyzed to assess the consistency and stability of the model’s prediction behaviour under controlled perturbation settings\.
### 3\.1Data Description
To evaluate the reliability of the BERT models in question\-answering tasks, two datasets were selected: the Stanford Question Answering Dataset \(SQuAD\) 2\.0 and the Question Answering in Context \(QuAC\) dataset\. Both datasets used in this study are publicly available\. The SQuAD 2\.0 dataset is available at[SQuAD](https://rajpurkar.github.io/SQuAD-explorer/), and the QuAC dataset is available at[QuAC](https://quac.ai/)\. Both datasets are widely used for question\-answering tasks but differ significantly in design and purpose\. SQuAD 2\.0 features independent fact\-based questions, enabling BERT models to perform consistently\. In contrast, QuAC is designed for conversational QA, where the questions are context\-dependent, forming a dialogue that requires understanding of previous interactions, leading to comparatively lower performance for BERT variants\. Both data sets consist of a given context, corresponding questions related to that context, and the correct answer extracted from the provided passage\. The context refers to the passage that serves as the source of information from which the answers to the questions must be derived\. Additionally, questions for which the context lacks sufficient information to derive an answer are categorized as unanswerable\.
DatasetContextTotal Questionswith AnsNo AnswerSQuAD12041187359285945QuAC1000735458681486Table 1:Description of used QA Datasets\.The SQuAD 2\.0 dataset\[\[[24](https://arxiv.org/html/2608.10806#bib.bib12)\]\]includes both answerable and unanswerable questions\. This is a benchmark dataset, commonly used to evaluate model performance\. BERT and its variants have demonstrated remarkable accuracy on this dataset, making it a standard reference for evaluation\. In contrast, the second dataset, QuAC\[\[[5](https://arxiv.org/html/2608.10806#bib.bib13)\]\], presents stronger challenges for BERT models, as they tend to exhibit significantly lower accuracy when evaluated on it\. The primary motivation for selecting these two datasets is to investigate whether a model’s reliability is correlated with its accuracy\. Specifically, the objective is to determine whether models that achieve high accuracy also demonstrate greater reliability or whether reliability is independent of accuracy\. A summary of the SQuAD and QuAC datasets is provided in Table[1](https://arxiv.org/html/2608.10806#S3.T1)\. Both datasets are publicly available\. Figures[1](https://arxiv.org/html/2608.10806#S3.F1)and[2](https://arxiv.org/html/2608.10806#S3.F2)show visual snapshots of the SQuAD and QuAC datasets, highlighting the context, questions, and answers\.
Figure 1:Visual Representation of the SQuAD Dataset\.Figure 2:Visual Representation of the QuAC Dataset\.
### 3\.2Architectural Details of Models
This study employs four BERT variants—BERT\-Base, RoBERTa, ALBERT, and DistilBERT—each derived from the original BERT model but with unique architectural adjustments to enhance performance, efficiency, or scalability\. The following section provides a brief overview of these models, highlighting their architectural characteristics\.
1. 1\.BERT\-Base:The foundational BERT model \(Bidirectional Encoder Representations from Transformers\), particularly its BERT\-Base version, set a new standard in natural language processing by introducing a deeply bidirectional transformer trained using two key objectives: masked language modeling \(MLM\) and next sentence prediction \(NSP\)\. BERT\-Base is composed of 12 transformer layers, each with 12 self\-attention heads, totaling 110 million parameters\. This model was pre\-trained on a combination of large text corpora, including BookCorpus and English Wikipedia\. Its architecture and training objectives laid the groundwork for several derivative models, each designed to enhance certain aspects of BERT’s performance, efficiency, or scalability\.
2. 2\.RoBERTa:RoBERTa \(Robustly Optimized BERT Approach\) improves upon BERT by adopting a more refined training strategy\. It discards the next sentence prediction objective, which was found to have a limited impact on downstream task performance\. Instead, it emphasizes a larger\-scale training approach, utilizing a significantly expanded training corpus and employing dynamic masking, where the masking patterns in the MLM objective are altered across epochs\. Furthermore, RoBERTa is trained over longer periods using larger batches and higher learning rates, resulting in a model that consistently outperforms the original BERT on various language understanding benchmarks\.
3. 3\.DistilBERT:DistilBERT is another derivative of BERT, designed with an emphasis on computational efficiency and speed\. It is created using knowledge distillation, where a smaller student model is trained to mimic the behavior of a larger teacher model, in this case, the original BERT\. By employing a combination of loss functions—distillation loss, cosine embedding loss, and language modeling loss—DistilBERT effectively captures the linguistic knowledge of BERT while being 40% smaller and 60% faster\. Despite this compression, it retains approximately 97% of BERT’s performance on major NLP benchmarks, making it a viable option for real\-time applications\.
4. 4\.ALBERT:ALBERT \(A Lite BERT\) represents a distinct approach, focusing on model efficiency\. It reduces the overall parameter count without a substantial loss in performance\. This is achieved through two primary techniques: parameter sharing across transformer layers and factorized embedding parameterization, which separates the vocabulary embedding size from the hidden layer dimensions\. Additionally, ALBERT replaces the NSP objective with a sentence order prediction \(SOP\) task, which has proven more effective for capturing inter\-sentence coherence\. These optimizations make ALBERT a lightweight model that delivers strong performance with significantly reduced computational requirements\.
To adapt BERT for question\-answering, a QA output head is added on top of the pre\-trained BERT model that predicts the start and end positions of the answer span within the context text\. The input consists of a question and a context, formatted as\[CLS\] Question \[SEP\] Context \[SEP\]\. BERT processes this input to generate token representations, which the QA head then uses to predict two sets of scores—one for the start and another for the end of the answer span\. During training, the model learns to accurately select the correct answer span within the context, enabling it to perform QA effectively\.
### 3\.3Performance Metrics
The study adopts two distinct evaluation metrics to evaluate the performance of the targeted models\. The selected evaluation metrics are designed to capture both the semantic alignment and structural similarity between the predicted and the correct output\. Specifically, cosine similarity and theF1F\_\{1\}score serve as the primary metrics for assessment\.
#### 3\.3\.1Cosine Similarity:
Cosine similarity serves as a measure of similarity between two vectors by calculating the cosine of the angle\(θ\)\(\\theta\)between them\. Mathematically, cosine similarity is given as follows:
cosθ=a→⋅b→‖a→‖⋅‖b→‖\\cos\\theta=\\frac\{\\vec\{a\}\\cdot\\vec\{b\}\}\{\\\|\\vec\{a\}\\\|\\cdot\\\|\\vec\{b\}\\\|\}
wherea→\\vec\{a\}andb→\\vec\{b\}are vectors representing the embeddings of the correct answer in the dataset and the predicted answer by the model, respectively\.
Transformer\-based models generate contextual embeddings in which semantic information is primarily represented through the orientation of embedding vectors rather than their magnitude\. Consequently, cosine similarity provides an effective and computationally efficient mechanism for evaluating semantic alignment between generated and reference answers, while remaining largely scale\-invariant to variations in embedding magnitude\. Unlike traditional lexical overlap\-based metrics such as BLEU or ROUGE, cosine similarity evaluates semantic consistency within dense contextual embedding spaces and therefore remains effective even when lexical or syntactic variations are present\. This property is particularly important in the proposed reliability assessment framework, where semantically equivalent responses generated under stochastic and paraphrased perturbations may differ in wording or sentence structure while still preserving the intended meaning\. When the cosine value\(cos\(θ\)\)\(\\cos\(\\theta\)\)approaches 1, it indicates strong semantic alignment between the generated and target answers, whereas values approaching 0 reflect substantial semantic divergence between the corresponding contextual representations\.
#### 3\.3\.2F1F\_\{1\}Score:
F1F\_\{1\}Score is a metric used to assess the model’s performance by balancing precision and recall\. TheF1F\_\{1\}Score is the harmonic mean of precision and recall, providing a balanced measure of the model’s ability to make accurate predictions while also identifying as many relevant answers as possible\. It is calculated as:
F1=2×Precision×RecallPrecision\+RecallF\_\{1\}=\\frac\{2\\times\\text\{ Precision \}\\times\\text\{ Recall \}\}\{\\text\{ Precision \}\+\\text\{ Recall \}\}
### 3\.4Reliability Assessment
The detailed methodology for assessing the reliability of the targeted models is described by Algorithms[1](https://arxiv.org/html/2608.10806#alg1)and[2](https://arxiv.org/html/2608.10806#alg2)\. The methods assess model reliability from different perspectives\. Together, they provide a comprehensive measure of the model’s stability\.
To evaluate the reliability of a model under internal configuration changes, we use dropout, as shown in Algorithm[1](https://arxiv.org/html/2608.10806#alg1)\. The process begins by accepting several essential inputs: a pre\-trained model, its corresponding tokenizer \(if applicable\), a dataset on which the evaluation will be conducted, a set of evaluation metrics for performance measurement, and a specified numberNN, representing the number of stochastic samples to be drawn per input instance\. Following this, dropout is introduced into the model’s predictions\. For each input instance from the dataset, the algorithm generatesNNdifferent outputs by passing the same input through the modelNNtimes, each time under slightly different internal configurations due to the induced stochastic behavior\.
Algorithm 1Methodology for Evaluating Model Reliability Under Internal Configuration Changes, i\.e, Dropout\.1:Input:Pre\-trained model, tokenizer, dataset, evaluation metrics, number of stochastic samples \(
NN\)
2:Output:Aggregated performance scores and reliability assessment
3:Enable stochastic behavior in model predictions \(e\.g\., Monte Carlo dropout or alternative methods\)\.
4:Generate
NNstochastic samples for a given input\.
5:foreach stochastic sampledo
6:Compute the evaluation metrics with respect to the ground truth\.
7:endfor
8:Compute the average value and variance of the selected evaluation metrics across all stochastic samples\.
9:Aggregate the averaged scores and the variances to obtain a representative performance measure per input\.
10:Repeat the process for multiple inputs and analyze the distribution of averaged scores and the variances of the performance metrics\.
11:Assess the reliability of the model’s predictions under internal configuration changes\.
These multiple predictions for a single input reflect the model’s variability under uncertainty\. Following this, each of theNNpredictions is evaluated against the ground truth using the predefined metrics, which capture how the model’s performance fluctuates under internal changes\. After gathering the evaluation scores from all stochastic samples, the algorithm computes the average \(mean\) and variance of these metrics to obtain a single representative score for each input\. This process is repeated for the entire dataset’s input, and the resulting distribution of average scores and variances is stored\. The overall average of these values provides a summary measure of the model’s typical behavior and predictive consistency\. The final assessment provides insights into the model’s reliability when subjected to internal configuration changes, ensuring a comprehensive evaluation of its stability\.
To assess the reliability of the targeted model when handling variations in the input, a structured methodology is employed, as outlined in Algorithm[2](https://arxiv.org/html/2608.10806#alg2)\. The central objective is to determine how sensitive a pre\-trained model is to minor, semantically preserving changes in its inputs—such as paraphrasing or noise addition\. The process begins by taking as input a pre\-trained model, a dataset, a set of evaluation metrics, and a predefined threshold range that governs acceptable levels of similarity between original and modified inputs\. To initiate the procedure, an individual input instance is selected from the dataset\. A modified version of this input is then generated using transformation techniques, including paraphrasing a sentence, reordering phrases, or introducing controlled noise\. A similarity score is computed between the original and modified input\.
Algorithm 2Methodology for Evaluating Model Reliability Under Input Variations1:Input:Pre\-trained model, dataset, evaluation metrics, threshold range for input similarity
2:Output:Aggregated evaluation metric scores for reliability assessment\.
3:Select an input instance from the dataset\.
4:Generate a modified version of the input by applying transformations \(e\.g\., paraphrasing, noise addition\)\.
5:Compute the similarity between the original and modified input\.
6:ifsimilarity score falls within the predefined threshold rangethen
7:Generate the model’s output for the modified input\.
8:Compute the evaluation metrics between the output for the modified input and the correct output\.
9:Store the computed scores\.
10:endif
11:Analyze the collected scores to assess the model’s consistency and reliability under input variations\.
The algorithm proceeds only if this score falls within a defined threshold, ensuring that the change is both significant and semantically consistent\. The modified input is fed into the model to generate a new output, which is then compared against the correct output using predefined evaluation metrics\. These metrics reflect how consistently the model responds to semantically similar inputs, serving as an indicator of its stability\. Scores are collected across the dataset, and their averages provide an overall measure of the model’s consistency to input variations across the entire dataset, enabling a structured assessment of its reliability when subjected to handling input variations\.
### 3\.5Experimental Settings
The experimental setup for this study was implemented in a Python environment\. The two proposed methodologies involve multiple hyperparameters, including evaluation metrics, the number of stochastic samples, the threshold range, the pre\-trained model, the tokenizer, and the dataset\. While the dataset and pre\-trained models used in this study have already been specified, the choice of hyperparameters is done as follows\.
For the first methodology, the number of stochastic samples,NN, was set to 50\. This selection was based on empirical observations from experiments conducted with varying numbers of stochastic samples, ranging from 10 to 100 in increments of ten, which demonstrated that there is no variation in the model’s performance on increasing the number of samples, as it consistently produced semantically similar responses across multiple stochastic runs\. Given this stability, we empirically selected a mid\-range value of 50 that ensured an optimal trade\-off for computational feasibility because a higher number of stochastic samples introduced significant computational cost, while a lower number could lead to potential loss of information when averaging the evaluation metrics\.
To incorporate stochastic behavior, Monte Carlo \(MC\) dropout was activated during the prediction phase\. Dropout\[\[[3](https://arxiv.org/html/2608.10806#bib.bib24)\]\]is a widely recognized regularization technique in which a fraction of neurons is randomly dropped off during training, compelling the network to develop more robust and generalized features rather than relying on specific neurons\. Instead of training, dropout was also applied during the testing phase, referred to as Monte Carlo dropout, enabling stochastic sampling from the model’s output distribution\. This enabled an assessment of the model’s reliability under variations in its internal configuration\.
To implement the methodology for input variation, paraphrasing has been selected\. Paraphrasing can be achieved through various approaches\[\[[1](https://arxiv.org/html/2608.10806#bib.bib17),[31](https://arxiv.org/html/2608.10806#bib.bib18),[7](https://arxiv.org/html/2608.10806#bib.bib19)\]\], including synonym substitution and structural modifications\. Additionally, several models have been developed to facilitate the process of paraphrasing\. In our methodology, we employ a pre\-trained BART\-based paraphrasing model \(eugenesiow/bart\-paraphrase\) to generate semantically equivalent rephrasings usingtext2text\-generationpipeline from the Hugging Face Transformers library\. Additionally, the Sentence\-BERT model \(S\-BERT\), all\-MiniLM\-L6\-v2, was loaded to compute the sentence embeddings\.
For each input question, a paraphrased version is generated and its semantic similarity with the original question is computed using cosine similarity between S\-BERT embeddings\. To preserve semantic consistency while still introducing meaningful linguistic variation, a similarity interval of 0\.75–0\.98 was adopted during paraphrase filtering\. These values should not be interpreted as uniquely optimal thresholds, but rather as practically motivated operational boundaries for controlling semantic preservation and perturbation diversity\. Similarity values substantially below 0\.75 increasingly exhibited semantic deviation, whereas the upper bound was selected to ensure that the generated paraphrases still undergo meaningful linguistic change\. Consequently, similarity values approaching 1\.0 frequently produced near\-duplicate paraphrases with minimal lexical variation\. The validity of the proposed similarity interval was empirically assessed through a 10% random sample of answerable questions drawn from the SQuAD dataset\. The analysis examined semantic alignment using cosine similarity and lexical overlap using Jaccard similarity across different similarity regions\. The findings indicated that paraphrases within the selected interval maintained strong semantic consistency while still introducing moderate lexical variation, whereas lower similarity ranges exhibited greater semantic deviation, and similarity values above 0\.98 corresponded to trivial reformulations with excessively high lexical overlap\. A structured overview of the similarity characteristics across distinct similarity regions is provided in Table[2](https://arxiv.org/html/2608.10806#S3.T2)\.
Table 2:Empirical validation of the selected semantic similarity interval using cosine similarity and Jaccard similarity analysis\.Similarity RangeAvg Cosine SimilarityAvg Jaccard SimilarityInterpretation<<0\.750\.70780\.2932Higher semantic deviation0\.75–0\.980\.92060\.5642Balanced semantic preservation and lexical variation\>\>0\.980\.99710\.9387Near\-duplicate reformulations
Following the similarity\-based filtering process, if a generated paraphrased question satisfies the specified threshold interval of 0\.75 – 0\.98, the model predicts answers for the paraphrased questions, referred to as paraphrased answers, and the results are compared against the correct answers in the dataset by computing the cosine similarity andF1F\_\{1\}score between the correct and paraphrased answers, which provides a measure of the model’s sensitivity towards input variation\. The resulting distribution of cosine similarity andF1F\_\{1\}scores across the entire dataset is analyzed to assess the reliability of the targeted models\. The average values from these distributions indicate the degree of alignment between the paraphrased answers and the ground\-truth responses for the entire dataset\. An average value approaching 1 suggests that the majority of paraphrased answers closely match the correct answers, thereby reflecting the model’s stability in handling variations in input phrasing and its ability to maintain semantic consistency despite changes in the representation of the input\. To ensure reproducibility and transparency of the proposed reliability evaluation framework, the implementation code has been made publicly available through the following GitHub repository;[https://github\.com/uncertainity\-quantification/reliability\-estimation\-qa1](https://github.com/uncertainity-quantification/reliability-estimation-qa1)
## 4Results
This section presents a comprehensive analysis of the results obtained from our experiments\. It includes findings from both methodologies evaluating model reliability\. The results provide insights into how changes in model configuration and input affect the stability and consistency of the model’s predictions, ultimately contributing to a deeper understanding of the model’s reliability in question\-answering tasks\.
### 4\.1Effect of Dropout Rate Variation on Answer Consistency
As Monte Carlo Dropout is employed to introduce stochasticity in the model, it inherently involves a key hyperparameter \- the selection of an appropriate dropout rate\. Before incorporating dropout during the prediction phase to assess the model’s reliability, our initial objective is to determine an appropriate dropout rate that can be effectively utilized\. To achieve this, we experimented with multiple dropout rates, systematically varying the percentage to observe its influence on the model’s predictions\.
To determine an appropriate dropout rate, the methodology outlined in Algorithm 1 is applied across a range of dropout rates, varying from 0% \(no dropout at all\) to a maximum of 35% dropout during the prediction phase for all models\. The average results for all models with various dropout rates across both datasets are presented in Figure 3 and Figure 4, showing their impact on the model’s predicted outputs through semantic similarity scores\. The findings highlight how increasing dropout influences the consistency of the predicted answers\. As dropout increases, the semantic similarity between the predicted and ground\-truth answers generally declines for the answerable questions of both datasets, indicating greater variability and uncertainty in the model’s responses\. However, for unanswerable questions, an increasing trend is observed, as higher dropout rates lead to more blank predictions, which are technically correct\. This results in an artificial rise in performance for unanswerable cases and a concurrent decline in semantic alignment for answerable ones\.
Figure 3:Analyzing Output Stability of SQuAD Under Varying Dropout Percentages\.Figure 4:Analyzing Output Stability of QuAC Under Varying Dropout Percentages\.The analysis also revealed a notable shift in the model’s behavior from a dropout rate of 15% and beyond, particularly in its handling of answerable and unanswerable questions across both datasets as the models increasingly produced blank responses, indicating information loss\. To avoid this imbalance, dropout rates≥15%\\geq 15\\%are excluded\. Moreover, the results show that the mean values of both evaluation metrics remain nearly unchanged between 0% and 5% dropout, indicating that dropping 5% of neurons in the models does not introduce the desirable stochastic variations in the model’s internal dynamics\.
As further evidenced by the variance bands illustrated in Figures 3 and 4, the spread of performance scores at 5% dropout remains notably narrow and closely mirrors the distribution observed under the 0% dropout condition, corroborating the insufficiency of this rate in inducing meaningful internal stochastic diversity\. In contrast, the variance band at 10% dropout exhibits a discernible widening across both datasets, indicating that this rate introduces sufficient variability in model behaviour without causing substantial degradation in semantic alignment\. This empirical observation is consistent with\[\[[17](https://arxiv.org/html/2608.10806#bib.bib7)\]\], where a comparable dropout rate was employed within a Monte Carlo Dropout\-based reliability estimation framework, although without an explicit empirical justification for its selection\. The present study addresses this gap by offering a systematic, data\-driven rationale derived from a comprehensive sweep of dropout rates across two diverse QA datasets, thereby establishing a more principled basis for the adoption of this hyperparameter\. Therefore, a 10% dropout rate is selected as a balanced operating point that introduces sufficient stochastic variability while maintaining stable semantic consistency in the generated responses\.
### 4\.2Evaluating Reliability Under Dropout\-Induced Variation
By selecting an appropriate dropout rate, we assess the reliability of all targeted models by enabling dropout in the prediction phase\. The reliability of the models, measured through both cosine similarity andF1F\_\{1\}score standard deviation, reveals crucial differences in their consistency across the SQuAD and QuAC datasets\. Table[3](https://arxiv.org/html/2608.10806#S4.T3)and[4](https://arxiv.org/html/2608.10806#S4.T4)presents the evaluation results of four BERT model variants on two datasets, SQuAD and QuAC\. Since both datasets include answerable and unanswerable questions, each targeted model was evaluated separately for these categories\. The results for answerable questions are shown in the row labeledAns, while those for unanswerable questions are presented in the row labeledNo\-Ans\. The combined performance of the models for both categories within each dataset is summarized in the row labeledTotal\. The table reports the mean values of cosine similarity andF1F\_\{1\}scores for each model, along with the average standard deviations of cosine similarity andF1F\_\{1\}scores, which reflect the reliability of these models under Monte Carlo dropout\. The model’s accuracy was assessed by comparing the predicted answers from the unperturbed models to the ground\-truth responses provided in the dataset\. To further examine the impact of internal stochasticity, accuracy was also evaluated with Monte Carlo Dropout enabled during inference—referred to as ”MCD Accuracy”—to capture performance variations between the perturbed and unperturbed models\. Instead of relying on exact textual matches, a prediction was classified as an exact match if the semantic similarity score between the predicted answer and the ground truth was greater than or equal to 0\.95\. Using this criterion, the accuracy of all four unperturbed and perturbed models was assessed across both datasets\.
The comparative evaluation presented in Tables[3](https://arxiv.org/html/2608.10806#S4.T3)and[4](https://arxiv.org/html/2608.10806#S4.T4)offers a comprehensive analysis of the performance and consistency of the four transformer\-based models\. Notably, the accuracy of the perturbed model and the unperturbed model is comparable, suggesting that stochastic inference does not degrade overall performance, which highlights the consistency of BERT\-based models\. To assess reliability, average values of cosine similarity andF1F\_\{1\}scores were analyzed to determine the semantic alignment between predicted and ground truth answers\. In parallel, the standard deviation associated with these metrics provided insight into output variability introduced by internal stochastic perturbations, quantifying model consistency\.
On the SQuAD dataset, DistilBERT demonstrated superior semantic coherence for answerable questions, achieving the highest average cosine similarity \(0\.8992\) andF1F\_\{1\}score \(0\.8496\) with moderate standard deviations \(0\.0906 and 0\.1149, respectively\), suggesting stable and accurate behavior\.
Table 3:Comparative Results of Model Accuracy and Consistency on SQuAD Dataset\.ModelsCategoryAcc\.MCD Acc\.Cosine SimilarityF1F\_\{1\}Score\(%\)\(%\)\(avg±\\pmstd\)\(avg±\\pmstd\)Ans75\.2974\.780\.856±\\pm0\.14040\.8006±\\pm0\.1783RoBERTaNo\-Ans81\.8581\.880\.8407±\\pm0\.1670\.8190±\\pm0\.1778Total78\.5778\.340\.8481±\\pm0\.15430\.8098±\\pm0\.1772Ans59\.8559\.600\.7471±\\pm0\.18330\.6135±\\pm0\.2166BERT\-BaseNo\-Ans77\.4476\.870\.7915±\\pm0\.21420\.7676±\\pm0\.2236Total68\.6668\.250\.7605±\\pm0\.19920\.6907±\\pm0\.2200Ans77\.7577\.820\.8992±\\pm0\.09060\.8496±\\pm0\.1149DistilBERTNo\-Ans79\.7079\.570\.8184±\\pm0\.13190\.8039±\\pm0\.1407Total78\.2178\.190\.7912±\\pm0\.11310\.7584±\\pm0\.1285Ans56\.9256\.360\.7403±\\pm0\.22540\.6182±\\pm0\.2687AlBERTNo\-Ans78\.8178\.700\.8089±\\pm0\.24490\.7893±\\pm0\.2565Total67\.8867\.550\.7746±\\pm0\.23540\.7038±\\pm0\.2627
RoBERTa, meanwhile, showed strong performance in handling unanswerable inputs with a cosine similarity of 0\.8407±\\pm0\.167, andF1F\_\{1\}score of 0\.8190±\\pm0\.1778, dominating in overall consistency, with average scores of 0\.8481 \(cosine similarity\) and 0\.8098 \(F1F\_\{1\}\), their respective standard deviations being 0\.1543 and 0\.1772, reflecting its balanced handling across both input categories\.
In contrast, the QuAC dataset revealed a different pattern\. While semantic accuracy for answerable questions was generally lower across all models, RoBERTa achieves the best semantic alignment \(cosine similarity 0\.3641±\\pm0\.1546,F1F\_\{1\}score 0\.1942±\\pm0\.1414\) in this category\. For unanswerable queries, AlBERT and DistilBERT show strong performance, both exceeding a cosine similarity score of 0\.81\. However, ALBERT exhibited substantially higher standard deviation \(0\.2820\) than DistilBERT \(0\.1775\), reflecting less stable performance\. Considering overall metrics, RoBERTa and DistilBERT displayed strong consistency, with comparable values of cosine similarity \(0\.4307 and 0\.4265\) andF1F\_\{1\}score \(0\.2830 and 0\.2881\), respectively\. However, there is a significant difference captured in their standard deviations \(0\.1761, 0\.1761, and 0\.1470, 0\.1360\), with DistilBERT showing less dispersion\.
Table 4:Comparative Results of Model Accuracy and Consistency on QuAC Dataset\.ModelsCategoryAcc\.MCD Acc\.Cosine SimilarityF1F\_\{1\}Score\(%\)\(%\)\(avg±\\pmstd\)\(avg±\\pmstd\)Ans10\.1710\.240\.3641±\\pm0\.15460\.1942±\\pm0\.1414RoBERTaNo\-Ans65\.6865\.950\.6938±\\pm0\.24310\.6591±\\pm0\.2650Total21\.3921\.500\.4307±\\pm0\.17610\.2830±\\pm0\.1761Ans6\.376\.240\.3087±\\pm0\.17180\.1376±\\pm0\.1456BERT\-BaseNo\-Ans71\.0673\.620\.7528±\\pm0\.26420\.7256±\\pm0\.2891Total19\.4519\.850\.3984±\\pm0\.19420\.2564±\\pm0\.1838Ans8\.038\.030\.3224±\\pm0\.13820\.1482±\\pm0\.1149DistilBERTNo\-Ans81\.7682\.840\.8378±\\pm0\.17750\.8156±\\pm0\.1786Total22\.9323\.140\.4265±\\pm0\.14700\.2881±\\pm0\.1360Ans0\.050\.070\.3105±\\pm0\.20120\.1110±\\pm0\.1261AlBERTNo\-Ans81\.9781\.630\.8309±\\pm0\.26150\.8161±\\pm0\.2820Total16\.6016\.550\.4156±\\pm0\.21470\.2535±\\pm0\.1697
These results collectively indicate that RoBERTa and DistilBERT consistently provide high semantic alignment with comparable low standard deviations across both datasets, making them appropriate candidates for tasks that prioritize reliability\. In contrast, BERT\-Base demonstrates moderate and balanced results but demonstrates comparatively lower performance in overall consistency\. ALBERT, though strong on unanswerable questions, performs poorly on answerable ones, especially on the QuAC dataset, where it records an answerable accuracy as low as 0\.07%, making it less suitable for nuanced tasks\. Therefore, model selection should be guided not only by average accuracy but also by consistency metrics that capture behavior under input and configuration variation\.
Figures[6](https://arxiv.org/html/2608.10806#S4.F6)and[6](https://arxiv.org/html/2608.10806#S4.F6)illustrate the pictorial representation of the results of Tables[3](https://arxiv.org/html/2608.10806#S4.T3)and[4](https://arxiv.org/html/2608.10806#S4.T4), showing the overall performance of the models across the SQuAD and QuAC datasets\. The visual trends suggest that RoBERTa and DistilBERT maintain higher evaluation metric scores, indicating that the predicted stochastic outputs are closely aligned with the correct ones from the dataset, thereby reflecting consistent predictive performance\. Moreover, the narrow spread in their outputs, as seen in the variance bands, highlights their low variability, which is indicative of strong consistency and reliability\. In contrast, AlBERT, though moderately reliable, exhibits fluctuations, especially in unanswerable cases, making it less stable\. While BERT\-Base lags significantly, reflecting its limitations in both reliability and accuracy\. Furthermore, the comparatively similar performance trends observed between RoBERTa and DistilBERT raise the question of whether the observed differences are statistically significant or due to random variation\.
Figure 5:Comparison of Cosine Similarity andF1F\_\{1\}Scores for SQuAD Across BERT Models\.
Figure 6:Comparison of Cosine Similarity andF1F\_\{1\}Scores for QuAC Across BERT Models\.
To investigate this, Welch’s t\-test is employed at a significance level of 5%, as it is well\-suited for comparing the means of two independent samples that may have unequal variances\. The statistical hypotheses for this test are formulated as follows:
Null Hypothesis \(H0H\_\{0\}\): There is no significant difference in the performance of RoBERTa and DistilBERT under internal configuration changes\.
Alternative Hypothesis \(H1H\_\{1\}\): There is a significant difference in the performance of RoBERTa and DistilBERT under internal configuration changes\.
For the SQuAD dataset, the test yields a p\-value of 0\.0 \(<<0\.05\), leading to the rejection of the null hypothesis, confirming that there is a statistically significant difference in the performance of RoBERTa and DistilBERT under internal stochastic variations\. In contrast, on the QuAC dataset, the p\-value obtained is 0\.4547, which exceeds the 0\.05 threshold\. Consequently, we fail to reject the null hypothesis, suggesting that both models perform similarly when exposed to internal perturbations\. These outcomes indicate that the performance distinction between models is context\-dependent and reinforces the importance of evaluating model robustness in a dataset\-specific manner\.
A key concern in evaluating model reliability is understanding whether enabling Monte Carlo dropout during inference significantly changes the model’s structure\. If enabling dropout leads to substantial deviations in the generated responses, it could suggest a significant disruption to the learned representations, thereby raising concerns regarding the stability and trustworthiness of the model’s predictions\. To systematically investigate this effect, we compute the correlation coefficients between the responses produced by the unperturbed model and those obtained after activating dropout, as detailed in Table[5](https://arxiv.org/html/2608.10806#S4.T5)\. To compute accuracy, the unperturbed model’s predictions are evaluated against correct answers\. For the perturbed model, evaluation metrics are averaged across stochastic samples to obtain a single score per input\. This is done for the entire dataset, and the correlation between the resulting scores is analyzed to evaluate the effect of perturbations on model predictions\. These coefficients provide a quantitative measure of output consistency, where values approaching 1 signify strong agreement between perturbed and unperturbed predictions, reinforcing the stability of the underlying model configuration\.
Table 5:Semantic metric comparison across models on SQuAD and QuAC datasets\.ModelsDatasetsSemantic MetricSQuADQuACRoBERTaCosine Similarity0\.85730\.8607F1F\_\{1\}Score0\.86730\.8784BERT\-BaseCosine Similarity0\.90360\.8941F1F\_\{1\}Score0\.91770\.9071DistilBERTCosine Similarity0\.94640\.9186F1F\_\{1\}Score0\.94230\.9343AlBERTCosine Similarity0\.90540\.9316F1F\_\{1\}Score0\.94530\.9026The empirical results consistently show high correlation coefficients across all models and datasets, indicating that dropout has a minimal impact on prediction stability\. RoBERTa maintains strong correlations on SQuAD \(0\.8573 cosine similarity, 0\.8673F1F\_\{1\}\) and QuAC \(0\.8607, 0\.8784\), while BERT\-Base exhibits even higher values, exceeding 0\.90 in most cases, while DistilBERT and ALBERT also demonstrate stability\. These findings highlight the resilience of learned representations under stochastic perturbations\.
These results underscore the non\-disruptive nature of Monte Carlo dropout, affirming that its integration does not substantially alter the model’s inference\. The high consistency between the unperturbed and perturbed predictions substantiates the viability of dropout\-based uncertainty estimation as a reliable framework for evaluating prediction stability under stochastic perturbations\.\. Moreover, the stability of correlation values across datasets—despite their accuracy differences on SQuAD and QuAC—suggests that dropout\-driven reliability assessments generalize effectively across diverse QA paradigms\. This reinforces the broader applicability of Monte Carlo dropout as a principled approach to quantifying model uncertainty, offering insights into predictive stability while maintaining the integrity of learned representations\.
### 4\.3Evaluating Reliability Under Input\-Induced Variation
The study employs the proposed methodological framework systematically to introduce controlled input perturbations\. Paraphrasing is adopted to introduce controlled perturbations in the input questions using a pre\-trained paraphrasing model\. The algorithm calculates the evaluation metric \(cosine similarity,F1F\_\{1\}score\) for the paraphrased answer against the correct answer provided in the dataset\. This score quantifies the similarity between the paraphrased and correct answers, where a higher value indicates greater reliability, while a lower value suggests a deviation in the answer\. This process is applied to the entire dataset, including answerable and unanswerable questions, and the average scores of evaluation metrics are recorded\. Table[6](https://arxiv.org/html/2608.10806#S4.T6)presents the paraphrasing results, reporting the average values of cosine similarity and theF1F\_\{1\}scores across both datasets\.
On the SQuAD dataset, RoBERTa demonstrates the strongest overall performance, achieving the highest average values of both cosine similarity andF1F\_\{1\}score across all evaluation categories\. Specifically, it attains a cosine similarity of 0\.829 and anF1F\_\{1\}score of 0\.7503 for answerable questions\. Even in the No\-Answer category, where performance typically drops significantly, RoBERTa records the highest cosine similarity \(0\.1394\) andF1F\_\{1\}score \(0\.0005\) among all models\. Its overall performance \(0\.4895\-cosine similarity, 0\.3812 \-F1F\_\{1\}score\) further underscores its stability to input variation, followed by AlBERT in all three categories\. Additionally, DistilBERT slightly outperforms BERT\-Base in total scores \(0\.4672 vs\. 0\.4630 cosine similarity; 0\.3556 vs\. 0\.3499F1F\_\{1\}score\)\. Both models perform reasonably well on answerable questions but show diminished effectiveness in handling unanswerable cases\. In contrast, ALBERT, while trailing RoBERTa on SQuAD, shows strong performance on the QuAC dataset, achieving the highest cosine similarity \(0\.3311\) andF1F\_\{1\}score \(0\.2825\) for answerable questions, and also leads in overall QuAC performance, with a cosine similarity of 0\.3217 andF1F\_\{1\}score of 0\.2333, indicating greater consistency to paraphrasing in this dataset compared to other models\. In this case as well, RoBERTa continues to deliver performance comparable to ALBERT across all three evaluation categories, achieving overall scores of 0\.3206 for cosine similarity and 0\.2135 forF1F\_\{1\}score\. In contrast, BERT\-Base and DistilBERT fall short of the performance demonstrated by both ALBERT and RoBERTa in handling paraphrased inputs on the QuAC dataset\.
Overall, RoBERTa shows the strongest performance on the SQuAD dataset when exposed to inputs, whereas ALBERT performs best on the QuAC dataset\. Both models consistently outperform BERT\-Base and DistilBERT, establishing themselves as the most reliable architectures in terms of input variation\. However, the performance distinction between RoBERTa and ALBERT is comparatively less pronounced\. In QuAC, although RoBERTa performs marginally better in terms of evaluation metrics, ALBERT follows closely\.
Table 6:Comparative Results of Cosine Similarity on Model Performance Against Paraphrased Inputs\.ModelsCategorySQuADQuACCosineF1F\_\{1\}CosineF1F\_\{1\}SimilarityScoreSimilarityScoreAns0\.8290\.75030\.32780\.2546RoBERTaNo\-Ans0\.13940\.00050\.15100\.0159Total0\.48950\.38120\.32060\.2135Ans0\.78480\.68910\.30860\.2286BERT\-BaseNo\-Ans0\.13100\.00\.14860\.0053Total0\.46300\.34990\.30120\.1897Ans0\.79150\.70330\.30040\.2249DistilBERTNo\-Ans0\.13270\.00\.13310\.0018Total0\.46720\.35560\.29300\.1860Ans0\.80140\.63460\.33110\.2825AlBERTNo\-Ans0\.13230\.00\.11970\.0Total0\.47200\.32220\.32170\.2333Although the evaluation metrics demonstrate variations in performance, several model pairs exhibit closely aligned results across both datasets\. These closely aligned results necessitate a formal statistical analysis to determine whether the observed differences are statistically meaningful\. Therefore, pairwise Wilcoxon signed\-rank tests are conducted across all model combinations\.
Figure[7](https://arxiv.org/html/2608.10806#S4.F7)illustrates the pairwise Wilcoxon signed\-rank analysis across all model combinations for both datasets under cosine similarity and F1 score metrics\. Given four evaluated architectures, two datasets, and two evaluation metrics, the statistical framework comprises 24 pairwise hypothesis tests \(6 model pairs×\\times2 datasets×\\times2 metrics\)\. To mitigate the inflation of Type\-I error induced by multiple comparisons, Bonferroni correction is employed, yielding a corrected significance threshold ofα=0\.05/24≈0\.0021\\alpha=0\.05/24\\approx 0\.0021\. The heatmaps in Figure[7](https://arxiv.org/html/2608.10806#S4.F7)depict the Bonferroni\-adjusted p\-values corresponding to each pairwise comparison, where darker regions denote statistically significant performance disparities\. Several corrected p\-values attain extremely small magnitudes and consequently appear as 0\.000 following rounding to four decimal places, whereas values approaching unity are represented as 1\.000\. The statistical evidence indicates the presence of significant performance discrepancies across multiple model pairs under paraphrased input perturbations, while certain comparisons remain statistically indistinguishable after correction\. Collectively, these findings further emphasize the dataset\-specific and architecture\-dependent nature of reliability under semantic input variation\.
\(a\)SQuAD dataset — Cosine Similarity
\(b\)SQuAD dataset — F1 Score
\(c\)QuAC dataset — Cosine Similarity
\(d\)QuAC dataset — F1 Score
Figure 7:Pairwise Wilcoxon signed\-rank test heatmaps with Bonferroni\-corrected p\-values comparing RoBERTa, BERT\-Base, DistilBERT, and ALBERT across SQuAD and QuAC datasets\.Human evaluation was also conducted to check the correctness of the results obtained by automatic metrics\. In the proposed methodology, a response is considered correct only if it exactly matches the ground truth provided in the dataset\. Consequently, there is no ambiguity when a predicted answer is marked correct, as it precisely aligns with the ground truth\. The primary focus of the human annotation process, therefore, was to re\-examine responses that were automatically classified as incorrect, as such predictions may still exhibit partial or complete semantic alignment with the reference answers\. To facilitate this assessment, responses were categorized into three distinct classes:correct,partially correct, andincorrect\. A response was classified as ”correct” if it was semantically identical to the ground truth, irrespective of lexical or syntactic variations; ”partially correct” if it conveyed a portion of the intended meaning but lacked completeness; and ”incorrect” if it diverged entirely from the ground truth in both semantic and lexical aspects, containing irrelevant or inconsistent information\. For this evaluation, two models with contrasting performance levels were selected: RoBERTa \(high\-performing and reliable\) and DistilBERT \(lower\-performing and less reliable\)\.
To ensure a balanced and representative evaluation, a stratified random 10% subset of the responses was selected from both the SQuAD and QuAC datasets, including equal proportions of answerable and unanswerable questions\. Human annotation was independently performed by three annotators following predefined evaluation criteria\. To quantify inter\-annotator agreement, Fleiss’ Kappa coefficient\(κ\)\(\\kappa\)is employed\[\[[11](https://arxiv.org/html/2608.10806#bib.bib38)\]\]\. The obtained agreement scores demonstrate substantial agreement across annotators for both evaluated models\. Specifically, RoBERTa achieved a Fleiss’ Kappa score ofκ=0\.7947\\kappa=0\.7947with an agreement percentage of 84\.11%, while DistilBERT achieved a Fleiss’ Kappa score ofκ=0\.7671\\kappa=0\.7671with an agreement percentage of 82\.24%\. Furthermore, the overall average Fleiss’ Kappa score across the evaluated models wasκ=0\.7809\\kappa=0\.7809with an average agreement percentage of 83\.18%, indicating strong consistency and reliability in the human annotation process\. The human evaluation results further reveal that a considerable proportion of responses initially categorized as incorrect by automatic evaluation metrics were semantically meaningful according to human judgment\. For RoBERTa, the final majority\-vote annotation distribution indicated that 45\.79% of the responses were categorized as correct, 6\.54% as partially correct, and 47\.66% as incorrect\. Similarly, for DistilBERT, 39\.25% of the responses were categorized as correct, 8\.41% as partially correct, and 52\.34% as incorrect\. These observations suggest that strict lexical overlap\-based metrics may underestimate the semantic validity of generated responses\. Moreover, RoBERTa demonstrated comparatively stronger semantic alignment with the ground\-truth responses than DistilBERT, as reflected by its higher proportion of semantically correct responses and lower proportion of incorrect predictions\. Overall, these findings emphasize the importance of incorporating human\-centered semantic evaluation alongside automatic metrics to obtain a more comprehensive assessment of question\-answering systems under input perturbations\.
## 5Error Analysis
This study examines how models respond to controlled variations, with a specific focus on internal stochastic perturbations and modifications to input formulations\. To provide a clearer understanding of how models behave under such conditions and to visually illustrate the potential pitfalls of unreliable behavior, this section presents illustrative examples from both datasets, where models exhibit hallucinated or inconsistent behavior when subjected to controlled perturbations\.
One form of perturbation examined involves the application of Monte Carlo dropout, which introduces stochasticity during the inference process\. By analyzing the model responses under internal variability, we assess their ability to produce stable outputs\. Table[7](https://arxiv.org/html/2608.10806#S5.T7)illustrates instances of model instability triggered by Monte Carlo dropout, underscoring the models’ susceptibility to randomness in internal computation, where “–” denotes a blank or no response to the input query\.
Another dimension of perturbation explored in this study involves the paraphrasing of input queries, which evaluates the extent to which models can generalize
Table 7:Illustrations of the models’ hallucination based on changes in their internal configurations\.QuestionGround TruthRoBERTaBERT\-BaseDistilBERTAlBERTWhat causesPauli repulsion?ferimonic natureof electronsferimonic natureof electronsWhat causesPauli repulsion?ferimonic natureof electrons–What is theforce that causesrigid strengthin structuresnormal force––repulsive forcesof interactionbetween atomsat close contact–In Newton’s secondlaw, what arethe units ofmass and forcein relationof microscales?fixedfixed–relative unitsof forceand mass thenare fixed–What madeOhio countryvulnerable?military roadsto the areaby Braddockand Frobesconstructions ofmilitary roadsto the areaby Braddockand Frobeslegal andillegal settlementmilitary roadslegal andillegal settlementWhen didBritish beginto buildfort underWilliam Trent?early monthsof 17541754171754–
across linguistic variations and maintain consistent outputs\. Ideally, a reliable model should remain robust when faced with minor lexical changes in input\. However, evidence from Table[8](https://arxiv.org/html/2608.10806#S5.T8)reveals that, in some instances, models produce divergent or even misleading responses to the paraphrased queries\. These inconsistencies highlight a reliance on surface\-level phrasing rather than deeper semantic understanding, ultimately raising concerns regarding the reliability of such models in practical deployment scenarios\.
Table 8:Some Illustration of Model’s Hallucination under Input Perturbation\.OriginalQuestionParaphrasedQuestionGroundTruthRoBERTaBERT\-BaseDistilBERTAlBERTWhatdescribes theproportionalityof accelerationto forceand mass?Whatis theproportionalityof accelerationto forceand mass?Newton’ssecondlawinverseinverseproportionalityof accelerationto forceand massinverseinverseproportionalityHow manytroops weredefeated forBritish inBattle ofCarillon ?How manytroops weredefeatedin theBattle ofCarillon ?18,0003,6003,6003,60018,000Given thestrength ofFrench forcesat Louisberg,what didLoudoun do ?What didLoudoun dogiven thestrength ofFrench forcesat Louisberg ?returnedto NewYorkreturnedto NewYorka massacrehas occuredat FortWilliam Henryreturnedto NewYorkLoudounreturnedto NewYorkHow wereBritish ableto cutsupplies toLouisbourg ?How didthe Britishcut offsupplies toLouisbourg ?deportationof theFrench speakingAcadianpopulationfrom theareadeportationof theFrench speakingAcadianpopulationfrom theareadeportationof theFrench speakingAcadianpopulationfrom thearealand\-basedreinforcementsdeportationof theFrench speakingAcadianpopulationfrom theareaWho didShirley leaveat Oswego ?Who leftShirleyin Oswego ?garrisonsJohnsonJohnsonothe Frenchthe French
## 6Discussion
A key observation is that even models with high accuracy can provide inconsistencies in their predictions, while lower\-accuracy models may still demonstrate stability in outputs\. The decoupling of accuracy and reliability suggests that a model’s trustworthiness should not be judged solely based on its accuracy but also on its ability to produce consistent responses across different dynamic conditions\. This finding reinforces the importance of incorporating reliability assessments in model evaluations, particularly for applications where stability in predictions is critical\. Additionally, it highlights the need to develop techniques that improve both accuracy and reliability to ensure more robust and dependable models\.
The study also emphasizes that dropout did not introduce any adverse changes to the model’s behavior, indicating Monte Carlo dropout to be an effective approach for measuring reliability without disrupting model inference and reinforcing its utility for uncertainty estimation\. Additionally, the ability of models to retain stability even under stochastic perturbations highlights the effectiveness of attention mechanisms, ensuring semantic understanding and reliability across dynamic conditions\. This illustrates how a model’s learning is resilient to changes in its internal configuration, emphasizing the capability of attention in maintaining effective learning\. However, the impact of input perturbations reveals that even high\-performing models struggle to maintain answer consistency under lexical changes\. This suggests that model stability under lexical variation needs further improvement, particularly for conversational QA tasks, where variations in phrasing are common\. This resilience is critical for real\-world applications where consistent and accurate predictions are essential for tasks such as question answering and decision\-making\. Overall, these results contribute to the development of robust NLP systems capable of maintaining performance in diverse environments\.
The study highlights the disadvantages of relying exclusively on accuracy as a performance metric\. Although RoBERTa achieves high scores, its responses exhibit variability under controlled perturbations, underscoring the necessity for models that balance precision and stability\.
Moreover, the study has several limitations\. It relies solely on representation\-based models and is limited to the question\-answering task, although it could be extended to more complex NLP tasks\. Additionally, it uses only two datasets, suggesting the need for broader evaluation\. For variation generation, only one approach is used per type—paraphrasing for input variations and Monte Carlo dropout for internal model variations—whereas alternative methods could also be explored\.
## 7Conclusion
This research evaluates the reliability of BERT\-based models on two QA tasks using a methodology that examines stability under internal configuration changes and input perturbations\. Monte Carlo dropout was employed to introduce stochastic variations, while a pre\-trained paraphrasing model was used to evaluate the impact of lexical modifications, providing a robust assessment of the models’ ability to maintain consistent outputs despite controlled variations\. Experimental results show that RoBERTa, DistilBERT, and AlBERT outperform BERT Base, with performance varying across datasets\. RoBERTa performs superior on both datasets in terms of accuracy and consistency, whereas DistilBERT is more stable in handling internal configuration variations, and ALBERT performs better when subjected to handling input variations, highlighting the scenario dependency\. The statistical analyses further validate the existence of significant performance differences among models, reinforcing the importance of problem\-specific as well as dataset\-specific model selection rather than assuming universal effectiveness\. Moreover, the study highlights that accuracy alone is insufficient to represent a model’s reliability and prediction stability, as input variations can significantly impact model consistency\.
This study provides a framework for evaluating the reliability of models, which is crucial for real\-world applications such as virtual assistants, automated knowledge retrieval, and conversational AI systems\. The insights gained can inform the development of more robust and stable QA models capable of handling variations in both data and model configurations\. Future work could explore advanced uncertainty quantification techniques, such as Bayesian neural networks or ensemble learning, that further enhance model reliability and extend reliability assessments to more diverse and challenging problems\. Additionally, domain\-specific adaptations and fine\-tuning strategies could be investigated to improve model stability across diverse linguistic contexts\. These advancements would contribute to the development of more trustworthy and resilient NLP models for real\-world deployment\.
## Data Availability
The datasets used in this study are publicly available benchmark datasets\. The SQuAD v2\.0 dataset can be accessed at[https://rajpurkar\.github\.io/SQuAD\-explorer/](https://rajpurkar.github.io/SQuAD-explorer/), and the QuAC dataset can be accessed at[https://quac\.ai/](https://quac.ai/)\. The implementation code, experimental framework, and evaluation procedures used in this study are publicly available through an anonymous online repository for reproducibility purposes:[https://github\.com/uncertainity\-quantification/reliability\-estimation\-qa1](https://github.com/uncertainity-quantification/reliability-estimation-qa1)\. The repository contains the code and computational procedures required to reproduce the reported experimental results, statistical analyses, summary statistics, tables, and figures presented in this manuscript\.
## Disclosure of Interest
The authors declare that no conflict of interest could have influenced the work reported in this manuscript\.
## Funding Information
The work was supported by the Slovene Research and Innovation Agency \(ARIS\) project GC\-0002 and the core research programme P6\-0411\. The work was also supported by EU through ERA Chair grant no\. 101186647 \(AI4DH\)\.
## Acknowledgments
The authors gratefully acknowledge the collaboration and valuable contributions of the project partners and institutions involved in this research\.
## Appendix AAppendix: Comparative Results of LLM Evaluation
To extend the scope of our reliability analysis beyond BERT\-based architectures, we conducted additional experiments to examine the behaviour of Large Language Models \(LLMs\)\. The motivation for this was to determine whether LLMs, even in their compact forms, demonstrate higher consistency when confronted with semantically altered inputs\. Recent research has also extensively explored the capabilities and limitations of large language models \(LLMs\), particularly in the context of question\-answering \(QA\) tasks, including text generation and summarization\.\[\[[4](https://arxiv.org/html/2608.10806#bib.bib29)\]\]introduced GPT\-3, a large\-scale autoregressive generative model that demonstrates impressive text generation and few\-shot learning abilities\. However, despite its strong generative performance, GPT\-3 showed inconsistent results on factual QA tasks, indicating limitations in precision and reliability\. Further developments, such as PEGASUS by\[\[[32](https://arxiv.org/html/2608.10806#bib.bib31)\]\]emphasized the generative capabilities of transformer\-based models for abstractive summarization, confirming that generative architectures excel in text synthesis rather than factual consistency\. More recent evaluations, including\[\[[2](https://arxiv.org/html/2608.10806#bib.bib32)\]\], empirically demonstrated that ChatGPT, while highly capable in open\-ended generation, underperforms on structured QA benchmarks and often produces inconsistent or inaccurate responses\. Similarly,\[\[[9](https://arxiv.org/html/2608.10806#bib.bib33)\]\]surveyed hallucination issues in LLMs, reporting that these models frequently generate factually incorrect or fabricated content in QA settings\.
As LLMs are often pre\-trained on vast and diverse corpora, it is theoretically expected that they may exhibit more robust semantic understanding compared to earlier transformer\-based models such as BERT, RoBERTa, or DistilBERT\. However, large\-scale models differ significantly in architecture, parameter scale, and training objectives\. Therefore, evaluating a feasible, resource\-efficient LLM,Tiny Llama, allowed us to perform a practical comparison under similar experimental conditions, aligning with the reliability estimation framework proposed in the main text\.
The results of these experiments are summarized in Tables[9](https://arxiv.org/html/2608.10806#A1.T9)and[10](https://arxiv.org/html/2608.10806#A1.T10), which present the performance of Tiny Llama against stochastic variation and paraphrased input in both datasets\. The tables report both Cosine Similarity andF1F\_\{1\}Score metrics for answerable and unanswerable questions\. As shown in Tables[9](https://arxiv.org/html/2608.10806#A1.T9)and[10](https://arxiv.org/html/2608.10806#A1.T10), the average cosine similarity andF1F\_\{1\}score for both types of questions are consistently below 0\.5, indicating that Tiny Llama’s responses deviate substantially from the ground truth\. This observation demonstrates that, despite the model’s large\-scale pre\-training and inherent generative capabilities, its performance on extractive QA tasks remains limited\.
Table 9:Comparative results of Tiny Llama accuracy and consistency against stochastic variation via Monte Carlo Dropout\.DatasetsCategoryAccMCD Acc\.Cosine Simi\.F1Score\(%\)\(%\)\(avg ± std\)\(avg ± std\)SQuADAns2\.63\.60\.4758±0\.12080\.4758\\pm 0\.12080\.1896±0\.12170\.1896\\pm 0\.1217No\-Ans39\.639\.60\.4098±0\.010\.4098\\pm 0\.010\.3960±0\.010\.3960\\pm 0\.01Total21\.121\.60\.4428±0\.08540\.4428\\pm 0\.08540\.2928±0\.0860\.2928\\pm 0\.086QuACAns0\.10\.10\.3757±0\.010\.3757\\pm 0\.010\.1472±0\.010\.1472\\pm 0\.01No\-Ans48\.1848\.250\.4921±0\.010\.4921\\pm 0\.010\.4618±0\.010\.4618\\pm 0\.01Total36\.0536\.130\.4378±0\.010\.4378\\pm 0\.010\.3048±0\.010\.3048\\pm 0\.01Table 10:Comparative results of Tiny Llama’s performance against paraphrased inputs\.ModelsCategorySQuADQuACCosineF1CosineF1SimilarityScoreSimilarityScoreTiny LlamaAns0\.37140\.08780\.50640\.2004No\-Ans0\.00780\.00070\.13010\.0181Total0\.18380\.04460\.44080\.1686The comparatively lower performance of Tiny Llama in these experiments aligns with the literature, which consistently shows that LLMs are primarily designed for text generation and summarization tasks, rather than extractive QA\. In contrast, BERT\-based models have achieved comparatively consistent performance on multiple QA benchmarks, making them more appropriate for reliability estimation in this domain\. Given Tiny Llama’s low performance, attempting to assess its reliability on QA tasks would be of limited value, as unreliable outputs cannot meaningfully inform consistency metrics\. On the other hand, evaluating the reliability of BERT variants is justified, as their high accuracy ensures that reliability estimates reflect the model’s behavior under controlled perturbations, rather than inherent performance deficiencies\.
In conclusion, while generative LLMs excel in open\-ended language modeling, their limitations in extractive QA tasks make them less suitable for reliability analysis in this context\. The experiments presented here confirm that BERT\-based models remain relevant candidates for investigating QA tasks, providing stable and accurate outputs that allow meaningful estimation of model stability\. These findings underscore the importance of aligning model evaluation with task\-specific capabilities, emphasizing that extractive models with comparatively consistent performance are crucial for assessing reliability across various fields\.
## References
- \[1\]B\. Agarwal, H\. Ramampiaro, H\. Langseth, and M\. Ruocco\(2018\)A deep network model for paraphrase detection in short text messages\.Information Processing & Management54\(6\),pp\. 922–937\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.ipm.2018.06.005)Cited by:[§3\.5](https://arxiv.org/html/2608.10806#S3.SS5.p4.1)\.
- \[2\]H\. Bahak, F\. Taheri, Z\. Zojaji, and A\. Kazemi\(2023\)Evaluating ChatGPT as a question answering system: A comprehensive analysis and comparison with existing models\.arXiv preprint arXiv:2312\.07592\.Cited by:[Appendix A](https://arxiv.org/html/2608.10806#A1.p1.1)\.
- \[3\]P\. Baldi and P\. J\. Sadowski\(2013\)Understanding dropout\.Advances in neural information processing systems26\.Cited by:[§3\.5](https://arxiv.org/html/2608.10806#S3.SS5.p3.1)\.
- \[4\]T\. Brown, B\. Mann, N\. Ryder, M\. Subbiah, J\. D\. Kaplan, P\. Dhariwal, A\. Neelakantan, P\. Shyam, G\. Sastry, A\. Askell,et al\.\(2020\)Language models are few\-shot learners\.Advances in neural information processing systems33,pp\. 1877–1901\.Cited by:[Appendix A](https://arxiv.org/html/2608.10806#A1.p1.1)\.
- \[5\]E\. Choi, H\. He, M\. Iyyer, M\. Yatskar, W\. Yih, Y\. Choi, P\. Liang, and L\. ZettlemoyerQuAC: question answering in context\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,E\. Riloff, D\. Chiang, J\. Hockenmaier, and J\. Tsujii \(Eds\.\),pp\. 2174–2184\.Cited by:[§3\.1](https://arxiv.org/html/2608.10806#S3.SS1.p2.1)\.
- \[6\]J\. Devlin, M\. Chang, K\. Lee, and K\. Toutanova\(2019\)BERT: Pre\-training of deep bidirectional transformers for language understanding\.InProceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 \(long and short papers\),pp\. 4171–4186\.Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p4.1)\.
- \[7\]A\. Gadag and B\. Sagar\(2016\)A review on different methods of paraphrasing\.In2016 International conference on electrical, electronics, communication, computer and optimization techniques \(ICEECCOT\),pp\. 188–191\.Cited by:[§3\.5](https://arxiv.org/html/2608.10806#S3.SS5.p4.1)\.
- \[8\]Z\. A\. Guven and M\. O\. Unalir\(2022\)Natural language based analysis of SQuAD: An analytical approach for BERT\.Expert Systems with Applications195,pp\. 116592\.Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p2.1),[§2](https://arxiv.org/html/2608.10806#S2.p3.1)\.
- \[9\]L\. Huang, W\. Yu, W\. Ma, W\. Zhong, Z\. Feng, H\. Wang, Q\. Chen, W\. Peng, X\. Feng, B\. Qin,et al\.\(2025\)A survey on hallucination in large language models: principles, taxonomy, challenges, and open questions\.ACM Transactions on Information Systems43\(2\),pp\. 1–55\.Cited by:[Appendix A](https://arxiv.org/html/2608.10806#A1.p1.1)\.
- \[10\]Z\. Lan, M\. Chen, S\. Goodman, K\. Gimpel, P\. Sharma, and R\. Soricut\(2020\)AlBERT: A lite BERT for self\-supervised learning of language representations\.International Conference on Learning Representations\.\.Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p4.1)\.
- \[11\]J\. R\. Landis and G\. G\. Koch\(1977\)The measurement of observer agreement for categorical data\.biometrics,pp\. 159–174\.Cited by:[§4\.3](https://arxiv.org/html/2608.10806#S4.SS3.p7.4)\.
- \[12\]S\. Li, R\. Li, and V\. Peng\(2021\)Ensemble AlBERT on SQuAD 2\.0\.CoRRabs/2110\.09665\.External Links:[Link](https://arxiv.org/abs/2110.09665),2110\.09665Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p2.1),[§2](https://arxiv.org/html/2608.10806#S2.p3.1)\.
- \[13\]J\. Lin, X\. Dai, Y\. Xi, W\. Liu, B\. Chen, H\. Zhang, Y\. Liu, C\. Wu, X\. Li, C\. Zhu,et al\.\(2025\)How can recommender systems benefit from large language models: a survey\.ACM Transactions on Information Systems43\(2\),pp\. 1–47\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p4.1)\.
- \[14\]Y\. Liu, M\. Ott, N\. Goyal, J\. Du, M\. Joshi, D\. Chen, O\. Levy, M\. Lewis, L\. Zettlemoyer, and V\. Stoyanov\(2019\)RoBERTa: A robustly optimized BERT pretraining approach\.arXiv preprint arXiv:1907\.11692\.Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p4.1)\.
- \[15\]J\. Ma, Z\. Zhao, Z\. Xie, Y\. Zhang, and G\. Zhou\(2025\)LE\-dlcm: decoupled learner and course modeling with large language models for enhanced course recommendation\.Knowledge\-Based Systems,pp\. 115135\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p4.1)\.
- \[16\]K\. Miok, D\. Nguyen\-Doan, B\. Škrlj, D\. Zaharie, and M\. Robnik\-Šikonja\(2019\)Prediction uncertainty estimation for hate speech classification\.InStatistical Language and Speech Processing: 7th International Conference, SLSP 2019, Proceedings 7,pp\. 286–298\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p2.1)\.
- \[17\]K\. Miok, B\. Škrlj, D\. Zaharie, and M\. Robnik\-Šikonja\(2022\)To BAN or not to BAN: Bayesian attention networks for reliable hate speech detection\.Cognitive Computation14\(1\),pp\. 353–371\.Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p4.1),[§2](https://arxiv.org/html/2608.10806#S2.p2.1),[§4\.1](https://arxiv.org/html/2608.10806#S4.SS1.p4.1)\.
- \[18\]N\. Mittal, B\. Agarwal, H\. Mantri, R\. K\. Goyal, and M\. K\. Jain\(2014\)Extractive text summarization\.International Journal of Current Engineering and Technology4\(2\)\.Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p1.1)\.
- \[19\]K\. Nassiri and M\. Akhloufi\(2023\)Transformer models used for text\-based question answering systems\.Applied Intelligence53\(9\),pp\. 10602–10635\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p1.2)\.
- \[20\]C\. Özkurt\(2024\)Comparative analysis of state\-of\-the\-art Q&A models: BERT, RoBERTa, DistilBERT, and ALBERT on SQuAD v2 dataset\.ADBA Chaos and Fractals1\(1\),pp\. 19–30\.External Links:[Document](https://dx.doi.org/https%3A//doi.org/10.69882/adba.chf.2024073)Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p4.1),[§2](https://arxiv.org/html/2608.10806#S2.p1.2)\.
- \[21\]K\. Pearce, T\. Zhan, A\. Komanduri, and J\. Zhan\(2021\)A comparative study of transformer\-based language models on extractive question answering\.CoRRabs/2110\.03142\.External Links:[Link](https://arxiv.org/abs/2110.03142),2110\.03142Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p4.1),[§2](https://arxiv.org/html/2608.10806#S2.p1.2)\.
- \[22\]H\. Raj, V\. Gupta, D\. Rosati, and S\. Majumdar\(2023\)Semantic consistency for assuring reliability of large language models\.arXiv preprint arXiv:2308\.09138\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p2.1)\.
- \[23\]H\. Raj, D\. Rosati, and S\. Majumdar\(2022\)Measuring reliability of large language models through semantic consistency\.arXiv preprint arXiv:2211\.05853\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p2.1)\.
- \[24\]P\. Rajpurkar, J\. Zhang, K\. Lopyrev, and P\. LiangSQuAD: 100,000\+ questions for machine comprehension of text\.InProceedings of the 2016 Conference on Empirical Methods in Natural Language Processing,pp\. 2383–2392\.External Links:[Document](https://dx.doi.org/10.18653/v1/D16-1264)Cited by:[§3\.1](https://arxiv.org/html/2608.10806#S3.SS1.p2.1)\.
- \[25\]A\. Rawat and S\. S\. Samant\(2022\)Comparative analysis of transformer based models for question answering\.In2022 2nd International Conference on Innovative Sustainable Computational Technologies \(CISCT\),pp\. 1–6\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p1.2)\.
- \[26\]S\. Shehmir and R\. Kashef\(2025\)LLM4Rec: a comprehensive survey on the integration of large language models in recommender systems—approaches, applications and challenges\.Future Internet17\(6\),pp\. 252\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p4.1)\.
- \[27\]B\. Van Aken, B\. Winter, A\. Löser, and F\. A\. Gers\(2019\)How does BERT answer questions? A layer\-wise analysis of transformer representations\.InProceedings of the 28th ACM international conference on information and knowledge management,pp\. 1823–1832\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p1.2)\.
- \[28\]A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. Gomez, Ł\. Kaiser, and I\. Polosukhin\(2017\)Attention is all you need\.Advances in Neural Information Processing Systems\.Cited by:[§1](https://arxiv.org/html/2608.10806#S1.p1.1)\.
- \[29\]W\. Wang, B\. Haddow, A\. Birch, and W\. PengAssessing factual reliability of large language model knowledge\.InProceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 1: Long Papers\),pp\. 805–819\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p2.1)\.
- \[30\]L\. Wu, Z\. Zheng, Z\. Qiu, H\. Wang, H\. Gu, T\. Shen, C\. Qin, C\. Zhu, H\. Zhu, Q\. Liu,et al\.\(2024\)A survey on large language models for recommendation\.World Wide Web27\(5\),pp\. 60\.Cited by:[§2](https://arxiv.org/html/2608.10806#S2.p4.1)\.
- \[31\]W\. Xu, A\. Ritter, W\. B\. Dolan, R\. Grishman, and C\. Cherry\(2012\)Paraphrasing for style\.InProceedings of COLING 2012,pp\. 2899–2914\.Cited by:[§3\.5](https://arxiv.org/html/2608.10806#S3.SS5.p4.1)\.
- \[32\]J\. Zhang, Y\. Zhao, M\. Saleh, and P\. Liu\(2020\)Pegasus: pre\-training with extracted gap\-sentences for abstractive summarization\.InInternational conference on machine learning,pp\. 11328–11339\.Cited by:[Appendix A](https://arxiv.org/html/2608.10806#A1.p1.1)\.Similar Articles
Asymptotic Risk Calibration for Selective Question Answering
The paper proposes A-CRC-QA, a post-hoc calibration framework for selective question answering that controls error rates among accepted answers via asymptotic risk calibration, demonstrating improved reliability-retention trade-offs on CoQA and MedMCQA.
Bayesian Uncertainty Propagation for Agentic RAG Pipelines: A Proof-of-Concept Study on Multi-Hop Question Answering
This paper presents a Bayesian uncertainty propagation framework for Agentic RAG systems, evaluating it on multi-hop QA benchmarks with GPT models, showing promise for monitoring reliability in industrial decision support.
Persona Non Grata: LLM Persona-Driven Generations in MCQA are Unstable in Distinct Dimensions
This paper investigates the instability of large language model persona-driven generations in multiple-choice question answering (MCQA) tasks, proposing three metrics to measure performance, outcome, and correctness stability across model families, sizes, and question domains. The study finds that instability varies consistently, with math and commonsense questions showing greater instability, and that task prompt format introduces more instability than other hyperparameters like temperature.
Estimating Uncertainty from Reasoning: A Large-Scale Study of Multi- and Crosslingual MCQA Performance in LLMs
This paper presents a large-scale evaluation of nine uncertainty estimation methods for LLMs across 22 languages, finding that prompting models to reason in English improves uncertainty estimation for low-resource languages and that the choice of method depends on model scale.
AB-RAG: Adaptive Budgeted Retrieval-Augmented Generation for Reliable Question Answering
AB-RAG is a training-free, backbone-agnostic framework that adaptively retrieves passages for question answering by estimating answer confidence, improving efficiency and accuracy across multiple backbones and datasets.