Tracr Transformers的神经反编译
Neural Decompiling of Tracr Transformers
AI总结:
针对Transformer内部工作机制缺乏通用解释方法的问题,本文利用Tracr生成Transformer权重与RASP程序对的数据集,训练模型从编译后的模型中恢复RASP代码,证明Tracr编译的Transformer权重可被反编译器模型解释。
摘要:
近年来,Transformer架构在模式识别和机器学习的诸多领域取得了显著进展。然而,与其他神经网络模型一样,目前尚无通用方法可解释其内部工作机制。本文是朝着这一方向迈出的第一步。我们利用Transformer Compiler for RASP(Tracr)生成了包含大量Transformer权重与对应RASP程序对的数据集。基于该数据集,我们构建并训练了一个模型,旨在从编译后的模型中恢复RASP代码。我们证明,Tracr编译的Transformer权重的简单形式对于此类反编译器模型而言是可解释的。在实证评估中,我们的模型在超过30%的测试对象上实现了精确复现,其余70%通常仅需少量错误即可复现。此外,我们的模型生成的程序中,超过70%在功能上与真实值等效,因此是Tracr编译Transformer权重的有效反编译。
英文摘要:
Recently, the transformer architecture has enabled substantial progress in many areas of pattern recognition and machine learning. However, as with other neural network models, there is currently no general method available to explain their inner workings. The present paper represents a first step towards this direction. We utilize \textit{Transformer Compiler for RASP} (Tracr) to generate a large dataset of pairs of transformer weights and corresponding RASP programs. Based on this dataset, we then build and train a model, with the aim of recovering the RASP code from the compiled model. We demonstrate that the simple form of Tracr compiled transformer weights is interpretable for such a decompiler model. In an empirical evaluation, our model achieves exact reproductions on more than 30\% of the test objects, while the remaining 70\% can generally be reproduced with only few errors. Additionally, more than 70\% of the programs, produced by our model, are functionally equivalent to the ground truth, and therefore a valid decompilation of the Tracr compiled transformer weights.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。