Sequence Prediction Framework