Neurosymbolic Clinical Trial Matching via LLM-Driven Abduction and Logical Verification

Baiyang Qu, Leonardo Ranaldi, Xi Wang, Marco ValentinoarXiv 2026

TL;DR

This paper introduces $\alpha$NeSy-CTM, a hybrid neurosymbolic framework that automates Clinical Trial Matching (CTM) by combining the linguistic strengths of Large Language Models (LLMs) with the logical rigor of Satisfiability Modulo Theories (SMT) solvers. By using LLMs to perform abductive reasoning—inferring implicit clinical facts from incomplete records—and translating eligibility criteria into formal logic, the system allows the Z3 solver to deterministically verify patient eligibility. This approach achieves up to a 30% relative accuracy improvement over standard zero-shot LLM baselines while drastically reducing dangerous false-positive rates.

What Problem Does This Paper Address?

Clinical Trial Matching (CTM) is a massive bottleneck in biomedical research. Manually screening unstructured patient records against complex, multi-layered trial eligibility criteria (which involve strict numerical thresholds, temporal windows, and nested logical dependencies) is slow and error-prone.

While LLMs are excellent at parsing unstructured clinical narratives, they are notoriously unreliable at deterministic logical verification, frequently hallucinating or over-predicting patient eligibility (high false positives). Conversely, purely symbolic or rule-based systems provide flawless logical rigor but are incredibly brittle; they break down when faced with the fragmented, noisy, and incomplete information typical of real-world electronic health records (EHRs).

Methods

The authors propose $\alpha$NeSy-CTM (Abductive Neurosymbolic Clinical Trial Matching), a four-stage pipeline that bridges the gap between natural language and formal logic:

  1. Abductive Reasoning: Given a patient profile and trial criteria, an LLM infers a conservative set of implicit clinical facts supported by the text but not explicitly stated (e.g., inferring a low ECOG performance status from a note stating a patient "walks independently and shops for groceries").
  2. Autoformalization: The LLM translates the trial's eligibility criteria into formal SMT-LIB constraints ($L$) and maps the explicit and abduced patient facts into logical assertions ($F$ and $I$).
  3. Symbolic Verification: The system delegates the actual matching decision to the Z3 SMT solver, which checks the satisfiability of the combined theory ($F \cup I \cup L$). If Z3 finds a logical contradiction, the patient is safely deemed ineligible.
  4. Self-Correction Loop: If the solver encounters syntax or type errors during execution, the error feedback is routed back to the LLM for iterative refinement.
Figure 1: Abductive Neurosymbolic Clinical Trial Matching. The framework consists of four main stages: abductive reasoning, autoformalization, logical verification, and refinement. LLM-driven abduction and formalisation handle incomplete and noisy information prevalent in clinical text, while Z3 determines eligibility via satisfiability checks.

Datasets

The framework was evaluated using the TREC Clinical Trials Track benchmarks (2021–2023):

  • TREC 2021: Focuses on matching synthetic patient cases against clinical trial descriptions from ClinicalTrials.gov.
  • TREC 2022: Places a heavier emphasis on numerical data, such as list-structured laboratory values and threshold comparisons.
  • TREC 2023: Shifts toward semi-structured patient questionnaires, making missing, fragmented, and underspecified evidence a central challenge.

The authors sampled a balanced subset of 200 examples per year, totaling 600 patient-trial pairs for final evaluation.

Key Insights and Ideas

  • Balancing the Sensitivity-Specificity Trade-off: Standalone LLMs are overly "permissive" candidate generators. They achieve high sensitivity (correctly identifying eligible patients) but terrible specificity (flooding clinical coordinators with false positives). Moving the decision boundary to a symbolic solver enforces strict logical constraints, drastically cleaning up the candidate pool.
  • The Power of Abduction: Without the abductive reasoning step, a standard neurosymbolic system leaves missing variables unconstrained, causing the solver to overestimate eligibility. Abduction safely "fills the gaps" using clinical and commonsense knowledge.
  • Neurosymbolic and CoT Complementarity: Interestingly, $\alpha$NeSy-CTM and Chain-of-Thought (CoT) prompting excel on different types of problems. While $\alpha$NeSy-CTM dominates on complex numerical and boundary conditions, CoT performs well on short text ranges, suggesting that a hybrid routing policy could yield the best of both worlds.
Figure 3: Stacked intersection view for αNeSy-CTM vs. CoT on the 600 paired samples from TREC 2021–2023. Each bar decomposes the yearly outcome distribution into Both correct, Both wrong, CoT-Correct, and αNeSy- CTM-Correct; exact counts are reported in Appendix Table 5.

Key Results

  • Substantial Accuracy Gains: On the challenging TREC 2023 dataset, $\alpha$NeSy-CTM achieved an average accuracy of 75.71%, significantly outperforming the Zero-shot baseline (58.17%).
  • Dramatic Specificity Improvement: On TREC 2023, the Zero-shot baseline suffered from a dismal 24.66% specificity. $\alpha$NeSy-CTM raised this to 75.74%, which translates to a massive reduction in false positives for human-in-the-loop screening.
  • Robustness to Missing Evidence: In a controlled perturbation study where non-decisive clinical evidence was systematically masked, $\alpha$NeSy-CTM's accuracy degraded by only 2%, compared to an 8.5% drop for a standard, non-abductive neurosymbolic baseline.
Figure 2: Relative improvement over Zero-shot (%) using the 3-backbone average from Table 1. Improve- ments are modest in 2021–2022, then surge in 2023, with αNeSy-CTM showing the strongest uplift.

Limitations and Future Work

Despite its success, the authors note several limitations that must be addressed before real-world clinical deployment:

  • Computational Overhead: Running both multi-billion parameter LLMs and an SMT solver sequentially increases latency and inference costs, making large-scale real-time retrieval challenging.
  • Formalization Brittleness: The system's downstream success remains highly dependent on the LLM's ability to parse text perfectly; minor syntax or operator errors can still cause solver failures.
  • Abductive Risk Control: Unconstrained abduction runs the risk of "overfilling" records with weak assumptions. Future work needs to implement stricter plausibility priors.
  • External Validity: The evaluation was limited to English TREC data; validation against multilingual cohorts and real-world EHR systems is required.

Summary updated

BibTeX
@misc{qu2026neurosymbolic,
  author = {Baiyang Qu and Leonardo Ranaldi and Xi Wang and Marco Valentino},
  title = {{Neurosymbolic Clinical Trial Matching via LLM-Driven Abduction and Logical Verification}},
  year = {2026},
  eprint = {2606.20895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.20895},
}
Figure