Learning stochastic dynamics and predicting emergent behavior using transformers | Synapse