Leveraging latent roles of players can significantly improve the performance of trajectory forecasting models in team sports.