A retaining wall would normally only be required where the levels of land between two properties have been altered, e.g. one or the other has been built up.
If my neighbour alters the lay of the land by raising the height then he alone should be liable for this cost & maintenance of a retaining...