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

运动中的词:提取运动Transformer的可解释控制向量

Words in Motion: Extracting Interpretable Control Vectors for Motion Transformers

FZI Research Center for Information Technology(FZI信息技术研究中心);Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院)

Omer Sahin Tas, Royden Wagner

AI总结:

该研究针对运动Transformer隐藏状态难解释的问题,通过线性探测发现潜在空间规律,拟合并经稀疏自编码器优化控制向量,实现推理时可控预测与零样本泛化,兼具可解释性与低开销优势。

摘要:

基于Transformer的模型生成的隐藏状态难以解释。在本研究中,我们针对运动预测任务,分析隐藏状态并在推理阶段对其进行修改。我们使用线性探测(linear probing)分析隐藏状态中是否嵌入了可解释特征,实验显示探测准确率很高,表明潜在空间存在具有功能重要方向的规律性。在此基础上,我们利用具有对立特征的隐藏状态之间的方向拟合控制向量,在推理时将控制向量添加到隐藏状态中,评估其对预测的影响。值得注意的是,这类修改保留了预测的可行性。我们进一步使用稀疏自编码器(sparse autoencoders, SAEs)优化控制向量,使得缩放控制向量时预测的变化更具线性特性。我们的方法实现了机制层面的可解释性,还能以可忽略的计算开销对未见过的数据集特征实现零样本泛化。

英文摘要:

Transformer-based models generate hidden states that are difficult to interpret. In this work, we analyze hidden states and modify them at inference, with a focus on motion forecasting. We use linear probing to analyze whether interpretable features are embedded in hidden states. Our experiments reveal high probing accuracy, indicating latent space regularities with functionally important directions. Building on this, we use the directions between hidden states with opposing features to fit control vectors. At inference, we add our control vectors to hidden states and evaluate their impact on predictions. Remarkably, such modifications preserve the feasibility of predictions. We further refine our control vectors using sparse autoencoders (SAEs). This leads to more linear changes in predictions when scaling control vectors. Our approach enables mechanistic interpretation as well as zero-shot generalization to unseen dataset characteristics with negligible computational overhead.

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

↑