Prediction-for-CompAction: navigation in social environments using generalized cognitive maps