State-of-the-art encoder-decoder models (e.g. for machine translation (MT) or speech recognition (ASR)) are constructed and trained end-to-end as an atomic unit. No component of the model can be (re-)used without the others. We describe LegoNN, a procedure for building encoder-decoder architectures with decoder modules that can be reused across various MT and ASR tasks, without the need for any fine-tuning. To achieve reusability, the interface between each encoder and decoder modules is grounded to a sequence of marginal distributions over a discrete vocabulary pre-defined by the model designer. We present two approaches for ingesting these marginals; one is differentiable, allowing the flow of gradients across the entire network, and the other is gradient-isolating. To enable portability of decoder modules between MT tasks for different source languages and across other tasks like ASR, we introduce a modality agnostic encoder which consists of a length control mechanism to dynamically adapt encoders' output lengths in order to match the expected input length range of pre-trained decoders. We present several experiments to demonstrate the effectiveness of LegoNN models: a trained language generation LegoNN decoder module from German-English (De-En) MT task can be reused with no fine-tuning for the Europarl English ASR and the Romanian-English (Ro-En) MT tasks to match or beat respective baseline models. When fine-tuned towards the target task for few thousand updates, our LegoNN models improved the Ro-En MT task by 1.5 BLEU points, and achieved 12.5% relative WER reduction for the Europarl ASR task. Furthermore, to show its extensibility, we compose a LegoNN ASR model from three modules -- each has been learned within different end-to-end trained models on three different datasets -- boosting the WER reduction to 19.5%.
翻译:高级解码器解码器模型(例如机器翻译(MT)或语音识别(ASR))是作为原子单元建造和训练的端到端的原子单元。模型的部件不能(重新)在没有其他单元的情况下使用。我们描述LegoNNN,这是在各种 MT 和 ASR 任务中用解码器模块建造编码器解码器结构的程序,可以再利用,而不需要任何微调。为了实现可再应用性,每个编码器和解码器模块之间的界面将基于在模型设计者预先定义的离散数据目录上的边际分布序列。我们提出了两种方法来(当模型的离异性) ADegnod-Decoder 服务器和调解码器的分解码器将不同源语言的解码模块移植到 Ademodemod Excial-Demod Excial Exliformations,我们引入了一种由精细控制器组成的模式,而现在的解化的解码器-Demodel A-Demoder Tex lax lax a romode romodel romodemodemodel ex ex ex la la romodel las thes the romodudududududududustr ex