In multi-head self-attention, the logits depend solely on the bilinear product $U_h = W_{Q,h}W_{K,h}^{\top}$. This creates a $d_h^{2}$-dimensional gauge redundancy in each head. Thus, we ask: Can we remove half the query-key parameters without losing directional attention? If we keep $W_{Q,h} = W_{K,h}$, then it will remove half the parameters, but it will make the score matrix a symmetric positive semidefinite Gram matrix, which cannot express directional retrieval or negative self-scores. In this paper, we first derive the exact identity that comes with this redundancy, and thereafter, we describe the symmetry and sign constraints when we do direct tying. Then, we introduce a cross-head cyclic construction, which utilises only one projection per head and borrows the other from a neighbouring head to calculate the scores, forming a cyclic ring. It will reduce the query-key parameter count, GEMM count, and optimizer states by half. In the experimental part, we have covered associative recall, character-level language modelling, memory use, and some small-scale expressiveness tests. In these tested cases, the cyclic model achieved competitive performance with half the query-key parameters compared to a paired setting. These measurements do not establish any general advantage, but they have shown that the cyclic restriction can retain strong performance at the tested scale.


翻译:暂无翻译

0
下载
关闭预览

相关内容

disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
跨越注意力:Cross-Attention
我爱读PAMI
172+阅读 · 2018年6月2日
论文浅尝 | Question Answering over Freebase
开放知识图谱
19+阅读 · 2018年1月9日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Talking-Heads Attention
Arxiv
15+阅读 · 2020年3月5日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
15+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
12+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
7+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
11+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
9+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
18+阅读 · 11月25日
相关VIP内容
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员