Tracing Pharmacological Knowledge In Large Language Models
School of Electrical and Computer Engineering(电气与计算机工程学院);Purdue University(普渡大学);Viterbi School of Engineering(维特比工程学院);University of Southern California(南加州大学);Stephen J. R. Smith Faculty of Engineering and Applied Science(工程与应用科学学院);Queen’s University(皇后大学);Department of Molecular and Cellular Biology(分子与细胞生物学系);Scripps Research(斯克里普斯研究学院)
Basil Hasan Khwaja, Dylan Chen, Guntas Toor, Anastasiya Kuznetsova
备注:
Accepted, Learning Meaningful Representations of Life (LMRL) Workshop @ ICLR 2026
Large language models (LLMs) have shown strong empirical performance across pharmacology and drug discovery tasks, yet the internal mechanisms by which they encode pharmacological knowledge remain poorly understood. In this work, we investigate how drug-group semantics are represented and retrieved within Llama-based biomedical language models using causal and probing-based interpretability methods. We apply activation patching to localize where drug-group information is stored across model layers and token positions, and complement this analysis with linear probes trained on token-level and sum-pooled activations. Our results demonstrate that early layers play a key role in encoding drug-group knowledge, with the strongest causal effects arising from intermediate tokens within the drug-group span rather than the final drug-group token. Linear probing further reveals that pharmacological semantics are distributed across tokens and are already present in the embedding space, with token-level probes performing near chance while sum-pooled representations achieve maximal accuracy. Together, these findings suggest that drug-group semantics in LLMs are not localized to single tokens but instead arise from distributed representations. This study provides the first systematic mechanistic analysis of pharmacological knowledge in LLMs, offering insights into how biomedical semantics are encoded in large language models.
From Prediction to Application: Language Model-based Code Knowledge Tracing with Domain Adaptive Pre-Training and Automatic Feedback System with Pedagogical Prompting for Comprehensive Programming Education
Enuma Inc(Enuma公司);University of Memphis(孟菲斯大学);Daegu National University of Education(大邱教育大学);Seoul National University(首尔大学);Seoul Metropolitan Office of Education(首尔市教育厅);Korea University(高丽大学)
MERIT: Memory-Enhanced Retrieval for Interpretable Knowledge Tracing
School of Computer Science and Technology, East China Normal University(东华师范大学计算机科学与技术学院);Shanghai Innovation Institute(上海创新研究院);WeChat AI, Tencent(微信AI,腾讯)
East China Normal University(华东师范大学);The School of Computer Science and Technology, East China Normal University(华东师范大学计算机科学与技术学院);The School of Psychology and Cognitive Science, East China Normal University(华东师范大学心理与认知科学学院)