i had the exact same problem. the lower bolt on my thermostat housing was broken, leaking air in, super heating the sensor, spiking the gauge, then returning to normal after the air had purged itself.
so, basically any air leak into your coolant system can cause this. look for pinholes, look...