Reversible soliton motion.
We show that spatial solitons on either phase- or amplitude-modulated backgrounds can change their direction of motion according to the modulation frequency. A soliton may, therefore, move up or down phase gradients or remain motionless regardless of where it is in relation to the background modulation. The general theory is in good agreement with numerical results in a variety of nonlinear systems.