probably misfiring... my impreza used to do that (when I had it) and it was misfiring... just check plugs, wires, cap, and might want to do a compresion test...