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

残差计算的Jet展开

Jet Expansions of Residual Computation

UCL(伦敦大学学院);MIT(麻省理工学院);Amazon Web Services(亚马逊网络服务)

Yihong Chen, Xiangxiang Xu, Yao Lu, Pontus Stenetorp, Luca Franceschi

AI总结:

本研究提出基于jets的残差计算图展开框架,无需数据、训练或采样,可分离计算路径贡献、涵盖logit lens、揭示残差深度路径结构,支持大模型可解释性等无数据分析。

摘要:

我们提出了一种利用jets(推广截断泰勒级数的算子)展开残差计算图的框架。该方法为分离不同计算路径对模型预测的贡献提供了系统性途径。与蒸馏、探测、早期解码等现有技术不同,我们的展开仅依赖模型本身,无需数据、训练或从模型中采样。我们展示了该框架如何奠定并涵盖logit lens(对数似然透镜),揭示递归残差深度中的(超)指数路径结构,并开辟多种应用场景,包括用从其计算中提取的n-gram统计量勾勒transformer大语言模型,以及索引模型的毒性知识层级。该方法实现了用于模型可解释性、开发与评估的无数据残差计算分析。

英文摘要:

We introduce a framework for expanding residual computational graphs using jets, operators that generalize truncated Taylor series. Our method provides a systematic approach to disentangle contributions of different computational paths to model predictions. In contrast to existing techniques such as distillation, probing, or early decoding, our expansions rely solely on the model itself and requires no data, training, or sampling from the model. We demonstrate how our framework grounds and subsumes logit lens, reveals a (super-)exponential path structure in the recursive residual depth and opens up several applications. These include sketching a transformer large language model with $n$-gram statistics extracted from its computations, and indexing the models' levels of toxicity knowledge. Our approach enables data-free analysis of residual computation for model interpretability, development, and evaluation.

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

↑