Cavitation can introduce air before the pump - it's like a would-be leak but sucking air, or high pressure suction creating a vacuum around an obstruction in the pipe.
not sure what exactly you mean by sputtering, is it air, or poor flow, or....
Check out this video I saw posted: