My first question is how many miles on the car?
I'm wondering if the Intake Air Temp (IAT) sensor is going bad. Could be getting heat-soaked, then when you throttle it the air starts rushing in, cools the sensor, and your timing gets restored. It definitely sounds like your timing is pulled and then you get it back.