MUSE: Parallel Multi-Scale Attention for Sequence to Sequence Learning

Guangxiang Zhao, Xu Sun, Jingjing Xu, Zhiyuan Zhang, Liangchen LuoarXiv 2019

Introduction

The Transformer architecture has revolutionized sequence-to-sequence learning, primarily through its self-attention mechanism. However, self-attention possesses a notable limitation: as sequence length increases, attention weights often become overly dispersed or hyper-concentrated on uninformative tokens, such as the end-of-sentence (</s>) marker. This behavior causes the model to lose track of crucial local context—the immediate neighborhood of a word—which is essential for accurate translation and representation.

While previous research attempted to mitigate this by restricting attention to local windows, such approaches often sacrifice the ability to capture long-range dependencies. This paper introduces MUSE (Parallel MUlti-Scale attEntion), an architecture designed to capture both short-range local structures and long-range global dependencies simultaneously without compromising computational efficiency.

The MUSE Architecture

MUSE departs from the sequential processing of standard Transformers by employing parallel multi-scale branches. Instead of a single attention operation, the input is processed through three distinct paths:

  1. Self-Attention: Captures global context across the entire sequence.
  2. Convolution: Uses depth-wise separable or dynamic convolutions to capture local context.
  3. Point-wise Feed-Forward Network: Captures individual token-level features.

A critical innovation in MUSE is the Shared Projection. The authors discovered that naively combining convolution and attention branches can actually degrade performance because the two mechanisms learn fundamentally different types of representations. To harmonize these, MUSE first projects the input into a shared hidden semantic space before passing it to the parallel branches. This ensures that both local and global features are extracted from a consistent representation.

The MUSE architecture featuring parallel pointwise, convolution, and attention branches with a shared projection.

Furthermore, the convolution branch utilizes Dynamically Selected Kernels. By employing multiple kernel sizes (e.g., 3 and 15) and a gating mechanism, the model learns to weight these kernels differently across layers. Analysis shows that lower layers tend to favor smaller kernels for strict local features, while higher layers shift toward larger kernels for broader context.

Experimental Results

The authors evaluated MUSE on several machine translation benchmarks, including WMT14 English-German (En-De) and English-French (En-Fr). MUSE achieved state-of-the-art results, significantly outperforming both the standard Transformer and convolution-only models like DynamicConv. For instance, on WMT14 En-De, MUSE reached 29.9 BLEU, compared to the Transformer's 28.4.

Performance on Long Sequences

One of the most compelling advantages of MUSE is its robustness as sequence length increases. In standard Transformers, translation quality typically degrades for very long sentences. MUSE, however, maintains high performance even for sequences exceeding 100 tokens.

Comparison of BLEU scores across sequence lengths for Transformer vs. MUSE.

As shown in the figure above, the performance gap between MUSE and the Transformer widens significantly for longer sequences. While the Transformer's BLEU score drops sharply for sentences over 105 tokens, MUSE remains relatively stable, demonstrating the effectiveness of its multi-scale approach.

Inference Efficiency

Despite the added complexity of parallel branches, MUSE is remarkably efficient. Because the self-attention, convolution, and feed-forward operations occur simultaneously, their weight matrices can be fused into larger matrices for optimized GPU execution. This parallel design allows MUSE to achieve a 31% increase in inference speed (173 tokens/s) compared to a baseline Transformer of similar parameter count (132 tokens/s).

Conclusion

MUSE provides a powerful solution to the local-context problem in self-attention models. By integrating parallel convolution and attention branches within a shared semantic space, it achieves superior translation quality, especially for long sequences, while simultaneously improving inference speed. The success of the shared projection highlights the importance of architectural synergy when combining disparate feature extraction mechanisms. Future work will explore applying this multi-scale attention framework to other domains such as speech and image processing.

Summary updated

BibTeX
@misc{zhao2019muse,
  author = {Guangxiang Zhao and Xu Sun and Jingjing Xu and Zhiyuan Zhang and Liangchen Luo},
  title = {{MUSE: Parallel Multi-Scale Attention for Sequence to Sequence Learning}},
  year = {2019},
  eprint = {1911.09483},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.09483},
}
Figure