Glancing Transformer for Non-Autoregressive Neural Machine Translation

14 篇文章 0 订阅
13 篇文章 1 订阅

Glancing Transformer for Non-Autoregressive Neural Machine Translation

动机

  1. NAT’s conditional independence assumption prevents learning word interdependency in the target sentence. (解决内部依赖)

  2. Previous methods require multiple passes of decoding, its generation speed is measurably slower than the vanilla NAT (我们是single pass decoding during inference)

贡献

  1. GLAT achieves parallel text generation with only single decoding pass.

  2. GLM adopts a adaptive glancing sampling strategy. (根据预先输出的y~(NAR直接生成)和真实的y的距离决定从y中采样的比例)

  3. 相比较vanilla NAT,提升大概5BLEU,和AT相比,差0.9BLEU,但是7.9X加速

做法

在这里插入图片描述

  1. The Glancing Language Model
    • 首先第一个decoder预先生成Y~
  2. The Glancing Sampling Strategy
    • 根据Y~和真实Y计算距离,Hamming distances(训练的时候Y~和Y长度一致,否则使用Levenshtein distance )
    • 从Y中采样一定的比例作为第二个解码器的输入,同时未被替换的用Encoder的隐层表示,对他们进行NAR的预测。计算LOSS,更新第二个decoder
  3. Inference
    • 解码的时候需要决定输出的长度
      • noisy parallel decoding (NPD) and
      • connectionist temporal classification (CTC)

实验

  1. WMT14和16的试验
    在这里插入图片描述

  2. 不同输入长度模型的比较
    在这里插入图片描述

  3. 生成的重复率

在这里插入图片描述

  1. 采样率固定和变化(s表示开始采样率,e:end)
    在这里插入图片描述
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

彭伟_02

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值