Skip to main content
QUICK REVIEW

[Paper Review] Deep Encoder, Shallow Decoder: Reevaluating the Speed-Quality Tradeoff in Machine Translation

Jungo Kasai, Nikolaos Pappas|arXiv (Cornell University)|Jun 18, 2020
Natural Language Processing TechniquesComputer Science44 references53 citations
TL;DR

This paper proposes a deep encoder, shallow decoder architecture for neural machine translation, demonstrating that a one-layer autoregressive decoder with a deep encoder achieves state-of-the-art translation quality while matching the inference speed of non-autoregressive models. The key insight is that optimal layer allocation—prioritizing depth in the encoder—overcomes the assumed latency penalty of autoregressive decoding.

ABSTRACT

State-of-the-art neural machine translation models generate outputs autoregressively, where every step conditions on the previously generated tokens. This sequential nature causes inherent decoding latency. Non-autoregressive translation techniques, on the other hand, parallelize generation across positions and speed up inference at the expense of translation quality. Much recent effort has been devoted to non-autoregressive methods, aiming for a better balance between speed and quality. In this work, we re-examine the trade-off and argue that transformer-based autoregressive models can be substantially sped up without loss in accuracy. Specifically, we study autoregressive models with encoders and decoders of varied depths. Our extensive experiments show that given a sufficiently deep encoder, a one-layer autoregressive decoder yields state-of-the-art accuracy with comparable latency to strong non-autoregressive models. Our findings suggest that the latency disadvantage for autoregressive translation has been overestimated due to a suboptimal choice of layer allocation, and we provide a new speed-quality baseline for future research toward fast, accurate translation.

Motivation & Objective

  • To re-evaluate the widely assumed latency disadvantage of autoregressive neural machine translation.
  • To investigate whether architectural re-balancing of encoder and decoder depth can improve the speed-quality trade-off.
  • To establish a new baseline for fast, accurate translation by optimizing layer allocation in transformer-based models.
  • To challenge the prevailing trend of favoring non-autoregressive methods for speed at the cost of quality.

Proposed method

  • The authors train transformer-based models with varying depths in the encoder and decoder, systematically evaluating different depth configurations.
  • They use a deep encoder (e.g., 6–12 layers) to capture rich contextual representations, while employing a single-layer decoder for fast autoregressive generation.
  • The models are trained end-to-end with standard objectives, and inference latency is measured under standard autoregressive decoding.
  • The approach leverages the representational power of deep encoders to compensate for minimal decoder complexity, enabling parallelization benefits without sacrificing accuracy.
  • Experiments compare the proposed architecture against strong non-autoregressive baselines and standard deep autoregressive models.
  • The method relies on architectural ablation to isolate the impact of encoder depth and decoder depth on speed and quality metrics.

Experimental results

Research questions

  • RQ1Can a shallow decoder with a deep encoder achieve state-of-the-art translation quality while maintaining low inference latency?
  • RQ2Is the latency disadvantage of autoregressive models overestimated due to suboptimal layer allocation?
  • RQ3How does increasing encoder depth affect the performance of a minimal (one-layer) decoder in autoregressive translation?
  • RQ4Does a deep encoder enable a one-layer decoder to match or surpass the quality of deeper autoregressive models with comparable speed?
  • RQ5Can this architecture serve as a new speed-quality baseline for future NMT research?

Key findings

  • A one-layer decoder with a deep encoder achieves state-of-the-art translation quality on standard benchmarks, outperforming deeper autoregressive models.
  • The proposed model matches the inference speed of strong non-autoregressive models, despite being autoregressive.
  • The latency of the deep encoder, shallow decoder model is comparable to non-autoregressive baselines, contradicting the assumption that autoregressive models are inherently slow.
  • The performance gain from deep encoding outweighs the limitations of minimal decoding, demonstrating that encoder depth is more critical than decoder depth for quality.
  • The architecture sets a new baseline for fast, accurate translation, suggesting that layer allocation is a key design choice that has been underexplored.
  • The results indicate that the speed-quality trade-off in NMT is not inherent but can be re-balanced through architectural design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.