Seems that 'not in my back yard' is a big problem. So what about a rule that says, "If you build a high-density apartment you must financially compensate nearby residents"?
In any case, support for NIMBY suggests the current level of financial compensation is insufficient.