PretextTrans: Investigating Medical Factual Knowledge Mastery of LLMs with Predicate-text Dual Transformation

Yuxuan Zhou, Xien Liu, Chen Ning, Ji Wu

Abstract

Mastering medical knowledge is crucial for medical-specific LLMs. However, despite the existence of medical benchmarks like MedQA, a unified framework that fully leverages existing knowledge bases to evaluate LLMs' mastery of medical knowledge is still lacking. In the study, we propose a novel framework PretexEval that dynamically generates reliable and diverse test samples to evaluate LLMs for any given medical knowledge base. We notice that test samples produced directly from knowledge bases by templates or LLMs may introduce factual errors and also lack diversity. To address these issues, we introduce a novel schema into our proposed evaluation framework that employs predicate equivalence transformations to produce a series of variants for any given medical knowledge point. Finally, these produced predicate variants are converted into textual language, resulting in a series of reliable and diverse test samples to evaluate whether LLMs fully master the given medical factual knowledge point. Here, we use our proposed framework to systematically investigate the mastery of medical factual knowledge of 12 well-known LLMs, based on two knowledge bases that are crucial for clinical diagnosis and treatment. The evaluation results illustrate that current LLMs still exhibit significant deficiencies in fully mastering medical knowledge, despite achieving considerable success on some famous public benchmarks.

Introduction

Evaluating Large Language Models (LLMs) in the medical domain is notoriously difficult. Existing benchmarks like MedQA are static, making them prone to data leakage and rapid obsolescence. Furthermore, these benchmarks often fail to test "deep mastery." An LLM might correctly identify a medical fact in a standard multiple-choice format but fail to recognize the same fact when it is phrased as a patient case or a double-negated statement.

Two main pitfalls plague current evaluation methods:

  1. Insufficient Factuality: When LLMs are asked to generate their own test questions, they often introduce factual hallucinations.
  2. Low Structural Diversity: Simple automated methods usually just swap synonyms, failing to test if the model understands the underlying logical relationship between medical entities.

The PretexEval Framework

To address these challenges, we propose PretexEval, a "predicate-to-text" evaluation framework designed to generate structurally diverse and factually reliable test samples. The process operates in three distinct stages:

  1. Predicate Transformation: A structured medical fact (e.g., a triplet like Head Entity, Relation, Tail Entity) is converted into a predicate logic expression. The framework then applies transformations such as Inversion (flipping the relationship), Instantiation (creating a clinical scenario), and Double Negation (creating a logically equivalent negative statement).
  2. Prototype-based Generation: To ensure reliability, these logical variants are mapped to human-verified "prototypes" or templates.
  3. LLM Rephrasing: Finally, an LLM rephrases these prototypes to improve natural language fluency and lexical diversity without altering the core logical structure.
The PretexEval workflow: from knowledge base triplets to diverse, rephrased test samples via predicate transformation.

Experimental Setup

The framework was validated using two major knowledge bases:

  • MedLAMA: A large-scale biomedical knowledge base with over 39,000 triplets covering 19 relations (e.g., gene-disease associations).
  • DiseK: A clinical knowledge base focused on 1,000 high-frequency diseases and relations essential for diagnosis (Symptoms, Affected Sites, Therapeutic Drugs, and Surgical Procedures).

We evaluated 12 prominent LLMs, including general-purpose models (GPT-4o, Llama3) and medical-specific ones (ClinicalCamel-70B, Meditron-70B). We introduced a rigorous metric called Joint Accuracy, which considers a medical knowledge point "mastered" only if the LLM answers all generated variants correctly.

Results and Discussion

Our evaluation reveals a significant "Consistency Gap." Models that perform well on simple templates see their performance crater when faced with logically transformed versions of the exact same fact.

Joint Accuracy vs. Number of Expressions: Performance drops significantly as the number of logical variants increases across all models.

Key Findings:

  • Negation is a Logical Wall: Double negation caused the most significant performance degradation (approximately a 5% drop). This suggests LLMs rely more on pattern matching than robust logical reasoning.
  • Performance Degradation: Some models, like Llama2-7B, saw performance drops of over 50% when tested with diverse logical structures compared to direct template-based evaluations.
  • Model Rankings: GPT-4o leads the pack but still only managed a ~31.7% gain over random guessing on MedLAMA under full PretexEval stress. Llama3-8B performed remarkably well, often surpassing the much larger Llama2-70B.
  • Medical Finetuning: While medical-specific models like ClinicalCamel-70B showed better depth of mastery than their base models, they still exhibited the same inconsistency issues as general models.

Conclusion

PretexEval highlights that current LLMs urgently need to strengthen their comprehensive mastery of medical knowledge before real-world application. While newer models like Llama3 and GPT-4o show promise, the fragility of their knowledge mastery under logical transformation remains a critical hurdle. Future work will focus on expanding the framework to handle complex n-ary relationships and multi-step reasoning tasks.

Summary updated

BibTeX
@inproceedings{zhou2025pretexttrans,
  author = {Yuxuan Zhou and Xien Liu and Chen Ning and Ji Wu},
  title = {{PretextTrans: Investigating Medical Factual Knowledge Mastery of LLMs with Predicate-text Dual Transformation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=TXfzH933qV},
}
Figure