The answer depends on the rule for the driver being passed: you must not interfere with passing, including by speeding up. The passing driver planned the maneuver based on your speed; if you speed up, they will have to stay longer in a lane that is not theirs and may not manage to get back in front of you. So while you are being passed, keep your speed or reduce it so the passing ends sooner