When you procrastinate, you're probably not procrastinating because of the pain of working.
How do I know this? Because on a moment-to-moment basis, being in the middle of doing the work is usually less painful than being in the middle of procrastinating.
(Bolded because it's true, important, and nearly impossible to get your brain to remember - even though a few moments of reflection should convince you that it's true.)
So what is our brain flinching away from, if not the pain of doing the work?
I think it's flinching away from the pain of the decision to do the work - the momentary, immediate pain of (1) disengaging yourself from the (probably very small) flow of reinforcement that you're getting from reading a random unimportant Internet article, and (2) paying the energy cost for a prefrontal override to exert control of your own behavior and begin working.
Thanks to hyperbolic discounting (i.e., weighting values in inverse proportion to their temporal distance) the instant pain of disengaging from an Internet article and paying a prefrontal override cost, can outweigh the slightly more distant (minutes in the future, rather than seconds) pain of continuing to procrastinate, which is, once again, usually more painful than being in the middle of doing the work.
I think that hyperbolic discounting is far more ubiquitous as a failure mode than I once realized, because it's not just for commensurate-seeming tradeoffs like smoking a cigarette in a minute versus dying of lung cancer later.
When it comes to procrastinating, the obvious, salient, commensurate-seeming tradeoff, is between the (assumed) pleasure of reading a random Internet article now, versus the (assumed) pain of doing the work now. But this, as I said above, is not where I think the real tradeoff is; events that are five minutes away are too distant to dominate the thought process of a hyperbolic discounter like a human. Instead our thought processes are dominated by the prospective immediate pain of a thought, a cost that isn't even salient as something to be traded off. "Working" is an obvious, salient event, and "reading random articles" seems like an event. But "paying a small twinge of pain to make the decision to stop procrastinating now, exerting a bit of frontal override, and not getting to read the next paragraph of this random article" is so map-level that we don't even focus on it as a manipulable territory, a cost to be traded off; it is a transparent thought.
The real damage done by hyperbolic discounting is for thoughts that are only very slightly painful, and yet, these slight pains being immediate, they manage to dominate everything else in our calculation. And being transparent, we aren't even aware that's what's happening. "Beware of immediately trivially painful transparent thoughts", one might say.
Similarly, you may read a mediocre book for an hour, instead of a good book, because if you first spent a few minutes to search your library to obtain a better book, that would be an immediate cost - not that searching your library is all that unpleasant, but you'd have to pay an immediate activation cost to do that instead of taking the path of least resistance and grabbing the first thing in front of you. It's a hyperbolically discounted tradeoff that you make without realizing it, because the cost you're refusing to pay isn't commensurate enough with the payoff you're forgoing to be salient as an explicit tradeoff.
A related note that I might as well dump into this post: I'm starting to think that procrastination by reading random articles does not cause you to rest, that is, you do not regain mental energy from it. Success and happiness cause you to regain willpower; what you need to heal your mind from any damage sustained by working is not inactivity, but reliably solvable problems which reliably deliver experienced jolts of positive reinforcement. Putting in the effort to read a good book may do this; playing a good computer game may do this; reading random Internet articles, or playing bad games, probably won't. Literal mental exhaustion might mean that you don't have enough energy left to read a good book - or that you don't have enough energy left to pay the immediate cost of searching your library for good reading material instead of mediocre reading material - but in this case you shouldn't be reading random online articles. You should be sitting with your eyes closed listening to music, or possibly even napping; if dealing with a truly exhausted brain, reading random articles is probably too much effort.
If you don't feel good while reading a lot of forgettable online articles, and you don't feel renewed after doing so, your intuitive theory which says that this is how to rest is mistaken, and you need to look for other ways to rest instead - more active ways to regain willpower, less active ways to recover from immediate exhaustion. In general, poor performance often indicates poor models; if something seems incredibly difficult to predict or manipulate, it may be that you have mistaken beliefs about it, including transparent mistakes that are nonquestioned because they are nonsalient. This includes poor performance on the problem of resting.
Hopefully publishing this post will help me live up to it.
Here's a theory about one of the things that causes procrastination to be so hard to beat. I'm curious what people think of it.
Hypothesis: Many parts of the mind are influenced by something like reinforcement learning, where the emotional valances of our thoughts function as a gross reward signal that conditions their behaviors.
Reinforcement learning seems to have a far more powerful effect when feedback is instant.
We think of procrastinating as a bad thing, and tend to internally punish ourselves when we catch ourselves doing it.
Therefore, the negative feedback signal might end up exerting a much more powerful training effect on the "catcher" system (aka. whatever is activating frontal override) rather than on whatever it is that triggered the procrastination in the first place.
This results in a simple counter-intuitive piece of advice: when you catch yourself procrastinating, it might be a very bad idea to internally berate yourself about it; Thoughts of the form "%#&%! I'm procrastinating again! I really shouldn't do that!" might actually cause more procrastinating in the long run. If I had to guess, things like meditation would be helpful for building up the skill required to catch the procrastination-berating subsystem in the act and get it to do something else.
TL;DR: It would probably be hugely helpful to try to train oneself to make the "flinch" less unpleasant.
My immediate objection is that I don't seem to catch myself any less over time- I catch myself plenty, I just don't do anything about it.