Generative Learning for Forecasting the Dynamics of Complex Systems