1 of 46

Building Trust in Educational AI through Factuality Verification​

Data Jackets

Georgia Institute of Technology

2 of 46

Agenda

  1. Business Problem Framing
  2. Analytics Problem Framing
  3. Data
  4. Methodology Selection
  5. Model Building
  6. Deployment
  7. Life Cycle Management
  8. Conclusion

2

3 of 46

Business Problem

LLM hallucinations affect user trust and adoption of educational AI tools.​

​

Supporting Data:​

  • More than 50% of surveyed students are concerned [1]​
  • Strong negative sentiments associated with hallucinations [2]​
  • People becoming more cautious and selective in using AI [3]​

3

1. Business Problem Framing

4 of 46

Stakeholder Analysis

4

Stakeholder​

Primary Concern​

Secondary Concerns​

Students​

Reliable responses [4]​

Price and speed​ [7]​

Educators​

Limiting misinformation [5]​

Product accessibility​ [8]

Platforms

Reputational risk [6]​

Product competitiveness [9]

 

​

1. Business Problem Framing

5 of 46

Problem Formulation

How can we increase user trust in educational AI tools by correctly, quickly and cost-effectively identifying erroneous/ irrelevant (“hallucinated”) LLM responses within the next two months?

​

Primary Metric: Correctness

Secondary Metric: Cost and Speed

​

5

1. Business Problem Framing

6 of 46

Analytics Problem

6

2. Analytics Problem Framing

Inputs:

Question + Context + Answer

Output:​

Label (factual/ contradiction/ irrelevant)

Analytics Problem:

Predictive Problem

Text Classification based on Factuality and Relevance

Assumptions:

  • Context is relevant to the question.​
  • The question has an answer.​

Constraints:

  • Limited time, compute resources​
  • Use only free services

Risk Mitigation:

Class imbalance → Balanced accuracy​

7 of 46

Metrics and Goals

  • Primary Metric: Balanced Accuracy
  • Secondary Metrics: Average Time and Cost per Run

7

2. Analytics Problem Framing

​

Balanced Accuracy

Average Time per Run

Average Cost per Run

Baseline​

(no solution)

33.3%

0.0s

$0.00

Target

95.0%

2.0s

$0.01

Stretch Goal

99.5%

0.5s

$0.001

8 of 46

Overview of Data

  • 21,021 training samples
  • 2,000 held-out test samples
  • No ethical issues involved

​

  • Large class imbalance in the training set

8

3. Data

9 of 46

Length Analysis by Type

Answers for contradictions are significantly shorter than factual/ irrelevant types

9

3. Data

10 of 46

Train-Test Drift

Length-based feature distributions are similar, except that the training set includes many short answers absent from the test set

10

3. Data

11 of 46

Context Adequacy

  • A significant minority (~8-9%) of data in both datasets have no context
  • All nonzero contexts with < 25 words were manually checked for adequacy

3. Data

11

12 of 46

Initial Approach

  • Derived semantic similarity between the question, answer and context [10,11]
  • Used the google/embeddinggemma-300m model
  • Expectation:
    • Factual answer shares keywords with question and context → high similarity
    • Irrelevant answer is misaligned with question and context → low similarity
    • Contradictory answer → somewhere in between

4. Methodology Selection | Initial Approach

12

13 of 46

Similarity Distribution by Type

4. Methodology Selection | Initial Approach

13

14 of 46

Explaining Low-Similarity Contradictions

4. Methodology Selection | Initial Approach

14

Short answers (eg. "six months", "2") have minimal semantic similarity with the question and context.

​

They just happened to be predominantly contradictions in the training set.

​

15 of 46

Explaining High-Similarity Contradictions

4. Methodology Selection | Initial Approach

15

Answers to questions with empty contexts yielded high similarity scores even when they were contradictory.

​

There is no context to counterbalance the semantic alignment between the question and answer.

​

16 of 46

Reframing the Analytics Problem

Cases with context:

​

Evaluate answer factuality/ relevance with respect to the question + context.

2. Analytics Problem Framing

Cases with no context:

​

Evaluate answer factuality/ relevance with respect to the question + external knowledge.

​

16

17 of 46

Final Approach

  • We need to reason about factuality and relevance
  • Our approach incorporates:

​

​

​

​

​

  • These methods are supported by prior work [10,11,12,13]

4. Methodology Selection | Final Approach

17

MNLI* Model

Premise-Hypothesis structure allows logical reasoning Premise = Context + Question | Hypothesis = Answer

LLM-as-a-judge

LLMs have strong semantic reasoning capabilities

*Multi-Genre Natural Language Inference

18 of 46

Data with No Context

Additional procedures were applied to no-context cases:

4. Methodology Selection | Final Approach

18

MNLI Model

Context augmentation from an external source

LLM-as-a-judge

Modified LLM prompt with amended decision rule

19 of 46

Data Analytics Pipeline

5. Model Building

19

20 of 46

MNLI Model

5. Model Building | MNLI Model

20

21 of 46

MNLI Model Selection

5. Model Building | MNLI Model

21

Procedure:

  • Stratified 80/10/10 split of train set
  • We compared validation performance (balanced accuracy) of several pretrained and fine-tuned models

​

Results:

  • Fine-tuned DeBERTA-v3-large gave the best validation performance
    • Unbiased test bal. accuracy: 97.70%
  • Fine-tuning yields ~25-30% gains

For the final competition submission, the model was retrained on the full training dataset.

22 of 46

Context Augmentation with SERPAPI

5. Model Building | MNLI Model

22

Procedure for no-context data:

  • We passed in the question as a search query and retrieved the first paragraph of Google Search Overview result
  • We then compared performance of different strategies on the test split

​

Results:

  • External retrieval (SERPAPI) helps only when model is trained on it
  • Retrieval-aware training exposes the model to similar input distributions

23 of 46

Large Language Model

5. Model Building | LLM

23

24 of 46

LLM Selection

5. Model Building | LLM

24

Procedure:

  • LLMs were prompted to classify data with clear decision rules (modified for the cases with no context)
  • Same validation and test split as before

​

Results:

  • Azure OpenAI’s gpt-5-mini gave the better validation performance
    • Unbiased test bal. accuracy: 98.96%

25 of 46

Ensemble

5. Model Building | Ensemble

25

26 of 46

MNLI/LLM Disagreements

5. Model Building | Ensemble

26

Procedure:

  • Both models were run on the test split
  • MNLI/LLM disagreements were identified

​

Results:

  • Model disagreements in <2% of cases​ necessitating human review
  • Disagreements are dominated by factual ↔ contradiction flips​
  • Failures linked to task and data limitations

27 of 46

Failure Modes

5. Model Building | Ensemble

27

Textual nuances driving labeling subjectivity

Example

Answer: In 2006, the population of Tucson was 535,000

SERPAPI Context: The population was an estimated 535,000

Issue

Loss of uncertainty qualifier → Model treats as contradiction

MNLI Model

Ill-posed or underspecified questions

Example

Question: What type of flags are used in foreign countries?

Answer: In foreign countries, the Queen uses personal flags

Issue

Scope mismatch → Model treats as contradiction

LLM

28 of 46

Component-Wise Results

5. Model Building

28

Balanced Accuracy (%) on Test Split

97.70

98.96

99.38

MNLI Model vs Ground Truth

LLM vs Ground Truth

Ensemble vs Ground Truth

29 of 46

Final Results

5. Model Building

29

​

Balanced Accuracy

Average Time per Run

Average Cost per Run

Competition Results

99.0%

3.0s

$0.006

Target

95.0%

2.0s

$0.010

Stretch Goal

99.5%

0.5s

$0.001

✅

❌

✅

30 of 46

Process Diagram

6. Deployment

30

User Prompt

AI Output

🔒

Factuality/ Relevance Gate

User-Facing System

Factual

• Contradiction or Irrelevant

• MNLI/LLM Disagreement (1st time)

MNLI/LLM Disagreement (2nd time)

Prompt is inadequate for our system

31 of 46

Real-World Considerations

6. Deployment

  • Solution must handle "messy" data that violates our assumptions

​

​

​

​

​

​

​

  • Validation can be done through user ratings of AI responses 👍👎

​

​

31

“Messy” Data

Additional Measures

Context is not relevant to question

Update the Models

• Additional MNLI fine-tuning

• LLM prompt refinement

Question is not answerable

Sensitive private data is passed in

Pre-Screening for Sensitive Data

32 of 46

Drift-Aware Operation

7. Life Cycle Management

32

33 of 46

Conclusion​

34 of 46

34

Azure OpenAI

(LLM)

Hugging Face

(NLI Models)

Google Colab & Kaggle

(GPU)

AI Services Used

35 of 46

35

Key Insight

Low Accuracy

Low Cost/Time

​

MNLI Model

(logical reasoning)

Trade-Off

High Accuracy

High Cost/Time

​

Ensemble Solution

(multi-annotation)

Moderate Accuracy

Moderate Cost/Time

​

LLM-as-a-judge

(rule-based semantic reasoning)

36 of 46

Enable ensemble verification by default.

36

Recommendations

1

  • Rationale: Accuracy is the primary stakeholder concern
  • Trade-off: Slightly higher costs for consumers
  • Benefits: Building user trust/ adoption outweighs the cost [14]

Greater inclusion and access

Personalization of education

Improved lifelong learning

37 of 46

37

Recommendations

2

Enable opt-in MNLI-only verification.

  • Rationale: Flexibility for low-risk use cases
  • Limited Downside: Most users will stick to default settings anyway [15]

3

Remind users to independently verify highly sensitive matters.

  • Rationale: Users may have a false sense of security
  • Implications: These errors can have serious consequences

38 of 46

References

[1] Mulford, D. (2025, March 6). AI in higher education: A meta summary of recent surveys of students and faculty. Campbell Academic Technology Services.�https://sites.campbell.edu/academictechnology/2025/03/06/ai-in-higher-education-a-summary-of-recent-surveys-of-students-and-faculty/

[2] Massenon, R., Gambo, I., Khan, J. A., Agbonkhese, C., & Alwadain, A. (2025, August 19). “My AI is lying to me”: User-reported LLM hallucinations in AI mobile apps reviews. Scientific Reports (Nature).�https://www.nature.com/articles/s41598-025-15416-8

[3] Ryser, A., Allwein, F., & Schlippe, T. (2025, December 9). Calibrated trust in dealing with LLM hallucinations: A qualitative study. arXiv.�https://arxiv.org/abs/2512.09088

[4] Merod, A. (2025, October 28). Students express hope — and fear — over classroom AI use. K-12 Dive.�https://www.k12dive.com/news/student-views-ai-use-classroom-schools-survey-project-tomorrow/803794/

[5] Blose, A. (2023, April 12). As ChatGPT enters the classroom, teachers weigh pros and cons. National Education Association (NEA).�https://www.nea.org/nea-today/all-news-articles/chatgpt-enters-classroom-teachers-weigh-pros-and-cons

[6] Norton, K., Li, T., Davis, T., Mossburg, E., Kearns-Manolatos, D., Bansode, S., Thomas, C., & Ferrer, A. B. (2025, February 20). How can tech leaders manage emerging generative AI risks today while keeping the future in mind? Deloitte Insights.�https://www.deloitte.com/us/en/insights/topics/digital-transformation/four-emerging-categories-of-gen-ai-risks.html

[7] Emslie, K. (2024, May 23). LLM hallucinations: A bug or a feature? – communications of the ACM. https://cacm.acm.org/news/llm-hallucinations-a-bug-or-a-feature/

[8] Danyaro, K. U., Abdullahi, S., Abdallah, A. S., & Chiroma, H. (2025, November 6). Hallucinations in large language models for education: Challenges and mitigation. Academia.edu.�https://www.academia.edu/144831880/Hallucinations_in_Large_Language_Models_for_Education_Challenges_and_Mitigation

38

39 of 46

References

[9] Porter, M. E. (1980). Competitive Strategy: Techniques for Analyzing Industries and Competitors. Free Press.

[10] Liu, Z., Xue, J., Yang, X., Du, W., Fu, J., Chen, J., Guo, W., & Wang, Y. (2025). E-Verify: A paradigm shift to scalable embedding-based factuality verification. Findings of the Association for Computational Linguistics: EMNLP 2025 (pp. 5759–5776). Association for Computational Linguistics. https://doi.org/10.18653/v1/2025.findings-emnlp.308

[11] Martín, A., Huertas-Tato, J., Huertas-García, Á., Villar-Rodríguez, G., & Camacho, D. (2022). Facter-check: Semi-automated fact-checking through semantic similarity and natural language inference. Knowledge-Based Systems, 251, 109265. �https://doi.org/10.1016/j.knosys.2022.109265

[12] Bouchard, D., & Chauhan, M. S. (2025, April 27). Uncertainty quantification for language models: A suite of black-box, white-box, LLM judge, and ensemble scorers. arXiv.�https://arxiv.org/html/2504.19254v3

[13] Roucher, A. (2024). Using LLM-as-a-judge for an automated and versatile evaluation. Hugging Face.�https://huggingface.co/learn/cookbook/en/llm_judge

[14] Anderson, E. W., Fornell, C., & Lehmann, D. R. (1994). Customer satisfaction, market share, and profitability: Findings from Sweden. Journal of Marketing, 58(3), 53–66.�https://doi.org/10.1177/002224299405800304

[15] Thaler, R. H., & Sunstein, C. R. (2008). Nudge: Improving decisions about health, wealth, and happiness. Yale University Press.

39

40 of 46

Models

  • Vera, H. S., et al. (2025). Embeddinggemma: Powerful and lightweight text representations. arXiv.org. https://arxiv.org/abs/2509.20354
  • Laurer, Moritz, Wouter van Atteveldt, Andreu Salleras Casas, and Kasper Welbers. (2022). ‘Less Annotating, More Classifying – Addressing the Data Scarcity Issue of Supervised Machine Learning with Deep Transfer Learning and BERT - NLI’. Preprint, June. Open Science Framework. https://osf.io/74b8k.
  • Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2019). Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv.org. https://arxiv.org/abs/1910.13461
  • Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., & Stoyanov, V. (2019). Roberta: A robustly optimized Bert pretraining approach. arXiv.org. https://arxiv.org/abs/1907.11692
  • OpenAI. (2025). GPT-5 Mini. Large language model. https://platform.openai.com
  • Qwen Team. (2025). Qwen3 technical report. arXiv. https://arxiv.org/abs/2505.09388

40

41 of 46

Thank You

42 of 46

Appendix​

43 of 46

LLM Prompts (1/2)

Without Context

​

You are a classification model.

�Your task is to assign exactly ONE label to an answer given a question.

​

Labels: �- "factual": The answer addresses the question and is accurate. �- "contradiction": The answer addresses the question but is incorrect. �- "irrelevant": The answer is not relevant to the question.

​

​

With Context

​

You are a classification model.

​

Your task is to assign exactly ONE label to an answer given a context and a question.

​

Labels:

- "factual": The answer addresses the question and is supported by the context.

- "contradiction": The answer addresses the question but is incorrect or contradicts the context.

- "irrelevant": The answer is not relevant to the question.

43

44 of 46

LLM Prompts (2/2)

Without Context

​

Rules: �- Output only one of the three labels. �- Do not explain your reasoning.

​

​

​

​

Decision procedure: �1. If the answer does not address the question, label "irrelevant". �2. If the answer addresses the question and is correct, label "factual". �3. If the answer addresses the question and is incorrect, label "contradiction".

​

​

With Context

​

Rules:

- Use only the information provided in the context.

- Do not use outside knowledge.

- Output only one of the three labels.

- Do not explain your reasoning.

​

Decision procedure:

1. If the answer does not address the question, label "irrelevant".

2. If the answer addresses the question and is supported by the context, label "factual".

3. If the answer addresses the question but is contradicted by the context, label "contradiction".

44

45 of 46

​

MNLI Model

SERPAPI

gpt-5-mini

Human Verification

Total

Data

100%

10%

100%

2%

-

Time​

0.05s

(self-tested)

1.0s

(self-tested)

1.8s

(self-tested)

1.2s

(self-tested)

3.0s

Cost (per 1K)

$0.0073 �(using the Azure NC4as T4 v3 GPU)

$1

(SERPAPI Big Data Subscription)

$0.0794�(Azure OpenAI Documentation)

$4.8�(assuming $15/hr labor costs)

$5.88

Cost and Time Calculations (1/2)

45

46 of 46

  • Average number of tokens per query to gpt-5 mini calculation:
  • 19152 * 335 + 1864 * 139 = 317.5
  • (num of rows with context) (avg num of tokens) (num of rows without context) (avg num of tokens) (avg num of tokens per row)
  • Cost -> [ 317.5 * 0.25 + 1 * 2 ] / 1M = $79.4/1M

(num of input tokens) (cost per 1M input tokens) (num of output tokens) (cost per 1M output tokens)

​

​

  • Average number of tokens per query to MNLI model calculation:

12.55 + 144.99 + 18.86 = 176.4

  • (avg num of tokens in questions) (avg num of tokens in context) (avg num of tokens in answer) (avg num of tokens per query to MNLI)

​

  • Cost calculation for MNLI model (assuming Azure NC4as T4 v3 GPU):
  • $0.526/hr with 50 seconds inference time for 1000 rows => $0.0073 per 1K rows

​

  • Cost calculation for SERPAPI:
  • $275/30,000 searches => $0.01 per search and we run SERPAPI on 10% of data => $1 per 1K rows

​

  • Cost calculation for human verification:
  • Labor costs are $15/hour, and we run HV on 2% of the data and it takes 60 seconds each time => $5 per 1K rows

​

  • Time calculation:
  • We run SERPAPI on 10% of the data and it requires 10 seconds so on average 1s latency added due to SERPAPI
  • We run human verification on 2% of data and it requires 60 seconds so on average 1.2s latency added due to human verification

Cost and Time Calculations (2/2)

46