Under acceleration, the train is drawing significant amounts of current from the wire to power, so if for any reason contact between the two is lost (even briefly), you'll see significant amounts of arcing as the current attempts to maintain the circuit.