Top-down and bottom-up interactions between individual and collective behaviors