This repository contains the implementation of multiple models and approaches for biomedical claim verification using the CURe dataset.
The CURe dataset (dataset/CURe_dataset_sample.json) is a comprehensive dataset for biomedical claim verification. It contains:
- Claims extracted from medical forum discussions
- Supporting evidence from PubMed abstracts
- Multi-label annotations for claim veracity (Supports/Refutes/NEI)
- Natural language inference (NLI) labels for evidence relevance
The codebase contains multiple approaches to biomedical claim verification:
cross-encoder-pubmed-bert.py: Cross-encoder using PubMedBERT for biomedical domain adaptationcross-encoder-roberta.py: Cross-encoder using RoBERTa with medical fine-tuninggraph-fusion.py: Graph neural network for evidence aggregation and reasoningmulti_hop_debarta_reasoner.py: Multi-hop reasoning using DeBERTa with graph structureset-transformer-debarta.py: Set Transformer architecture for permutation-invariant evidence processingZero_shot_pipeline_LLAMA3.18b_RAG.py: Zero-shot approach using LLAMAzero-shot-high-parameter-models.py: Zero-shot testing with various large modelsRAG_best_sentence_selection.py: Retrieval-augmented generation with evidence selectionMulti-Intent_SHAP-Integrated_Cross-Attentive_Reasoning.py: Multi-intent reasoning with SHAP attributionmulti_agentic_pipeline.py: Multi-agent pipeline for complex reasoningreasoning_persona_generation.py: Persona-based reasoning approach
To ensure full reproducibility of our experiments, we have taken the following measures:
-
Environment Setup
- Fixed random seeds across all frameworks (PyTorch, NumPy, Python)
- Deterministic CUDA operations enabled
- GPU memory management optimizations
-
Dependencies
- Pinned package versions in requirements.txt tested for python 3.10.x
- Virtual environment setup scripts for isolation
- Docker container definition for complete environment replication
# Create a virtual environment
python3 -m venv myenv
# Activate the virtual environment
source myenv/bin/activate
# Install dependencies with pinned versions
pip install -r requirements.txt# Create a virtual environment
python -m venv myenv
# Activate the virtual environment
myenv\Scripts\activate
# Install dependencies with pinned versions
pip install -r requirements.txt