arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2106.05251cs.LGcs.CLstat.ML
收藏

贝叶斯注意信度网络

Bayesian Attention Belief Networks

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Xidian University(西安电子科技大学)

Shujian Zhang, Xinjie Fan, Bo Chen, Mingyuan Zhou

摘要:

基于注意力的神经网络已经在广泛的任务上取得了最先进的成果。大多数此类模型使用确定性注意,而随机注意由于优化困难或复杂的模型设计而较少探索。本文介绍了贝叶斯注意力信念网络,它构造了一个解码器网络建模未规范化的注意力权重与伽玛分布的层次,和一个编码器网络堆叠Weibull分布与确定性向上随机向下的结构,以近似后验。由此产生的自动编码网络可以以具有变分下界的可微方式进行优化。将任何具有确定性注意力的模型(包括预先训练的模型)转换为所提出的贝叶斯注意力信念网络是很简单的。在各种语言理解任务中,我们证明了我们的方法在准确性、不确定性估计、跨域泛化和对对抗攻击的鲁棒性方面优于确定性注意和最先进的随机注意。我们进一步证明了我们的方法在神经机器翻译和视觉问答上的普遍适用性,显示出将我们的方法纳入各种注意力相关任务的巨大潜力。

英文摘要:

Attention-based neural networks have achieved state-of-the-art results on a wide range of tasks. Most such models use deterministic attention while stochastic attention is less explored due to the optimization difficulties or complicated model design. This paper introduces Bayesian attention belief networks, which construct a decoder network by modeling unnormalized attention weights with a hierarchy of gamma distributions, and an encoder network by stacking Weibull distributions with a deterministic-upward-stochastic-downward structure to approximate the posterior. The resulting auto-encoding networks can be optimized in a differentiable way with a variational lower bound. It is simple to convert any models with deterministic attention, including pretrained ones, to the proposed Bayesian attention belief networks. On a variety of language understanding tasks, we show that our method outperforms deterministic attention and state-of-the-art stochastic attention in accuracy, uncertainty estimation, generalization across domains, and robustness to adversarial attacks. We further demonstrate the general applicability of our method on neural machine translation and visual question answering, showing great potential of incorporating our method into various attention-related tasks.

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

↑