句法注意力头是否影响模型行为? Do Syntax Heads Influence Model Behavior? 预印本
⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
💡 AI 中文简介
本研究探讨Transformer语言模型中专门处理句法关系的注意力头是否对模型的句法预测有因果作用。通过干预这些句法头(如强制其关注干扰名词),发现模型的句法预测仍更符合主语而非干扰项,且干预效果仅在一种测量指标下显著强于随机头干预,表明句法头的作用有限且证据混合。
领域自然语言处理
适合谁读需要一定专业背景
核心贡献通过干预实验检验句法注意力头的因果作用,发现其影响有限且依赖于测量指标;提出两种测量句法预测一致性的方法,为相关研究提供新工具。
关键数据干预句法头后,模型句法预测仍更符合主语而非干扰项;仅在两种测量指标中的一种下,句法头干预效果显著强于随机头干预。
推荐理由如果你对语言模型内部机制好奇,这篇研究用巧妙的干预实验揭示了句法头的真实作用,结果可能出乎你的意料!
关键词["Transformer语言模型", "注意力头", "句法关系", "因果作用", "干预实验"]
原文摘要
查看英文原文摘要
Transformer language models develop attention heads that specialize in syntactic relations, for example, attending from verbs to their subjects. Do these heads play a causal role in the model's syntactic predictions? Evidence for such a role is mixed to negative: even when we force these heads to attend to a distractor noun other than the subject, the model's syntactic predictions are still more consistent with the subject than with the distractor. Interventions on specialized syntax heads had a significantly stronger effect on syntactic predictions than interventions on random heads, but only in one of the two measures we propose.