arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.05971cs.LGcs.AIcs.CL
收藏

Transformer 可解释性是否能迁移到 RNN?

Does Transformer Interpretability Transfer to RNNs?

EleutherAI

Gonçalo Paulo, Thomas Marshall, Nora Belrose

AI总结:

本文研究 Transformer 可解释性方法向 Mamba、RWKV 等 RNN 架构的迁移,验证对比激活添加、tuned lens 和潜在知识引出均大多有效,并利用 RNN 压缩状态加以改进。

摘要:

循环神经网络架构(如 Mamba 和 RWKV)的最新进展,使 RNN 在语言建模困惑度和下游评估方面能够匹敌甚至超过同等规模的 Transformer,这表明未来系统可能建立在全新架构之上。本文考察最初为 Transformer 语言模型设计的若干可解释性方法,是否能迁移到这些新兴循环架构。具体而言,我们聚焦于:通过对比激活添加来引导模型输出,通过 tuned lens 引出潜在预测,以及从经微调、在特定条件下产生错误输出的模型中引出潜在知识。结果表明,这些技术大多在应用于 RNN 时有效;我们还表明,可以利用 RNN 的压缩状态改进其中部分技术。

英文摘要:

Recent advances in recurrent neural network architectures, such as Mamba and RWKV, have enabled RNNs to match or exceed the performance of equal-size transformers in terms of language modeling perplexity and downstream evaluations, suggesting that future systems may be built on completely new architectures. In this paper, we examine if selected interpretability methods originally designed for transformer language models will transfer to these up-and-coming recurrent architectures. Specifically, we focus on steering model outputs via contrastive activation addition, on eliciting latent predictions via the tuned lens, and eliciting latent knowledge from models fine-tuned to produce false outputs under certain conditions. Our results show that most of these techniques are effective when applied to RNNs, and we show that it is possible to improve some of them by taking advantage of RNNs' compressed state.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑