A question about 2018 Framework Paper

The displacement cell is a great idea mentioned. but I am curious how it is actually learned in human? Specifically, for a specific displacement cell, how it can learn to associate to only the grid cell pairs that have the exact same displacement?

Thanks!!