[论文解读] Branchformer: Parallel MLP-Attention Architectures to Capture Local and Global Context for Speech Recognition and Understanding
Branchformer 引入一个具有并行全局(注意力)和局部(cgMLP)路径的双分支编码器,融合它们的输出以捕捉 ASR 和 SLU 的远程依赖和局部依赖,取得出色结果并实现灵活、可训练的推理复杂度。
Conformer has proven to be effective in many speech processing tasks. It combines the benefits of extracting local dependencies using convolutions and global dependencies using self-attention. Inspired by this, we propose a more flexible, interpretable and customizable encoder alternative, Branchformer, with parallel branches for modeling various ranged dependencies in end-to-end speech processing. In each encoder layer, one branch employs self-attention or its variant to capture long-range dependencies, while the other branch utilizes an MLP module with convolutional gating (cgMLP) to extract local relationships. We conduct experiments on several speech recognition and spoken language understanding benchmarks. Results show that our model outperforms both Transformer and cgMLP. It also matches with or outperforms state-of-the-art results achieved by Conformer. Furthermore, we show various strategies to reduce computation thanks to the two-branch architecture, including the ability to have variable inference complexity in a single trained model. The weights learned for merging branches indicate how local and global dependencies are utilized in different layers, which benefits model designing.
研究动机与目标
- 激发对灵活、可解释编码器的需求,使其在语音处理任务中明确建模局部和全局上下文。
- 提出 Branchformer,具有两个并行分支(全局注意力和局部 cgMLP)以捕捉不同的依赖范围。
- 展示 Branchformer 在 ASR 和 SLU 基准测试中优于 Transformer、cgMLP,并达到或超过 Conformer 的表现。
- 展示用于解释分支使用情况的分析工具,并提供通过分支合并和 dropout 降低推理成本的策略。
提出的方法
- 每层的双分支编码器,其中一个分支通过自注意力(或高效变体)建模全局上下文,具备相对位置编码。
- 第二分支通过 cgMLP(具有卷积门控的 MLP)建模局部上下文,利用逐通道卷积和线性门控。
- 通过拼接(默认)或加权平均来合并分支,训练期间可选分支 dropout 以实现剪枝,从而加速推理。
- 使用基于注意力的池化来汇总分支输出,以在加权平均合并中进行加权。
- 探索高效的注意力变体(如 Fastformer),以将复杂度从序列长度的二次方降低到线性。
实验结果
研究问题
- RQ1如何在单个编码器层内并行建模局部和全局上下文依赖?
- RQ2并行双分支设计是否在可解释性和性能方面优于单分支的 Conformer 风格架构?
- RQ3两分支设计是否能够在不再训练的情况下通过分支 dropout 实现灵活的推理成本?
- RQ4不同分支合并策略对性能和可解释性有何影响?
- RQ5学习到的分支权重如何揭示跨数据集的逐层局部信息与全局信息的使用情况?
主要发现
- Branchformer 在 ASR 和 SLU 基准测试中持续优于 Transformer 和 cgMLP 基线,并达到或超过 Conformer。
- 双分支设计实现了可解释性:学习到的分支权重揭示了逐层在局部与全局依赖使用上的转变。
- 灵活的推理成本:通过 dropout 禁用注意力分支在不再训练的情况下实现更快的推理。
- 高效注意力变体(Fastformer)可以在仅带来适度性能损失的前提下减少计算,而全自注意力在准确性方面仍具竞争力。
- 逐层分析表明初期局部/全局块交错,后期阶段由全局或局部块主导,表明跨层的动态上下文使用。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。