Echo State Neural Machine Translation

Ankush Garg, Yuan Cao, Qi GearXiv 2020

Abstract

We present neural machine translation (NMT) models inspired by echo state network (ESN), named Echo State NMT (ESNMT), in which the encoder and decoder layer weights are randomly generated then fixed throughout training. We show that even with this extremely simple model construction and training procedure, ESNMT can already reach 70-80% quality of fully trainable baselines. We examine how spectral radius of the reservoir, a key quantity that characterizes the model, determines the model behavior. Our findings indicate that randomized networks can work well even for complicated sequence-to-sequence prediction NLP tasks.

Introduction

Modern Neural Machine Translation (NMT) models are typically massive, containing millions or billions of parameters that require computationally expensive training via backpropagation. This research explores a counter-intuitive question: Do we actually need to train all those weights?

Drawing inspiration from Echo State Networks (ESNs)—a type of Reservoir Computing where internal recurrent connections are randomly generated and fixed—we investigate whether such architectures can handle complex, high-level language tasks like sequence-to-sequence translation. While ESNs have succeeded in simple time-series tasks, their ability to translate full sentences remained an open question until now.

Methods

We introduce ESNMT (Echo State Neural Machine Translation), based on a high-performing RNN architecture (RNMT+). In this model, the encoder and decoder recurrent layers are initialized with random weights from a uniform distribution and then frozen throughout training.

To allow the model to adapt without training every individual connection, we introduce two learnable scaling factors for each layer: the spectral radius ($\rho$), which controls memory duration, and the input scale ($\gamma$). Only the word embeddings, the attention mechanism, and the final output (softmax) layers are fully trained. This approach enables significant model compression; since the bulk of the weights are random, they can be recovered from a single random seed rather than stored explicitly.

Evaluation was conducted on standard translation benchmarks: WMT’14 English-French (EnFr), WMT’14 English-German (EnDe), and WMT’16 English-Romanian (EnRo), using Byte Pair Encoding (BPE) with a shared vocabulary of 32,000 units.

Key Insights: The Memory Gradient

A critical finding of this work is the emergence of a "memory gradient" across the model's layers. By analyzing the learned spectral radii, the authors found that lower layers evolve to have smaller radii (facilitating short-term memory for word-level details), while upper layers develop larger radii (enabling long-term memory for sentence-level semantics).

Figure 2: Evolution of spectral radius across different layers during training, illustrating the emergence of a memory gradient where upper layers develop larger radii for longer-term memory.

Ablation studies further revealed that training the encoder is more critical than training the decoder. Randomizing the decoder caused only a minor drop in BLEU score (1.17 points), whereas randomizing the encoder caused a much larger drop (3.94 points). Interestingly, the traditional performance gap between LSTMs and simple RNNs disappears in the ESN setting, as the gradient flow benefits of LSTMs are less relevant when internal weights are not being updated.

Results

ESNMT reached 70-80% of the BLEU scores of fully trainable baselines. As shown in the results table, ESNMT variants maintain respectable performance across different language pairs and model dimensions despite the extreme simplicity of using fixed random weights.

Figure 3: Performance comparison showing that ESNMT models achieve roughly 70-80% of the BLEU scores of fully trainable LSTM baselines across multiple language pairs.

For example, on the English-French task, the baseline scored approximately 39-40 BLEU, while ESNMT models achieved scores between 31-32 BLEU. These results demonstrate that fixed, random dynamical systems are capable of performing the heavy lifting of feature extraction even for complex sequence-to-sequence NLP tasks.

Conclusion

While ESNMT currently trails behind fully trained state-of-the-art systems, it proves that random weights can indeed translate. This approach offers a path toward more "economic" model design and massive compression. Future work will explore whether scaling the size of these random reservoirs can close the remaining quality gap and how these principles apply to non-recurrent architectures like Transformers.

Summary updated

BibTeX
@misc{garg2020echo,
  author = {Ankush Garg and Yuan Cao and Qi Ge},
  title = {{Echo State Neural Machine Translation}},
  year = {2020},
  eprint = {2002.11847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.11847},
}
Figure