Optimal single-path information propagation in gradient-based algorithms