Memory as Prediction: From Looking Back to Looking Forward