Forward-backward retraining of recurrent neural networks