Generalization Through The Lens Of Learning Dynamics