[Paper Review] Training Language Models Using Target-Propagation
This paper investigates training recurrent language models using Target Propagation (TPROP), a method that treats hidden states as explicit optimization variables to enable parallelization and avoid gradient truncation in backpropagation through time (BPTT). Despite theoretical advantages, experiments show TPROP underperforms BPTT in generalization, with performance degradation linked to unconstrained hidden state optimization, suggesting that additional constraints may be needed for TPROP to succeed in sequence modeling.
While Truncated Back-Propagation through Time (BPTT) is the most popular approach to training Recurrent Neural Networks (RNNs), it suffers from being inherently sequential (making parallelization difficult) and from truncating gradient flow between distant time-steps. We investigate whether Target Propagation (TPROP) style approaches can address these shortcomings. Unfortunately, extensive experiments suggest that TPROP generally underperforms BPTT, and we end with an analysis of this phenomenon, and suggestions for future work.
Motivation & Objective
- To address the sequential nature and gradient truncation issues of truncated BPTT in training RNNs for language modeling.
- To evaluate whether Target Propagation (TPROP) can enable parallel training and improve long-term dependency learning in RNNs.
- To investigate whether TPROP can generalize better than BPTT by avoiding gradient flow truncation.
- To analyze why TPROP underperforms BPTT in practice and identify potential constraints to improve its performance.
Proposed method
- Formulates RNN training by treating hidden states $ h_t $ as explicit variables to be optimized, rather than computed via recurrence.
- Introduces a loss function that includes both prediction loss $ \ell(f(\hat{h}_t), y_t) $ and a reconstruction penalty $ C(\hat{h}_t, h_t) $ to enforce consistency with the recurrence $ \hat{h}_t = g(x_t, h_{t-1}) $.
- Uses an alternating optimization scheme: update parameters $ \theta $ while fixing $ h_t $, then update $ h_t $ while fixing $ \theta $, with $ \mathcal{H} $-steps controlling the number of such updates.
- Applies both batch and mini-batch variants of TPROP, initializing $ h_t $ in each mini-batch to the previous $ \hat{h}_t $ to maintain consistency.
- Employs an $ L_2 $ penalty $ \lambda \| \hat{h}_t - h_t \|_2^2 $ to regularize the hidden state optimization and improve generalization.
- Compares TPROP performance against BPTT across multiple language modeling benchmarks, including Penn Treebank (PTB) and Text8, using perplexity as the metric.
Experimental results
Research questions
- RQ1Can Target Propagation (TPROP) effectively train RNNs for language modeling while avoiding the sequential dependency of BPTT?
- RQ2Does TPROP improve generalization by enabling longer-range gradient flow compared to truncated BPTT?
- RQ3Why does TPROP underperform BPTT in practice, despite its theoretical advantages in parallelization and gradient propagation?
- RQ4Can additional constraints on hidden state optimization improve TPROP's performance and close the gap with BPTT?
Key findings
- Batch TPROP achieves training loss comparable to batch BPTT but generalizes significantly worse, indicating poor generalization despite similar optimization of training loss.
- Minibatch TPROP only matches BPTT's generalization performance when $ \mathcal{H} $-steps are set to 1, effectively reducing TPROP to BPTT.
- The performance degradation in TPROP is attributed to the unconstrained nature of hidden state optimization, which allows finding low-loss states that do not generalize well.
- Experiments show that the $ L_2 $ penalty in the loss function contributes to minor performance gains in minibatch TPROP, suggesting regularization effects rather than long-range dependency learning.
- As hidden state dimensionality increases, BPTT's performance improves relative to TPROP, supporting the hypothesis that TPROP struggles with unregularized optimization in high-dimensional spaces.
- Figure 3 demonstrates that BPTT outperforms TPROP on small hidden states but closes the gap with increasing dimensionality, implying that TPROP may require stronger constraints for larger models.
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.