[Paper Review] Tx-LLM: A Large Language Model for Therapeutics
Tx-LLM is a generalist LLM fine-tuned from PaLM-2 that encodes knowledge across diverse therapeutic modalities and tasks, achieving competitive to state-of-the-art performance on many drug discovery benchmarks using a single model.
Developing therapeutics is a lengthy and expensive process that requires the satisfaction of many different criteria, and AI models capable of expediting the process would be invaluable. However, the majority of current AI approaches address only a narrowly defined set of tasks, often circumscribed within a particular domain. To bridge this gap, we introduce Tx-LLM, a generalist large language model (LLM) fine-tuned from PaLM-2 which encodes knowledge about diverse therapeutic modalities. Tx-LLM is trained using a collection of 709 datasets that target 66 tasks spanning various stages of the drug discovery pipeline. Using a single set of weights, Tx-LLM simultaneously processes a wide variety of chemical or biological entities(small molecules, proteins, nucleic acids, cell lines, diseases) interleaved with free-text, allowing it to predict a broad range of associated properties, achieving competitive with state-of-the-art (SOTA) performance on 43 out of 66 tasks and exceeding SOTA on 22. Among these, Tx-LLM is particularly powerful and exceeds best-in-class performance on average for tasks combining molecular SMILES representations with text such as cell line names or disease names, likely due to context learned during pretraining. We observe evidence of positive transfer between tasks with diverse drug types (e.g.,tasks involving small molecules and tasks involving proteins), and we study the impact of model size, domain finetuning, and prompting strategies on performance. We believe Tx-LLM represents an important step towards LLMs encoding biochemical knowledge and could have a future role as an end-to-end tool across the drug discovery development pipeline.
Motivation & Objective
- Motivate a single generalist AI to support multiple stages of the therapeutic development pipeline.
- Train an LLM on diverse therapeutics data to improve cross-task performance without task-specific fine-tuning.
- Demonstrate competitive or superior performance across a broad set of TDC tasks.
- Investigate positive transfer between datasets with different drug types and the effects of model size, finetuning, and prompting.
Proposed method
- Finetune a PaLM-2 base model on TxT, a collection of 709 datasets covering 66 tasks from the Therapeutics Data Commons (TDC).
- Represent therapeutics as strings (SMILES, sequences, texts) and interleave with free-text in prompts for classification, regression, and generation tasks.
- Use a mix of 0-shot and few-shot prompts (70% 0-shot, 30% few-shot) during training with randomly chosen shots.
- Train a single model across all datasets with mixture ratios proportional to dataset size; explore S and M model variants.
- Evaluate using task-appropriate metrics (AUROC, AUPRC, accuracy, Spearman/Pearson correlation, MAE, MSE, USPTO generation accuracy).
- Perform ablations on model size, domain finetuning, prompting strategy, and context presence to assess impact on performance.

Experimental results
Research questions
- RQ1Can a single generalist LLM learn to perform diverse therapeutic tasks across molecules, proteins, nucleic acids, cells, and diseases?
- RQ2Does domain finetuning and larger model size improve performance across the Therapeutics Data Commons tasks?
- RQ3Is there positive transfer between datasets with different drug types, and how does prompting strategy affect results?
- RQ4Does providing contextual information (prompts) improve task performance for a wide-range of therapeutic tasks?
Key findings
- Tx-LLM achieved near or above state-of-the-art on 43 of 66 tasks, and exceeded SOTA on 22 tasks.
- For datasets combining SMILES with text (e.g., disease or cell line names), Tx-LLM tends to outperform SOTA on average due to learned context.
- Evidence of positive transfer: training on diverse drug-type datasets improves performance on small-molecule datasets.
- Model scale and domain finetuning significantly boost performance; larger models and fine-tuned variants outperform baselines across many tasks.
- Contextualized prompts substantially improve performance; removing context reduces accuracy across most datasets.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.