The cumulative reward from current time step to the end of an episode would cancel the intermediate rewards and thus reflect whether the current action improves the holistic label assignment or not.
the learned policy would not focus on the current placement but have a long-term view that takes following actions into account.