Does it coincide with the ac compressor clutch engaging and disengaging? Is it more like a slight rpm increase instead of a jerk? The ecm may be increasing the engine rpms to compensate for the load of the ac compressor and then backing off after turning off the ac.