[Paper Review] SEARNN: Training RNNs with Global-Local Losses
SeaRnn proposes a novel training algorithm for RNNs that uses global-local losses derived from structured prediction via the 'learning to search' (L2S) framework, improving generalization by aligning training with test-time decoding. It outperforms maximum likelihood estimation (MLE) on OCR, spelling correction, and machine translation without requiring warm-starting, even at scale with large vocabularies using a subsampling strategy.
We propose SEARNN, a novel training algorithm for recurrent neural networks (RNNs) inspired by the "learning to search" (L2S) approach to structured prediction. RNNs have been widely successful in structured prediction applications such as machine translation or parsing, and are commonly trained using maximum likelihood estimation (MLE). Unfortunately, this training loss is not always an appropriate surrogate for the test error: by only maximizing the ground truth probability, it fails to exploit the wealth of information offered by structured losses. Further, it introduces discrepancies between training and predicting (such as exposure bias) that may hurt test performance. Instead, SEARNN leverages test-alike search space exploration to introduce global-local losses that are closer to the test error. We first demonstrate improved performance over MLE on two different tasks: OCR and spelling correction. Then, we propose a subsampling strategy to enable SEARNN to scale to large vocabulary sizes. This allows us to validate the benefits of our approach on a machine translation task.
Motivation & Objective
- To address the discrepancy between MLE training and test-time decoding in RNNs, particularly exposure bias and poor surrogate loss quality.
- To improve RNN generalization by incorporating structured test error information during training through global-local loss design.
- To enable end-to-end training of RNNs from scratch without reliance on pre-trained models, overcoming limitations of RL-based methods.
- To scale the method to large-vocabulary tasks like neural machine translation using efficient subsampling.
Proposed method
- SeaRnn introduces a global-local loss that combines local per-step losses with global sequence-level costs derived from deterministic roll-outs using the same decoding strategy as inference.
- It performs structured search over candidate sequences during training to compute sequence-level costs, which are then backpropagated via a differentiable approximation of the gradient.
- The method uses a fixed decoding policy (e.g., greedy or beam search) during roll-out to compute costs, ensuring alignment with test-time behavior and avoiding stochasticity in the loss.
- A subsampling strategy is introduced to reduce computational cost by sampling only a subset of sequences for roll-out, maintaining performance while scaling to large vocabularies.
- The global-local loss is computed as a weighted sum of local cross-entropy terms and a global cost term based on the full predicted sequence, enabling better signal propagation than MLE.
- The gradient is approximated by fixing the cost values during backpropagation, allowing efficient optimization despite the non-differentiability of the cost function.
Experimental results
Research questions
- RQ1Can global-local losses derived from structured prediction improve RNN performance compared to MLE on sequence modeling tasks?
- RQ2Does SeaRnn eliminate the need for warm-starting in RNN training by providing better gradient signals than RL-based or MLE methods?
- RQ3Can the global-local loss mechanism be scaled to large-vocabulary tasks such as neural machine translation?
- RQ4How does the subsampling strategy affect performance and training efficiency in high-dimensional sequence spaces?
- RQ5To what extent does using deterministic roll-outs instead of stochastic sampling improve alignment between training and test-time behavior?
Key findings
- SeaRnn significantly outperforms MLE on both OCR and spelling correction tasks, demonstrating improved generalization without warm-starting.
- The method achieves state-of-the-art results on a large-scale machine translation task, validating its scalability and effectiveness at scale.
- The subsampling strategy reduces training time substantially while preserving performance gains over MLE, enabling application to large-vocabulary settings.
- SeaRnn does not require additional models like baselines or critics, unlike actor-critic or REINFORCE-based methods, simplifying training and reducing complexity.
- By using deterministic roll-outs aligned with test-time decoding, SeaRnn avoids the discrepancy introduced by stochastic policy gradients in RL-based approaches.
- The global-local loss design enables effective learning from structured error signals, with better signal distribution across sequence steps than MLE or standard RL methods.
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.