扩展与解释:解释超长语言模型
Extend and Explain: Interpreting Very Long Language Models
摘要:
虽然Transformer语言模型(LM)是信息抽取的最新技术,但长文本引入了计算挑战,需要次优的预处理步骤或替代模型架构。稀疏注意力LM可以表示更长的序列,克服性能障碍。然而,目前还不清楚如何解释这些模型的预测,因为并非所有的令牌都在自我注意层中相互关注,并且当运行时间取决于文档长度时,长序列对可解释性算法提出了计算挑战。这些挑战在医疗环境中非常严峻,因为文档可能很长,而且机器学习(ML)模型必须是可审计和可信的。我们引入了一种新的掩蔽采样过程(MSP)来识别有助于预测的文本块,将MSP应用于从医学文本预测诊断的背景下,并通过两名临床医生的盲检来验证我们的方法。我们的方法识别出的临床信息文本块比以前的最新技术多1.7倍,运行速度快100倍,并且易于生成重要的短语对。MSP特别适合长LM,但可以应用于任何文本分类器。我们提供了MSP的一般实现。
英文摘要:
While Transformer language models (LMs) are state-of-the-art for information extraction, long text introduces computational challenges requiring suboptimal preprocessing steps or alternative model architectures. Sparse attention LMs can represent longer sequences, overcoming performance hurdles. However, it remains unclear how to explain predictions from these models, as not all tokens attend to each other in the self-attention layers, and long sequences pose computational challenges for explainability algorithms when runtime depends on document length. These challenges are severe in the medical context where documents can be very long, and machine learning (ML) models must be auditable and trustworthy. We introduce a novel Masked Sampling Procedure (MSP) to identify the text blocks that contribute to a prediction, apply MSP in the context of predicting diagnoses from medical text, and validate our approach with a blind review by two clinicians. Our method identifies about 1.7x more clinically informative text blocks than the previous state-of-the-art, runs up to 100x faster, and is tractable for generating important phrase pairs. MSP is particularly well-suited to long LMs but can be applied to any text classifier. We provide a general implementation of MSP.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。