Probing Large Language Model Hidden States for Adverse Drug Reaction Knowledge.

Jacob Berkowitz, Davy Weissenbacher, Apoorva Srinivasan, Nadine A Friedrich, Jose Miguel Acitores Cortina, Sophia Kivelson, Graciela Gonzalez Hernandez, Nicholas P Tatonetti
{"title":"Probing Large Language Model Hidden States for Adverse Drug Reaction Knowledge.","authors":"Jacob Berkowitz, Davy Weissenbacher, Apoorva Srinivasan, Nadine A Friedrich, Jose Miguel Acitores Cortina, Sophia Kivelson, Graciela Gonzalez Hernandez, Nicholas P Tatonetti","doi":"10.1101/2025.02.09.25321620","DOIUrl":null,"url":null,"abstract":"<p><p>Large language models (LLMs) integrate knowledge from diverse sources into a single set of internal weights. However, these representations are difficult to interpret, complicating our understanding of the models' learning capabilities. Sparse autoencoders (SAEs) linearize LLM embeddings, creating monosemantic features that both provide insight into the model's comprehension and simplify downstream machine learning tasks. These features are especially important in biomedical applications where explainability is critical. Here, we evaluate the use of Gemma Scope SAEs to identify how LLMs store known facts involving adverse drug reactions (ADRs). We transform hidden-state embeddings of drug names from Gemma2-9b-it into interpretable features and train a linear classifier on these features to classify ADR likelihood, evaluating against an established benchmark. These embeddings provide strong predictive performance, giving AUC-ROC of 0.957 for identifying acute kidney injury, 0.902 for acute liver injury, 0.954 for acute myocardial infarction, and 0.963 for gastrointestinal bleeds. Notably, there are no significant differences (p > 0.05) in performance between the simple linear classifiers built on SAE outputs and neural networks trained on the raw embeddings, suggesting that the information lost in reconstruction is minimal. This finding suggests that SAE-derived representations retain the essential information from the LLM while reducing model complexity, paving the way for more transparent, compute-efficient strategies. We believe that this approach can help synthesize the biomedical knowledge our models learn in training and be used for downstream applications, such as expanding reference sets for pharmacovigilance.</p>","PeriodicalId":94281,"journal":{"name":"medRxiv : the preprint server for health sciences","volume":" ","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2025-02-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11844579/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"medRxiv : the preprint server for health sciences","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1101/2025.02.09.25321620","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Large language models (LLMs) integrate knowledge from diverse sources into a single set of internal weights. However, these representations are difficult to interpret, complicating our understanding of the models' learning capabilities. Sparse autoencoders (SAEs) linearize LLM embeddings, creating monosemantic features that both provide insight into the model's comprehension and simplify downstream machine learning tasks. These features are especially important in biomedical applications where explainability is critical. Here, we evaluate the use of Gemma Scope SAEs to identify how LLMs store known facts involving adverse drug reactions (ADRs). We transform hidden-state embeddings of drug names from Gemma2-9b-it into interpretable features and train a linear classifier on these features to classify ADR likelihood, evaluating against an established benchmark. These embeddings provide strong predictive performance, giving AUC-ROC of 0.957 for identifying acute kidney injury, 0.902 for acute liver injury, 0.954 for acute myocardial infarction, and 0.963 for gastrointestinal bleeds. Notably, there are no significant differences (p > 0.05) in performance between the simple linear classifiers built on SAE outputs and neural networks trained on the raw embeddings, suggesting that the information lost in reconstruction is minimal. This finding suggests that SAE-derived representations retain the essential information from the LLM while reducing model complexity, paving the way for more transparent, compute-efficient strategies. We believe that this approach can help synthesize the biomedical knowledge our models learn in training and be used for downstream applications, such as expanding reference sets for pharmacovigilance.

Abstract Image

Abstract Image

Abstract Image

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
探索药物不良反应知识的大语言模型隐藏状态。
大型语言模型(llm)将来自不同来源的知识集成到一组内部权重中。然而,这些表示很难解释,使我们对模型学习能力的理解复杂化。稀疏自编码器(sae)线性化LLM嵌入,创建一元特征,既提供对模型理解的洞察,又简化下游机器学习任务。这些特征在可解释性至关重要的生物医学应用中尤为重要。在这里,我们评估Gemma Scope sae的使用,以确定法学硕士如何存储涉及药物不良反应(adr)的已知事实。我们将Gemma2-9b-it的药物名称的隐藏状态嵌入转换为可解释的特征,并在这些特征上训练线性分类器来分类ADR的可能性,并根据已建立的基准进行评估。这些嵌入具有很强的预测性能,识别急性肾损伤的AUC-ROC为0.957,识别急性肝损伤的AUC-ROC为0.902,识别急性心肌梗死的AUC-ROC为0.954,识别胃肠道出血的AUC-ROC为0.963。值得注意的是,在SAE输出上构建的简单线性分类器与在原始嵌入上训练的神经网络之间的性能没有显著差异(p > 0.05),这表明重建中的信息损失最小。这一发现表明,sae派生的表示保留了LLM的基本信息,同时降低了模型复杂性,为更透明、计算效率更高的策略铺平了道路。我们相信这种方法可以帮助综合我们的模型在训练中学习到的生物医学知识,并用于下游应用,例如扩大药物警戒的参考集。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Should We Keep Changing the Clock? Characterizing Causal Effects of Daylight Saving Time on Behavior and Physiology. Development and Multinational Validation of Artificial Intelligence-Enabled ASCVD Risk Stratification Using Electrocardiograms. Integrative Multimodal Subtyping, Risk of Incident Mild Cognitive Impairment, and Differential Cardiometabolic Treatment Effects: A Prospective Cohort Study in the All of Us Research Program. Spatial transcriptomics reveals mechanism of autoimmunity driven by internalized autoantibodies. Epigenetic Responses to Abusive versus Accidental Injuries in Children: A Cross-sectional Epigenome Wide Association Meta-analysis.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1