A relative encoding model of spatiotemporal boundary formation