The Conformer Encoder May Reverse the Time Dimension
Schmitt, Robin, Zeyer, Albert, Zeineldeen, Mohammad, Schlüter, Ralf, Ney, Hermann
We sometimes observe monotonically decreasing cross-attention weights in our Conformer-based global attention-based encoder-decoder (AED) models. Further investigation shows that the Conformer encoder internally reverses the sequence in the time dimension. We analyze the initial behavior of the decoder cross-attention mechanism and find that it encourages the Conformer encoder self-attention to build a connection between the initial frames and all other informative frames. Furthermore, we show that, at some point in training, the self-attention module of the Conformer starts dominating the output over the preceding feed-forward module, which then only allows the reversed information to pass through. We propose several methods and ideas of how this flipping can be avoided. Additionally, we investigate a novel method to obtain label-frame-position alignments by using the gradients of the label log probabilities w.r.t. the encoder input frames.
Oct-1-2024
- Country:
- Oceania > Australia (0.04)
- North America > United States
- Hawaii > Honolulu County
- Honolulu (0.04)
- California > Los Angeles County
- Los Angeles (0.14)
- Hawaii > Honolulu County
- Europe
- Asia
- South Korea > Seoul
- Seoul (0.04)
- Middle East > Qatar
- India > Telangana
- Hyderabad (0.04)
- South Korea > Seoul
- Genre:
- Research Report (0.85)
- Technology: