Text Generation
PEFT
Safetensors
medical
biology
chemistry
conversational

Improve model card: Update pipeline tag, library, and add paper/repo details

#3
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +40 -6
README.md CHANGED
@@ -1,19 +1,33 @@
1
  ---
2
  base_model: meta-llama/Llama-3.1-8B-Instruct
3
- library_name: peft
4
  datasets:
5
  - Moreza009/drug_approval_prediction
 
6
  license: apache-2.0
7
- pipeline_tag: text-classification
8
  tags:
9
  - medical
10
  - biology
11
  - chemistry
12
  ---
13
- [![arXiv](https://img.shields.io/badge/arXiv-1234.5678-b31b1b.svg)](https://arxiv.org/abs/2508.18579)
 
 
 
14
  # DrugReasoner: Interpretable Drug Approval Prediction with a Reasoning-augmented Language Model
15
  DrugReasoner is an AI-powered system for predicting drug approval outcomes using reasoning-augmented Large Language Models (LLMs) and molecular feature analysis. By combining advanced machine learning with interpretable reasoning, DrugReasoner provides transparent predictions that can accelerate pharmaceutical research and development.
16
 
 
 
 
 
 
 
 
 
 
 
 
17
  ## Model Details
18
 
19
  - Model Name: DrugReasoner
@@ -66,10 +80,10 @@ You can use [this](https://huggingface.co/join) instruction on how to make an ac
66
  ```bash
67
  huggingface-cli login --token YOUR_TOKEN_HERE
68
  ```
69
- ### How to use
70
 
71
 
72
- **Note:** GPU is required for inference. If unavailable, use our [Colab Notebook]([link-to-colab](https://colab.research.google.com/drive/16OKB5q7MZ6MhWv5Q1I0QByN6DSkqx6az?usp=sharing)).
73
 
74
 
75
  #### CLI Inference
@@ -100,6 +114,15 @@ results = predictor.predict_molecules(
100
  )
101
  ```
102
 
 
 
 
 
 
 
 
 
 
103
  ## Citation
104
 
105
  If you use DrugReasoner in your research, please cite our work:
@@ -114,4 +137,15 @@ If you use DrugReasoner in your research, please cite our work:
114
  primaryClass={cs.LG},
115
  url={https://arxiv.org/abs/2508.18579},
116
  }
117
- ```
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  base_model: meta-llama/Llama-3.1-8B-Instruct
 
3
  datasets:
4
  - Moreza009/drug_approval_prediction
5
+ library_name: transformers
6
  license: apache-2.0
7
+ pipeline_tag: text-generation
8
  tags:
9
  - medical
10
  - biology
11
  - chemistry
12
  ---
13
+
14
+ [![arXiv](https://img.shields.io/badge/arXiv-2508.18579-b31b1b.svg)](https://arxiv.org/abs/2508.18579)
15
+ [![GitHub](https://img.shields.io/badge/GitHub-Code-blue.svg?logo=github)](https://github.com/mohammad-gh009/DrugReasoner)
16
+
17
  # DrugReasoner: Interpretable Drug Approval Prediction with a Reasoning-augmented Language Model
18
  DrugReasoner is an AI-powered system for predicting drug approval outcomes using reasoning-augmented Large Language Models (LLMs) and molecular feature analysis. By combining advanced machine learning with interpretable reasoning, DrugReasoner provides transparent predictions that can accelerate pharmaceutical research and development.
19
 
20
+ ## Abstract
21
+ Drug discovery is a complex and resource-intensive process, making early prediction of approval outcomes critical for optimizing research investments. While classical machine learning and deep learning methods have shown promise in drug approval prediction, their limited interpretability constraints their impact. Here, we present DrugReasoner, a reasoning-based large language model (LLM) built on the LLaMA architecture and fine-tuned with group relative policy optimization (GRPO) to predict the likelihood of small-molecule approval. DrugReasoner integrates molecular descriptors with comparative reasoning against structurally similar approved and unapproved compounds, generating predictions alongside step-by-step rationales and confidence scores. DrugReasoner achieved robust performance with an AUC of 0.732 and an F1 score of 0.729 on the validation set and 0.725 and 0.718 on the test set, respectively. These results outperformed conventional baselines, including logistic regression, support vector machine, and k-nearest neighbors and had competitive performance relative to XGBoost. On an external independent dataset, DrugReasoner outperformed both baseline and the recently developed ChemAP model, achieving an AUC of 0.728 and an F1-score of 0.774, while maintaining high precision and balanced sensitivity, demonstrating robustness in real-world scenarios. These findings demonstrate that DrugReasoner not only delivers competitive predictive accuracy but also enhances transparency through its reasoning outputs, thereby addressing a key bottleneck in AI-assisted drug discovery. This study highlights the potential of reasoning-augmented LLMs as interpretable and effective tools for pharmaceutical decision-making.
22
+
23
+ ## ✨ Key Features
24
+
25
+ - **πŸ€– LLM-Powered Predictions**: Utilizes fine-tuned Llama model for drug approval prediction
26
+ - **🧬 Molecular Analysis**: Advanced SMILES-based molecular structure analysis
27
+ - **πŸ” Interpretable Results**: Clear reasoning behind predictions for better decision-making
28
+ - **πŸ“Š Similarity Analysis**: Identifies similar approved/non-approved compounds for context
29
+ - **⚑ Flexible Inference**: Support for both single molecule and batch predictions
30
+
31
  ## Model Details
32
 
33
  - Model Name: DrugReasoner
 
80
  ```bash
81
  huggingface-cli login --token YOUR_TOKEN_HERE
82
  ```
83
+ ## πŸš€ How to use
84
 
85
 
86
+ **Note:** GPU is required for inference. If unavailable, use our [Kaggle Notebook](https://www.kaggle.com/code/mohammadgh009/drugreasoner).
87
 
88
 
89
  #### CLI Inference
 
114
  )
115
  ```
116
 
117
+ ## πŸ“Š Dataset & Model
118
+
119
+ - **Dataset**: [![Hugging Face Dataset](https://img.shields.io/badge/πŸ€—%20Dataset-drug_approval_prediction-yellow)](https://huggingface.co/datasets/Moreza009/drug_approval_prediction)
120
+ - **Model**: [![Hugging Face Model](https://img.shields.io/badge/πŸ€—%20Model-Llama--DrugReasoner-orange)](https://huggingface.co/Moreza009/Llama-DrugReasoner)
121
+
122
+ ## πŸ“ˆ Performance
123
+
124
+ DrugReasoner demonstrates superior performance compared to traditional baseline models across multiple evaluation metrics. Detailed performance comparisons are available in our [paper](https://arxiv.org/abs/2508.18579).
125
+
126
  ## Citation
127
 
128
  If you use DrugReasoner in your research, please cite our work:
 
137
  primaryClass={cs.LG},
138
  url={https://arxiv.org/abs/2508.18579},
139
  }
140
+ ```
141
+
142
+ ## πŸ“œ License
143
+
144
+ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
145
+
146
+ ---
147
+
148
+ <div align="center">
149
+ <strong>Accelerating drug discovery through AI-powered predictions</strong>
150
+ <br><br>
151
+ </div>