Physics in Next-Token Prediction