The needle bar transverse shifting will likely form the stop mark liked gap on the tufted carpet. This paper proposed the yarn feeding compensation scheme and illustrate implement method in detail. Through analysis the change in yarn feeding path and loop pile forming of carpet tufting machine, construct the mathematical model of length change of yarn feeding in path and usage of loop pile forming while needle bar shifting. According to the mathematical model for yarn feeding compensation, calculate the additional yarn feeding requirement. Base on jacquard control principle, dynamic control the yarn feed actuator to drive the yarn feed roller to delivery additional length yarn, and produce loop pile with predefined pile height, Test result show the compensation is feasible.