I take some issue with the "revenge" terminology, as it implies an unhealthy adversarial framing of the problem. Whenever I have had to deal with this myself, I've always chosen to view it as my subconscious prioritizing some kind of emotional need over my need for sleep.
Viewed that way, the solution is obvious: Identify the emotional need that I've been neglecting and figure out how to satisfy it during the normal course of my day/week. Like most simple and obvious solutions, however, putting it into practice can sometimes be quite difficult.