[Paper Review] Classification-based RNN machine translation using GRUs
This paper proposes a classification-based RNN machine translation model using Gated Recurrent Units (GRUs) to predict the next word in a translation sequence, treating translation as a sequence classification task rather than autoregressive generation. Despite achieving only modest performance—around 21.5% accuracy in predicting the next word from a full source sentence—the model demonstrates feasibility of using GRUs for variable-length input translation with a simpler, more interpretable framework compared to complex sequence-to-sequence models.
We report the results of our classification-based machine translation model, built upon the framework of a recurrent neural network using gated recurrent units. Unlike other RNN models that attempt to maximize the overall conditional log probability of sentences against sentences, our model focuses a classification approach of estimating the conditional probability of the next word given the input sequence. This simpler approach using GRUs was hoped to be comparable with more complicated RNN models, but achievements in this implementation were modest and there remains a lot of room for improving this classification approach.
Motivation & Objective
- To develop a simpler, more interpretable machine translation framework by applying a classification-based approach to RNNs using GRUs.
- To enable variable-length input sequences in neural translation models, overcoming limitations of fixed-length input in prior feed-forward models.
- To evaluate whether GRUs can achieve competitive performance in translation using a classification paradigm instead of autoregressive sequence generation.
- To investigate the impact of word embeddings, vocabulary size, and training batch design on translation quality in a constrained setup.
Proposed method
- The model uses a single GRU encoder-decoder architecture to process variable-length source sentences and predict the next word in the target sequence.
- Word vectors are initialized using pre-trained GloVe embeddings to improve semantic representation and reduce training burden.
- Training employs stochastic gradient descent with mini-batches of 128 sentence pairs, where each batch is padded to a fixed length to enable GPU parallelization.
- Batches with insufficient pairs for full size (128) are dropped to maintain training efficiency and consistency.
- The model is trained to maximize the conditional probability of the next target word given the source sentence and previously generated words.
- Vocabulary is limited to 80,002 tokens per language (top 80,000 words + OOV and EOS tokens), with words converted to lowercase but not stemmed or lemmatized.
Experimental results
Research questions
- RQ1Can a classification-based RNN using GRUs achieve competitive performance in machine translation compared to more complex sequence-to-sequence models?
- RQ2How does the use of pre-trained word embeddings (e.g., GloVe) affect translation quality in a GRU-based classification framework?
- RQ3What is the impact of batch size and sequence length constraints on training stability and model performance?
- RQ4How does the model perform when given a partially correct translation as context, compared to a full source sentence?
Key findings
- The model achieved a next-word prediction accuracy of 21.5% when predicting from a full source sentence, indicating modest but non-trivial performance.
- When provided with a correct partial translation as context, the model's next-word prediction accuracy improved to 40.3%, suggesting context quality significantly affects output reliability.
- The model struggled with long sequences, as sequences exceeding 50 tokens in source or target language were capped and excluded from training.
- The use of pre-trained GloVe embeddings was expected to improve performance, but the model's overall results remained limited, indicating further architectural or hyperparameter improvements are needed.
- Despite low absolute accuracy, the model often produced coherent and contextually linked translations, showing visible alignment with intended outputs.
- The model's performance was sensitive to batch composition, with small or incomplete batches being dropped to maintain training stability and efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.