Somehow in college I was able to get up, walk through my apartment, turn off my alarm, walk all the way back, and crawl back into bed, all without waking up. (Or, at least, without remembering later.)
The solution, for me, has been getting into a routine where I can consistently fall asleep earlier. Much easier to do now that I'm not pulling late nights all the time.