Prior work has attempted to understand the internal structures and functionalities of Transformer-based encoder-decoder architectures on the level of multi-head attention and feed-forward sublayers. Interpretations have focused on the encoder and decoder, along with the combinatorial possibilities of the self-attention, cross-attention, and feed-forward sublayers. However, without examining the low-level structures, one gains limited understanding of the motivation behind sublayer reordering. Could we dive into the sublayer abstraction and permute layer weight matrices to improve the quality of translation? We propose AEIUOrder to greedily reorder layer weight matrices in the encoder by their well-trainedness, as measured by Heavy-Tailed Self-Regularization (HT-SR) metrics, and order the decoder matrices correspondingly. Our results suggest that greedily reordering layer weight matrices to maximize Total well-trainedness facilitates the model to learn representations and generate translations more effectively.
翻译:先前的工作试图在多头注意力和前馈子层层面理解基于Transformer的编码器-解码器架构的内部结构和功能。解释工作主要集中在编码器和解码器,以及自注意力、交叉注意力和前馈子层的组合可能性上。然而,若不审视低层级结构,则对子层重排序动机的理解将十分有限。我们能否深入子层抽象层面,通过对层权重矩阵进行置换来提升翻译质量?我们提出AEIUOrder方法,根据由重尾自正则化(HT-SR)指标衡量的"训练充分度",对编码器中的层权重矩阵进行贪心重排序,并相应地对解码器矩阵进行排序。我们的结果表明,通过贪心重排序层权重矩阵以最大化总训练充分度,有助于模型更有效地学习表示并生成翻译。