Piers Young blogs on the sleep advantage.
The hard (and repeated) lesson seems to be this: if you want to be creative you need to do whatever you can to stop thinking about the problem. Get some rest, go for a walk – anything – but if you stay up all night working on it, chances you’ll be a blank slate.