This study did not involve human participants, animals, biological specimens, or patient data. Therefore, institutional ethical approval and informed consent were not required.
Study design overview
A two-stage verification framework was implemented to improve the factual reliability of large language model (LLM) outputs. The procedure consisted of response generation, claim extraction, Isolated Reference Construction, Natural Language Inference (NLI)-based verification, adaptive statistical decision-making, selective correction, and final response assembly. The framework was evaluated using TruthfulQA and FEVER benchmark datasets.
Overall workflow
User Query → Initial Response Generation → Claim Extraction → Independent Reference Generation → NLI Verification → Statistical Threshold Computation → Claim Correction → Final Verified Response. The overall workflow of the adaptive claim-verification framework is illustrated in Figure 1.
Dataset preparation
The TruthfulQA dataset12, containing 817 fact-oriented questions, was downloaded and prepared for evaluation. The FEVER dataset13 comprises 185,445 annotated claims labeled as Supported, Refuted, or Not Enough Information; the evaluation used the labeled development data with its claim, evidence, and ground-truth label fields. Each claim was evaluated against its provided evidence, while the original FEVER label was retained as the reference outcome for verification. The FEVER dataset, which contains fact-verification claim-evidence pairs, was obtained and preprocessed. Input questions and claims were converted into a standardized text format. Duplicate entries and incomplete samples were removed before experimentation. TruthfulQA was divided into validation and testing subsets. Approximately 20% of the TruthfulQA samples (164 questions) were used for threshold tuning, while the remaining 653 questions were reserved for performance evaluation. For FEVER, the benchmark-provided claims were used directly as verification units and did not undergo the response-generation and claim-extraction procedure applied to TruthfulQA. The characteristics of the benchmark datasets used for framework development and evaluation are summarized in Table 1.
Initial response generation
Each query was submitted to the base language model. Responses were generated using nucleus sampling with a temperature of 0.7 and a top-p of 0.9. The maximum output length was limited to 256 tokens. Generated responses were stored without any post-processing or manual modification. The generated text was forwarded directly to the claim extraction stage.
Claim extraction
Each generated response was decomposed into independently verifiable factual statements. A structured decomposition prompt was used to identify atomic claims. Compound statements were separated into minimal factual units. Subjective opinions, stylistic expressions, and conversational fillers were removed. Each extracted claim was stored as an independent verification unit.
Example:
Original response:
"Marie Curie was a Polish-born physicist and chemist who conducted pioneering research on radioactivity."
Extracted claims: (1) Marie Curie was Polish-born; (2) Marie Curie was a physicist and chemist; (3) Marie Curie conducted research on radioactivity.
Isolated reference construction:
For every extracted claim, an independent factual reference was generated. The verifier model received only the original user query. Access to the original generated response was restricted to avoid confirmation bias. A factual recall prompt was used to encourage concise, evidence-based responses. Generated references were stored for subsequent verification.
Natural language inference verification
Each claim-reference pair was submitted to a pre-trained NLI model. The NLI model classified the relationship as: Entailment, Neutral, or Contradiction. Confidence probabilities for all three classes were recorded. A signed verification score was assigned: Positive value for entailment, zero for neutral, or a negative value for contradiction. All verification scores were collected for threshold computation.
Adaptive statistical threshold computation
The verification confidence produced by the NLI model varies substantially across responses because different queries generate different numbers of claims, level of semantic complexity, and confidence distributions. A fixed global threshold assumes that all responses follow a similar confidence profile, which is rarely observed in practice. To accommodate this variability, the proposed framework estimates the decision boundary individually for each response using the mean and standard deviation of its verification scores. The mean reflects the overall confidence level of the response, while the standard deviation captures the dispersion of confidence values among the extracted claims. This adaptive formulation allows the acceptance criterion to adjust to response-specific uncertainty rather than relying on a single threshold for all inputs.
The mean (µ) and standard deviation (σ) of all signed verification scores were calculated.
The adaptive decision threshold was computed as:

where τ represents the adaptive threshold, µ denotes the mean verification score, σ denotes the standard deviation, and k represents the sensitivity parameter.
The sensitivity parameter was initialized at 0.7. Claims classified as Entailment with scores greater than or equal to +τ were accepted. Claims classified as Contradiction with scores less than or equal to −τ were marked for correction. Claims with scores within the interval (−τ, +τ) were retained as neutral.
Selective claim correction
A claim was forwarded for correction only when the NLI model classified the claim-reference pair as Contradiction, and its corresponding signed verification score satisfied the adaptive threshold criterion si ≤ -τ. Thus, the correction decision was jointly determined by the NLI class label and the response-specific statistical threshold. Claims classified as Entailment with si ≥ τ were accepted, whereas claims falling within the interval -τ < si < τ were treated as neutral and retained without correction. This combined criterion ensured that correction was applied only to claims exhibiting both semantic contradiction and sufficiently strong negative verification evidence.
Response reconstruction
Accepted and corrected claims were arranged in their original sequence. Sentence boundaries were restored to maintain readability. Minor grammatical adjustments were applied when necessary. The assembled output was stored as the final verified response.
Performance evaluation
The framework was evaluated using four metrics: (1) Accuracy: The proportion of responses that remained factually correct after verification; (2) F1 Score: The harmonic mean of hallucination detection precision and recall; (3) Response Latency: The total processing time from query submission to verified response generation; (4) Hallucination Rate

Latency was reported as the mean execution time across repeated measurements. Because individual per-run latency values were not retained, standard deviations and confidence intervals were not calculated.
Benchmark-specific correctness evaluation
For TruthfulQA, the final verified response was compared against the benchmark's human-validated answer references and lists of incorrect answers. A response was counted as correct when its factual claims were consistent with the accepted answer information and did not contain content corresponding to the identified incorrect response patterns. For FEVER, each claim in the final output was evaluated against its associated evidence and original FEVER annotation; Supported claims were treated as factually verified, while Refuted claims were counted as incorrect. Not Enough Information cases were retained as indeterminate rather than treated as positive factual evidence. The resulting claim-level decisions were aggregated across each benchmark to calculate the reported Accuracy and Hallucination Rate.
Experimental environment
The framework was implemented using Python 3.9. Data processing operations were performed using numerical and tabular analysis libraries. The NLI model operated in inference mode without additional fine-tuning. Experiments were executed on a workstation equipped with an Intel Core i5 processor, 16 GB RAM, and a 64-bit operating system. All evaluations were conducted using a single-pass inference setting to ensure low-latency operation. All experiments were conducted using identical hardware and software configurations to ensure consistent evaluation across datasets and baseline methods.
Expected outcome
The protocol is designed to generate claim-level verification decisions by identifying potentially unsupported claims and selectively forwarding strongly contradicted claims for correction. The expected output is a verified response with reduced factual inconsistencies and limited additional processing overhead, subject to the performance observed during experimental evaluation.