If it typically happens when you're low on fuel, it may be the fuel pump.
When was the last time you replaced the air & fuel filters?
Have you tried cleaning the MAF?
With those wild RPM changes, I doubt its plugs/wires as has been the case with many less severe bucking/missing issues.
That should give you a place to start looking before heading for the tranny shop.