It happens to me if I yank on the bars while pushing on the pedals. If I lighten up on the bars ("playing piano"), drop down a gear, and concentrate on just using my legs to power up the hill I seem to be more efficient.

But then, my idea of powering up a hill is 26T chainring and 34T cog and 5 mph...